]>
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__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 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 | ||
3bcd5e1c | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
3bcd5e1c | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
3bcd5e1c | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
3bcd5e1c RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
3bcd5e1c RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
2f90df85 RD |
89 | class wxPyValidator : public wxValidator { |
90 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
91 | public: | |
92 | wxPyValidator() { | |
93 | } | |
2f90df85 RD |
94 | |
95 | ~wxPyValidator() { | |
96 | } | |
97 | ||
059a841c | 98 | wxObject* Clone() const { |
694759cf RD |
99 | wxPyValidator* ptr = NULL; |
100 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 101 | |
474c48f9 | 102 | wxPyBeginBlockThreads(); |
694759cf RD |
103 | if (self->m_myInst.findCallback("Clone")) { |
104 | PyObject* ro; | |
105 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
106 | if (ro) { |
107 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
108 | Py_DECREF(ro); | |
109 | } | |
694759cf | 110 | } |
474c48f9 | 111 | wxPyEndBlockThreads(); |
059a841c | 112 | |
694759cf RD |
113 | // This is very dangerous!!! But is the only way I could find |
114 | // to squash a memory leak. Currently it is okay, but if the | |
115 | // validator architecture in wxWindows ever changes, problems | |
116 | // could arise. | |
117 | delete self; | |
694759cf RD |
118 | return ptr; |
119 | } | |
2f90df85 | 120 | |
9df61a29 | 121 | |
2f90df85 RD |
122 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
123 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
124 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
125 | ||
126 | PYPRIVATE; | |
2f90df85 RD |
127 | }; |
128 | ||
129 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
130 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
131 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
132 | ||
133 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 134 | |
2f90df85 RD |
135 | #ifdef __cplusplus |
136 | extern "C" { | |
137 | #endif | |
9df61a29 RD |
138 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
139 | wxEvtHandler *src; | |
140 | wxObject *dest; | |
141 | src = (wxEvtHandler *) ptr; | |
142 | dest = (wxObject *) src; | |
143 | return (void *) dest; | |
144 | } | |
145 | ||
c368d904 RD |
146 | #define new_wxEvtHandler() (new wxEvtHandler()) |
147 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
148 | PyObject * _resultobj; | |
149 | wxEvtHandler * _result; | |
150 | char *_kwnames[] = { NULL }; | |
151 | char _ptemp[128]; | |
152 | ||
153 | self = self; | |
154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
155 | return NULL; | |
156 | { | |
474c48f9 | 157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 158 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 159 | |
474c48f9 | 160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 161 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
162 | } if (_result) { |
163 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
164 | _resultobj = Py_BuildValue("s",_ptemp); | |
165 | } else { | |
166 | Py_INCREF(Py_None); | |
167 | _resultobj = Py_None; | |
168 | } | |
169 | return _resultobj; | |
170 | } | |
171 | ||
2f90df85 RD |
172 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
173 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
174 | PyObject * _resultobj; | |
175 | bool _result; | |
176 | wxEvtHandler * _arg0; | |
177 | wxEvent * _arg1; | |
178 | PyObject * _argo0 = 0; | |
179 | PyObject * _argo1 = 0; | |
180 | char *_kwnames[] = { "self","event", NULL }; | |
181 | ||
182 | self = self; | |
183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
184 | return NULL; | |
185 | if (_argo0) { | |
186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
189 | return NULL; | |
190 | } | |
191 | } | |
192 | if (_argo1) { | |
193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
196 | return NULL; | |
197 | } | |
198 | } | |
199 | { | |
474c48f9 | 200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 201 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 202 | |
474c48f9 | 203 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 204 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
205 | } _resultobj = Py_BuildValue("i",_result); |
206 | return _resultobj; | |
207 | } | |
208 | ||
f6bcfd97 BP |
209 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
210 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
211 | PyObject * _resultobj; | |
212 | wxEvtHandler * _arg0; | |
213 | wxEvent * _arg1; | |
214 | PyObject * _argo0 = 0; | |
215 | PyObject * _argo1 = 0; | |
216 | char *_kwnames[] = { "self","event", NULL }; | |
217 | ||
218 | self = self; | |
219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
220 | return NULL; | |
221 | if (_argo0) { | |
222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
225 | return NULL; | |
226 | } | |
227 | } | |
228 | if (_argo1) { | |
229 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
230 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
232 | return NULL; | |
233 | } | |
234 | } | |
235 | { | |
474c48f9 | 236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 237 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 238 | |
474c48f9 | 239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 240 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
241 | } Py_INCREF(Py_None); |
242 | _resultobj = Py_None; | |
243 | return _resultobj; | |
244 | } | |
245 | ||
2f90df85 RD |
246 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
247 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
248 | PyObject * _resultobj; | |
249 | bool _result; | |
250 | wxEvtHandler * _arg0; | |
251 | PyObject * _argo0 = 0; | |
252 | char *_kwnames[] = { "self", NULL }; | |
253 | ||
254 | self = self; | |
255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
256 | return NULL; | |
257 | if (_argo0) { | |
258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
261 | return NULL; | |
262 | } | |
263 | } | |
264 | { | |
474c48f9 | 265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 266 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 267 | |
474c48f9 | 268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 269 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
270 | } _resultobj = Py_BuildValue("i",_result); |
271 | return _resultobj; | |
272 | } | |
273 | ||
274 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
275 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
276 | PyObject * _resultobj; | |
277 | wxEvtHandler * _arg0; | |
278 | bool _arg1; | |
279 | PyObject * _argo0 = 0; | |
280 | int tempbool1; | |
281 | char *_kwnames[] = { "self","enabled", NULL }; | |
282 | ||
283 | self = self; | |
284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
285 | return NULL; | |
286 | if (_argo0) { | |
287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
290 | return NULL; | |
291 | } | |
292 | } | |
293 | _arg1 = (bool ) tempbool1; | |
294 | { | |
474c48f9 | 295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 296 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 297 | |
474c48f9 | 298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 299 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
300 | } Py_INCREF(Py_None); |
301 | _resultobj = Py_None; | |
302 | return _resultobj; | |
303 | } | |
304 | ||
305 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
306 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
307 | PyObject * _resultobj; | |
308 | wxEvtHandler * _result; | |
309 | wxEvtHandler * _arg0; | |
310 | PyObject * _argo0 = 0; | |
311 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
312 | |
313 | self = self; | |
314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
315 | return NULL; | |
316 | if (_argo0) { | |
317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
320 | return NULL; | |
321 | } | |
322 | } | |
323 | { | |
474c48f9 | 324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 325 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 326 | |
474c48f9 | 327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 328 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 329 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
330 | return _resultobj; |
331 | } | |
332 | ||
333 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
334 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
335 | PyObject * _resultobj; | |
336 | wxEvtHandler * _result; | |
337 | wxEvtHandler * _arg0; | |
338 | PyObject * _argo0 = 0; | |
339 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
340 | |
341 | self = self; | |
342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
343 | return NULL; | |
344 | if (_argo0) { | |
345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
474c48f9 | 352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 353 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 354 | |
474c48f9 | 355 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 356 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 357 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
358 | return _resultobj; |
359 | } | |
360 | ||
361 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
362 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
363 | PyObject * _resultobj; | |
364 | wxEvtHandler * _arg0; | |
365 | wxEvtHandler * _arg1; | |
366 | PyObject * _argo0 = 0; | |
367 | PyObject * _argo1 = 0; | |
368 | char *_kwnames[] = { "self","handler", NULL }; | |
369 | ||
370 | self = self; | |
371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
372 | return NULL; | |
373 | if (_argo0) { | |
374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | if (_argo1) { | |
381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
384 | return NULL; | |
385 | } | |
386 | } | |
387 | { | |
474c48f9 | 388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 389 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 390 | |
474c48f9 | 391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 392 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
393 | } Py_INCREF(Py_None); |
394 | _resultobj = Py_None; | |
395 | return _resultobj; | |
396 | } | |
397 | ||
398 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
399 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
400 | PyObject * _resultobj; | |
401 | wxEvtHandler * _arg0; | |
402 | wxEvtHandler * _arg1; | |
403 | PyObject * _argo0 = 0; | |
404 | PyObject * _argo1 = 0; | |
405 | char *_kwnames[] = { "self","handler", NULL }; | |
406 | ||
407 | self = self; | |
408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
409 | return NULL; | |
410 | if (_argo0) { | |
411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | if (_argo1) { | |
418 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
419 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
421 | return NULL; | |
422 | } | |
423 | } | |
424 | { | |
474c48f9 | 425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 426 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 427 | |
474c48f9 | 428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 429 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
430 | } Py_INCREF(Py_None); |
431 | _resultobj = Py_None; | |
432 | return _resultobj; | |
433 | } | |
434 | ||
435 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
436 | if (PyCallable_Check(func)) { | |
437 | self->Connect(id, lastId, eventType, | |
438 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
439 | new wxPyCallback(func)); | |
440 | } | |
a57d56d6 RD |
441 | else if (func == Py_None) { |
442 | self->Disconnect(id, lastId, eventType, | |
443 | (wxObjectEventFunction) | |
444 | &wxPyCallback::EventThunker); | |
445 | } | |
446 | else { | |
447 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
448 | } | |
2f90df85 RD |
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 | { | |
474c48f9 | 475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 476 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 477 | |
474c48f9 | 478 | wxPyEndAllowThreads(__tstate); |
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 | { | |
474c48f9 | 511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 512 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 513 | |
474c48f9 | 514 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 515 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
516 | } _resultobj = Py_BuildValue("i",_result); |
517 | return _resultobj; | |
518 | } | |
519 | ||
0220cbc1 RD |
520 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
521 | self->SetClientObject(new wxPyClientData(_self)); | |
522 | } | |
523 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
524 | PyObject * _resultobj; | |
525 | wxEvtHandler * _arg0; | |
526 | PyObject * _arg1; | |
527 | PyObject * _argo0 = 0; | |
528 | PyObject * _obj1 = 0; | |
529 | char *_kwnames[] = { "self","_self", NULL }; | |
530 | ||
531 | self = self; | |
532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
533 | return NULL; | |
534 | if (_argo0) { | |
535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
538 | return NULL; | |
539 | } | |
540 | } | |
541 | { | |
542 | _arg1 = _obj1; | |
543 | } | |
544 | { | |
474c48f9 | 545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 546 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0220cbc1 | 547 | |
474c48f9 | 548 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
549 | if (PyErr_Occurred()) return NULL; |
550 | } Py_INCREF(Py_None); | |
551 | _resultobj = Py_None; | |
552 | return _resultobj; | |
553 | } | |
554 | ||
2f90df85 RD |
555 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
556 | wxValidator *src; | |
557 | wxEvtHandler *dest; | |
558 | src = (wxValidator *) ptr; | |
559 | dest = (wxEvtHandler *) src; | |
560 | return (void *) dest; | |
561 | } | |
562 | ||
9df61a29 RD |
563 | static void *SwigwxValidatorTowxObject(void *ptr) { |
564 | wxValidator *src; | |
565 | wxObject *dest; | |
566 | src = (wxValidator *) ptr; | |
567 | dest = (wxObject *) src; | |
568 | return (void *) dest; | |
569 | } | |
570 | ||
2f90df85 RD |
571 | #define new_wxValidator() (new wxValidator()) |
572 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
573 | PyObject * _resultobj; | |
574 | wxValidator * _result; | |
575 | char *_kwnames[] = { NULL }; | |
576 | char _ptemp[128]; | |
577 | ||
578 | self = self; | |
579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
580 | return NULL; | |
581 | { | |
474c48f9 | 582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 583 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 584 | |
474c48f9 | 585 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 586 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
587 | } if (_result) { |
588 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
589 | _resultobj = Py_BuildValue("s",_ptemp); | |
590 | } else { | |
591 | Py_INCREF(Py_None); | |
592 | _resultobj = Py_None; | |
593 | } | |
594 | return _resultobj; | |
af309447 | 595 | } |
2f90df85 RD |
596 | |
597 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
598 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 599 | PyObject * _resultobj; |
2f90df85 RD |
600 | wxValidator * _result; |
601 | wxValidator * _arg0; | |
602 | PyObject * _argo0 = 0; | |
603 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
604 | |
605 | self = self; | |
2f90df85 RD |
606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
607 | return NULL; | |
608 | if (_argo0) { | |
609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 612 | return NULL; |
2f90df85 RD |
613 | } |
614 | } | |
cf694132 | 615 | { |
474c48f9 | 616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 617 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 618 | |
474c48f9 | 619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 620 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 621 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
622 | return _resultobj; |
623 | } | |
624 | ||
2f90df85 RD |
625 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
626 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
627 | PyObject * _resultobj; |
628 | wxWindow * _result; | |
2f90df85 RD |
629 | wxValidator * _arg0; |
630 | PyObject * _argo0 = 0; | |
631 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
632 | |
633 | self = self; | |
2f90df85 RD |
634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
635 | return NULL; | |
636 | if (_argo0) { | |
637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 640 | return NULL; |
2f90df85 RD |
641 | } |
642 | } | |
cf694132 | 643 | { |
474c48f9 | 644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 645 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 646 | |
474c48f9 | 647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 648 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 649 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
650 | return _resultobj; |
651 | } | |
652 | ||
2f90df85 RD |
653 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
654 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 655 | PyObject * _resultobj; |
2f90df85 RD |
656 | wxValidator * _arg0; |
657 | wxWindow * _arg1; | |
1d99702e RD |
658 | PyObject * _argo0 = 0; |
659 | PyObject * _argo1 = 0; | |
2f90df85 | 660 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
661 | |
662 | self = self; | |
2f90df85 | 663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 664 | return NULL; |
1d99702e RD |
665 | if (_argo0) { |
666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
669 | return NULL; |
670 | } | |
671 | } | |
1d99702e RD |
672 | if (_argo1) { |
673 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
674 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
676 | return NULL; |
677 | } | |
678 | } | |
679 | { | |
474c48f9 | 680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 681 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 682 | |
474c48f9 | 683 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 684 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
685 | } Py_INCREF(Py_None); |
686 | _resultobj = Py_None; | |
cf694132 RD |
687 | return _resultobj; |
688 | } | |
689 | ||
9df61a29 RD |
690 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
691 | PyObject * _resultobj; | |
692 | bool _result; | |
693 | char *_kwnames[] = { NULL }; | |
694 | ||
695 | self = self; | |
696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
697 | return NULL; | |
698 | { | |
474c48f9 | 699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 700 | _result = (bool )wxValidator::IsSilent(); |
9df61a29 | 701 | |
474c48f9 | 702 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 703 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
704 | } _resultobj = Py_BuildValue("i",_result); |
705 | return _resultobj; | |
706 | } | |
707 | ||
708 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
709 | PyObject * _resultobj; | |
710 | int _arg0 = (int ) TRUE; | |
711 | char *_kwnames[] = { "doIt", NULL }; | |
712 | ||
713 | self = self; | |
714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
715 | return NULL; | |
716 | { | |
474c48f9 | 717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 718 | wxValidator::SetBellOnError(_arg0); |
9df61a29 | 719 | |
474c48f9 | 720 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 721 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
722 | } Py_INCREF(Py_None); |
723 | _resultobj = Py_None; | |
724 | return _resultobj; | |
725 | } | |
726 | ||
2f90df85 RD |
727 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
728 | wxPyValidator *src; | |
729 | wxValidator *dest; | |
730 | src = (wxPyValidator *) ptr; | |
731 | dest = (wxValidator *) src; | |
732 | return (void *) dest; | |
733 | } | |
734 | ||
735 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
736 | wxPyValidator *src; | |
737 | wxEvtHandler *dest; | |
738 | src = (wxPyValidator *) ptr; | |
739 | dest = (wxEvtHandler *) src; | |
740 | return (void *) dest; | |
741 | } | |
742 | ||
9df61a29 RD |
743 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
744 | wxPyValidator *src; | |
745 | wxObject *dest; | |
746 | src = (wxPyValidator *) ptr; | |
747 | dest = (wxObject *) src; | |
748 | return (void *) dest; | |
749 | } | |
750 | ||
2f90df85 RD |
751 | #define new_wxPyValidator() (new wxPyValidator()) |
752 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
753 | PyObject * _resultobj; | |
754 | wxPyValidator * _result; | |
755 | char *_kwnames[] = { NULL }; | |
756 | char _ptemp[128]; | |
757 | ||
758 | self = self; | |
759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
760 | return NULL; | |
761 | { | |
474c48f9 | 762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 763 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 764 | |
474c48f9 | 765 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 766 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
767 | } if (_result) { |
768 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
769 | _resultobj = Py_BuildValue("s",_ptemp); | |
770 | } else { | |
771 | Py_INCREF(Py_None); | |
772 | _resultobj = Py_None; | |
773 | } | |
774 | return _resultobj; | |
775 | } | |
776 | ||
0220cbc1 RD |
777 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
778 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 779 | PyObject * _resultobj; |
2f90df85 RD |
780 | wxPyValidator * _arg0; |
781 | PyObject * _arg1; | |
f6bcfd97 BP |
782 | PyObject * _arg2; |
783 | int _arg3 = (int ) TRUE; | |
1d99702e | 784 | PyObject * _argo0 = 0; |
2f90df85 | 785 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
786 | PyObject * _obj2 = 0; |
787 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
788 | |
789 | self = self; | |
0220cbc1 | 790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 791 | return NULL; |
1d99702e RD |
792 | if (_argo0) { |
793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0220cbc1 | 795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
796 | return NULL; |
797 | } | |
798 | } | |
799 | { | |
2f90df85 | 800 | _arg1 = _obj1; |
8ab979d7 | 801 | } |
f6bcfd97 BP |
802 | { |
803 | _arg2 = _obj2; | |
804 | } | |
cf694132 | 805 | { |
474c48f9 | 806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 807 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 808 | |
474c48f9 | 809 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 810 | if (PyErr_Occurred()) return NULL; |
cf694132 | 811 | } Py_INCREF(Py_None); |
8ab979d7 RD |
812 | _resultobj = Py_None; |
813 | return _resultobj; | |
814 | } | |
815 | ||
816 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
817 | wxWindow *src; | |
818 | wxEvtHandler *dest; | |
819 | src = (wxWindow *) ptr; | |
820 | dest = (wxEvtHandler *) src; | |
821 | return (void *) dest; | |
822 | } | |
823 | ||
9df61a29 RD |
824 | static void *SwigwxWindowTowxObject(void *ptr) { |
825 | wxWindow *src; | |
826 | wxObject *dest; | |
827 | src = (wxWindow *) ptr; | |
828 | dest = (wxObject *) src; | |
829 | return (void *) dest; | |
830 | } | |
831 | ||
8ab979d7 | 832 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 833 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
834 | PyObject * _resultobj; |
835 | wxWindow * _result; | |
836 | wxWindow * _arg0; | |
837 | wxWindowID _arg1; | |
b68dc582 RD |
838 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
839 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
840 | long _arg4 = (long ) 0; |
841 | char * _arg5 = (char *) "panel"; | |
842 | PyObject * _argo0 = 0; | |
2f90df85 RD |
843 | wxPoint temp; |
844 | PyObject * _obj2 = 0; | |
845 | wxSize temp0; | |
846 | PyObject * _obj3 = 0; | |
efc5f224 | 847 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
848 | char _ptemp[128]; |
849 | ||
850 | self = self; | |
2f90df85 | 851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 852 | return NULL; |
1d99702e RD |
853 | if (_argo0) { |
854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
857 | return NULL; | |
858 | } | |
859 | } | |
2f90df85 RD |
860 | if (_obj2) |
861 | { | |
862 | _arg2 = &temp; | |
863 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 864 | return NULL; |
2f90df85 RD |
865 | } |
866 | if (_obj3) | |
867 | { | |
868 | _arg3 = &temp0; | |
869 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 870 | return NULL; |
2f90df85 | 871 | } |
cf694132 | 872 | { |
474c48f9 | 873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 874 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 875 | |
474c48f9 | 876 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 877 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
878 | } if (_result) { |
879 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
880 | _resultobj = Py_BuildValue("s",_ptemp); | |
881 | } else { | |
882 | Py_INCREF(Py_None); | |
883 | _resultobj = Py_None; | |
884 | } | |
8ab979d7 RD |
885 | return _resultobj; |
886 | } | |
887 | ||
aa2a5b86 RD |
888 | #define new_wxPreWindow() (new wxWindow()) |
889 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
890 | PyObject * _resultobj; | |
891 | wxWindow * _result; | |
892 | char *_kwnames[] = { NULL }; | |
893 | char _ptemp[128]; | |
894 | ||
895 | self = self; | |
896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
897 | return NULL; | |
898 | { | |
474c48f9 | 899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 900 | _result = (wxWindow *)new_wxPreWindow(); |
aa2a5b86 | 901 | |
474c48f9 | 902 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
903 | if (PyErr_Occurred()) return NULL; |
904 | } if (_result) { | |
905 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
906 | _resultobj = Py_BuildValue("s",_ptemp); | |
907 | } else { | |
908 | Py_INCREF(Py_None); | |
909 | _resultobj = Py_None; | |
910 | } | |
911 | return _resultobj; | |
912 | } | |
913 | ||
914 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
915 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
916 | PyObject * _resultobj; | |
917 | bool _result; | |
918 | wxWindow * _arg0; | |
919 | wxWindow * _arg1; | |
920 | wxWindowID _arg2; | |
921 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
922 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
923 | long _arg5 = (long ) 0; | |
924 | char * _arg6 = (char *) "panel"; | |
925 | PyObject * _argo0 = 0; | |
926 | PyObject * _argo1 = 0; | |
927 | wxPoint temp; | |
928 | PyObject * _obj3 = 0; | |
929 | wxSize temp0; | |
930 | PyObject * _obj4 = 0; | |
931 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
932 | ||
933 | self = self; | |
934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
935 | return NULL; | |
936 | if (_argo0) { | |
937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
940 | return NULL; | |
941 | } | |
942 | } | |
943 | if (_argo1) { | |
944 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | if (_obj3) | |
951 | { | |
952 | _arg3 = &temp; | |
953 | if (! wxPoint_helper(_obj3, &_arg3)) | |
954 | return NULL; | |
955 | } | |
956 | if (_obj4) | |
957 | { | |
958 | _arg4 = &temp0; | |
959 | if (! wxSize_helper(_obj4, &_arg4)) | |
960 | return NULL; | |
961 | } | |
962 | { | |
474c48f9 | 963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 964 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
aa2a5b86 | 965 | |
474c48f9 | 966 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
967 | if (PyErr_Occurred()) return NULL; |
968 | } _resultobj = Py_BuildValue("i",_result); | |
969 | return _resultobj; | |
970 | } | |
971 | ||
8ab979d7 | 972 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
efc5f224 | 973 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
974 | PyObject * _resultobj; |
975 | wxWindow * _arg0; | |
1d99702e | 976 | PyObject * _argo0 = 0; |
efc5f224 | 977 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
978 | |
979 | self = self; | |
efc5f224 | 980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 981 | return NULL; |
1d99702e RD |
982 | if (_argo0) { |
983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
986 | return NULL; | |
987 | } | |
988 | } | |
cf694132 | 989 | { |
474c48f9 | 990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 991 | wxWindow_CaptureMouse(_arg0); |
cf694132 | 992 | |
474c48f9 | 993 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 994 | if (PyErr_Occurred()) return NULL; |
cf694132 | 995 | } Py_INCREF(Py_None); |
8ab979d7 RD |
996 | _resultobj = Py_None; |
997 | return _resultobj; | |
998 | } | |
999 | ||
1000 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1001 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1002 | PyObject * _resultobj; |
1003 | wxWindow * _arg0; | |
1d99702e RD |
1004 | int _arg1 = (int ) wxBOTH; |
1005 | PyObject * _argo0 = 0; | |
efc5f224 | 1006 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1007 | |
1008 | self = self; | |
efc5f224 | 1009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1010 | return NULL; |
1d99702e RD |
1011 | if (_argo0) { |
1012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1015 | return NULL; | |
1016 | } | |
1017 | } | |
cf694132 | 1018 | { |
474c48f9 | 1019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1020 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1021 | |
474c48f9 | 1022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1024 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1025 | _resultobj = Py_None; |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
1029 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1030 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1031 | PyObject * _resultobj; |
1032 | wxWindow * _arg0; | |
1d99702e RD |
1033 | int _arg1 = (int ) wxBOTH; |
1034 | PyObject * _argo0 = 0; | |
efc5f224 | 1035 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1036 | |
1037 | self = self; | |
efc5f224 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1039 | return NULL; |
1d99702e RD |
1040 | if (_argo0) { |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
cf694132 | 1047 | { |
474c48f9 | 1048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1049 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1050 | |
474c48f9 | 1051 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1052 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1053 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1054 | _resultobj = Py_None; |
1055 | return _resultobj; | |
1056 | } | |
1057 | ||
bb0054cd | 1058 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1059 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1060 | PyObject * _resultobj; |
1061 | wxWindow * _arg0; | |
1d99702e RD |
1062 | int _arg1 = (int ) wxBOTH; |
1063 | PyObject * _argo0 = 0; | |
efc5f224 | 1064 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1065 | |
1066 | self = self; | |
efc5f224 | 1067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1068 | return NULL; |
1d99702e RD |
1069 | if (_argo0) { |
1070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1073 | return NULL; | |
1074 | } | |
1075 | } | |
1076 | { | |
474c48f9 | 1077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1078 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1079 | |
474c48f9 | 1080 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1081 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1082 | } Py_INCREF(Py_None); |
1083 | _resultobj = Py_None; | |
1084 | return _resultobj; | |
1085 | } | |
1086 | ||
1087 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1088 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1089 | PyObject * _resultobj; |
1090 | wxWindow * _arg0; | |
1d99702e RD |
1091 | int _arg1 = (int ) wxBOTH; |
1092 | PyObject * _argo0 = 0; | |
efc5f224 | 1093 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1094 | |
1095 | self = self; | |
efc5f224 | 1096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1097 | return NULL; |
1d99702e RD |
1098 | if (_argo0) { |
1099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1102 | return NULL; | |
1103 | } | |
1104 | } | |
1105 | { | |
474c48f9 | 1106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1107 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1108 | |
474c48f9 | 1109 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1110 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1111 | } Py_INCREF(Py_None); |
1112 | _resultobj = Py_None; | |
1113 | return _resultobj; | |
1114 | } | |
1115 | ||
3ca6a5f0 BP |
1116 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1117 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1118 | PyObject * _resultobj; | |
1119 | wxWindow * _arg0; | |
1120 | int _arg1 = (int ) wxBOTH; | |
1121 | PyObject * _argo0 = 0; | |
1122 | char *_kwnames[] = { "self","direction", NULL }; | |
1123 | ||
1124 | self = self; | |
1125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1126 | return NULL; | |
1127 | if (_argo0) { | |
1128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1131 | return NULL; | |
1132 | } | |
1133 | } | |
1134 | { | |
474c48f9 | 1135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1136 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1137 | |
474c48f9 | 1138 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1139 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1140 | } Py_INCREF(Py_None); |
1141 | _resultobj = Py_None; | |
1142 | return _resultobj; | |
1143 | } | |
1144 | ||
1145 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1146 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1147 | PyObject * _resultobj; | |
1148 | wxWindow * _arg0; | |
1149 | int _arg1 = (int ) wxBOTH; | |
1150 | PyObject * _argo0 = 0; | |
1151 | char *_kwnames[] = { "self","direction", NULL }; | |
1152 | ||
1153 | self = self; | |
1154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1155 | return NULL; | |
1156 | if (_argo0) { | |
1157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1160 | return NULL; | |
1161 | } | |
1162 | } | |
1163 | { | |
474c48f9 | 1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1165 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1166 | |
474c48f9 | 1167 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1168 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1169 | } Py_INCREF(Py_None); |
1170 | _resultobj = Py_None; | |
1171 | return _resultobj; | |
1172 | } | |
1173 | ||
9d6da64a RD |
1174 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1175 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1176 | PyObject * _resultobj; | |
1177 | wxWindow * _arg0; | |
1178 | PyObject * _argo0 = 0; | |
1179 | char *_kwnames[] = { "self", NULL }; | |
1180 | ||
1181 | self = self; | |
1182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1183 | return NULL; | |
1184 | if (_argo0) { | |
1185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1188 | return NULL; | |
1189 | } | |
1190 | } | |
1191 | { | |
474c48f9 | 1192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1193 | wxWindow_Clear(_arg0); |
9d6da64a | 1194 | |
474c48f9 | 1195 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
1196 | if (PyErr_Occurred()) return NULL; |
1197 | } Py_INCREF(Py_None); | |
1198 | _resultobj = Py_None; | |
1199 | return _resultobj; | |
1200 | } | |
1201 | ||
af309447 | 1202 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1203 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1204 | PyObject * _resultobj; |
1205 | wxWindow * _arg0; | |
1206 | int * _arg1; | |
1207 | int * _arg2; | |
1d99702e | 1208 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1209 | int temp; |
1210 | PyObject * _obj1 = 0; | |
1211 | int temp0; | |
1212 | PyObject * _obj2 = 0; | |
efc5f224 | 1213 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1214 | |
1215 | self = self; | |
efc5f224 | 1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1217 | return NULL; |
1d99702e RD |
1218 | if (_argo0) { |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1222 | return NULL; |
1223 | } | |
1224 | } | |
1225 | { | |
1226 | temp = (int) PyInt_AsLong(_obj1); | |
1227 | _arg1 = &temp; | |
1228 | } | |
1229 | { | |
1230 | temp0 = (int) PyInt_AsLong(_obj2); | |
1231 | _arg2 = &temp0; | |
1232 | } | |
cf694132 | 1233 | { |
474c48f9 | 1234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1235 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1236 | |
474c48f9 | 1237 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1238 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1239 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1240 | _resultobj = Py_None; |
1241 | { | |
1242 | PyObject *o; | |
1243 | o = PyInt_FromLong((long) (*_arg1)); | |
1244 | _resultobj = t_output_helper(_resultobj, o); | |
1245 | } | |
1246 | { | |
1247 | PyObject *o; | |
1248 | o = PyInt_FromLong((long) (*_arg2)); | |
1249 | _resultobj = t_output_helper(_resultobj, o); | |
1250 | } | |
1251 | return _resultobj; | |
1252 | } | |
1253 | ||
af309447 | 1254 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1255 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1256 | PyObject * _resultobj; |
1257 | wxPoint * _result; | |
1258 | wxWindow * _arg0; | |
1259 | wxPoint * _arg1; | |
1d99702e | 1260 | PyObject * _argo0 = 0; |
2f90df85 RD |
1261 | wxPoint temp; |
1262 | PyObject * _obj1 = 0; | |
efc5f224 | 1263 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1264 | char _ptemp[128]; |
1265 | ||
1266 | self = self; | |
2f90df85 | 1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 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")) { | |
af309447 RD |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
2f90df85 RD |
1276 | { |
1277 | _arg1 = &temp; | |
1278 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1279 | return NULL; |
2f90df85 | 1280 | } |
cf694132 | 1281 | { |
474c48f9 | 1282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1283 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1284 | |
474c48f9 | 1285 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1287 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1288 | _resultobj = Py_BuildValue("s",_ptemp); |
1289 | return _resultobj; | |
1290 | } | |
1291 | ||
8ab979d7 | 1292 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1293 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1294 | PyObject * _resultobj; |
1295 | bool _result; | |
1296 | wxWindow * _arg0; | |
1d99702e RD |
1297 | int _arg1 = (int ) FALSE; |
1298 | PyObject * _argo0 = 0; | |
efc5f224 | 1299 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1300 | |
1301 | self = self; | |
efc5f224 | 1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1303 | return NULL; |
1d99702e RD |
1304 | if (_argo0) { |
1305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1308 | return NULL; | |
1309 | } | |
1310 | } | |
cf694132 | 1311 | { |
474c48f9 | 1312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1313 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1314 | |
474c48f9 | 1315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1316 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1317 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1318 | return _resultobj; |
1319 | } | |
1320 | ||
1321 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1322 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1323 | PyObject * _resultobj; |
1324 | bool _result; | |
1325 | wxWindow * _arg0; | |
1d99702e | 1326 | PyObject * _argo0 = 0; |
efc5f224 | 1327 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1328 | |
1329 | self = self; | |
efc5f224 | 1330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1331 | return NULL; |
1d99702e RD |
1332 | if (_argo0) { |
1333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1336 | return NULL; | |
1337 | } | |
1338 | } | |
cf694132 | 1339 | { |
474c48f9 | 1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1341 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1342 | |
474c48f9 | 1343 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1344 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1345 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1346 | return _resultobj; |
1347 | } | |
1348 | ||
1349 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1350 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1351 | PyObject * _resultobj; |
1352 | wxWindow * _arg0; | |
1d99702e | 1353 | PyObject * _argo0 = 0; |
efc5f224 | 1354 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1355 | |
1356 | self = self; | |
efc5f224 | 1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1358 | return NULL; |
1d99702e RD |
1359 | if (_argo0) { |
1360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1363 | return NULL; | |
1364 | } | |
1365 | } | |
cf694132 | 1366 | { |
474c48f9 | 1367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1368 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1369 | |
474c48f9 | 1370 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1371 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1372 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1373 | _resultobj = Py_None; |
1374 | return _resultobj; | |
1375 | } | |
1376 | ||
4dfaa61e RD |
1377 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1378 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1379 | PyObject * _resultobj; | |
1380 | bool _result; | |
1381 | wxWindow * _arg0; | |
1382 | PyObject * _argo0 = 0; | |
1383 | char *_kwnames[] = { "self", NULL }; | |
1384 | ||
1385 | self = self; | |
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1387 | return NULL; | |
1388 | if (_argo0) { | |
1389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1392 | return NULL; | |
1393 | } | |
1394 | } | |
1395 | { | |
474c48f9 | 1396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1397 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
4dfaa61e | 1398 | |
474c48f9 | 1399 | wxPyEndAllowThreads(__tstate); |
4dfaa61e RD |
1400 | if (PyErr_Occurred()) return NULL; |
1401 | } _resultobj = Py_BuildValue("i",_result); | |
1402 | return _resultobj; | |
1403 | } | |
1404 | ||
8ab979d7 | 1405 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1406 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1407 | PyObject * _resultobj; |
1408 | wxWindow * _arg0; | |
1409 | bool _arg1; | |
1d99702e | 1410 | PyObject * _argo0 = 0; |
8ab979d7 | 1411 | int tempbool1; |
efc5f224 | 1412 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1413 | |
1414 | self = self; | |
efc5f224 | 1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1416 | return NULL; |
1d99702e RD |
1417 | if (_argo0) { |
1418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1421 | return NULL; | |
1422 | } | |
1423 | } | |
1424 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1425 | { |
474c48f9 | 1426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1427 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1428 | |
474c48f9 | 1429 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1431 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1432 | _resultobj = Py_None; |
1433 | return _resultobj; | |
1434 | } | |
1435 | ||
af309447 | 1436 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1437 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1438 | PyObject * _resultobj; |
1439 | wxWindow * _result; | |
1440 | wxWindow * _arg0; | |
1441 | long _arg1; | |
1d99702e | 1442 | PyObject * _argo0 = 0; |
efc5f224 | 1443 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1444 | |
1445 | self = self; | |
efc5f224 | 1446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1447 | return NULL; |
1d99702e RD |
1448 | if (_argo0) { |
1449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1452 | return NULL; |
1453 | } | |
1454 | } | |
cf694132 | 1455 | { |
474c48f9 | 1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1457 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1458 | |
474c48f9 | 1459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1460 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1461 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1462 | return _resultobj; |
1463 | } | |
1464 | ||
1465 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1466 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1467 | PyObject * _resultobj; |
1468 | wxWindow * _result; | |
1469 | wxWindow * _arg0; | |
1470 | wxString * _arg1; | |
1d99702e | 1471 | PyObject * _argo0 = 0; |
8ab979d7 | 1472 | PyObject * _obj1 = 0; |
efc5f224 | 1473 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1474 | |
1475 | self = self; | |
efc5f224 | 1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1477 | return NULL; |
1d99702e RD |
1478 | if (_argo0) { |
1479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1482 | return NULL; | |
1483 | } | |
1484 | } | |
1485 | { | |
c8bc7bb8 RD |
1486 | _arg1 = wxString_in_helper(_obj1); |
1487 | if (_arg1 == NULL) | |
8ab979d7 | 1488 | return NULL; |
8ab979d7 | 1489 | } |
cf694132 | 1490 | { |
474c48f9 | 1491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1492 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1493 | |
474c48f9 | 1494 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1495 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1496 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1497 | { |
1498 | if (_obj1) | |
1499 | delete _arg1; | |
1500 | } | |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1505 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1506 | PyObject * _resultobj; |
1507 | wxWindow * _arg0; | |
1d99702e | 1508 | PyObject * _argo0 = 0; |
efc5f224 | 1509 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1510 | |
1511 | self = self; | |
efc5f224 | 1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1513 | return NULL; |
1d99702e RD |
1514 | if (_argo0) { |
1515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1518 | return NULL; | |
1519 | } | |
1520 | } | |
cf694132 | 1521 | { |
474c48f9 | 1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1523 | wxWindow_Fit(_arg0); |
cf694132 | 1524 | |
474c48f9 | 1525 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1526 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1527 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1528 | _resultobj = Py_None; |
1529 | return _resultobj; | |
1530 | } | |
1531 | ||
1532 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1533 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1534 | PyObject * _resultobj; |
1535 | wxColour * _result; | |
1536 | wxWindow * _arg0; | |
1d99702e | 1537 | PyObject * _argo0 = 0; |
efc5f224 | 1538 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1539 | char _ptemp[128]; |
1540 | ||
1541 | self = self; | |
efc5f224 | 1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1543 | return NULL; |
1d99702e RD |
1544 | if (_argo0) { |
1545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
cf694132 | 1551 | { |
474c48f9 | 1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1553 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1554 | |
474c48f9 | 1555 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1556 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1557 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1558 | _resultobj = Py_BuildValue("s",_ptemp); |
1559 | return _resultobj; | |
1560 | } | |
1561 | ||
8cb49012 RD |
1562 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1563 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1564 | PyObject * _resultobj; | |
1565 | wxBorder _result; | |
1566 | wxWindow * _arg0; | |
1567 | PyObject * _argo0 = 0; | |
1568 | char *_kwnames[] = { "self", NULL }; | |
1569 | ||
1570 | self = self; | |
1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1572 | return NULL; | |
1573 | if (_argo0) { | |
1574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1577 | return NULL; | |
1578 | } | |
1579 | } | |
1580 | { | |
1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1582 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
8cb49012 RD |
1583 | |
1584 | wxPyEndAllowThreads(__tstate); | |
1585 | if (PyErr_Occurred()) return NULL; | |
1586 | } _resultobj = Py_BuildValue("i",_result); | |
1587 | return _resultobj; | |
1588 | } | |
1589 | ||
d426c97e RD |
1590 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1591 | wxWindowList& list = self->GetChildren(); | |
1592 | return wxPy_ConvertList(&list, "wxWindow"); | |
1593 | } | |
1594 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject * _resultobj; | |
1596 | PyObject * _result; | |
1597 | wxWindow * _arg0; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
474c48f9 | 1612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1613 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1614 | |
474c48f9 | 1615 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1616 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1617 | }{ |
1618 | _resultobj = _result; | |
1619 | } | |
1620 | return _resultobj; | |
1621 | } | |
1622 | ||
8ab979d7 | 1623 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1624 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1625 | PyObject * _resultobj; |
1626 | int _result; | |
1627 | wxWindow * _arg0; | |
1d99702e | 1628 | PyObject * _argo0 = 0; |
efc5f224 | 1629 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1630 | |
1631 | self = self; | |
efc5f224 | 1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1633 | return NULL; |
1d99702e RD |
1634 | if (_argo0) { |
1635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1638 | return NULL; | |
1639 | } | |
1640 | } | |
cf694132 | 1641 | { |
474c48f9 | 1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1643 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1644 | |
474c48f9 | 1645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1646 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1647 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1648 | return _resultobj; |
1649 | } | |
1650 | ||
1651 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1652 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1653 | PyObject * _resultobj; |
1654 | int _result; | |
1655 | wxWindow * _arg0; | |
1d99702e | 1656 | PyObject * _argo0 = 0; |
efc5f224 | 1657 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1658 | |
1659 | self = self; | |
efc5f224 | 1660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1661 | return NULL; |
1d99702e RD |
1662 | if (_argo0) { |
1663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1666 | return NULL; | |
1667 | } | |
1668 | } | |
cf694132 | 1669 | { |
474c48f9 | 1670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1671 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1672 | |
474c48f9 | 1673 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1674 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1675 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1676 | return _resultobj; |
1677 | } | |
1678 | ||
b8b8dda7 | 1679 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1680 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1681 | PyObject * _resultobj; |
1682 | wxWindow * _arg0; | |
1683 | int * _arg1; | |
1684 | int temp; | |
1685 | int * _arg2; | |
1686 | int temp0; | |
1d99702e | 1687 | PyObject * _argo0 = 0; |
efc5f224 | 1688 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1689 | |
1690 | self = self; | |
1691 | { | |
1692 | _arg1 = &temp; | |
1693 | } | |
1694 | { | |
1695 | _arg2 = &temp0; | |
1696 | } | |
efc5f224 | 1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1698 | return NULL; |
1d99702e RD |
1699 | if (_argo0) { |
1700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1703 | return NULL; |
1704 | } | |
1705 | } | |
cf694132 | 1706 | { |
474c48f9 | 1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1708 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1709 | |
474c48f9 | 1710 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1711 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1712 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1713 | _resultobj = Py_None; |
1714 | { | |
1715 | PyObject *o; | |
1716 | o = PyInt_FromLong((long) (*_arg1)); | |
1717 | _resultobj = t_output_helper(_resultobj, o); | |
1718 | } | |
1719 | { | |
1720 | PyObject *o; | |
1721 | o = PyInt_FromLong((long) (*_arg2)); | |
1722 | _resultobj = t_output_helper(_resultobj, o); | |
1723 | } | |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
b8b8dda7 | 1727 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1728 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1729 | PyObject * _resultobj; |
1730 | wxSize * _result; | |
1731 | wxWindow * _arg0; | |
1d99702e | 1732 | PyObject * _argo0 = 0; |
efc5f224 | 1733 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1734 | char _ptemp[128]; |
1735 | ||
1736 | self = self; | |
efc5f224 | 1737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1738 | return NULL; |
1d99702e RD |
1739 | if (_argo0) { |
1740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1743 | return NULL; | |
1744 | } | |
1745 | } | |
cf694132 | 1746 | { |
474c48f9 | 1747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1748 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1749 | |
474c48f9 | 1750 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1751 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1752 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1753 | _resultobj = Py_BuildValue("s",_ptemp); |
1754 | return _resultobj; | |
1755 | } | |
1756 | ||
8cb49012 RD |
1757 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1758 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject * _resultobj; | |
1760 | wxPoint * _result; | |
1761 | wxWindow * _arg0; | |
1762 | PyObject * _argo0 = 0; | |
1763 | char *_kwnames[] = { "self", NULL }; | |
1764 | char _ptemp[128]; | |
1765 | ||
1766 | self = self; | |
1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1768 | return NULL; | |
1769 | if (_argo0) { | |
1770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1773 | return NULL; | |
1774 | } | |
1775 | } | |
1776 | { | |
1777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1778 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
8cb49012 RD |
1779 | |
1780 | wxPyEndAllowThreads(__tstate); | |
1781 | if (PyErr_Occurred()) return NULL; | |
1782 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1783 | _resultobj = Py_BuildValue("s",_ptemp); | |
1784 | return _resultobj; | |
1785 | } | |
1786 | ||
1787 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1788 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject * _resultobj; | |
1790 | wxRect * _result; | |
1791 | wxWindow * _arg0; | |
1792 | PyObject * _argo0 = 0; | |
1793 | char *_kwnames[] = { "self", NULL }; | |
1794 | char _ptemp[128]; | |
1795 | ||
1796 | self = self; | |
1797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1798 | return NULL; | |
1799 | if (_argo0) { | |
1800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1803 | return NULL; | |
1804 | } | |
1805 | } | |
1806 | { | |
1807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1808 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
8cb49012 RD |
1809 | |
1810 | wxPyEndAllowThreads(__tstate); | |
1811 | if (PyErr_Occurred()) return NULL; | |
1812 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1813 | _resultobj = Py_BuildValue("s",_ptemp); | |
1814 | return _resultobj; | |
1815 | } | |
1816 | ||
8ab979d7 | 1817 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1818 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1819 | PyObject * _resultobj; |
1820 | wxLayoutConstraints * _result; | |
1821 | wxWindow * _arg0; | |
1d99702e | 1822 | PyObject * _argo0 = 0; |
efc5f224 | 1823 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1824 | char _ptemp[128]; |
1825 | ||
1826 | self = self; | |
efc5f224 | 1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1828 | return NULL; |
1d99702e RD |
1829 | if (_argo0) { |
1830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1833 | return NULL; | |
1834 | } | |
1835 | } | |
cf694132 | 1836 | { |
474c48f9 | 1837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1838 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1839 | |
474c48f9 | 1840 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1841 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1842 | } if (_result) { |
1843 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1844 | _resultobj = Py_BuildValue("s",_ptemp); | |
1845 | } else { | |
1846 | Py_INCREF(Py_None); | |
1847 | _resultobj = Py_None; | |
1848 | } | |
8ab979d7 RD |
1849 | return _resultobj; |
1850 | } | |
1851 | ||
1afc06c2 RD |
1852 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1853 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1854 | PyObject * _resultobj; | |
1855 | wxEvtHandler * _result; | |
1856 | wxWindow * _arg0; | |
1857 | PyObject * _argo0 = 0; | |
1858 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1859 | |
1860 | self = self; | |
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1862 | return NULL; | |
1863 | if (_argo0) { | |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
1870 | { | |
474c48f9 | 1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1872 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 1873 | |
474c48f9 | 1874 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1875 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1876 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1877 | return _resultobj; |
1878 | } | |
1879 | ||
8ab979d7 | 1880 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1881 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1882 | PyObject * _resultobj; |
1883 | wxFont * _result; | |
1884 | wxWindow * _arg0; | |
1d99702e | 1885 | PyObject * _argo0 = 0; |
efc5f224 | 1886 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1887 | char _ptemp[128]; |
1888 | ||
1889 | self = self; | |
efc5f224 | 1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1891 | return NULL; |
1d99702e RD |
1892 | if (_argo0) { |
1893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1896 | return NULL; | |
1897 | } | |
1898 | } | |
cf694132 | 1899 | { |
474c48f9 | 1900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1901 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1902 | |
474c48f9 | 1903 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1904 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1905 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1906 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1907 | return _resultobj; |
1908 | } | |
1909 | ||
1910 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1911 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1912 | PyObject * _resultobj; |
1913 | wxColour * _result; | |
1914 | wxWindow * _arg0; | |
1d99702e | 1915 | PyObject * _argo0 = 0; |
efc5f224 | 1916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1917 | char _ptemp[128]; |
1918 | ||
1919 | self = self; | |
efc5f224 | 1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1921 | return NULL; |
1d99702e RD |
1922 | if (_argo0) { |
1923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1926 | return NULL; | |
1927 | } | |
1928 | } | |
cf694132 | 1929 | { |
474c48f9 | 1930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1931 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 1932 | |
474c48f9 | 1933 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1934 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1935 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1936 | _resultobj = Py_BuildValue("s",_ptemp); |
1937 | return _resultobj; | |
1938 | } | |
1939 | ||
1940 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1941 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1942 | PyObject * _resultobj; |
1943 | wxWindow * _result; | |
1944 | wxWindow * _arg0; | |
1d99702e | 1945 | PyObject * _argo0 = 0; |
efc5f224 | 1946 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1947 | |
1948 | self = self; | |
efc5f224 | 1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1950 | return NULL; |
1d99702e RD |
1951 | if (_argo0) { |
1952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1955 | return NULL; | |
1956 | } | |
1957 | } | |
cf694132 | 1958 | { |
474c48f9 | 1959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1960 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 1961 | |
474c48f9 | 1962 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1963 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1964 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1965 | return _resultobj; |
1966 | } | |
1967 | ||
2abc0a0f | 1968 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1969 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1970 | } |
1971 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1972 | PyObject * _resultobj; | |
1973 | long _result; | |
1974 | wxWindow * _arg0; | |
1975 | PyObject * _argo0 = 0; | |
1976 | char *_kwnames[] = { "self", NULL }; | |
1977 | ||
1978 | self = self; | |
1979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1980 | return NULL; | |
1981 | if (_argo0) { | |
1982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1985 | return NULL; | |
1986 | } | |
1987 | } | |
1988 | { | |
474c48f9 | 1989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1990 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 1991 | |
474c48f9 | 1992 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1993 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
1994 | } _resultobj = Py_BuildValue("l",_result); |
1995 | return _resultobj; | |
1996 | } | |
1997 | ||
8ab979d7 | 1998 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 1999 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2000 | PyObject * _resultobj; |
2001 | int _result; | |
2002 | wxWindow * _arg0; | |
1d99702e | 2003 | PyObject * _argo0 = 0; |
efc5f224 | 2004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2005 | |
2006 | self = self; | |
efc5f224 | 2007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2008 | return NULL; |
1d99702e RD |
2009 | if (_argo0) { |
2010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2013 | return NULL; | |
2014 | } | |
2015 | } | |
cf694132 | 2016 | { |
474c48f9 | 2017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2018 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2019 | |
474c48f9 | 2020 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2022 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2023 | return _resultobj; |
2024 | } | |
2025 | ||
8ab979d7 | 2026 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2027 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2028 | PyObject * _resultobj; |
2029 | wxString * _result; | |
2030 | wxWindow * _arg0; | |
1d99702e | 2031 | PyObject * _argo0 = 0; |
efc5f224 | 2032 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2033 | |
2034 | self = self; | |
efc5f224 | 2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2036 | return NULL; |
1d99702e RD |
2037 | if (_argo0) { |
2038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2041 | return NULL; | |
2042 | } | |
2043 | } | |
8ab979d7 | 2044 | { |
474c48f9 | 2045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2046 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2047 | |
474c48f9 | 2048 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2049 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2050 | }{ |
c8bc7bb8 RD |
2051 | #if wxUSE_UNICODE |
2052 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2053 | #else | |
eec92d76 | 2054 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2055 | #endif |
8ab979d7 RD |
2056 | } |
2057 | { | |
2058 | delete _result; | |
2059 | } | |
2060 | return _resultobj; | |
2061 | } | |
2062 | ||
bb0054cd | 2063 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2064 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2065 | PyObject * _resultobj; |
2066 | wxWindow * _arg0; | |
2067 | wxString * _arg1; | |
1d99702e | 2068 | PyObject * _argo0 = 0; |
bb0054cd | 2069 | PyObject * _obj1 = 0; |
efc5f224 | 2070 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2071 | |
2072 | self = self; | |
efc5f224 | 2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2074 | return NULL; |
1d99702e RD |
2075 | if (_argo0) { |
2076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2079 | return NULL; | |
2080 | } | |
2081 | } | |
2082 | { | |
c8bc7bb8 RD |
2083 | _arg1 = wxString_in_helper(_obj1); |
2084 | if (_arg1 == NULL) | |
bb0054cd | 2085 | return NULL; |
bb0054cd RD |
2086 | } |
2087 | { | |
474c48f9 | 2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2089 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2090 | |
474c48f9 | 2091 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2092 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2093 | } Py_INCREF(Py_None); |
2094 | _resultobj = Py_None; | |
2095 | { | |
2096 | if (_obj1) | |
2097 | delete _arg1; | |
2098 | } | |
2099 | return _resultobj; | |
2100 | } | |
2101 | ||
8ab979d7 | 2102 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2103 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2104 | PyObject * _resultobj; |
2105 | wxString * _result; | |
2106 | wxWindow * _arg0; | |
1d99702e | 2107 | PyObject * _argo0 = 0; |
efc5f224 | 2108 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2109 | |
2110 | self = self; | |
efc5f224 | 2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2112 | return NULL; |
1d99702e RD |
2113 | if (_argo0) { |
2114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2117 | return NULL; | |
2118 | } | |
2119 | } | |
8ab979d7 | 2120 | { |
474c48f9 | 2121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2122 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2123 | |
474c48f9 | 2124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2126 | }{ |
c8bc7bb8 RD |
2127 | #if wxUSE_UNICODE |
2128 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2129 | #else | |
eec92d76 | 2130 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2131 | #endif |
8ab979d7 RD |
2132 | } |
2133 | { | |
2134 | delete _result; | |
2135 | } | |
2136 | return _resultobj; | |
2137 | } | |
2138 | ||
2139 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2140 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2141 | PyObject * _resultobj; |
2142 | wxWindow * _result; | |
2143 | wxWindow * _arg0; | |
1d99702e | 2144 | PyObject * _argo0 = 0; |
efc5f224 | 2145 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2146 | |
2147 | self = self; | |
efc5f224 | 2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2149 | return NULL; |
1d99702e RD |
2150 | if (_argo0) { |
2151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2154 | return NULL; | |
2155 | } | |
2156 | } | |
cf694132 | 2157 | { |
474c48f9 | 2158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2159 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2160 | |
474c48f9 | 2161 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2162 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2163 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2164 | return _resultobj; |
2165 | } | |
2166 | ||
b8b8dda7 | 2167 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2168 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2169 | PyObject * _resultobj; |
2170 | wxWindow * _arg0; | |
2171 | int * _arg1; | |
2172 | int temp; | |
2173 | int * _arg2; | |
2174 | int temp0; | |
1d99702e | 2175 | PyObject * _argo0 = 0; |
efc5f224 | 2176 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2177 | |
2178 | self = self; | |
2179 | { | |
2180 | _arg1 = &temp; | |
2181 | } | |
2182 | { | |
2183 | _arg2 = &temp0; | |
2184 | } | |
efc5f224 | 2185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2186 | return NULL; |
1d99702e RD |
2187 | if (_argo0) { |
2188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2191 | return NULL; | |
2192 | } | |
2193 | } | |
cf694132 | 2194 | { |
474c48f9 | 2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2196 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2197 | |
474c48f9 | 2198 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2199 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2200 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2201 | _resultobj = Py_None; |
2202 | { | |
2203 | PyObject *o; | |
2204 | o = PyInt_FromLong((long) (*_arg1)); | |
2205 | _resultobj = t_output_helper(_resultobj, o); | |
2206 | } | |
2207 | { | |
2208 | PyObject *o; | |
2209 | o = PyInt_FromLong((long) (*_arg2)); | |
2210 | _resultobj = t_output_helper(_resultobj, o); | |
2211 | } | |
2212 | return _resultobj; | |
2213 | } | |
2214 | ||
2215 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2216 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2217 | PyObject * _resultobj; |
2218 | wxPoint * _result; | |
2219 | wxWindow * _arg0; | |
1d99702e | 2220 | PyObject * _argo0 = 0; |
efc5f224 | 2221 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2222 | char _ptemp[128]; |
2223 | ||
2224 | self = self; | |
efc5f224 | 2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2226 | return NULL; |
1d99702e RD |
2227 | if (_argo0) { |
2228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2231 | return NULL; | |
2232 | } | |
2233 | } | |
cf694132 | 2234 | { |
474c48f9 | 2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2236 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2237 | |
474c48f9 | 2238 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2240 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2241 | _resultobj = Py_BuildValue("s",_ptemp); |
2242 | return _resultobj; | |
2243 | } | |
2244 | ||
2245 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2246 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2247 | PyObject * _resultobj; |
2248 | wxRect * _result; | |
2249 | wxWindow * _arg0; | |
1d99702e | 2250 | PyObject * _argo0 = 0; |
efc5f224 | 2251 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2252 | char _ptemp[128]; |
2253 | ||
2254 | self = self; | |
efc5f224 | 2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2256 | return NULL; |
1d99702e RD |
2257 | if (_argo0) { |
2258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2261 | return NULL; | |
2262 | } | |
2263 | } | |
cf694132 | 2264 | { |
474c48f9 | 2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2266 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2267 | |
474c48f9 | 2268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2269 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2270 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2271 | _resultobj = Py_BuildValue("s",_ptemp); |
2272 | return _resultobj; | |
2273 | } | |
2274 | ||
8ab979d7 | 2275 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2276 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2277 | PyObject * _resultobj; |
2278 | int _result; | |
2279 | wxWindow * _arg0; | |
2280 | int _arg1; | |
1d99702e | 2281 | PyObject * _argo0 = 0; |
efc5f224 | 2282 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2283 | |
2284 | self = self; | |
efc5f224 | 2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2286 | return NULL; |
1d99702e RD |
2287 | if (_argo0) { |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2291 | return NULL; | |
2292 | } | |
2293 | } | |
cf694132 | 2294 | { |
474c48f9 | 2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2296 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2297 | |
474c48f9 | 2298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2299 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2300 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2301 | return _resultobj; |
2302 | } | |
2303 | ||
2304 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2305 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2306 | PyObject * _resultobj; |
2307 | int _result; | |
2308 | wxWindow * _arg0; | |
2309 | int _arg1; | |
1d99702e | 2310 | PyObject * _argo0 = 0; |
efc5f224 | 2311 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2312 | |
2313 | self = self; | |
efc5f224 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2315 | return NULL; |
1d99702e RD |
2316 | if (_argo0) { |
2317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2320 | return NULL; | |
2321 | } | |
2322 | } | |
cf694132 | 2323 | { |
474c48f9 | 2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2325 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2326 | |
474c48f9 | 2327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2328 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2329 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2330 | return _resultobj; |
2331 | } | |
2332 | ||
2333 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2334 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2335 | PyObject * _resultobj; |
2336 | int _result; | |
2337 | wxWindow * _arg0; | |
2338 | int _arg1; | |
1d99702e | 2339 | PyObject * _argo0 = 0; |
efc5f224 | 2340 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2341 | |
2342 | self = self; | |
efc5f224 | 2343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2344 | return NULL; |
1d99702e RD |
2345 | if (_argo0) { |
2346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2349 | return NULL; | |
2350 | } | |
2351 | } | |
cf694132 | 2352 | { |
474c48f9 | 2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2354 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2355 | |
474c48f9 | 2356 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2357 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2358 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2359 | return _resultobj; |
2360 | } | |
2361 | ||
b8b8dda7 | 2362 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2363 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2364 | PyObject * _resultobj; |
2365 | wxWindow * _arg0; | |
2366 | int * _arg1; | |
2367 | int temp; | |
2368 | int * _arg2; | |
2369 | int temp0; | |
1d99702e | 2370 | PyObject * _argo0 = 0; |
efc5f224 | 2371 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2372 | |
2373 | self = self; | |
2374 | { | |
2375 | _arg1 = &temp; | |
2376 | } | |
2377 | { | |
2378 | _arg2 = &temp0; | |
2379 | } | |
efc5f224 | 2380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2381 | return NULL; |
1d99702e RD |
2382 | if (_argo0) { |
2383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2386 | return NULL; |
2387 | } | |
2388 | } | |
cf694132 | 2389 | { |
474c48f9 | 2390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2391 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2392 | |
474c48f9 | 2393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2394 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2395 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2396 | _resultobj = Py_None; |
2397 | { | |
2398 | PyObject *o; | |
2399 | o = PyInt_FromLong((long) (*_arg1)); | |
2400 | _resultobj = t_output_helper(_resultobj, o); | |
2401 | } | |
2402 | { | |
2403 | PyObject *o; | |
2404 | o = PyInt_FromLong((long) (*_arg2)); | |
2405 | _resultobj = t_output_helper(_resultobj, o); | |
2406 | } | |
2407 | return _resultobj; | |
2408 | } | |
2409 | ||
b8b8dda7 | 2410 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2411 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2412 | PyObject * _resultobj; |
2413 | wxSize * _result; | |
2414 | wxWindow * _arg0; | |
1d99702e | 2415 | PyObject * _argo0 = 0; |
efc5f224 | 2416 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2417 | char _ptemp[128]; |
2418 | ||
2419 | self = self; | |
efc5f224 | 2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2421 | return NULL; |
1d99702e RD |
2422 | if (_argo0) { |
2423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2426 | return NULL; | |
2427 | } | |
2428 | } | |
cf694132 | 2429 | { |
474c48f9 | 2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2431 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2432 | |
474c48f9 | 2433 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2435 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2436 | _resultobj = Py_BuildValue("s",_ptemp); |
2437 | return _resultobj; | |
2438 | } | |
2439 | ||
8ab979d7 | 2440 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2441 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2442 | PyObject * _resultobj; |
2443 | wxWindow * _arg0; | |
2444 | wxString * _arg1; | |
2445 | int * _arg2; | |
2446 | int temp; | |
2447 | int * _arg3; | |
2448 | int temp0; | |
1d99702e | 2449 | PyObject * _argo0 = 0; |
8ab979d7 | 2450 | PyObject * _obj1 = 0; |
efc5f224 | 2451 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2452 | |
2453 | self = self; | |
2454 | { | |
2455 | _arg2 = &temp; | |
2456 | } | |
2457 | { | |
2458 | _arg3 = &temp0; | |
2459 | } | |
efc5f224 | 2460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2461 | return NULL; |
1d99702e RD |
2462 | if (_argo0) { |
2463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2466 | return NULL; | |
2467 | } | |
2468 | } | |
2469 | { | |
c8bc7bb8 RD |
2470 | _arg1 = wxString_in_helper(_obj1); |
2471 | if (_arg1 == NULL) | |
8ab979d7 | 2472 | return NULL; |
8ab979d7 | 2473 | } |
cf694132 | 2474 | { |
474c48f9 | 2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2476 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2477 | |
474c48f9 | 2478 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2480 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2481 | _resultobj = Py_None; |
2482 | { | |
2483 | PyObject *o; | |
2484 | o = PyInt_FromLong((long) (*_arg2)); | |
2485 | _resultobj = t_output_helper(_resultobj, o); | |
2486 | } | |
2487 | { | |
2488 | PyObject *o; | |
2489 | o = PyInt_FromLong((long) (*_arg3)); | |
2490 | _resultobj = t_output_helper(_resultobj, o); | |
2491 | } | |
2492 | { | |
2493 | if (_obj1) | |
2494 | delete _arg1; | |
2495 | } | |
2496 | return _resultobj; | |
2497 | } | |
2498 | ||
af309447 | 2499 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2500 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2501 | PyObject * _resultobj; |
2502 | wxWindow * _arg0; | |
2503 | wxString * _arg1; | |
2504 | int * _arg2; | |
2505 | int temp; | |
2506 | int * _arg3; | |
2507 | int temp0; | |
2508 | int * _arg4; | |
2509 | int temp1; | |
2510 | int * _arg5; | |
2511 | int temp2; | |
1d99702e RD |
2512 | wxFont * _arg6 = (wxFont *) NULL; |
2513 | PyObject * _argo0 = 0; | |
af309447 | 2514 | PyObject * _obj1 = 0; |
1d99702e | 2515 | PyObject * _argo6 = 0; |
efc5f224 | 2516 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2517 | |
2518 | self = self; | |
2519 | { | |
2520 | _arg2 = &temp; | |
2521 | } | |
2522 | { | |
2523 | _arg3 = &temp0; | |
2524 | } | |
2525 | { | |
2526 | _arg4 = &temp1; | |
2527 | } | |
2528 | { | |
2529 | _arg5 = &temp2; | |
2530 | } | |
efc5f224 | 2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2532 | return NULL; |
1d99702e RD |
2533 | if (_argo0) { |
2534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2537 | return NULL; | |
2538 | } | |
2539 | } | |
2540 | { | |
c8bc7bb8 RD |
2541 | _arg1 = wxString_in_helper(_obj1); |
2542 | if (_arg1 == NULL) | |
af309447 | 2543 | return NULL; |
af309447 | 2544 | } |
1d99702e RD |
2545 | if (_argo6) { |
2546 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2547 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2549 | return NULL; | |
2550 | } | |
2551 | } | |
cf694132 | 2552 | { |
474c48f9 | 2553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2554 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2555 | |
474c48f9 | 2556 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2557 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2558 | } Py_INCREF(Py_None); |
af309447 RD |
2559 | _resultobj = Py_None; |
2560 | { | |
2561 | PyObject *o; | |
2562 | o = PyInt_FromLong((long) (*_arg2)); | |
2563 | _resultobj = t_output_helper(_resultobj, o); | |
2564 | } | |
2565 | { | |
2566 | PyObject *o; | |
2567 | o = PyInt_FromLong((long) (*_arg3)); | |
2568 | _resultobj = t_output_helper(_resultobj, o); | |
2569 | } | |
2570 | { | |
2571 | PyObject *o; | |
2572 | o = PyInt_FromLong((long) (*_arg4)); | |
2573 | _resultobj = t_output_helper(_resultobj, o); | |
2574 | } | |
2575 | { | |
2576 | PyObject *o; | |
2577 | o = PyInt_FromLong((long) (*_arg5)); | |
2578 | _resultobj = t_output_helper(_resultobj, o); | |
2579 | } | |
2580 | { | |
2581 | if (_obj1) | |
2582 | delete _arg1; | |
2583 | } | |
2584 | return _resultobj; | |
2585 | } | |
2586 | ||
8ab979d7 | 2587 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2588 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2589 | PyObject * _resultobj; |
2590 | wxString * _result; | |
2591 | wxWindow * _arg0; | |
1d99702e | 2592 | PyObject * _argo0 = 0; |
efc5f224 | 2593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2594 | |
2595 | self = self; | |
efc5f224 | 2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2597 | return NULL; |
1d99702e RD |
2598 | if (_argo0) { |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2602 | return NULL; | |
2603 | } | |
2604 | } | |
8ab979d7 | 2605 | { |
474c48f9 | 2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2607 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2608 | |
474c48f9 | 2609 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2611 | }{ |
c8bc7bb8 RD |
2612 | #if wxUSE_UNICODE |
2613 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2614 | #else | |
eec92d76 | 2615 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2616 | #endif |
8ab979d7 RD |
2617 | } |
2618 | { | |
2619 | delete _result; | |
2620 | } | |
2621 | return _resultobj; | |
2622 | } | |
2623 | ||
8bf5d46e | 2624 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2625 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2626 | PyObject * _resultobj; |
2627 | wxRegion * _result; | |
2628 | wxWindow * _arg0; | |
1d99702e | 2629 | PyObject * _argo0 = 0; |
efc5f224 | 2630 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2631 | char _ptemp[128]; |
2632 | ||
2633 | self = self; | |
efc5f224 | 2634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2635 | return NULL; |
1d99702e RD |
2636 | if (_argo0) { |
2637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2640 | return NULL; | |
2641 | } | |
2642 | } | |
2643 | { | |
474c48f9 | 2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2645 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2646 | |
474c48f9 | 2647 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2648 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2649 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2650 | _resultobj = Py_BuildValue("s",_ptemp); | |
2651 | return _resultobj; | |
2652 | } | |
2653 | ||
8ab979d7 | 2654 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2655 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2656 | PyObject * _resultobj; |
2657 | long _result; | |
2658 | wxWindow * _arg0; | |
1d99702e | 2659 | PyObject * _argo0 = 0; |
efc5f224 | 2660 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2661 | |
2662 | self = self; | |
efc5f224 | 2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2664 | return NULL; |
1d99702e RD |
2665 | if (_argo0) { |
2666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2669 | return NULL; | |
2670 | } | |
2671 | } | |
cf694132 | 2672 | { |
474c48f9 | 2673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2674 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2675 | |
474c48f9 | 2676 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2677 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2678 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2679 | return _resultobj; |
2680 | } | |
2681 | ||
f6bcfd97 BP |
2682 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2683 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2684 | PyObject * _resultobj; | |
2685 | wxWindow * _arg0; | |
2686 | long _arg1; | |
2687 | PyObject * _argo0 = 0; | |
2688 | char *_kwnames[] = { "self","style", NULL }; | |
2689 | ||
2690 | self = self; | |
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2692 | return NULL; | |
2693 | if (_argo0) { | |
2694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2697 | return NULL; | |
2698 | } | |
2699 | } | |
2700 | { | |
474c48f9 | 2701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2702 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2703 | |
474c48f9 | 2704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2705 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2706 | } Py_INCREF(Py_None); |
2707 | _resultobj = Py_None; | |
2708 | return _resultobj; | |
2709 | } | |
2710 | ||
2711 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2712 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2713 | PyObject * _resultobj; | |
2714 | wxWindow * _arg0; | |
2715 | long _arg1; | |
2716 | PyObject * _argo0 = 0; | |
2717 | char *_kwnames[] = { "self","style", NULL }; | |
2718 | ||
2719 | self = self; | |
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2721 | return NULL; | |
2722 | if (_argo0) { | |
2723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2726 | return NULL; | |
2727 | } | |
2728 | } | |
2729 | { | |
474c48f9 | 2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2731 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2732 | |
474c48f9 | 2733 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2734 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2735 | } Py_INCREF(Py_None); |
2736 | _resultobj = Py_None; | |
2737 | return _resultobj; | |
2738 | } | |
2739 | ||
8cb49012 RD |
2740 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2741 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2742 | PyObject * _resultobj; | |
2743 | bool _result; | |
2744 | wxWindow * _arg0; | |
2745 | int _arg1; | |
2746 | PyObject * _argo0 = 0; | |
2747 | char *_kwnames[] = { "self","orient", NULL }; | |
2748 | ||
2749 | self = self; | |
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2751 | return NULL; | |
2752 | if (_argo0) { | |
2753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2756 | return NULL; | |
2757 | } | |
2758 | } | |
2759 | { | |
2760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2761 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
8cb49012 RD |
2762 | |
2763 | wxPyEndAllowThreads(__tstate); | |
2764 | if (PyErr_Occurred()) return NULL; | |
2765 | } _resultobj = Py_BuildValue("i",_result); | |
2766 | return _resultobj; | |
2767 | } | |
2768 | ||
bb0054cd | 2769 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2770 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2771 | PyObject * _resultobj; |
2772 | bool _result; | |
2773 | wxWindow * _arg0; | |
1d99702e | 2774 | PyObject * _argo0 = 0; |
efc5f224 | 2775 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2776 | |
2777 | self = self; | |
efc5f224 | 2778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2779 | return NULL; |
1d99702e RD |
2780 | if (_argo0) { |
2781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2784 | return NULL; | |
2785 | } | |
2786 | } | |
2787 | { | |
474c48f9 | 2788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2789 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2790 | |
474c48f9 | 2791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2792 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2793 | } _resultobj = Py_BuildValue("i",_result); |
2794 | return _resultobj; | |
2795 | } | |
2796 | ||
8cb49012 RD |
2797 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2798 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | wxHitTest _result; | |
2801 | wxWindow * _arg0; | |
2802 | wxPoint * _arg1; | |
2803 | PyObject * _argo0 = 0; | |
2804 | wxPoint temp; | |
2805 | PyObject * _obj1 = 0; | |
2806 | char *_kwnames[] = { "self","pt", NULL }; | |
2807 | ||
2808 | self = self; | |
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2810 | return NULL; | |
2811 | if (_argo0) { | |
2812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2815 | return NULL; | |
2816 | } | |
2817 | } | |
2818 | { | |
2819 | _arg1 = &temp; | |
2820 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2821 | return NULL; | |
2822 | } | |
2823 | { | |
2824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2825 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
8cb49012 RD |
2826 | |
2827 | wxPyEndAllowThreads(__tstate); | |
2828 | if (PyErr_Occurred()) return NULL; | |
2829 | } _resultobj = Py_BuildValue("i",_result); | |
2830 | return _resultobj; | |
2831 | } | |
2832 | ||
8ab979d7 | 2833 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2834 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2835 | PyObject * _resultobj; |
2836 | wxWindow * _arg0; | |
1d99702e | 2837 | PyObject * _argo0 = 0; |
efc5f224 | 2838 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2839 | |
2840 | self = self; | |
efc5f224 | 2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2842 | return NULL; |
1d99702e RD |
2843 | if (_argo0) { |
2844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2847 | return NULL; | |
2848 | } | |
2849 | } | |
cf694132 | 2850 | { |
474c48f9 | 2851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2852 | wxWindow_InitDialog(_arg0); |
cf694132 | 2853 | |
474c48f9 | 2854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2855 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2856 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2857 | _resultobj = Py_None; |
2858 | return _resultobj; | |
2859 | } | |
2860 | ||
2861 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2862 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2863 | PyObject * _resultobj; |
2864 | bool _result; | |
2865 | wxWindow * _arg0; | |
1d99702e | 2866 | PyObject * _argo0 = 0; |
efc5f224 | 2867 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2868 | |
2869 | self = self; | |
efc5f224 | 2870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2871 | return NULL; |
1d99702e RD |
2872 | if (_argo0) { |
2873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2876 | return NULL; | |
2877 | } | |
2878 | } | |
cf694132 | 2879 | { |
474c48f9 | 2880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2881 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 2882 | |
474c48f9 | 2883 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2884 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2885 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2886 | return _resultobj; |
2887 | } | |
2888 | ||
1b55cabf RD |
2889 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2890 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2891 | PyObject * _resultobj; | |
2892 | bool _result; | |
2893 | wxWindow * _arg0; | |
2894 | int _arg1; | |
2895 | int _arg2; | |
2896 | int _arg3 = (int ) 0; | |
2897 | int _arg4 = (int ) 0; | |
2898 | PyObject * _argo0 = 0; | |
2899 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2900 | ||
2901 | self = self; | |
2902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2903 | return NULL; | |
2904 | if (_argo0) { | |
2905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2908 | return NULL; | |
2909 | } | |
2910 | } | |
2911 | { | |
474c48f9 | 2912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2913 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 2914 | |
474c48f9 | 2915 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2916 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2917 | } _resultobj = Py_BuildValue("i",_result); |
2918 | return _resultobj; | |
2919 | } | |
2920 | ||
2921 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2922 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2923 | PyObject * _resultobj; | |
2924 | bool _result; | |
2925 | wxWindow * _arg0; | |
2926 | wxPoint * _arg1; | |
2927 | PyObject * _argo0 = 0; | |
2928 | wxPoint temp; | |
2929 | PyObject * _obj1 = 0; | |
2930 | char *_kwnames[] = { "self","pt", NULL }; | |
2931 | ||
2932 | self = self; | |
2933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2934 | return NULL; | |
2935 | if (_argo0) { | |
2936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2939 | return NULL; | |
2940 | } | |
2941 | } | |
2942 | { | |
2943 | _arg1 = &temp; | |
2944 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2945 | return NULL; | |
2946 | } | |
2947 | { | |
474c48f9 | 2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2949 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 2950 | |
474c48f9 | 2951 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2952 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2953 | } _resultobj = Py_BuildValue("i",_result); |
2954 | return _resultobj; | |
2955 | } | |
2956 | ||
2957 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2958 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject * _resultobj; | |
2960 | bool _result; | |
2961 | wxWindow * _arg0; | |
2962 | wxRect * _arg1; | |
2963 | PyObject * _argo0 = 0; | |
2964 | wxRect temp; | |
2965 | PyObject * _obj1 = 0; | |
2966 | char *_kwnames[] = { "self","rect", NULL }; | |
2967 | ||
2968 | self = self; | |
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2970 | return NULL; | |
2971 | if (_argo0) { | |
2972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2975 | return NULL; | |
2976 | } | |
2977 | } | |
2978 | { | |
2979 | _arg1 = &temp; | |
2980 | if (! wxRect_helper(_obj1, &_arg1)) | |
2981 | return NULL; | |
2982 | } | |
2983 | { | |
474c48f9 | 2984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2985 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 2986 | |
474c48f9 | 2987 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2988 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2989 | } _resultobj = Py_BuildValue("i",_result); |
2990 | return _resultobj; | |
2991 | } | |
2992 | ||
8ab979d7 | 2993 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 2994 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2995 | PyObject * _resultobj; |
2996 | bool _result; | |
2997 | wxWindow * _arg0; | |
1d99702e | 2998 | PyObject * _argo0 = 0; |
efc5f224 | 2999 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3000 | |
3001 | self = self; | |
efc5f224 | 3002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3003 | return NULL; |
1d99702e RD |
3004 | if (_argo0) { |
3005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3008 | return NULL; | |
3009 | } | |
3010 | } | |
cf694132 | 3011 | { |
474c48f9 | 3012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3013 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3014 | |
474c48f9 | 3015 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3016 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3017 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3018 | return _resultobj; |
3019 | } | |
3020 | ||
3021 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3022 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3023 | PyObject * _resultobj; |
3024 | bool _result; | |
3025 | wxWindow * _arg0; | |
1d99702e | 3026 | PyObject * _argo0 = 0; |
efc5f224 | 3027 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3028 | |
3029 | self = self; | |
efc5f224 | 3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3031 | return NULL; |
1d99702e RD |
3032 | if (_argo0) { |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
cf694132 | 3039 | { |
474c48f9 | 3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3041 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3042 | |
474c48f9 | 3043 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3044 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3045 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3046 | return _resultobj; |
3047 | } | |
3048 | ||
bb0054cd | 3049 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3050 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3051 | PyObject * _resultobj; |
3052 | bool _result; | |
3053 | wxWindow * _arg0; | |
1d99702e | 3054 | PyObject * _argo0 = 0; |
efc5f224 | 3055 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3056 | |
3057 | self = self; | |
efc5f224 | 3058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3059 | return NULL; |
1d99702e RD |
3060 | if (_argo0) { |
3061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3064 | return NULL; | |
3065 | } | |
3066 | } | |
3067 | { | |
474c48f9 | 3068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3069 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3070 | |
474c48f9 | 3071 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3072 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3073 | } _resultobj = Py_BuildValue("i",_result); |
3074 | return _resultobj; | |
3075 | } | |
3076 | ||
8ab979d7 | 3077 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3078 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3079 | PyObject * _resultobj; |
3080 | wxWindow * _arg0; | |
1d99702e | 3081 | PyObject * _argo0 = 0; |
efc5f224 | 3082 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3083 | |
3084 | self = self; | |
efc5f224 | 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3086 | return NULL; |
1d99702e RD |
3087 | if (_argo0) { |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
cf694132 | 3094 | { |
474c48f9 | 3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3096 | wxWindow_Layout(_arg0); |
cf694132 | 3097 | |
474c48f9 | 3098 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3099 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3100 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3101 | _resultobj = Py_None; |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3106 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3107 | PyObject * _resultobj; |
3108 | bool _result; | |
3109 | wxWindow * _arg0; | |
3110 | wxWindow * _arg1; | |
3111 | wxString * _arg2; | |
1d99702e RD |
3112 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3113 | PyObject * _argo0 = 0; | |
3114 | PyObject * _argo1 = 0; | |
8ab979d7 | 3115 | PyObject * _obj2 = 0; |
1d99702e | 3116 | PyObject * _argo3 = 0; |
efc5f224 | 3117 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3118 | |
3119 | self = self; | |
efc5f224 | 3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3121 | return NULL; |
1d99702e RD |
3122 | if (_argo0) { |
3123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3126 | return NULL; | |
3127 | } | |
3128 | } | |
1d99702e RD |
3129 | if (_argo1) { |
3130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3133 | return NULL; | |
3134 | } | |
3135 | } | |
3136 | { | |
c8bc7bb8 RD |
3137 | _arg2 = wxString_in_helper(_obj2); |
3138 | if (_arg2 == NULL) | |
8ab979d7 | 3139 | return NULL; |
8ab979d7 | 3140 | } |
1d99702e RD |
3141 | if (_argo3) { |
3142 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3143 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3145 | return NULL; | |
3146 | } | |
3147 | } | |
cf694132 | 3148 | { |
474c48f9 | 3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3150 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 3151 | |
474c48f9 | 3152 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3153 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3154 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3155 | { |
3156 | if (_obj2) | |
3157 | delete _arg2; | |
3158 | } | |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
3162 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3163 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3164 | PyObject * _resultobj; |
3165 | wxWindow * _arg0; | |
1d99702e | 3166 | PyObject * _argo0 = 0; |
efc5f224 | 3167 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3168 | |
3169 | self = self; | |
efc5f224 | 3170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3171 | return NULL; |
1d99702e RD |
3172 | if (_argo0) { |
3173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3176 | return NULL; | |
3177 | } | |
3178 | } | |
cf694132 | 3179 | { |
474c48f9 | 3180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3181 | wxWindow_Lower(_arg0); |
cf694132 | 3182 | |
474c48f9 | 3183 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3184 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3185 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3186 | _resultobj = Py_None; |
3187 | return _resultobj; | |
3188 | } | |
3189 | ||
3190 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3191 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3192 | PyObject * _resultobj; |
3193 | wxWindow * _arg0; | |
65191ae8 | 3194 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3195 | PyObject * _argo0 = 0; |
65191ae8 | 3196 | int tempbool1 = (int) TRUE; |
efc5f224 | 3197 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3198 | |
3199 | self = self; | |
65191ae8 | 3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3201 | return NULL; |
1d99702e RD |
3202 | if (_argo0) { |
3203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3206 | return NULL; | |
3207 | } | |
3208 | } | |
3209 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3210 | { |
474c48f9 | 3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3212 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3213 | |
474c48f9 | 3214 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3215 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3216 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3217 | _resultobj = Py_None; |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
8cb49012 | 3221 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3222 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3223 | PyObject * _resultobj; |
3224 | wxWindow * _arg0; | |
3225 | int _arg1; | |
3226 | int _arg2; | |
8cb49012 | 3227 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3228 | PyObject * _argo0 = 0; |
8cb49012 | 3229 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3230 | |
3231 | self = self; | |
8cb49012 | 3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3233 | return NULL; |
1d99702e RD |
3234 | if (_argo0) { |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3238 | return NULL; | |
3239 | } | |
3240 | } | |
cf694132 | 3241 | { |
474c48f9 | 3242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3243 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3244 | |
474c48f9 | 3245 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3246 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3247 | } Py_INCREF(Py_None); |
af309447 RD |
3248 | _resultobj = Py_None; |
3249 | return _resultobj; | |
3250 | } | |
3251 | ||
8cb49012 | 3252 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3253 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3254 | PyObject * _resultobj; |
3255 | wxWindow * _arg0; | |
3256 | wxPoint * _arg1; | |
8cb49012 | 3257 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3258 | PyObject * _argo0 = 0; |
2f90df85 RD |
3259 | wxPoint temp; |
3260 | PyObject * _obj1 = 0; | |
8cb49012 | 3261 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3262 | |
3263 | self = self; | |
8cb49012 | 3264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3265 | return NULL; |
1d99702e RD |
3266 | if (_argo0) { |
3267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3270 | return NULL; | |
3271 | } | |
3272 | } | |
2f90df85 RD |
3273 | { |
3274 | _arg1 = &temp; | |
3275 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3276 | return NULL; |
2f90df85 | 3277 | } |
cf694132 | 3278 | { |
474c48f9 | 3279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3280 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3281 | |
474c48f9 | 3282 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3283 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3284 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3285 | _resultobj = Py_None; |
3286 | return _resultobj; | |
3287 | } | |
3288 | ||
1afc06c2 RD |
3289 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3290 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3291 | PyObject * _resultobj; | |
3292 | wxEvtHandler * _result; | |
3293 | wxWindow * _arg0; | |
3294 | bool _arg1 = (bool ) FALSE; | |
3295 | PyObject * _argo0 = 0; | |
3296 | int tempbool1 = (int) FALSE; | |
3297 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3298 | |
3299 | self = self; | |
3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3301 | return NULL; | |
3302 | if (_argo0) { | |
3303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3306 | return NULL; | |
3307 | } | |
3308 | } | |
3309 | _arg1 = (bool ) tempbool1; | |
3310 | { | |
474c48f9 | 3311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3312 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3313 | |
474c48f9 | 3314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3315 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3316 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3317 | return _resultobj; |
3318 | } | |
3319 | ||
3320 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3321 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject * _resultobj; | |
3323 | wxWindow * _arg0; | |
3324 | wxEvtHandler * _arg1; | |
3325 | PyObject * _argo0 = 0; | |
3326 | PyObject * _argo1 = 0; | |
3327 | char *_kwnames[] = { "self","handler", NULL }; | |
3328 | ||
3329 | self = self; | |
3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3331 | return NULL; | |
3332 | if (_argo0) { | |
3333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3336 | return NULL; | |
3337 | } | |
3338 | } | |
3339 | if (_argo1) { | |
3340 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3341 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3343 | return NULL; | |
3344 | } | |
3345 | } | |
3346 | { | |
474c48f9 | 3347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3348 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3349 | |
474c48f9 | 3350 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3351 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3352 | } Py_INCREF(Py_None); |
3353 | _resultobj = Py_None; | |
3354 | return _resultobj; | |
3355 | } | |
3356 | ||
5d413391 RD |
3357 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3358 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3359 | PyObject * _resultobj; | |
3360 | bool _result; | |
3361 | wxWindow * _arg0; | |
3362 | wxEvtHandler * _arg1; | |
3363 | PyObject * _argo0 = 0; | |
3364 | PyObject * _argo1 = 0; | |
3365 | char *_kwnames[] = { "self","handler", NULL }; | |
3366 | ||
3367 | self = self; | |
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3369 | return NULL; | |
3370 | if (_argo0) { | |
3371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3374 | return NULL; | |
3375 | } | |
3376 | } | |
3377 | if (_argo1) { | |
3378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3381 | return NULL; | |
3382 | } | |
3383 | } | |
3384 | { | |
3385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3386 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
5d413391 RD |
3387 | |
3388 | wxPyEndAllowThreads(__tstate); | |
3389 | if (PyErr_Occurred()) return NULL; | |
3390 | } _resultobj = Py_BuildValue("i",_result); | |
3391 | return _resultobj; | |
3392 | } | |
3393 | ||
8bf5d46e | 3394 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3395 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3396 | PyObject * _resultobj; |
3397 | bool _result; | |
3398 | wxWindow * _arg0; | |
3399 | wxMenu * _arg1; | |
3400 | int _arg2; | |
3401 | int _arg3; | |
1d99702e RD |
3402 | PyObject * _argo0 = 0; |
3403 | PyObject * _argo1 = 0; | |
efc5f224 | 3404 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3405 | |
3406 | self = self; | |
efc5f224 | 3407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3408 | return NULL; |
1d99702e RD |
3409 | if (_argo0) { |
3410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3413 | return NULL; | |
3414 | } | |
3415 | } | |
1d99702e RD |
3416 | if (_argo1) { |
3417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3420 | return NULL; | |
3421 | } | |
3422 | } | |
3423 | { | |
474c48f9 | 3424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3425 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3426 | |
474c48f9 | 3427 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3428 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3429 | } _resultobj = Py_BuildValue("i",_result); |
3430 | return _resultobj; | |
3431 | } | |
3432 | ||
3433 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3434 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3435 | PyObject * _resultobj; |
3436 | bool _result; | |
3437 | wxWindow * _arg0; | |
3438 | wxMenu * _arg1; | |
3439 | wxPoint * _arg2; | |
1d99702e RD |
3440 | PyObject * _argo0 = 0; |
3441 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3442 | wxPoint temp; |
3443 | PyObject * _obj2 = 0; | |
efc5f224 | 3444 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3445 | |
3446 | self = self; | |
2f90df85 | 3447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3448 | return NULL; |
1d99702e RD |
3449 | if (_argo0) { |
3450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3453 | return NULL; | |
3454 | } | |
3455 | } | |
1d99702e RD |
3456 | if (_argo1) { |
3457 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3458 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3460 | return NULL; | |
3461 | } | |
3462 | } | |
2f90df85 RD |
3463 | { |
3464 | _arg2 = &temp; | |
3465 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3466 | return NULL; |
2f90df85 | 3467 | } |
cf694132 | 3468 | { |
474c48f9 | 3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3470 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3471 | |
474c48f9 | 3472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3473 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3474 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3475 | return _resultobj; |
3476 | } | |
3477 | ||
3478 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3479 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3480 | PyObject * _resultobj; |
3481 | wxWindow * _arg0; | |
1d99702e | 3482 | PyObject * _argo0 = 0; |
efc5f224 | 3483 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3484 | |
3485 | self = self; | |
efc5f224 | 3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3487 | return NULL; |
1d99702e RD |
3488 | if (_argo0) { |
3489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3492 | return NULL; | |
3493 | } | |
3494 | } | |
cf694132 | 3495 | { |
474c48f9 | 3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3497 | wxWindow_Raise(_arg0); |
cf694132 | 3498 | |
474c48f9 | 3499 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3500 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3501 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3502 | _resultobj = Py_None; |
3503 | return _resultobj; | |
3504 | } | |
3505 | ||
3506 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3507 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3508 | PyObject * _resultobj; |
3509 | wxWindow * _arg0; | |
1d99702e RD |
3510 | bool _arg1 = (bool ) TRUE; |
3511 | wxRect * _arg2 = (wxRect *) NULL; | |
3512 | PyObject * _argo0 = 0; | |
3513 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3514 | wxRect temp; |
3515 | PyObject * _obj2 = 0; | |
efc5f224 | 3516 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3517 | |
3518 | self = self; | |
2f90df85 | 3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3520 | return NULL; |
1d99702e RD |
3521 | if (_argo0) { |
3522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3525 | return NULL; | |
3526 | } | |
3527 | } | |
3528 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3529 | if (_obj2) |
3530 | { | |
3531 | _arg2 = &temp; | |
3532 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3533 | return NULL; |
2f90df85 | 3534 | } |
cf694132 | 3535 | { |
474c48f9 | 3536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3537 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3538 | |
474c48f9 | 3539 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3540 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3541 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3542 | _resultobj = Py_None; |
3543 | return _resultobj; | |
3544 | } | |
3545 | ||
aa2a5b86 RD |
3546 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3547 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3548 | PyObject * _resultobj; | |
3549 | wxWindow * _arg0; | |
3550 | wxRect * _arg1; | |
3551 | PyObject * _argo0 = 0; | |
3552 | wxRect temp; | |
3553 | PyObject * _obj1 = 0; | |
3554 | char *_kwnames[] = { "self","rect", NULL }; | |
3555 | ||
3556 | self = self; | |
3557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3558 | return NULL; | |
3559 | if (_argo0) { | |
3560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3563 | return NULL; | |
3564 | } | |
3565 | } | |
3566 | { | |
3567 | _arg1 = &temp; | |
3568 | if (! wxRect_helper(_obj1, &_arg1)) | |
3569 | return NULL; | |
3570 | } | |
3571 | { | |
474c48f9 | 3572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3573 | wxWindow_RefreshRect(_arg0,*_arg1); |
aa2a5b86 | 3574 | |
474c48f9 | 3575 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3576 | if (PyErr_Occurred()) return NULL; |
3577 | } Py_INCREF(Py_None); | |
3578 | _resultobj = Py_None; | |
3579 | return _resultobj; | |
3580 | } | |
3581 | ||
8ab979d7 | 3582 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3583 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3584 | PyObject * _resultobj; |
3585 | wxWindow * _arg0; | |
1d99702e | 3586 | PyObject * _argo0 = 0; |
efc5f224 | 3587 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3588 | |
3589 | self = self; | |
efc5f224 | 3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3591 | return NULL; |
1d99702e RD |
3592 | if (_argo0) { |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
cf694132 | 3599 | { |
474c48f9 | 3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3601 | wxWindow_ReleaseMouse(_arg0); |
cf694132 | 3602 | |
474c48f9 | 3603 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3604 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3605 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3606 | _resultobj = Py_None; |
3607 | return _resultobj; | |
3608 | } | |
3609 | ||
b7e72427 RD |
3610 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3611 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3612 | PyObject * _resultobj; | |
3613 | wxWindow * _arg0; | |
3614 | wxWindow * _arg1; | |
3615 | PyObject * _argo0 = 0; | |
3616 | PyObject * _argo1 = 0; | |
3617 | char *_kwnames[] = { "self","child", NULL }; | |
3618 | ||
3619 | self = self; | |
3620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3621 | return NULL; | |
3622 | if (_argo0) { | |
3623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3626 | return NULL; | |
3627 | } | |
3628 | } | |
3629 | if (_argo1) { | |
3630 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3631 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3633 | return NULL; | |
3634 | } | |
3635 | } | |
3636 | { | |
474c48f9 | 3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3638 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3639 | |
474c48f9 | 3640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3641 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3642 | } Py_INCREF(Py_None); |
3643 | _resultobj = Py_None; | |
3644 | return _resultobj; | |
3645 | } | |
3646 | ||
bb0054cd | 3647 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3648 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3649 | PyObject * _resultobj; |
3650 | bool _result; | |
3651 | wxWindow * _arg0; | |
3652 | wxWindow * _arg1; | |
1d99702e RD |
3653 | PyObject * _argo0 = 0; |
3654 | PyObject * _argo1 = 0; | |
efc5f224 | 3655 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3656 | |
3657 | self = self; | |
efc5f224 | 3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3659 | return NULL; |
1d99702e RD |
3660 | if (_argo0) { |
3661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3664 | return NULL; | |
3665 | } | |
3666 | } | |
1d99702e RD |
3667 | if (_argo1) { |
3668 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3669 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3671 | return NULL; | |
3672 | } | |
3673 | } | |
3674 | { | |
474c48f9 | 3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3676 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3677 | |
474c48f9 | 3678 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3679 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3680 | } _resultobj = Py_BuildValue("i",_result); |
3681 | return _resultobj; | |
3682 | } | |
3683 | ||
af309447 | 3684 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3685 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3686 | PyObject * _resultobj; |
3687 | wxWindow * _arg0; | |
3688 | int * _arg1; | |
3689 | int * _arg2; | |
1d99702e | 3690 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3691 | int temp; |
3692 | PyObject * _obj1 = 0; | |
3693 | int temp0; | |
3694 | PyObject * _obj2 = 0; | |
efc5f224 | 3695 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3696 | |
3697 | self = self; | |
efc5f224 | 3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3699 | return NULL; |
1d99702e RD |
3700 | if (_argo0) { |
3701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3704 | return NULL; |
3705 | } | |
3706 | } | |
3707 | { | |
3708 | temp = (int) PyInt_AsLong(_obj1); | |
3709 | _arg1 = &temp; | |
3710 | } | |
3711 | { | |
3712 | temp0 = (int) PyInt_AsLong(_obj2); | |
3713 | _arg2 = &temp0; | |
3714 | } | |
cf694132 | 3715 | { |
474c48f9 | 3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3717 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3718 | |
474c48f9 | 3719 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3720 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3721 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3722 | _resultobj = Py_None; |
3723 | { | |
3724 | PyObject *o; | |
3725 | o = PyInt_FromLong((long) (*_arg1)); | |
3726 | _resultobj = t_output_helper(_resultobj, o); | |
3727 | } | |
3728 | { | |
3729 | PyObject *o; | |
3730 | o = PyInt_FromLong((long) (*_arg2)); | |
3731 | _resultobj = t_output_helper(_resultobj, o); | |
3732 | } | |
3733 | return _resultobj; | |
3734 | } | |
3735 | ||
af309447 | 3736 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3737 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3738 | PyObject * _resultobj; |
3739 | wxPoint * _result; | |
3740 | wxWindow * _arg0; | |
3741 | wxPoint * _arg1; | |
1d99702e | 3742 | PyObject * _argo0 = 0; |
2f90df85 RD |
3743 | wxPoint temp; |
3744 | PyObject * _obj1 = 0; | |
efc5f224 | 3745 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3746 | char _ptemp[128]; |
3747 | ||
3748 | self = self; | |
2f90df85 | 3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3750 | return NULL; |
1d99702e RD |
3751 | if (_argo0) { |
3752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
2f90df85 RD |
3758 | { |
3759 | _arg1 = &temp; | |
3760 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3761 | return NULL; |
2f90df85 | 3762 | } |
cf694132 | 3763 | { |
474c48f9 | 3764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3765 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3766 | |
474c48f9 | 3767 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3769 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3770 | _resultobj = Py_BuildValue("s",_ptemp); |
3771 | return _resultobj; | |
3772 | } | |
3773 | ||
8ab979d7 | 3774 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3775 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3776 | PyObject * _resultobj; |
3777 | wxWindow * _arg0; | |
3778 | int _arg1; | |
3779 | int _arg2; | |
1d99702e RD |
3780 | wxRect * _arg3 = (wxRect *) NULL; |
3781 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3782 | wxRect temp; |
3783 | PyObject * _obj3 = 0; | |
efc5f224 | 3784 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3785 | |
3786 | self = self; | |
2f90df85 | 3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
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_ScrollWindow. Expected _wxWindow_p."); |
3793 | return NULL; | |
3794 | } | |
3795 | } | |
2f90df85 RD |
3796 | if (_obj3) |
3797 | { | |
3798 | _arg3 = &temp; | |
3799 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3800 | return NULL; |
2f90df85 | 3801 | } |
cf694132 | 3802 | { |
474c48f9 | 3803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3804 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3805 | |
474c48f9 | 3806 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3807 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3808 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3809 | _resultobj = Py_None; |
3810 | return _resultobj; | |
3811 | } | |
3812 | ||
3813 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3814 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3815 | PyObject * _resultobj; |
3816 | wxWindow * _arg0; | |
3817 | bool _arg1; | |
1d99702e | 3818 | PyObject * _argo0 = 0; |
8ab979d7 | 3819 | int tempbool1; |
efc5f224 | 3820 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3821 | |
3822 | self = self; | |
efc5f224 | 3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3824 | return NULL; |
1d99702e RD |
3825 | if (_argo0) { |
3826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3829 | return NULL; | |
3830 | } | |
3831 | } | |
3832 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3833 | { |
474c48f9 | 3834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3835 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3836 | |
474c48f9 | 3837 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3838 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3839 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3840 | _resultobj = Py_None; |
3841 | return _resultobj; | |
3842 | } | |
3843 | ||
9d8bd15f RD |
3844 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3845 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3846 | PyObject * _resultobj; | |
3847 | bool _result; | |
3848 | wxWindow * _arg0; | |
3849 | PyObject * _argo0 = 0; | |
3850 | char *_kwnames[] = { "self", NULL }; | |
3851 | ||
3852 | self = self; | |
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3854 | return NULL; | |
3855 | if (_argo0) { | |
3856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3859 | return NULL; | |
3860 | } | |
3861 | } | |
3862 | { | |
474c48f9 | 3863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3864 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3865 | |
474c48f9 | 3866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3867 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3868 | } _resultobj = Py_BuildValue("i",_result); |
3869 | return _resultobj; | |
3870 | } | |
3871 | ||
8ab979d7 | 3872 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3873 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3874 | PyObject * _resultobj; |
3875 | wxWindow * _arg0; | |
3876 | wxColour * _arg1; | |
1d99702e | 3877 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3878 | wxColour temp; |
3879 | PyObject * _obj1 = 0; | |
efc5f224 | 3880 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3881 | |
3882 | self = self; | |
f6bcfd97 | 3883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3884 | return NULL; |
1d99702e RD |
3885 | if (_argo0) { |
3886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3889 | return NULL; | |
3890 | } | |
3891 | } | |
f6bcfd97 BP |
3892 | { |
3893 | _arg1 = &temp; | |
3894 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3895 | return NULL; |
f6bcfd97 | 3896 | } |
cf694132 | 3897 | { |
474c48f9 | 3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3899 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3900 | |
474c48f9 | 3901 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3902 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3903 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3904 | _resultobj = Py_None; |
3905 | return _resultobj; | |
3906 | } | |
3907 | ||
3908 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3909 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3910 | PyObject * _resultobj; |
3911 | wxWindow * _arg0; | |
3912 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3913 | PyObject * _argo0 = 0; |
3914 | PyObject * _argo1 = 0; | |
efc5f224 | 3915 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3916 | |
3917 | self = self; | |
efc5f224 | 3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3919 | return NULL; |
1d99702e RD |
3920 | if (_argo0) { |
3921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3924 | return NULL; | |
3925 | } | |
3926 | } | |
1d99702e RD |
3927 | if (_argo1) { |
3928 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3929 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3931 | return NULL; | |
3932 | } | |
3933 | } | |
cf694132 | 3934 | { |
474c48f9 | 3935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3936 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 3937 | |
474c48f9 | 3938 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3939 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3940 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3941 | _resultobj = Py_None; |
3942 | return _resultobj; | |
3943 | } | |
3944 | ||
2f90df85 RD |
3945 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3946 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject * _resultobj; | |
3948 | wxWindow * _arg0; | |
3949 | wxLayoutConstraints * _arg1; | |
3950 | PyObject * _argo0 = 0; | |
3951 | PyObject * _argo1 = 0; | |
3952 | char *_kwnames[] = { "self","constraints", NULL }; | |
3953 | ||
3954 | self = self; | |
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3956 | return NULL; | |
3957 | if (_argo0) { | |
3958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3961 | return NULL; | |
3962 | } | |
3963 | } | |
3964 | if (_argo1) { | |
3965 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3966 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3968 | return NULL; | |
3969 | } | |
3970 | } | |
3971 | { | |
474c48f9 | 3972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3973 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 3974 | |
474c48f9 | 3975 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3976 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
3977 | } Py_INCREF(Py_None); |
3978 | _resultobj = Py_None; | |
3979 | return _resultobj; | |
3980 | } | |
3981 | ||
8ab979d7 | 3982 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 3983 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3984 | PyObject * _resultobj; |
3985 | wxWindow * _arg0; | |
1d99702e | 3986 | PyObject * _argo0 = 0; |
efc5f224 | 3987 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3988 | |
3989 | self = self; | |
efc5f224 | 3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 3991 | return NULL; |
1d99702e RD |
3992 | if (_argo0) { |
3993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3996 | return NULL; | |
3997 | } | |
3998 | } | |
cf694132 | 3999 | { |
474c48f9 | 4000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4001 | wxWindow_SetFocus(_arg0); |
cf694132 | 4002 | |
474c48f9 | 4003 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4004 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4005 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4006 | _resultobj = Py_None; |
4007 | return _resultobj; | |
4008 | } | |
4009 | ||
2f90df85 RD |
4010 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4011 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4012 | PyObject * _resultobj; | |
4013 | bool _result; | |
4014 | wxWindow * _arg0; | |
4015 | PyObject * _argo0 = 0; | |
4016 | char *_kwnames[] = { "self", NULL }; | |
4017 | ||
4018 | self = self; | |
4019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4020 | return NULL; | |
4021 | if (_argo0) { | |
4022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4025 | return NULL; | |
4026 | } | |
4027 | } | |
4028 | { | |
474c48f9 | 4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4030 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4031 | |
474c48f9 | 4032 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4033 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4034 | } _resultobj = Py_BuildValue("i",_result); |
4035 | return _resultobj; | |
4036 | } | |
4037 | ||
8ab979d7 | 4038 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4039 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4040 | PyObject * _resultobj; |
4041 | wxWindow * _arg0; | |
4042 | wxFont * _arg1; | |
1d99702e RD |
4043 | PyObject * _argo0 = 0; |
4044 | PyObject * _argo1 = 0; | |
efc5f224 | 4045 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4046 | |
4047 | self = self; | |
efc5f224 | 4048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4049 | return NULL; |
1d99702e RD |
4050 | if (_argo0) { |
4051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4054 | return NULL; | |
4055 | } | |
4056 | } | |
1d99702e RD |
4057 | if (_argo1) { |
4058 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4059 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4061 | return NULL; | |
4062 | } | |
4063 | } | |
cf694132 | 4064 | { |
474c48f9 | 4065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4066 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4067 | |
474c48f9 | 4068 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4069 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4070 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4071 | _resultobj = Py_None; |
4072 | return _resultobj; | |
4073 | } | |
4074 | ||
4075 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4076 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4077 | PyObject * _resultobj; |
4078 | wxWindow * _arg0; | |
4079 | wxColour * _arg1; | |
1d99702e | 4080 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4081 | wxColour temp; |
4082 | PyObject * _obj1 = 0; | |
efc5f224 | 4083 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4084 | |
4085 | self = self; | |
f6bcfd97 | 4086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4087 | return NULL; |
1d99702e RD |
4088 | if (_argo0) { |
4089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4092 | return NULL; | |
4093 | } | |
4094 | } | |
f6bcfd97 BP |
4095 | { |
4096 | _arg1 = &temp; | |
4097 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4098 | return NULL; |
f6bcfd97 | 4099 | } |
cf694132 | 4100 | { |
474c48f9 | 4101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4102 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4103 | |
474c48f9 | 4104 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4105 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4106 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4107 | _resultobj = Py_None; |
4108 | return _resultobj; | |
4109 | } | |
4110 | ||
4111 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4112 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4113 | PyObject * _resultobj; |
4114 | wxWindow * _arg0; | |
4115 | int _arg1; | |
1d99702e | 4116 | PyObject * _argo0 = 0; |
efc5f224 | 4117 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4118 | |
4119 | self = self; | |
efc5f224 | 4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4121 | return NULL; |
1d99702e RD |
4122 | if (_argo0) { |
4123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4126 | return NULL; | |
4127 | } | |
4128 | } | |
cf694132 | 4129 | { |
474c48f9 | 4130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4131 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4132 | |
474c48f9 | 4133 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4134 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4135 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4136 | _resultobj = Py_None; |
4137 | return _resultobj; | |
4138 | } | |
4139 | ||
4140 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4141 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4142 | PyObject * _resultobj; |
4143 | wxWindow * _arg0; | |
4144 | wxString * _arg1; | |
1d99702e | 4145 | PyObject * _argo0 = 0; |
8ab979d7 | 4146 | PyObject * _obj1 = 0; |
efc5f224 | 4147 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4148 | |
4149 | self = self; | |
efc5f224 | 4150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4151 | return NULL; |
1d99702e RD |
4152 | if (_argo0) { |
4153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4156 | return NULL; | |
4157 | } | |
4158 | } | |
4159 | { | |
c8bc7bb8 RD |
4160 | _arg1 = wxString_in_helper(_obj1); |
4161 | if (_arg1 == NULL) | |
2cd2fac8 | 4162 | return NULL; |
8ab979d7 | 4163 | } |
cf694132 | 4164 | { |
474c48f9 | 4165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4166 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4167 | |
474c48f9 | 4168 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4169 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4170 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4171 | _resultobj = Py_None; |
4172 | { | |
4173 | if (_obj1) | |
4174 | delete _arg1; | |
4175 | } | |
4176 | return _resultobj; | |
4177 | } | |
4178 | ||
8ab979d7 | 4179 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4180 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4181 | PyObject * _resultobj; |
4182 | wxWindow * _arg0; | |
4183 | int _arg1; | |
4184 | int _arg2; | |
4185 | int _arg3; | |
4186 | int _arg4; | |
eb715945 | 4187 | int _arg5 = (int ) TRUE; |
1d99702e | 4188 | PyObject * _argo0 = 0; |
efc5f224 | 4189 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4190 | |
4191 | self = self; | |
eb715945 | 4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4193 | return NULL; |
1d99702e RD |
4194 | if (_argo0) { |
4195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4198 | return NULL; | |
4199 | } | |
4200 | } | |
cf694132 | 4201 | { |
474c48f9 | 4202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4203 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4204 | |
474c48f9 | 4205 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4206 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4207 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4208 | _resultobj = Py_None; |
4209 | return _resultobj; | |
4210 | } | |
4211 | ||
4212 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4213 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4214 | PyObject * _resultobj; |
4215 | wxWindow * _arg0; | |
4216 | int _arg1; | |
4217 | int _arg2; | |
1d99702e RD |
4218 | bool _arg3 = (bool ) TRUE; |
4219 | PyObject * _argo0 = 0; | |
4220 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4221 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4222 | |
4223 | self = self; | |
efc5f224 | 4224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4225 | return NULL; |
1d99702e RD |
4226 | if (_argo0) { |
4227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4230 | return NULL; | |
4231 | } | |
4232 | } | |
4233 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4234 | { |
474c48f9 | 4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4236 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4237 | |
474c48f9 | 4238 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4240 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4241 | _resultobj = Py_None; |
4242 | return _resultobj; | |
4243 | } | |
4244 | ||
4245 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4246 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4247 | PyObject * _resultobj; |
4248 | wxWindow * _arg0; | |
4249 | int _arg1; | |
4250 | int _arg2; | |
4251 | int _arg3; | |
4252 | int _arg4; | |
1d99702e RD |
4253 | int _arg5 = (int ) wxSIZE_AUTO; |
4254 | PyObject * _argo0 = 0; | |
efc5f224 | 4255 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4256 | |
4257 | self = self; | |
efc5f224 | 4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4259 | return NULL; |
1d99702e RD |
4260 | if (_argo0) { |
4261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4264 | return NULL; | |
4265 | } | |
4266 | } | |
cf694132 | 4267 | { |
474c48f9 | 4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4269 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4270 | |
474c48f9 | 4271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4273 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4274 | _resultobj = Py_None; |
4275 | return _resultobj; | |
4276 | } | |
4277 | ||
4278 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4279 | self->SetSize(size); |
8ab979d7 | 4280 | } |
efc5f224 | 4281 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4282 | PyObject * _resultobj; |
4283 | wxWindow * _arg0; | |
4284 | wxSize * _arg1; | |
1d99702e | 4285 | PyObject * _argo0 = 0; |
2f90df85 RD |
4286 | wxSize temp; |
4287 | PyObject * _obj1 = 0; | |
efc5f224 | 4288 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4289 | |
4290 | self = self; | |
2f90df85 | 4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4292 | return NULL; |
1d99702e RD |
4293 | if (_argo0) { |
4294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4297 | return NULL; | |
4298 | } | |
4299 | } | |
2f90df85 RD |
4300 | { |
4301 | _arg1 = &temp; | |
4302 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4303 | return NULL; |
2f90df85 | 4304 | } |
cf694132 | 4305 | { |
474c48f9 | 4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4307 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4308 | |
474c48f9 | 4309 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4310 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4311 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4312 | _resultobj = Py_None; |
4313 | return _resultobj; | |
4314 | } | |
4315 | ||
8cb49012 RD |
4316 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4317 | self->Move(pos, flags); | |
8ab979d7 | 4318 | } |
efc5f224 | 4319 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4320 | PyObject * _resultobj; |
4321 | wxWindow * _arg0; | |
4322 | wxPoint * _arg1; | |
8cb49012 | 4323 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4324 | PyObject * _argo0 = 0; |
2f90df85 RD |
4325 | wxPoint temp; |
4326 | PyObject * _obj1 = 0; | |
8cb49012 | 4327 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4328 | |
4329 | self = self; | |
8cb49012 | 4330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4331 | return NULL; |
1d99702e RD |
4332 | if (_argo0) { |
4333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4336 | return NULL; | |
4337 | } | |
4338 | } | |
2f90df85 RD |
4339 | { |
4340 | _arg1 = &temp; | |
4341 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4342 | return NULL; |
2f90df85 | 4343 | } |
cf694132 | 4344 | { |
474c48f9 | 4345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4346 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4347 | |
474c48f9 | 4348 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4349 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4350 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4351 | _resultobj = Py_None; |
4352 | return _resultobj; | |
4353 | } | |
4354 | ||
2cd2fac8 RD |
4355 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4356 | self->SetSize(rect, sizeFlags); | |
4357 | } | |
4358 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject * _resultobj; | |
4360 | wxWindow * _arg0; | |
4361 | wxRect * _arg1; | |
4362 | int _arg2 = (int ) wxSIZE_AUTO; | |
4363 | PyObject * _argo0 = 0; | |
4364 | wxRect temp; | |
4365 | PyObject * _obj1 = 0; | |
4366 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4367 | ||
4368 | self = self; | |
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4370 | return NULL; | |
4371 | if (_argo0) { | |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4375 | return NULL; | |
4376 | } | |
4377 | } | |
4378 | { | |
4379 | _arg1 = &temp; | |
4380 | if (! wxRect_helper(_obj1, &_arg1)) | |
4381 | return NULL; | |
4382 | } | |
4383 | { | |
474c48f9 | 4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4385 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
2cd2fac8 | 4386 | |
474c48f9 | 4387 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4388 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4389 | } Py_INCREF(Py_None); |
4390 | _resultobj = Py_None; | |
4391 | return _resultobj; | |
4392 | } | |
4393 | ||
8ab979d7 | 4394 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4395 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4396 | PyObject * _resultobj; |
4397 | wxWindow * _arg0; | |
1d99702e RD |
4398 | int _arg1 = (int ) -1; |
4399 | int _arg2 = (int ) -1; | |
4400 | int _arg3 = (int ) -1; | |
4401 | int _arg4 = (int ) -1; | |
4402 | int _arg5 = (int ) -1; | |
4403 | int _arg6 = (int ) -1; | |
4404 | PyObject * _argo0 = 0; | |
efc5f224 | 4405 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4406 | |
4407 | self = self; | |
efc5f224 | 4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4409 | return NULL; |
1d99702e RD |
4410 | if (_argo0) { |
4411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4414 | return NULL; | |
4415 | } | |
4416 | } | |
cf694132 | 4417 | { |
474c48f9 | 4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4419 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4420 | |
474c48f9 | 4421 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4422 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4423 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4424 | _resultobj = Py_None; |
4425 | return _resultobj; | |
4426 | } | |
4427 | ||
af309447 | 4428 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4429 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4430 | PyObject * _resultobj; |
4431 | wxWindow * _arg0; | |
4432 | int _arg1; | |
4433 | int _arg2; | |
1d99702e | 4434 | PyObject * _argo0 = 0; |
efc5f224 | 4435 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4436 | |
4437 | self = self; | |
efc5f224 | 4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4439 | return NULL; |
1d99702e RD |
4440 | if (_argo0) { |
4441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4444 | return NULL; | |
4445 | } | |
4446 | } | |
cf694132 | 4447 | { |
474c48f9 | 4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4449 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4450 | |
474c48f9 | 4451 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4452 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4453 | } Py_INCREF(Py_None); |
af309447 RD |
4454 | _resultobj = Py_None; |
4455 | return _resultobj; | |
4456 | } | |
4457 | ||
4458 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4459 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4460 | PyObject * _resultobj; |
4461 | wxWindow * _arg0; | |
4462 | wxSize * _arg1; | |
1d99702e | 4463 | PyObject * _argo0 = 0; |
2f90df85 RD |
4464 | wxSize temp; |
4465 | PyObject * _obj1 = 0; | |
efc5f224 | 4466 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4467 | |
4468 | self = self; | |
2f90df85 | 4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4470 | return NULL; |
1d99702e RD |
4471 | if (_argo0) { |
4472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4475 | return NULL; | |
4476 | } | |
4477 | } | |
2f90df85 RD |
4478 | { |
4479 | _arg1 = &temp; | |
4480 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4481 | return NULL; |
2f90df85 | 4482 | } |
cf694132 | 4483 | { |
474c48f9 | 4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4485 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4486 | |
474c48f9 | 4487 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4488 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4489 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4490 | _resultobj = Py_None; |
4491 | return _resultobj; | |
4492 | } | |
4493 | ||
4494 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4495 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4496 | PyObject * _resultobj; |
4497 | wxWindow * _arg0; | |
4498 | wxCursor * _arg1; | |
1d99702e RD |
4499 | PyObject * _argo0 = 0; |
4500 | PyObject * _argo1 = 0; | |
efc5f224 | 4501 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4502 | |
4503 | self = self; | |
efc5f224 | 4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4505 | return NULL; |
1d99702e RD |
4506 | if (_argo0) { |
4507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4510 | return NULL; | |
4511 | } | |
4512 | } | |
1d99702e RD |
4513 | if (_argo1) { |
4514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
cf694132 | 4520 | { |
474c48f9 | 4521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4522 | wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4523 | |
474c48f9 | 4524 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4526 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4527 | _resultobj = Py_None; |
4528 | return _resultobj; | |
4529 | } | |
4530 | ||
1afc06c2 RD |
4531 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4532 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4533 | PyObject * _resultobj; | |
4534 | wxWindow * _arg0; | |
4535 | wxEvtHandler * _arg1; | |
4536 | PyObject * _argo0 = 0; | |
4537 | PyObject * _argo1 = 0; | |
4538 | char *_kwnames[] = { "self","handler", NULL }; | |
4539 | ||
4540 | self = self; | |
4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4542 | return NULL; | |
4543 | if (_argo0) { | |
4544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4547 | return NULL; | |
4548 | } | |
4549 | } | |
4550 | if (_argo1) { | |
4551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4554 | return NULL; | |
4555 | } | |
4556 | } | |
4557 | { | |
474c48f9 | 4558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4559 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4560 | |
474c48f9 | 4561 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4562 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4563 | } Py_INCREF(Py_None); |
4564 | _resultobj = Py_None; | |
4565 | return _resultobj; | |
4566 | } | |
4567 | ||
5e40f9dd RD |
4568 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4569 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject * _resultobj; | |
4571 | wxWindow * _arg0; | |
4572 | long _arg1; | |
4573 | PyObject * _argo0 = 0; | |
4574 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4575 | ||
4576 | self = self; | |
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4578 | return NULL; | |
4579 | if (_argo0) { | |
4580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4583 | return NULL; | |
4584 | } | |
4585 | } | |
4586 | { | |
474c48f9 | 4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4588 | wxWindow_SetExtraStyle(_arg0,_arg1); |
5e40f9dd | 4589 | |
474c48f9 | 4590 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4591 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4592 | } Py_INCREF(Py_None); |
4593 | _resultobj = Py_None; | |
4594 | return _resultobj; | |
4595 | } | |
4596 | ||
8ab979d7 | 4597 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4598 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4599 | PyObject * _resultobj; |
4600 | wxWindow * _arg0; | |
4601 | wxString * _arg1; | |
1d99702e | 4602 | PyObject * _argo0 = 0; |
8ab979d7 | 4603 | PyObject * _obj1 = 0; |
efc5f224 | 4604 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4605 | |
4606 | self = self; | |
efc5f224 | 4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4608 | return NULL; |
1d99702e RD |
4609 | if (_argo0) { |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4613 | return NULL; | |
4614 | } | |
4615 | } | |
4616 | { | |
c8bc7bb8 RD |
4617 | _arg1 = wxString_in_helper(_obj1); |
4618 | if (_arg1 == NULL) | |
2cd2fac8 | 4619 | return NULL; |
8ab979d7 | 4620 | } |
cf694132 | 4621 | { |
474c48f9 | 4622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4623 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4624 | |
474c48f9 | 4625 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4626 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4627 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4628 | _resultobj = Py_None; |
4629 | { | |
4630 | if (_obj1) | |
4631 | delete _arg1; | |
4632 | } | |
4633 | return _resultobj; | |
4634 | } | |
4635 | ||
4636 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4637 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4638 | PyObject * _resultobj; |
4639 | bool _result; | |
4640 | wxWindow * _arg0; | |
3e212503 | 4641 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4642 | PyObject * _argo0 = 0; |
3e212503 | 4643 | int tempbool1 = (int) TRUE; |
efc5f224 | 4644 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4645 | |
4646 | self = self; | |
3e212503 | 4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4648 | return NULL; |
1d99702e RD |
4649 | if (_argo0) { |
4650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4653 | return NULL; | |
4654 | } | |
4655 | } | |
4656 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4657 | { |
474c48f9 | 4658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4659 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 4660 | |
474c48f9 | 4661 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4662 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4663 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4664 | return _resultobj; |
4665 | } | |
4666 | ||
4667 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4668 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4669 | PyObject * _resultobj; |
4670 | bool _result; | |
4671 | wxWindow * _arg0; | |
1d99702e | 4672 | PyObject * _argo0 = 0; |
efc5f224 | 4673 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4674 | |
4675 | self = self; | |
efc5f224 | 4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4677 | return NULL; |
1d99702e RD |
4678 | if (_argo0) { |
4679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4682 | return NULL; | |
4683 | } | |
4684 | } | |
cf694132 | 4685 | { |
474c48f9 | 4686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4687 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 4688 | |
474c48f9 | 4689 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4690 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4691 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4692 | return _resultobj; |
4693 | } | |
4694 | ||
4695 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4696 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4697 | PyObject * _resultobj; |
4698 | bool _result; | |
4699 | wxWindow * _arg0; | |
1d99702e | 4700 | PyObject * _argo0 = 0; |
efc5f224 | 4701 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4702 | |
4703 | self = self; | |
efc5f224 | 4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4705 | return NULL; |
1d99702e RD |
4706 | if (_argo0) { |
4707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4710 | return NULL; | |
4711 | } | |
4712 | } | |
cf694132 | 4713 | { |
474c48f9 | 4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4715 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 4716 | |
474c48f9 | 4717 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4718 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4719 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4720 | return _resultobj; |
4721 | } | |
4722 | ||
8cb49012 RD |
4723 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4724 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4725 | PyObject * _resultobj; | |
4726 | wxWindow * _arg0; | |
4727 | PyObject * _argo0 = 0; | |
4728 | char *_kwnames[] = { "self", NULL }; | |
4729 | ||
4730 | self = self; | |
4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4732 | return NULL; | |
4733 | if (_argo0) { | |
4734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4737 | return NULL; | |
4738 | } | |
4739 | } | |
4740 | { | |
4741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4742 | wxWindow_UpdateWindowUI(_arg0); |
8cb49012 RD |
4743 | |
4744 | wxPyEndAllowThreads(__tstate); | |
4745 | if (PyErr_Occurred()) return NULL; | |
4746 | } Py_INCREF(Py_None); | |
4747 | _resultobj = Py_None; | |
4748 | return _resultobj; | |
4749 | } | |
4750 | ||
8ab979d7 | 4751 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 4752 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4753 | PyObject * _resultobj; |
4754 | bool _result; | |
4755 | wxWindow * _arg0; | |
1d99702e | 4756 | PyObject * _argo0 = 0; |
efc5f224 | 4757 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4758 | |
4759 | self = self; | |
efc5f224 | 4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4761 | return NULL; |
1d99702e RD |
4762 | if (_argo0) { |
4763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4766 | return NULL; | |
4767 | } | |
4768 | } | |
cf694132 | 4769 | { |
474c48f9 | 4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4771 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 4772 | |
474c48f9 | 4773 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4775 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4776 | return _resultobj; |
4777 | } | |
4778 | ||
4779 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4780 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4781 | PyObject * _resultobj; |
4782 | wxWindow * _arg0; | |
4783 | int _arg1; | |
4784 | int _arg2; | |
1d99702e | 4785 | PyObject * _argo0 = 0; |
efc5f224 | 4786 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4787 | |
4788 | self = self; | |
efc5f224 | 4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4790 | return NULL; |
1d99702e RD |
4791 | if (_argo0) { |
4792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4795 | return NULL; | |
4796 | } | |
4797 | } | |
cf694132 | 4798 | { |
474c48f9 | 4799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4800 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
cf694132 | 4801 | |
474c48f9 | 4802 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4804 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4805 | _resultobj = Py_None; |
4806 | return _resultobj; | |
4807 | } | |
4808 | ||
b8b8dda7 | 4809 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4810 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4811 | PyObject * _resultobj; |
4812 | wxPoint * _result; | |
4813 | wxWindow * _arg0; | |
4814 | wxPoint * _arg1; | |
1d99702e | 4815 | PyObject * _argo0 = 0; |
2f90df85 RD |
4816 | wxPoint temp; |
4817 | PyObject * _obj1 = 0; | |
efc5f224 | 4818 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4819 | char _ptemp[128]; |
4820 | ||
4821 | self = self; | |
2f90df85 | 4822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4823 | return NULL; |
1d99702e RD |
4824 | if (_argo0) { |
4825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4828 | return NULL; | |
4829 | } | |
4830 | } | |
2f90df85 RD |
4831 | { |
4832 | _arg1 = &temp; | |
4833 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4834 | return NULL; |
2f90df85 | 4835 | } |
cf694132 | 4836 | { |
474c48f9 | 4837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4838 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 4839 | |
474c48f9 | 4840 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4841 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4842 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4843 | _resultobj = Py_BuildValue("s",_ptemp); |
4844 | return _resultobj; | |
4845 | } | |
4846 | ||
4847 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4848 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4849 | PyObject * _resultobj; |
4850 | wxSize * _result; | |
4851 | wxWindow * _arg0; | |
4852 | wxSize * _arg1; | |
1d99702e | 4853 | PyObject * _argo0 = 0; |
2f90df85 RD |
4854 | wxSize temp; |
4855 | PyObject * _obj1 = 0; | |
efc5f224 | 4856 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4857 | char _ptemp[128]; |
4858 | ||
4859 | self = self; | |
2f90df85 | 4860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4861 | return NULL; |
1d99702e RD |
4862 | if (_argo0) { |
4863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4866 | return NULL; | |
4867 | } | |
4868 | } | |
2f90df85 RD |
4869 | { |
4870 | _arg1 = &temp; | |
4871 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4872 | return NULL; |
2f90df85 | 4873 | } |
cf694132 | 4874 | { |
474c48f9 | 4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4876 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 4877 | |
474c48f9 | 4878 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4879 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4880 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4881 | _resultobj = Py_BuildValue("s",_ptemp); |
4882 | return _resultobj; | |
4883 | } | |
4884 | ||
4885 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4886 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4887 | PyObject * _resultobj; |
4888 | wxPoint * _result; | |
4889 | wxWindow * _arg0; | |
4890 | wxPoint * _arg1; | |
1d99702e | 4891 | PyObject * _argo0 = 0; |
2f90df85 RD |
4892 | wxPoint temp; |
4893 | PyObject * _obj1 = 0; | |
efc5f224 | 4894 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4895 | char _ptemp[128]; |
4896 | ||
4897 | self = self; | |
2f90df85 | 4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4899 | return NULL; |
1d99702e RD |
4900 | if (_argo0) { |
4901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4904 | return NULL; | |
4905 | } | |
4906 | } | |
2f90df85 RD |
4907 | { |
4908 | _arg1 = &temp; | |
4909 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4910 | return NULL; |
2f90df85 | 4911 | } |
cf694132 | 4912 | { |
474c48f9 | 4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4914 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 4915 | |
474c48f9 | 4916 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4917 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4918 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4919 | _resultobj = Py_BuildValue("s",_ptemp); |
4920 | return _resultobj; | |
4921 | } | |
4922 | ||
4923 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4924 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4925 | PyObject * _resultobj; |
4926 | wxSize * _result; | |
4927 | wxWindow * _arg0; | |
4928 | wxSize * _arg1; | |
1d99702e | 4929 | PyObject * _argo0 = 0; |
2f90df85 RD |
4930 | wxSize temp; |
4931 | PyObject * _obj1 = 0; | |
efc5f224 | 4932 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4933 | char _ptemp[128]; |
4934 | ||
4935 | self = self; | |
2f90df85 | 4936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4937 | return NULL; |
1d99702e RD |
4938 | if (_argo0) { |
4939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4942 | return NULL; | |
4943 | } | |
4944 | } | |
2f90df85 RD |
4945 | { |
4946 | _arg1 = &temp; | |
4947 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4948 | return NULL; |
2f90df85 | 4949 | } |
cf694132 | 4950 | { |
474c48f9 | 4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4952 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 4953 | |
474c48f9 | 4954 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4955 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4956 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4957 | _resultobj = Py_BuildValue("s",_ptemp); |
4958 | return _resultobj; | |
4959 | } | |
4960 | ||
af309447 | 4961 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4962 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4963 | PyObject * _resultobj; |
4964 | wxWindow * _arg0; | |
4965 | wxString * _arg1; | |
1d99702e | 4966 | PyObject * _argo0 = 0; |
af309447 | 4967 | PyObject * _obj1 = 0; |
efc5f224 | 4968 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4969 | |
4970 | self = self; | |
efc5f224 | 4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4972 | return NULL; |
1d99702e RD |
4973 | if (_argo0) { |
4974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4977 | return NULL; | |
4978 | } | |
4979 | } | |
4980 | { | |
c8bc7bb8 RD |
4981 | _arg1 = wxString_in_helper(_obj1); |
4982 | if (_arg1 == NULL) | |
2cd2fac8 | 4983 | return NULL; |
af309447 | 4984 | } |
cf694132 | 4985 | { |
474c48f9 | 4986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4987 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 4988 | |
474c48f9 | 4989 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4990 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4991 | } Py_INCREF(Py_None); |
af309447 RD |
4992 | _resultobj = Py_None; |
4993 | { | |
4994 | if (_obj1) | |
4995 | delete _arg1; | |
4996 | } | |
4997 | return _resultobj; | |
4998 | } | |
4999 | ||
5000 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5001 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5002 | PyObject * _resultobj; |
5003 | wxWindow * _arg0; | |
5004 | wxToolTip * _arg1; | |
1d99702e RD |
5005 | PyObject * _argo0 = 0; |
5006 | PyObject * _argo1 = 0; | |
efc5f224 | 5007 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5008 | |
5009 | self = self; | |
efc5f224 | 5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5011 | return NULL; |
1d99702e RD |
5012 | if (_argo0) { |
5013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5016 | return NULL; | |
5017 | } | |
5018 | } | |
1d99702e RD |
5019 | if (_argo1) { |
5020 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5021 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5023 | return NULL; | |
5024 | } | |
5025 | } | |
cf694132 | 5026 | { |
474c48f9 | 5027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5028 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5029 | |
474c48f9 | 5030 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5031 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5032 | } Py_INCREF(Py_None); |
af309447 RD |
5033 | _resultobj = Py_None; |
5034 | return _resultobj; | |
5035 | } | |
5036 | ||
5037 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5038 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5039 | PyObject * _resultobj; |
5040 | wxToolTip * _result; | |
5041 | wxWindow * _arg0; | |
1d99702e | 5042 | PyObject * _argo0 = 0; |
efc5f224 | 5043 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5044 | |
5045 | self = self; | |
efc5f224 | 5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5047 | return NULL; |
1d99702e RD |
5048 | if (_argo0) { |
5049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5052 | return NULL; | |
5053 | } | |
5054 | } | |
cf694132 | 5055 | { |
474c48f9 | 5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5057 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5058 | |
474c48f9 | 5059 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5060 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5061 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5062 | return _resultobj; |
5063 | } | |
5064 | ||
49df1f52 | 5065 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5066 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5067 | PyObject * _resultobj; | |
5068 | wxWindow * _arg0; | |
5069 | wxSizer * _arg1; | |
49df1f52 | 5070 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5071 | PyObject * _argo0 = 0; |
5072 | PyObject * _argo1 = 0; | |
49df1f52 RD |
5073 | int tempbool2 = (int) TRUE; |
5074 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5075 | |
5076 | self = self; | |
49df1f52 | 5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5078 | return NULL; |
5079 | if (_argo0) { | |
5080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5083 | return NULL; | |
5084 | } | |
5085 | } | |
5086 | if (_argo1) { | |
5087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5090 | return NULL; | |
5091 | } | |
5092 | } | |
49df1f52 | 5093 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5094 | { |
474c48f9 | 5095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
49df1f52 | 5096 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5097 | |
474c48f9 | 5098 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5099 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5100 | } Py_INCREF(Py_None); |
5101 | _resultobj = Py_None; | |
5102 | return _resultobj; | |
5103 | } | |
5104 | ||
f6bcfd97 BP |
5105 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5106 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject * _resultobj; | |
5108 | wxSizer * _result; | |
5109 | wxWindow * _arg0; | |
5110 | PyObject * _argo0 = 0; | |
5111 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5112 | |
5113 | self = self; | |
5114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5115 | return NULL; | |
5116 | if (_argo0) { | |
5117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5120 | return NULL; | |
5121 | } | |
5122 | } | |
5123 | { | |
474c48f9 | 5124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5125 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5126 | |
474c48f9 | 5127 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5128 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 5129 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5130 | return _resultobj; |
5131 | } | |
5132 | ||
94082a71 RD |
5133 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5134 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5135 | PyObject * _resultobj; | |
5136 | wxWindow * _arg0; | |
5137 | wxSizer * _arg1; | |
5138 | PyObject * _argo0 = 0; | |
5139 | PyObject * _argo1 = 0; | |
5140 | char *_kwnames[] = { "self","sizer", NULL }; | |
5141 | ||
5142 | self = self; | |
5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5144 | return NULL; | |
5145 | if (_argo0) { | |
5146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5149 | return NULL; | |
5150 | } | |
5151 | } | |
5152 | if (_argo1) { | |
5153 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5154 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5156 | return NULL; | |
5157 | } | |
5158 | } | |
5159 | { | |
5160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5161 | wxWindow_SetContainingSizer(_arg0,_arg1); |
94082a71 RD |
5162 | |
5163 | wxPyEndAllowThreads(__tstate); | |
5164 | if (PyErr_Occurred()) return NULL; | |
5165 | } Py_INCREF(Py_None); | |
5166 | _resultobj = Py_None; | |
5167 | return _resultobj; | |
5168 | } | |
5169 | ||
5170 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5171 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5172 | PyObject * _resultobj; | |
5173 | wxSizer * _result; | |
5174 | wxWindow * _arg0; | |
5175 | PyObject * _argo0 = 0; | |
5176 | char *_kwnames[] = { "self", NULL }; | |
5177 | ||
5178 | self = self; | |
5179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5180 | return NULL; | |
5181 | if (_argo0) { | |
5182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5185 | return NULL; | |
5186 | } | |
5187 | } | |
5188 | { | |
5189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5190 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
94082a71 RD |
5191 | |
5192 | wxPyEndAllowThreads(__tstate); | |
5193 | if (PyErr_Occurred()) return NULL; | |
5194 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5195 | return _resultobj; | |
5196 | } | |
5197 | ||
2f90df85 RD |
5198 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5199 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5200 | PyObject * _resultobj; | |
5201 | wxValidator * _result; | |
5202 | wxWindow * _arg0; | |
5203 | PyObject * _argo0 = 0; | |
5204 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5205 | |
5206 | self = self; | |
5207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5208 | return NULL; | |
5209 | if (_argo0) { | |
5210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5213 | return NULL; | |
5214 | } | |
5215 | } | |
5216 | { | |
474c48f9 | 5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5218 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5219 | |
474c48f9 | 5220 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5221 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5222 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5223 | return _resultobj; |
5224 | } | |
5225 | ||
5226 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5227 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5228 | PyObject * _resultobj; | |
5229 | wxWindow * _arg0; | |
5230 | wxValidator * _arg1; | |
5231 | PyObject * _argo0 = 0; | |
5232 | PyObject * _argo1 = 0; | |
5233 | char *_kwnames[] = { "self","validator", NULL }; | |
5234 | ||
5235 | self = self; | |
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5237 | return NULL; | |
5238 | if (_argo0) { | |
5239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5242 | return NULL; | |
5243 | } | |
5244 | } | |
5245 | if (_argo1) { | |
5246 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | { | |
474c48f9 | 5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5254 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5255 | |
474c48f9 | 5256 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5257 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5258 | } Py_INCREF(Py_None); |
5259 | _resultobj = Py_None; | |
5260 | return _resultobj; | |
5261 | } | |
5262 | ||
b1462dfa RD |
5263 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5264 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5265 | PyObject * _resultobj; | |
5266 | wxWindow * _arg0; | |
5267 | wxDropTarget * _arg1; | |
5268 | PyObject * _argo0 = 0; | |
5269 | PyObject * _argo1 = 0; | |
5270 | char *_kwnames[] = { "self","target", NULL }; | |
5271 | ||
5272 | self = self; | |
5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5274 | return NULL; | |
5275 | if (_argo0) { | |
5276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5279 | return NULL; | |
5280 | } | |
5281 | } | |
5282 | if (_argo1) { | |
5283 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5284 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | { | |
474c48f9 | 5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5291 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5292 | |
474c48f9 | 5293 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5294 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5295 | } Py_INCREF(Py_None); |
5296 | _resultobj = Py_None; | |
5297 | return _resultobj; | |
5298 | } | |
5299 | ||
5300 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5301 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5302 | PyObject * _resultobj; | |
5303 | wxDropTarget * _result; | |
5304 | wxWindow * _arg0; | |
5305 | PyObject * _argo0 = 0; | |
5306 | char *_kwnames[] = { "self", NULL }; | |
5307 | char _ptemp[128]; | |
5308 | ||
5309 | self = self; | |
5310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5311 | return NULL; | |
5312 | if (_argo0) { | |
5313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5316 | return NULL; | |
5317 | } | |
5318 | } | |
5319 | { | |
474c48f9 | 5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5321 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5322 | |
474c48f9 | 5323 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5324 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5325 | } if (_result) { |
5326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5327 | _resultobj = Py_BuildValue("s",_ptemp); | |
5328 | } else { | |
5329 | Py_INCREF(Py_None); | |
5330 | _resultobj = Py_None; | |
5331 | } | |
5332 | return _resultobj; | |
5333 | } | |
5334 | ||
694759cf RD |
5335 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5336 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject * _resultobj; | |
5338 | wxSize * _result; | |
5339 | wxWindow * _arg0; | |
5340 | PyObject * _argo0 = 0; | |
5341 | char *_kwnames[] = { "self", NULL }; | |
5342 | char _ptemp[128]; | |
5343 | ||
5344 | self = self; | |
5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5346 | return NULL; | |
5347 | if (_argo0) { | |
5348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5351 | return NULL; | |
5352 | } | |
5353 | } | |
5354 | { | |
474c48f9 | 5355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5356 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5357 | |
474c48f9 | 5358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5359 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5360 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5361 | _resultobj = Py_BuildValue("s",_ptemp); | |
5362 | return _resultobj; | |
5363 | } | |
5364 | ||
49df1f52 RD |
5365 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5366 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject * _resultobj; | |
5368 | wxSize * _result; | |
5369 | wxWindow * _arg0; | |
5370 | PyObject * _argo0 = 0; | |
5371 | char *_kwnames[] = { "self", NULL }; | |
5372 | char _ptemp[128]; | |
5373 | ||
5374 | self = self; | |
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
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_GetMaxSize. Expected _wxWindow_p."); | |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5387 | ||
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) return NULL; | |
5390 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5391 | _resultobj = Py_BuildValue("s",_ptemp); | |
5392 | return _resultobj; | |
5393 | } | |
5394 | ||
a1df7a95 RD |
5395 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5396 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject * _resultobj; | |
5398 | wxWindow * _arg0; | |
5399 | wxCaret * _arg1; | |
5400 | PyObject * _argo0 = 0; | |
5401 | PyObject * _argo1 = 0; | |
5402 | char *_kwnames[] = { "self","caret", NULL }; | |
5403 | ||
5404 | self = self; | |
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5406 | return NULL; | |
5407 | if (_argo0) { | |
5408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5411 | return NULL; | |
5412 | } | |
5413 | } | |
5414 | if (_argo1) { | |
5415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5418 | return NULL; | |
5419 | } | |
5420 | } | |
5421 | { | |
474c48f9 | 5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5423 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5424 | |
474c48f9 | 5425 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5426 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5427 | } Py_INCREF(Py_None); |
5428 | _resultobj = Py_None; | |
5429 | return _resultobj; | |
5430 | } | |
5431 | ||
5432 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5433 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5434 | PyObject * _resultobj; | |
5435 | wxCaret * _result; | |
5436 | wxWindow * _arg0; | |
5437 | PyObject * _argo0 = 0; | |
5438 | char *_kwnames[] = { "self", NULL }; | |
5439 | char _ptemp[128]; | |
5440 | ||
5441 | self = self; | |
5442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5443 | return NULL; | |
5444 | if (_argo0) { | |
5445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5448 | return NULL; | |
5449 | } | |
5450 | } | |
5451 | { | |
474c48f9 | 5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5453 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5454 | |
474c48f9 | 5455 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5456 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5457 | } if (_result) { |
5458 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5459 | _resultobj = Py_BuildValue("s",_ptemp); | |
5460 | } else { | |
5461 | Py_INCREF(Py_None); | |
5462 | _resultobj = Py_None; | |
5463 | } | |
5464 | return _resultobj; | |
5465 | } | |
5466 | ||
10be44ac RD |
5467 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5468 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject * _resultobj; | |
5470 | wxWindow * _arg0; | |
5471 | PyObject * _argo0 = 0; | |
5472 | char *_kwnames[] = { "self", NULL }; | |
5473 | ||
5474 | self = self; | |
5475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5476 | return NULL; | |
5477 | if (_argo0) { | |
5478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5481 | return NULL; | |
5482 | } | |
5483 | } | |
5484 | { | |
474c48f9 | 5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5486 | wxWindow_Freeze(_arg0); |
10be44ac | 5487 | |
474c48f9 | 5488 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5489 | if (PyErr_Occurred()) return NULL; |
5490 | } Py_INCREF(Py_None); | |
5491 | _resultobj = Py_None; | |
5492 | return _resultobj; | |
5493 | } | |
5494 | ||
5495 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5496 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5497 | PyObject * _resultobj; | |
5498 | wxWindow * _arg0; | |
5499 | PyObject * _argo0 = 0; | |
5500 | char *_kwnames[] = { "self", NULL }; | |
5501 | ||
5502 | self = self; | |
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5504 | return NULL; | |
5505 | if (_argo0) { | |
5506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5509 | return NULL; | |
5510 | } | |
5511 | } | |
5512 | { | |
474c48f9 | 5513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5514 | wxWindow_Thaw(_arg0); |
10be44ac | 5515 | |
474c48f9 | 5516 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5517 | if (PyErr_Occurred()) return NULL; |
5518 | } Py_INCREF(Py_None); | |
5519 | _resultobj = Py_None; | |
5520 | return _resultobj; | |
5521 | } | |
5522 | ||
aa2a5b86 RD |
5523 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5524 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5525 | PyObject * _resultobj; | |
5526 | wxWindow * _arg0; | |
5527 | PyObject * _argo0 = 0; | |
5528 | char *_kwnames[] = { "self", NULL }; | |
5529 | ||
5530 | self = self; | |
5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5532 | return NULL; | |
5533 | if (_argo0) { | |
5534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5537 | return NULL; | |
5538 | } | |
5539 | } | |
5540 | { | |
474c48f9 | 5541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5542 | wxWindow_Update(_arg0); |
aa2a5b86 | 5543 | |
474c48f9 | 5544 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5545 | if (PyErr_Occurred()) return NULL; |
5546 | } Py_INCREF(Py_None); | |
5547 | _resultobj = Py_None; | |
5548 | return _resultobj; | |
5549 | } | |
5550 | ||
cd096152 RD |
5551 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5552 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5553 | PyObject * _resultobj; | |
5554 | wxString * _result; | |
5555 | wxWindow * _arg0; | |
5556 | PyObject * _argo0 = 0; | |
5557 | char *_kwnames[] = { "self", NULL }; | |
5558 | ||
5559 | self = self; | |
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5561 | return NULL; | |
5562 | if (_argo0) { | |
5563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5566 | return NULL; | |
5567 | } | |
5568 | } | |
5569 | { | |
474c48f9 | 5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5571 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
cd096152 | 5572 | |
474c48f9 | 5573 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5574 | if (PyErr_Occurred()) return NULL; |
5575 | }{ | |
c8bc7bb8 RD |
5576 | #if wxUSE_UNICODE |
5577 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5578 | #else | |
cd096152 | 5579 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5580 | #endif |
cd096152 RD |
5581 | } |
5582 | { | |
5583 | delete _result; | |
5584 | } | |
5585 | return _resultobj; | |
5586 | } | |
5587 | ||
5588 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5589 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5590 | PyObject * _resultobj; | |
5591 | wxWindow * _arg0; | |
5592 | wxString * _arg1; | |
5593 | PyObject * _argo0 = 0; | |
5594 | PyObject * _obj1 = 0; | |
5595 | char *_kwnames[] = { "self","helpText", NULL }; | |
5596 | ||
5597 | self = self; | |
5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5599 | return NULL; | |
5600 | if (_argo0) { | |
5601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5604 | return NULL; | |
5605 | } | |
5606 | } | |
5607 | { | |
c8bc7bb8 RD |
5608 | _arg1 = wxString_in_helper(_obj1); |
5609 | if (_arg1 == NULL) | |
cd096152 | 5610 | return NULL; |
cd096152 RD |
5611 | } |
5612 | { | |
474c48f9 | 5613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5614 | wxWindow_SetHelpText(_arg0,*_arg1); |
cd096152 | 5615 | |
474c48f9 | 5616 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5617 | if (PyErr_Occurred()) return NULL; |
5618 | } Py_INCREF(Py_None); | |
5619 | _resultobj = Py_None; | |
5620 | { | |
5621 | if (_obj1) | |
5622 | delete _arg1; | |
5623 | } | |
5624 | return _resultobj; | |
5625 | } | |
5626 | ||
8cb49012 RD |
5627 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5628 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5629 | PyObject * _resultobj; | |
5630 | wxWindow * _arg0; | |
5631 | wxString * _arg1; | |
5632 | PyObject * _argo0 = 0; | |
5633 | PyObject * _obj1 = 0; | |
5634 | char *_kwnames[] = { "self","text", NULL }; | |
5635 | ||
5636 | self = self; | |
5637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5638 | return NULL; | |
5639 | if (_argo0) { | |
5640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5643 | return NULL; | |
5644 | } | |
5645 | } | |
5646 | { | |
c8bc7bb8 RD |
5647 | _arg1 = wxString_in_helper(_obj1); |
5648 | if (_arg1 == NULL) | |
8cb49012 | 5649 | return NULL; |
8cb49012 RD |
5650 | } |
5651 | { | |
5652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5653 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
8cb49012 RD |
5654 | |
5655 | wxPyEndAllowThreads(__tstate); | |
5656 | if (PyErr_Occurred()) return NULL; | |
5657 | } Py_INCREF(Py_None); | |
5658 | _resultobj = Py_None; | |
5659 | { | |
5660 | if (_obj1) | |
5661 | delete _arg1; | |
5662 | } | |
5663 | return _resultobj; | |
5664 | } | |
5665 | ||
cd096152 RD |
5666 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5667 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject * _resultobj; | |
5669 | bool _result; | |
5670 | wxWindow * _arg0; | |
5671 | int _arg1; | |
5672 | PyObject * _argo0 = 0; | |
5673 | char *_kwnames[] = { "self","lines", NULL }; | |
5674 | ||
5675 | self = self; | |
5676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5677 | return NULL; | |
5678 | if (_argo0) { | |
5679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5682 | return NULL; | |
5683 | } | |
5684 | } | |
5685 | { | |
474c48f9 | 5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5687 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
cd096152 | 5688 | |
474c48f9 | 5689 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5690 | if (PyErr_Occurred()) return NULL; |
5691 | } _resultobj = Py_BuildValue("i",_result); | |
5692 | return _resultobj; | |
5693 | } | |
5694 | ||
5695 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5696 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject * _resultobj; | |
5698 | bool _result; | |
5699 | wxWindow * _arg0; | |
5700 | int _arg1; | |
5701 | PyObject * _argo0 = 0; | |
5702 | char *_kwnames[] = { "self","pages", NULL }; | |
5703 | ||
5704 | self = self; | |
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5706 | return NULL; | |
5707 | if (_argo0) { | |
5708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5711 | return NULL; | |
5712 | } | |
5713 | } | |
5714 | { | |
474c48f9 | 5715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5716 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
cd096152 | 5717 | |
474c48f9 | 5718 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5719 | if (PyErr_Occurred()) return NULL; |
5720 | } _resultobj = Py_BuildValue("i",_result); | |
5721 | return _resultobj; | |
5722 | } | |
5723 | ||
5724 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5725 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5726 | PyObject * _resultobj; | |
5727 | bool _result; | |
5728 | wxWindow * _arg0; | |
5729 | PyObject * _argo0 = 0; | |
5730 | char *_kwnames[] = { "self", NULL }; | |
5731 | ||
5732 | self = self; | |
5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5734 | return NULL; | |
5735 | if (_argo0) { | |
5736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5739 | return NULL; | |
5740 | } | |
5741 | } | |
5742 | { | |
474c48f9 | 5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5744 | _result = (bool )wxWindow_LineUp(_arg0); |
cd096152 | 5745 | |
474c48f9 | 5746 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5747 | if (PyErr_Occurred()) return NULL; |
5748 | } _resultobj = Py_BuildValue("i",_result); | |
5749 | return _resultobj; | |
5750 | } | |
5751 | ||
5752 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5753 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5754 | PyObject * _resultobj; | |
5755 | bool _result; | |
5756 | wxWindow * _arg0; | |
5757 | PyObject * _argo0 = 0; | |
5758 | char *_kwnames[] = { "self", NULL }; | |
5759 | ||
5760 | self = self; | |
5761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5762 | return NULL; | |
5763 | if (_argo0) { | |
5764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5767 | return NULL; | |
5768 | } | |
5769 | } | |
5770 | { | |
474c48f9 | 5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5772 | _result = (bool )wxWindow_LineDown(_arg0); |
cd096152 | 5773 | |
474c48f9 | 5774 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5775 | if (PyErr_Occurred()) return NULL; |
5776 | } _resultobj = Py_BuildValue("i",_result); | |
5777 | return _resultobj; | |
5778 | } | |
5779 | ||
5780 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5781 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5782 | PyObject * _resultobj; | |
5783 | bool _result; | |
5784 | wxWindow * _arg0; | |
5785 | PyObject * _argo0 = 0; | |
5786 | char *_kwnames[] = { "self", NULL }; | |
5787 | ||
5788 | self = self; | |
5789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5790 | return NULL; | |
5791 | if (_argo0) { | |
5792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5795 | return NULL; | |
5796 | } | |
5797 | } | |
5798 | { | |
474c48f9 | 5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5800 | _result = (bool )wxWindow_PageUp(_arg0); |
cd096152 | 5801 | |
474c48f9 | 5802 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5803 | if (PyErr_Occurred()) return NULL; |
5804 | } _resultobj = Py_BuildValue("i",_result); | |
5805 | return _resultobj; | |
5806 | } | |
5807 | ||
5808 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5809 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5810 | PyObject * _resultobj; | |
5811 | bool _result; | |
5812 | wxWindow * _arg0; | |
5813 | PyObject * _argo0 = 0; | |
5814 | char *_kwnames[] = { "self", NULL }; | |
5815 | ||
5816 | self = self; | |
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5818 | return NULL; | |
5819 | if (_argo0) { | |
5820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5823 | return NULL; | |
5824 | } | |
5825 | } | |
5826 | { | |
474c48f9 | 5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5828 | _result = (bool )wxWindow_PageDown(_arg0); |
cd096152 | 5829 | |
474c48f9 | 5830 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5831 | if (PyErr_Occurred()) return NULL; |
5832 | } _resultobj = Py_BuildValue("i",_result); | |
5833 | return _resultobj; | |
5834 | } | |
5835 | ||
aa2a5b86 RD |
5836 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5837 | PyObject * _resultobj; | |
5838 | wxWindow * _result; | |
5839 | char *_kwnames[] = { NULL }; | |
5840 | ||
5841 | self = self; | |
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5843 | return NULL; | |
5844 | { | |
474c48f9 | 5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5846 | _result = (wxWindow *)wxWindow::FindFocus(); |
aa2a5b86 | 5847 | |
474c48f9 | 5848 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5849 | if (PyErr_Occurred()) return NULL; |
5850 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5851 | return _resultobj; | |
5852 | } | |
5853 | ||
5854 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5855 | PyObject * _resultobj; | |
5856 | int _result; | |
5857 | char *_kwnames[] = { NULL }; | |
5858 | ||
5859 | self = self; | |
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5861 | return NULL; | |
5862 | { | |
474c48f9 | 5863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5864 | _result = (int )wxWindow::NewControlId(); |
aa2a5b86 | 5865 | |
474c48f9 | 5866 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5867 | if (PyErr_Occurred()) return NULL; |
5868 | } _resultobj = Py_BuildValue("i",_result); | |
5869 | return _resultobj; | |
5870 | } | |
5871 | ||
5872 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5873 | PyObject * _resultobj; | |
5874 | int _result; | |
5875 | int _arg0; | |
5876 | char *_kwnames[] = { "id", NULL }; | |
5877 | ||
5878 | self = self; | |
5879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5880 | return NULL; | |
5881 | { | |
474c48f9 | 5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5883 | _result = (int )wxWindow::NextControlId(_arg0); |
aa2a5b86 | 5884 | |
474c48f9 | 5885 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5886 | if (PyErr_Occurred()) return NULL; |
5887 | } _resultobj = Py_BuildValue("i",_result); | |
5888 | return _resultobj; | |
5889 | } | |
5890 | ||
5891 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5892 | PyObject * _resultobj; | |
5893 | int _result; | |
5894 | int _arg0; | |
5895 | char *_kwnames[] = { "id", NULL }; | |
5896 | ||
5897 | self = self; | |
5898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5899 | return NULL; | |
5900 | { | |
474c48f9 | 5901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5902 | _result = (int )wxWindow::PrevControlId(_arg0); |
aa2a5b86 | 5903 | |
474c48f9 | 5904 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5905 | if (PyErr_Occurred()) return NULL; |
5906 | } _resultobj = Py_BuildValue("i",_result); | |
5907 | return _resultobj; | |
5908 | } | |
5909 | ||
32c988a3 RD |
5910 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5911 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5912 | PyObject * _resultobj; | |
5913 | wxWindow * _arg0; | |
5914 | wxAcceleratorTable * _arg1; | |
5915 | PyObject * _argo0 = 0; | |
5916 | PyObject * _argo1 = 0; | |
5917 | char *_kwnames[] = { "self","accel", NULL }; | |
5918 | ||
5919 | self = self; | |
5920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5921 | return NULL; | |
5922 | if (_argo0) { | |
5923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5926 | return NULL; | |
5927 | } | |
5928 | } | |
5929 | if (_argo1) { | |
5930 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5931 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5933 | return NULL; | |
5934 | } | |
5935 | } | |
5936 | { | |
474c48f9 | 5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5938 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
32c988a3 | 5939 | |
474c48f9 | 5940 | wxPyEndAllowThreads(__tstate); |
32c988a3 RD |
5941 | if (PyErr_Occurred()) return NULL; |
5942 | } Py_INCREF(Py_None); | |
5943 | _resultobj = Py_None; | |
5944 | return _resultobj; | |
5945 | } | |
5946 | ||
65191ae8 RD |
5947 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
5948 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5949 | PyObject * _resultobj; | |
5950 | wxAcceleratorTable * _result; | |
5951 | wxWindow * _arg0; | |
5952 | PyObject * _argo0 = 0; | |
5953 | char *_kwnames[] = { "self", NULL }; | |
5954 | char _ptemp[128]; | |
5955 | ||
5956 | self = self; | |
5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5958 | return NULL; | |
5959 | if (_argo0) { | |
5960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5963 | return NULL; | |
5964 | } | |
5965 | } | |
5966 | { | |
474c48f9 | 5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5968 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
65191ae8 | 5969 | |
474c48f9 | 5970 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
5971 | if (PyErr_Occurred()) return NULL; |
5972 | } if (_result) { | |
5973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5974 | _resultobj = Py_BuildValue("s",_ptemp); | |
5975 | } else { | |
5976 | Py_INCREF(Py_None); | |
5977 | _resultobj = Py_None; | |
5978 | } | |
5979 | return _resultobj; | |
5980 | } | |
5981 | ||
1893b029 RD |
5982 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
5983 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject * _resultobj; | |
49df1f52 | 5985 | wxWindow * _result; |
1893b029 RD |
5986 | wxWindow * _arg0; |
5987 | PyObject * _argo0 = 0; | |
5988 | char *_kwnames[] = { "self", NULL }; | |
5989 | ||
5990 | self = self; | |
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
5992 | return NULL; | |
5993 | if (_argo0) { | |
5994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
5997 | return NULL; | |
5998 | } | |
5999 | } | |
6000 | { | |
6001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6002 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
1893b029 RD |
6003 | |
6004 | wxPyEndAllowThreads(__tstate); | |
6005 | if (PyErr_Occurred()) return NULL; | |
6006 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6007 | return _resultobj; | |
6008 | } | |
6009 | ||
6010 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6011 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject * _resultobj; | |
49df1f52 | 6013 | wxWindow * _result; |
1893b029 | 6014 | wxWindow * _arg0; |
49df1f52 | 6015 | wxWindow * _arg1; |
1893b029 RD |
6016 | PyObject * _argo0 = 0; |
6017 | PyObject * _argo1 = 0; | |
6018 | char *_kwnames[] = { "self","btn", NULL }; | |
6019 | ||
6020 | self = self; | |
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6022 | return NULL; | |
6023 | if (_argo0) { | |
6024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6027 | return NULL; | |
6028 | } | |
6029 | } | |
6030 | if (_argo1) { | |
6031 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
49df1f52 RD |
6032 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
1893b029 RD |
6034 | return NULL; |
6035 | } | |
6036 | } | |
6037 | { | |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6039 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
1893b029 RD |
6040 | |
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) return NULL; | |
49df1f52 | 6043 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1893b029 RD |
6044 | return _resultobj; |
6045 | } | |
6046 | ||
8ab979d7 RD |
6047 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6048 | wxPanel *src; | |
6049 | wxWindow *dest; | |
6050 | src = (wxPanel *) ptr; | |
6051 | dest = (wxWindow *) src; | |
6052 | return (void *) dest; | |
6053 | } | |
6054 | ||
6055 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6056 | wxPanel *src; | |
6057 | wxEvtHandler *dest; | |
6058 | src = (wxPanel *) ptr; | |
6059 | dest = (wxEvtHandler *) src; | |
6060 | return (void *) dest; | |
6061 | } | |
6062 | ||
9df61a29 RD |
6063 | static void *SwigwxPanelTowxObject(void *ptr) { |
6064 | wxPanel *src; | |
6065 | wxObject *dest; | |
6066 | src = (wxPanel *) ptr; | |
6067 | dest = (wxObject *) src; | |
6068 | return (void *) dest; | |
6069 | } | |
6070 | ||
8ab979d7 | 6071 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6072 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6073 | PyObject * _resultobj; |
6074 | wxPanel * _result; | |
6075 | wxWindow * _arg0; | |
6076 | wxWindowID _arg1; | |
b68dc582 RD |
6077 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6078 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6079 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
6080 | char * _arg5 = (char *) "panel"; | |
6081 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6082 | wxPoint temp; |
6083 | PyObject * _obj2 = 0; | |
6084 | wxSize temp0; | |
6085 | PyObject * _obj3 = 0; | |
efc5f224 | 6086 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6087 | char _ptemp[128]; |
6088 | ||
6089 | self = self; | |
2f90df85 | 6090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6091 | return NULL; |
1d99702e RD |
6092 | if (_argo0) { |
6093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6096 | return NULL; | |
6097 | } | |
6098 | } | |
2f90df85 RD |
6099 | if (_obj2) |
6100 | { | |
6101 | _arg2 = &temp; | |
6102 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6103 | return NULL; |
2f90df85 RD |
6104 | } |
6105 | if (_obj3) | |
6106 | { | |
6107 | _arg3 = &temp0; | |
6108 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6109 | return NULL; |
2f90df85 | 6110 | } |
cf694132 | 6111 | { |
474c48f9 | 6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6113 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 6114 | |
474c48f9 | 6115 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6116 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6117 | } if (_result) { |
6118 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6119 | _resultobj = Py_BuildValue("s",_ptemp); | |
6120 | } else { | |
6121 | Py_INCREF(Py_None); | |
6122 | _resultobj = Py_None; | |
6123 | } | |
8ab979d7 RD |
6124 | return _resultobj; |
6125 | } | |
6126 | ||
aa2a5b86 RD |
6127 | #define new_wxPrePanel() (new wxPanel()) |
6128 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6129 | PyObject * _resultobj; | |
6130 | wxPanel * _result; | |
6131 | char *_kwnames[] = { NULL }; | |
6132 | char _ptemp[128]; | |
6133 | ||
6134 | self = self; | |
6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6136 | return NULL; | |
6137 | { | |
474c48f9 | 6138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6139 | _result = (wxPanel *)new_wxPrePanel(); |
aa2a5b86 | 6140 | |
474c48f9 | 6141 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6142 | if (PyErr_Occurred()) return NULL; |
6143 | } if (_result) { | |
6144 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6145 | _resultobj = Py_BuildValue("s",_ptemp); | |
6146 | } else { | |
6147 | Py_INCREF(Py_None); | |
6148 | _resultobj = Py_None; | |
6149 | } | |
6150 | return _resultobj; | |
6151 | } | |
6152 | ||
6153 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6154 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject * _resultobj; | |
6156 | bool _result; | |
6157 | wxPanel * _arg0; | |
6158 | wxWindow * _arg1; | |
6159 | wxWindowID _arg2; | |
6160 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6161 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6162 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
6163 | char * _arg6 = (char *) "panel"; | |
6164 | PyObject * _argo0 = 0; | |
6165 | PyObject * _argo1 = 0; | |
6166 | wxPoint temp; | |
6167 | PyObject * _obj3 = 0; | |
6168 | wxSize temp0; | |
6169 | PyObject * _obj4 = 0; | |
6170 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6171 | ||
6172 | self = self; | |
6173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6174 | return NULL; | |
6175 | if (_argo0) { | |
6176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6179 | return NULL; | |
6180 | } | |
6181 | } | |
6182 | if (_argo1) { | |
6183 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6184 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6186 | return NULL; | |
6187 | } | |
6188 | } | |
6189 | if (_obj3) | |
6190 | { | |
6191 | _arg3 = &temp; | |
6192 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6193 | return NULL; | |
6194 | } | |
6195 | if (_obj4) | |
6196 | { | |
6197 | _arg4 = &temp0; | |
6198 | if (! wxSize_helper(_obj4, &_arg4)) | |
6199 | return NULL; | |
6200 | } | |
6201 | { | |
474c48f9 | 6202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6203 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
aa2a5b86 | 6204 | |
474c48f9 | 6205 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6206 | if (PyErr_Occurred()) return NULL; |
6207 | } _resultobj = Py_BuildValue("i",_result); | |
6208 | return _resultobj; | |
6209 | } | |
6210 | ||
8ab979d7 | 6211 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6212 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6213 | PyObject * _resultobj; |
6214 | wxPanel * _arg0; | |
1d99702e | 6215 | PyObject * _argo0 = 0; |
efc5f224 | 6216 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6217 | |
6218 | self = self; | |
efc5f224 | 6219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6220 | return NULL; |
1d99702e RD |
6221 | if (_argo0) { |
6222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6225 | return NULL; | |
6226 | } | |
6227 | } | |
cf694132 | 6228 | { |
474c48f9 | 6229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6230 | wxPanel_InitDialog(_arg0); |
cf694132 | 6231 | |
474c48f9 | 6232 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6233 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6234 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6235 | _resultobj = Py_None; |
6236 | return _resultobj; | |
6237 | } | |
6238 | ||
bb0054cd RD |
6239 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6240 | wxScrolledWindow *src; | |
6241 | wxPanel *dest; | |
6242 | src = (wxScrolledWindow *) ptr; | |
6243 | dest = (wxPanel *) src; | |
6244 | return (void *) dest; | |
6245 | } | |
6246 | ||
8ab979d7 RD |
6247 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6248 | wxScrolledWindow *src; | |
6249 | wxWindow *dest; | |
6250 | src = (wxScrolledWindow *) ptr; | |
6251 | dest = (wxWindow *) src; | |
6252 | return (void *) dest; | |
6253 | } | |
6254 | ||
6255 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6256 | wxScrolledWindow *src; | |
6257 | wxEvtHandler *dest; | |
6258 | src = (wxScrolledWindow *) ptr; | |
6259 | dest = (wxEvtHandler *) src; | |
6260 | return (void *) dest; | |
6261 | } | |
6262 | ||
9df61a29 RD |
6263 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6264 | wxScrolledWindow *src; | |
6265 | wxObject *dest; | |
6266 | src = (wxScrolledWindow *) ptr; | |
6267 | dest = (wxObject *) src; | |
6268 | return (void *) dest; | |
6269 | } | |
6270 | ||
8ab979d7 | 6271 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6272 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6273 | PyObject * _resultobj; |
6274 | wxScrolledWindow * _result; | |
6275 | wxWindow * _arg0; | |
1d99702e | 6276 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6277 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6278 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6279 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6280 | char * _arg5 = (char *) "scrolledWindow"; | |
6281 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6282 | wxPoint temp; |
6283 | PyObject * _obj2 = 0; | |
6284 | wxSize temp0; | |
6285 | PyObject * _obj3 = 0; | |
efc5f224 | 6286 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6287 | char _ptemp[128]; |
6288 | ||
6289 | self = self; | |
2f90df85 | 6290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6291 | return NULL; |
1d99702e RD |
6292 | if (_argo0) { |
6293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6296 | return NULL; | |
6297 | } | |
6298 | } | |
2f90df85 RD |
6299 | if (_obj2) |
6300 | { | |
6301 | _arg2 = &temp; | |
6302 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6303 | return NULL; |
2f90df85 RD |
6304 | } |
6305 | if (_obj3) | |
6306 | { | |
6307 | _arg3 = &temp0; | |
6308 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6309 | return NULL; |
2f90df85 | 6310 | } |
cf694132 | 6311 | { |
474c48f9 | 6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6313 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 6314 | |
474c48f9 | 6315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6316 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6317 | } if (_result) { |
6318 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6319 | _resultobj = Py_BuildValue("s",_ptemp); | |
6320 | } else { | |
6321 | Py_INCREF(Py_None); | |
6322 | _resultobj = Py_None; | |
6323 | } | |
8ab979d7 RD |
6324 | return _resultobj; |
6325 | } | |
6326 | ||
aa2a5b86 RD |
6327 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6328 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6329 | PyObject * _resultobj; | |
6330 | wxScrolledWindow * _result; | |
6331 | char *_kwnames[] = { NULL }; | |
6332 | char _ptemp[128]; | |
6333 | ||
6334 | self = self; | |
6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6336 | return NULL; | |
6337 | { | |
474c48f9 | 6338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6339 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
aa2a5b86 | 6340 | |
474c48f9 | 6341 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6342 | if (PyErr_Occurred()) return NULL; |
6343 | } if (_result) { | |
6344 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6345 | _resultobj = Py_BuildValue("s",_ptemp); | |
6346 | } else { | |
6347 | Py_INCREF(Py_None); | |
6348 | _resultobj = Py_None; | |
6349 | } | |
6350 | return _resultobj; | |
6351 | } | |
6352 | ||
6353 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6354 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6355 | PyObject * _resultobj; | |
6356 | bool _result; | |
6357 | wxScrolledWindow * _arg0; | |
6358 | wxWindow * _arg1; | |
6359 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6360 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6361 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6362 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6363 | char * _arg6 = (char *) "scrolledWindow"; | |
6364 | PyObject * _argo0 = 0; | |
6365 | PyObject * _argo1 = 0; | |
6366 | wxPoint temp; | |
6367 | PyObject * _obj3 = 0; | |
6368 | wxSize temp0; | |
6369 | PyObject * _obj4 = 0; | |
6370 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6371 | ||
6372 | self = self; | |
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6374 | return NULL; | |
6375 | if (_argo0) { | |
6376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6379 | return NULL; | |
6380 | } | |
6381 | } | |
6382 | if (_argo1) { | |
6383 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6384 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6386 | return NULL; | |
6387 | } | |
6388 | } | |
6389 | if (_obj3) | |
6390 | { | |
6391 | _arg3 = &temp; | |
6392 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6393 | return NULL; | |
6394 | } | |
6395 | if (_obj4) | |
6396 | { | |
6397 | _arg4 = &temp0; | |
6398 | if (! wxSize_helper(_obj4, &_arg4)) | |
6399 | return NULL; | |
6400 | } | |
6401 | { | |
474c48f9 | 6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6403 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
aa2a5b86 | 6404 | |
474c48f9 | 6405 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6406 | if (PyErr_Occurred()) return NULL; |
6407 | } _resultobj = Py_BuildValue("i",_result); | |
6408 | return _resultobj; | |
6409 | } | |
6410 | ||
8ab979d7 | 6411 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6412 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6413 | PyObject * _resultobj; |
6414 | wxScrolledWindow * _arg0; | |
6415 | bool _arg1; | |
6416 | bool _arg2; | |
1d99702e | 6417 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6418 | int tempbool1; |
6419 | int tempbool2; | |
efc5f224 | 6420 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6421 | |
6422 | self = self; | |
efc5f224 | 6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6424 | return NULL; |
1d99702e RD |
6425 | if (_argo0) { |
6426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6429 | return NULL; | |
6430 | } | |
6431 | } | |
6432 | _arg1 = (bool ) tempbool1; | |
6433 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6434 | { |
474c48f9 | 6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6436 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 6437 | |
474c48f9 | 6438 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6440 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6441 | _resultobj = Py_None; |
6442 | return _resultobj; | |
6443 | } | |
6444 | ||
b7e72427 RD |
6445 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6446 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject * _resultobj; | |
6448 | int _result; | |
6449 | wxScrolledWindow * _arg0; | |
6450 | int _arg1; | |
6451 | PyObject * _argo0 = 0; | |
6452 | char *_kwnames[] = { "self","orient", NULL }; | |
6453 | ||
6454 | self = self; | |
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6456 | return NULL; | |
6457 | if (_argo0) { | |
6458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6461 | return NULL; | |
6462 | } | |
6463 | } | |
6464 | { | |
474c48f9 | 6465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6466 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 6467 | |
474c48f9 | 6468 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6469 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6470 | } _resultobj = Py_BuildValue("i",_result); |
6471 | return _resultobj; | |
6472 | } | |
6473 | ||
8ab979d7 | 6474 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6475 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6476 | PyObject * _resultobj; |
6477 | wxScrolledWindow * _arg0; | |
6478 | int * _arg1; | |
6479 | int temp; | |
6480 | int * _arg2; | |
6481 | int temp0; | |
1d99702e | 6482 | PyObject * _argo0 = 0; |
efc5f224 | 6483 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6484 | |
6485 | self = self; | |
6486 | { | |
6487 | _arg1 = &temp; | |
6488 | } | |
6489 | { | |
6490 | _arg2 = &temp0; | |
6491 | } | |
efc5f224 | 6492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6493 | return NULL; |
1d99702e RD |
6494 | if (_argo0) { |
6495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6498 | return NULL; | |
6499 | } | |
6500 | } | |
cf694132 | 6501 | { |
474c48f9 | 6502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6503 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 6504 | |
474c48f9 | 6505 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6506 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6507 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6508 | _resultobj = Py_None; |
6509 | { | |
6510 | PyObject *o; | |
6511 | o = PyInt_FromLong((long) (*_arg1)); | |
6512 | _resultobj = t_output_helper(_resultobj, o); | |
6513 | } | |
6514 | { | |
6515 | PyObject *o; | |
6516 | o = PyInt_FromLong((long) (*_arg2)); | |
6517 | _resultobj = t_output_helper(_resultobj, o); | |
6518 | } | |
6519 | return _resultobj; | |
6520 | } | |
6521 | ||
b7e72427 RD |
6522 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6523 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject * _resultobj; | |
6525 | wxWindow * _result; | |
6526 | wxScrolledWindow * _arg0; | |
6527 | PyObject * _argo0 = 0; | |
6528 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6529 | |
6530 | self = self; | |
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6532 | return NULL; | |
6533 | if (_argo0) { | |
6534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6537 | return NULL; | |
6538 | } | |
6539 | } | |
6540 | { | |
474c48f9 | 6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6542 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 6543 | |
474c48f9 | 6544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6545 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6546 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6547 | return _resultobj; |
6548 | } | |
6549 | ||
8ab979d7 | 6550 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6551 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6552 | PyObject * _resultobj; |
6553 | wxScrolledWindow * _arg0; | |
6554 | int * _arg1; | |
6555 | int temp; | |
6556 | int * _arg2; | |
6557 | int temp0; | |
1d99702e | 6558 | PyObject * _argo0 = 0; |
efc5f224 | 6559 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6560 | |
6561 | self = self; | |
6562 | { | |
6563 | _arg1 = &temp; | |
6564 | } | |
6565 | { | |
6566 | _arg2 = &temp0; | |
6567 | } | |
efc5f224 | 6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6569 | return NULL; |
1d99702e RD |
6570 | if (_argo0) { |
6571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6574 | return NULL; | |
6575 | } | |
6576 | } | |
cf694132 | 6577 | { |
474c48f9 | 6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6579 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
cf694132 | 6580 | |
474c48f9 | 6581 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6582 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6583 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6584 | _resultobj = Py_None; |
6585 | { | |
6586 | PyObject *o; | |
6587 | o = PyInt_FromLong((long) (*_arg1)); | |
6588 | _resultobj = t_output_helper(_resultobj, o); | |
6589 | } | |
6590 | { | |
6591 | PyObject *o; | |
6592 | o = PyInt_FromLong((long) (*_arg2)); | |
6593 | _resultobj = t_output_helper(_resultobj, o); | |
6594 | } | |
6595 | return _resultobj; | |
6596 | } | |
6597 | ||
6598 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6599 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6600 | PyObject * _resultobj; |
6601 | bool _result; | |
6602 | wxScrolledWindow * _arg0; | |
1d99702e | 6603 | PyObject * _argo0 = 0; |
efc5f224 | 6604 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6605 | |
6606 | self = self; | |
efc5f224 | 6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6608 | return NULL; |
1d99702e RD |
6609 | if (_argo0) { |
6610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6613 | return NULL; | |
6614 | } | |
6615 | } | |
cf694132 | 6616 | { |
474c48f9 | 6617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6618 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 6619 | |
474c48f9 | 6620 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6622 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6623 | return _resultobj; |
6624 | } | |
6625 | ||
6626 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6627 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6628 | PyObject * _resultobj; |
6629 | wxScrolledWindow * _arg0; | |
6630 | wxDC * _arg1; | |
1d99702e RD |
6631 | PyObject * _argo0 = 0; |
6632 | PyObject * _argo1 = 0; | |
efc5f224 | 6633 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6634 | |
6635 | self = self; | |
efc5f224 | 6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6637 | return NULL; |
1d99702e RD |
6638 | if (_argo0) { |
6639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6642 | return NULL; | |
6643 | } | |
6644 | } | |
1d99702e RD |
6645 | if (_argo1) { |
6646 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6647 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6649 | return NULL; | |
6650 | } | |
6651 | } | |
cf694132 | 6652 | { |
474c48f9 | 6653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6654 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 6655 | |
474c48f9 | 6656 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6658 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6659 | _resultobj = Py_None; |
6660 | return _resultobj; | |
6661 | } | |
6662 | ||
6663 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6664 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6665 | PyObject * _resultobj; |
6666 | wxScrolledWindow * _arg0; | |
6667 | int _arg1; | |
6668 | int _arg2; | |
1d99702e | 6669 | PyObject * _argo0 = 0; |
efc5f224 | 6670 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6671 | |
6672 | self = self; | |
efc5f224 | 6673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6674 | return NULL; |
1d99702e RD |
6675 | if (_argo0) { |
6676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6679 | return NULL; | |
6680 | } | |
6681 | } | |
cf694132 | 6682 | { |
474c48f9 | 6683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6684 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 6685 | |
474c48f9 | 6686 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6687 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6688 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6689 | _resultobj = Py_None; |
6690 | return _resultobj; | |
6691 | } | |
6692 | ||
f6bcfd97 | 6693 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6694 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6695 | PyObject * _resultobj; |
6696 | wxScrolledWindow * _arg0; | |
6697 | int _arg1; | |
6698 | int _arg2; | |
6699 | int _arg3; | |
6700 | int _arg4; | |
1d99702e RD |
6701 | int _arg5 = (int ) 0; |
6702 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6703 | int _arg7 = (int ) FALSE; |
1d99702e | 6704 | PyObject * _argo0 = 0; |
f6bcfd97 | 6705 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6706 | |
6707 | self = self; | |
f6bcfd97 | 6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6709 | return NULL; |
1d99702e RD |
6710 | if (_argo0) { |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6714 | return NULL; | |
6715 | } | |
6716 | } | |
cf694132 | 6717 | { |
474c48f9 | 6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6719 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 6720 | |
474c48f9 | 6721 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6722 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6723 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6724 | _resultobj = Py_None; |
6725 | return _resultobj; | |
6726 | } | |
6727 | ||
b7e72427 RD |
6728 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6729 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6730 | PyObject * _resultobj; | |
6731 | wxScrolledWindow * _arg0; | |
6732 | int _arg1; | |
6733 | int _arg2; | |
6734 | PyObject * _argo0 = 0; | |
6735 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6736 | ||
6737 | self = self; | |
6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6739 | return NULL; | |
6740 | if (_argo0) { | |
6741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6744 | return NULL; | |
6745 | } | |
6746 | } | |
6747 | { | |
474c48f9 | 6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6749 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 6750 | |
474c48f9 | 6751 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6752 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6753 | } Py_INCREF(Py_None); |
6754 | _resultobj = Py_None; | |
6755 | return _resultobj; | |
6756 | } | |
6757 | ||
eb715945 RD |
6758 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6759 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6760 | PyObject * _resultobj; | |
6761 | wxScrolledWindow * _arg0; | |
6762 | wxWindow * _arg1; | |
6763 | PyObject * _argo0 = 0; | |
6764 | PyObject * _argo1 = 0; | |
6765 | char *_kwnames[] = { "self","window", NULL }; | |
6766 | ||
6767 | self = self; | |
6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6769 | return NULL; | |
6770 | if (_argo0) { | |
6771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6774 | return NULL; | |
6775 | } | |
6776 | } | |
6777 | if (_argo1) { | |
6778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6781 | return NULL; | |
6782 | } | |
6783 | } | |
6784 | { | |
474c48f9 | 6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6786 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 6787 | |
474c48f9 | 6788 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6789 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6790 | } Py_INCREF(Py_None); |
6791 | _resultobj = Py_None; | |
6792 | return _resultobj; | |
6793 | } | |
6794 | ||
4c9993c3 RD |
6795 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6796 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6797 | PyObject * _resultobj; | |
6798 | wxScrolledWindow * _arg0; | |
6799 | int * _arg1; | |
6800 | int temp; | |
6801 | int * _arg2; | |
6802 | int temp0; | |
6803 | PyObject * _argo0 = 0; | |
6804 | char *_kwnames[] = { "self", NULL }; | |
6805 | ||
6806 | self = self; | |
6807 | { | |
6808 | _arg1 = &temp; | |
6809 | } | |
6810 | { | |
6811 | _arg2 = &temp0; | |
6812 | } | |
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6814 | return NULL; | |
6815 | if (_argo0) { | |
6816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6819 | return NULL; | |
6820 | } | |
6821 | } | |
6822 | { | |
474c48f9 | 6823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6824 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 6825 | |
474c48f9 | 6826 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6827 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6828 | } Py_INCREF(Py_None); |
6829 | _resultobj = Py_None; | |
6830 | { | |
6831 | PyObject *o; | |
6832 | o = PyInt_FromLong((long) (*_arg1)); | |
6833 | _resultobj = t_output_helper(_resultobj, o); | |
6834 | } | |
6835 | { | |
6836 | PyObject *o; | |
6837 | o = PyInt_FromLong((long) (*_arg2)); | |
6838 | _resultobj = t_output_helper(_resultobj, o); | |
6839 | } | |
6840 | return _resultobj; | |
6841 | } | |
6842 | ||
9d8bd15f RD |
6843 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6844 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6845 | PyObject * _resultobj; | |
6846 | wxScrolledWindow * _arg0; | |
6847 | int _arg1; | |
6848 | int _arg2; | |
6849 | int * _arg3; | |
6850 | int temp; | |
6851 | int * _arg4; | |
6852 | int temp0; | |
6853 | PyObject * _argo0 = 0; | |
6854 | char *_kwnames[] = { "self","x","y", NULL }; | |
6855 | ||
6856 | self = self; | |
6857 | { | |
6858 | _arg3 = &temp; | |
6859 | } | |
6860 | { | |
6861 | _arg4 = &temp0; | |
6862 | } | |
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6864 | return NULL; | |
6865 | if (_argo0) { | |
6866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6869 | return NULL; | |
6870 | } | |
6871 | } | |
6872 | { | |
474c48f9 | 6873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6874 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 6875 | |
474c48f9 | 6876 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6877 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6878 | } Py_INCREF(Py_None); |
6879 | _resultobj = Py_None; | |
6880 | { | |
6881 | PyObject *o; | |
6882 | o = PyInt_FromLong((long) (*_arg3)); | |
6883 | _resultobj = t_output_helper(_resultobj, o); | |
6884 | } | |
6885 | { | |
6886 | PyObject *o; | |
6887 | o = PyInt_FromLong((long) (*_arg4)); | |
6888 | _resultobj = t_output_helper(_resultobj, o); | |
6889 | } | |
6890 | return _resultobj; | |
6891 | } | |
6892 | ||
6893 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6894 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6895 | PyObject * _resultobj; | |
6896 | wxScrolledWindow * _arg0; | |
6897 | int _arg1; | |
6898 | int _arg2; | |
6899 | int * _arg3; | |
6900 | int temp; | |
6901 | int * _arg4; | |
6902 | int temp0; | |
6903 | PyObject * _argo0 = 0; | |
6904 | char *_kwnames[] = { "self","x","y", NULL }; | |
6905 | ||
6906 | self = self; | |
6907 | { | |
6908 | _arg3 = &temp; | |
6909 | } | |
6910 | { | |
6911 | _arg4 = &temp0; | |
6912 | } | |
6913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6914 | return NULL; | |
6915 | if (_argo0) { | |
6916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6919 | return NULL; | |
6920 | } | |
6921 | } | |
6922 | { | |
474c48f9 | 6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6924 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 6925 | |
474c48f9 | 6926 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6927 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6928 | } Py_INCREF(Py_None); |
6929 | _resultobj = Py_None; | |
6930 | { | |
6931 | PyObject *o; | |
6932 | o = PyInt_FromLong((long) (*_arg3)); | |
6933 | _resultobj = t_output_helper(_resultobj, o); | |
6934 | } | |
6935 | { | |
6936 | PyObject *o; | |
6937 | o = PyInt_FromLong((long) (*_arg4)); | |
6938 | _resultobj = t_output_helper(_resultobj, o); | |
6939 | } | |
6940 | return _resultobj; | |
6941 | } | |
6942 | ||
7a446686 RD |
6943 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
6944 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6945 | PyObject * _resultobj; | |
6946 | wxScrolledWindow * _arg0; | |
6947 | double _arg1; | |
6948 | double _arg2; | |
6949 | PyObject * _argo0 = 0; | |
6950 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6951 | ||
6952 | self = self; | |
6953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6954 | return NULL; | |
6955 | if (_argo0) { | |
6956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6959 | return NULL; | |
6960 | } | |
6961 | } | |
6962 | { | |
474c48f9 | 6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6964 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
7a446686 | 6965 | |
474c48f9 | 6966 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6967 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6968 | } Py_INCREF(Py_None); |
6969 | _resultobj = Py_None; | |
6970 | return _resultobj; | |
6971 | } | |
6972 | ||
6973 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6974 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6975 | PyObject * _resultobj; | |
6976 | double _result; | |
6977 | wxScrolledWindow * _arg0; | |
6978 | PyObject * _argo0 = 0; | |
6979 | char *_kwnames[] = { "self", NULL }; | |
6980 | ||
6981 | self = self; | |
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6983 | return NULL; | |
6984 | if (_argo0) { | |
6985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6988 | return NULL; | |
6989 | } | |
6990 | } | |
6991 | { | |
474c48f9 | 6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6993 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7a446686 | 6994 | |
474c48f9 | 6995 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6996 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
6997 | } _resultobj = Py_BuildValue("d",_result); |
6998 | return _resultobj; | |
6999 | } | |
7000 | ||
7001 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7002 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7003 | PyObject * _resultobj; | |
7004 | double _result; | |
7005 | wxScrolledWindow * _arg0; | |
7006 | PyObject * _argo0 = 0; | |
7007 | char *_kwnames[] = { "self", NULL }; | |
7008 | ||
7009 | self = self; | |
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7011 | return NULL; | |
7012 | if (_argo0) { | |
7013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
7019 | { | |
474c48f9 | 7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7021 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); |
7a446686 | 7022 | |
474c48f9 | 7023 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7024 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7025 | } _resultobj = Py_BuildValue("d",_result); |
7026 | return _resultobj; | |
7027 | } | |
7028 | ||
7029 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7030 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7031 | PyObject * _resultobj; | |
7032 | wxScrolledWindow * _arg0; | |
7033 | PyObject * _argo0 = 0; | |
7034 | char *_kwnames[] = { "self", NULL }; | |
7035 | ||
7036 | self = self; | |
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7038 | return NULL; | |
7039 | if (_argo0) { | |
7040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7043 | return NULL; | |
7044 | } | |
7045 | } | |
7046 | { | |
474c48f9 | 7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7048 | wxScrolledWindow_AdjustScrollbars(_arg0); |
7a446686 | 7049 | |
474c48f9 | 7050 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7051 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7052 | } Py_INCREF(Py_None); |
7053 | _resultobj = Py_None; | |
7054 | return _resultobj; | |
7055 | } | |
7056 | ||
49df1f52 RD |
7057 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) |
7058 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject * _resultobj; | |
7060 | bool _result; | |
7061 | wxScrolledWindow * _arg0; | |
7062 | PyObject * _argo0 = 0; | |
7063 | char *_kwnames[] = { "self", NULL }; | |
7064 | ||
7065 | self = self; | |
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7067 | return NULL; | |
7068 | if (_argo0) { | |
7069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7072 | return NULL; | |
7073 | } | |
7074 | } | |
7075 | { | |
7076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7077 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7078 | ||
7079 | wxPyEndAllowThreads(__tstate); | |
7080 | if (PyErr_Occurred()) return NULL; | |
7081 | } _resultobj = Py_BuildValue("i",_result); | |
7082 | return _resultobj; | |
7083 | } | |
7084 | ||
8ab979d7 RD |
7085 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7086 | wxMenu *src; | |
7087 | wxEvtHandler *dest; | |
7088 | src = (wxMenu *) ptr; | |
7089 | dest = (wxEvtHandler *) src; | |
7090 | return (void *) dest; | |
7091 | } | |
7092 | ||
9df61a29 RD |
7093 | static void *SwigwxMenuTowxObject(void *ptr) { |
7094 | wxMenu *src; | |
7095 | wxObject *dest; | |
7096 | src = (wxMenu *) ptr; | |
7097 | dest = (wxObject *) src; | |
7098 | return (void *) dest; | |
7099 | } | |
7100 | ||
8bf5d46e | 7101 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
efc5f224 | 7102 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7103 | PyObject * _resultobj; |
7104 | wxMenu * _result; | |
8cb49012 | 7105 | wxString * _arg0 = (wxString *) &wxEmptyString; |
1d99702e | 7106 | long _arg1 = (long ) 0; |
8ab979d7 | 7107 | PyObject * _obj0 = 0; |
efc5f224 | 7108 | char *_kwnames[] = { "title","style", NULL }; |
8ab979d7 RD |
7109 | char _ptemp[128]; |
7110 | ||
7111 | self = self; | |
efc5f224 | 7112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
8ab979d7 RD |
7113 | return NULL; |
7114 | if (_obj0) | |
7115 | { | |
c8bc7bb8 RD |
7116 | _arg0 = wxString_in_helper(_obj0); |
7117 | if (_arg0 == NULL) | |
2cd2fac8 | 7118 | return NULL; |
8ab979d7 | 7119 | } |
cf694132 | 7120 | { |
474c48f9 | 7121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7122 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
cf694132 | 7123 | |
474c48f9 | 7124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7125 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7126 | } if (_result) { |
7127 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7128 | _resultobj = Py_BuildValue("s",_ptemp); | |
7129 | } else { | |
7130 | Py_INCREF(Py_None); | |
7131 | _resultobj = Py_None; | |
7132 | } | |
8ab979d7 RD |
7133 | { |
7134 | if (_obj0) | |
7135 | delete _arg0; | |
7136 | } | |
7137 | return _resultobj; | |
7138 | } | |
7139 | ||
7140 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7141 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7142 | PyObject * _resultobj; |
7143 | wxMenu * _arg0; | |
7144 | int _arg1; | |
7145 | wxString * _arg2; | |
8cb49012 | 7146 | wxString * _arg3 = (wxString *) &wxEmptyString; |
9e689c06 | 7147 | int _arg4 = (int ) FALSE; |
1d99702e | 7148 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7149 | PyObject * _obj2 = 0; |
7150 | PyObject * _obj3 = 0; | |
efc5f224 | 7151 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
8ab979d7 RD |
7152 | |
7153 | self = self; | |
9e689c06 | 7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
8ab979d7 | 7155 | return NULL; |
1d99702e RD |
7156 | if (_argo0) { |
7157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
7160 | return NULL; | |
7161 | } | |
7162 | } | |
7163 | { | |
c8bc7bb8 RD |
7164 | _arg2 = wxString_in_helper(_obj2); |
7165 | if (_arg2 == NULL) | |
8ab979d7 | 7166 | return NULL; |
8ab979d7 RD |
7167 | } |
7168 | if (_obj3) | |
7169 | { | |
c8bc7bb8 RD |
7170 | _arg3 = wxString_in_helper(_obj3); |
7171 | if (_arg3 == NULL) | |
8ab979d7 | 7172 | return NULL; |
8ab979d7 | 7173 | } |
cf694132 | 7174 | { |
474c48f9 | 7175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7176 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
cf694132 | 7177 | |
474c48f9 | 7178 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7180 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7181 | _resultobj = Py_None; |
7182 | { | |
7183 | if (_obj2) | |
7184 | delete _arg2; | |
7185 | } | |
7186 | { | |
7187 | if (_obj3) | |
7188 | delete _arg3; | |
7189 | } | |
7190 | return _resultobj; | |
7191 | } | |
7192 | ||
7193 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 7194 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7195 | PyObject * _resultobj; |
7196 | wxMenu * _arg0; | |
7197 | int _arg1; | |
7198 | wxString * _arg2; | |
7199 | wxMenu * _arg3; | |
8cb49012 | 7200 | wxString * _arg4 = (wxString *) &wxEmptyString; |
1d99702e | 7201 | PyObject * _argo0 = 0; |
8ab979d7 | 7202 | PyObject * _obj2 = 0; |
1d99702e | 7203 | PyObject * _argo3 = 0; |
8ab979d7 | 7204 | PyObject * _obj4 = 0; |
efc5f224 | 7205 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
8ab979d7 RD |
7206 | |
7207 | self = self; | |
efc5f224 | 7208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 7209 | return NULL; |
1d99702e RD |
7210 | if (_argo0) { |
7211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7214 | return NULL; | |
7215 | } | |
7216 | } | |
7217 | { | |
c8bc7bb8 RD |
7218 | _arg2 = wxString_in_helper(_obj2); |
7219 | if (_arg2 == NULL) | |
2cd2fac8 | 7220 | return NULL; |
8ab979d7 | 7221 | } |
1d99702e RD |
7222 | if (_argo3) { |
7223 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7224 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8ab979d7 RD |
7225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
7226 | return NULL; | |
7227 | } | |
7228 | } | |
7229 | if (_obj4) | |
7230 | { | |
c8bc7bb8 RD |
7231 | _arg4 = wxString_in_helper(_obj4); |
7232 | if (_arg4 == NULL) | |
2cd2fac8 | 7233 | return NULL; |
8ab979d7 | 7234 | } |
cf694132 | 7235 | { |
474c48f9 | 7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7237 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 7238 | |
474c48f9 | 7239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7240 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7241 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7242 | _resultobj = Py_None; |
7243 | { | |
7244 | if (_obj2) | |
7245 | delete _arg2; | |
7246 | } | |
7247 | { | |
7248 | if (_obj4) | |
7249 | delete _arg4; | |
7250 | } | |
7251 | return _resultobj; | |
7252 | } | |
7253 | ||
af309447 | 7254 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
efc5f224 | 7255 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
7256 | PyObject * _resultobj; |
7257 | wxMenu * _arg0; | |
7258 | wxMenuItem * _arg1; | |
1d99702e RD |
7259 | PyObject * _argo0 = 0; |
7260 | PyObject * _argo1 = 0; | |
efc5f224 | 7261 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
7262 | |
7263 | self = self; | |
efc5f224 | 7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 7265 | return NULL; |
1d99702e RD |
7266 | if (_argo0) { |
7267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
af309447 RD |
7269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
7270 | return NULL; | |
7271 | } | |
7272 | } | |
1d99702e RD |
7273 | if (_argo1) { |
7274 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7275 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
af309447 RD |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
7277 | return NULL; | |
7278 | } | |
7279 | } | |
cf694132 | 7280 | { |
474c48f9 | 7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7282 | wxMenu_AppendItem(_arg0,_arg1); |
cf694132 | 7283 | |
474c48f9 | 7284 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7285 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7286 | } Py_INCREF(Py_None); |
af309447 RD |
7287 | _resultobj = Py_None; |
7288 | return _resultobj; | |
7289 | } | |
7290 | ||
8ab979d7 | 7291 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
efc5f224 | 7292 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7293 | PyObject * _resultobj; |
7294 | wxMenu * _arg0; | |
1d99702e | 7295 | PyObject * _argo0 = 0; |
efc5f224 | 7296 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7297 | |
7298 | self = self; | |
efc5f224 | 7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
8ab979d7 | 7300 | return NULL; |
1d99702e RD |
7301 | if (_argo0) { |
7302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
7305 | return NULL; | |
7306 | } | |
7307 | } | |
cf694132 | 7308 | { |
474c48f9 | 7309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7310 | wxMenu_AppendSeparator(_arg0); |
cf694132 | 7311 | |
474c48f9 | 7312 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7313 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7314 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7315 | _resultobj = Py_None; |
7316 | return _resultobj; | |
7317 | } | |
7318 | ||
7319 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 7320 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7321 | PyObject * _resultobj; |
7322 | wxMenu * _arg0; | |
1d99702e | 7323 | PyObject * _argo0 = 0; |
efc5f224 | 7324 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7325 | |
7326 | self = self; | |
efc5f224 | 7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 7328 | return NULL; |
1d99702e RD |
7329 | if (_argo0) { |
7330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
7333 | return NULL; | |
7334 | } | |
7335 | } | |
cf694132 | 7336 | { |
474c48f9 | 7337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7338 | wxMenu_Break(_arg0); |
cf694132 | 7339 | |
474c48f9 | 7340 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7341 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7342 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7343 | _resultobj = Py_None; |
7344 | return _resultobj; | |
7345 | } | |
7346 | ||
7347 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 7348 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7349 | PyObject * _resultobj; |
7350 | wxMenu * _arg0; | |
7351 | int _arg1; | |
7352 | bool _arg2; | |
1d99702e | 7353 | PyObject * _argo0 = 0; |
8ab979d7 | 7354 | int tempbool2; |
efc5f224 | 7355 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
7356 | |
7357 | self = self; | |
efc5f224 | 7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7359 | return NULL; |
1d99702e RD |
7360 | if (_argo0) { |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7368 | { |
474c48f9 | 7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7370 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 7371 | |
474c48f9 | 7372 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7373 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7374 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7375 | _resultobj = Py_None; |
7376 | return _resultobj; | |
7377 | } | |
7378 | ||
b1462dfa RD |
7379 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
7380 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7381 | PyObject * _resultobj; | |
7382 | bool _result; | |
7383 | wxMenu * _arg0; | |
7384 | int _arg1; | |
7385 | PyObject * _argo0 = 0; | |
7386 | char *_kwnames[] = { "self","id", NULL }; | |
7387 | ||
7388 | self = self; | |
7389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7390 | return NULL; | |
7391 | if (_argo0) { | |
7392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7395 | return NULL; | |
7396 | } | |
7397 | } | |
7398 | { | |
474c48f9 | 7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7400 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 7401 | |
474c48f9 | 7402 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7403 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7404 | } _resultobj = Py_BuildValue("i",_result); |
7405 | return _resultobj; | |
7406 | } | |
7407 | ||
8ab979d7 | 7408 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 7409 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7410 | PyObject * _resultobj; |
7411 | wxMenu * _arg0; | |
7412 | int _arg1; | |
7413 | bool _arg2; | |
1d99702e | 7414 | PyObject * _argo0 = 0; |
8ab979d7 | 7415 | int tempbool2; |
efc5f224 | 7416 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
7417 | |
7418 | self = self; | |
efc5f224 | 7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 7420 | return NULL; |
1d99702e RD |
7421 | if (_argo0) { |
7422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
7425 | return NULL; | |
7426 | } | |
7427 | } | |
7428 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7429 | { |
474c48f9 | 7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7431 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 7432 | |
474c48f9 | 7433 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7435 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7436 | _resultobj = Py_None; |
7437 | return _resultobj; | |
7438 | } | |
7439 | ||
b1462dfa RD |
7440 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
7441 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7442 | PyObject * _resultobj; | |
7443 | bool _result; | |
7444 | wxMenu * _arg0; | |
7445 | int _arg1; | |
7446 | PyObject * _argo0 = 0; | |
7447 | char *_kwnames[] = { "self","id", NULL }; | |
7448 | ||
7449 | self = self; | |
7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7451 | return NULL; | |
7452 | if (_argo0) { | |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7456 | return NULL; | |
7457 | } | |
7458 | } | |
7459 | { | |
474c48f9 | 7460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7461 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 7462 | |
474c48f9 | 7463 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7464 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7465 | } _resultobj = Py_BuildValue("i",_result); |
7466 | return _resultobj; | |
7467 | } | |
7468 | ||
8ab979d7 | 7469 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 7470 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7471 | PyObject * _resultobj; |
7472 | int _result; | |
7473 | wxMenu * _arg0; | |
7474 | wxString * _arg1; | |
1d99702e | 7475 | PyObject * _argo0 = 0; |
8ab979d7 | 7476 | PyObject * _obj1 = 0; |
efc5f224 | 7477 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
7478 | |
7479 | self = self; | |
efc5f224 | 7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7481 | return NULL; |
1d99702e RD |
7482 | if (_argo0) { |
7483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
7486 | return NULL; | |
7487 | } | |
7488 | } | |
7489 | { | |
c8bc7bb8 RD |
7490 | _arg1 = wxString_in_helper(_obj1); |
7491 | if (_arg1 == NULL) | |
2cd2fac8 | 7492 | return NULL; |
8ab979d7 | 7493 | } |
cf694132 | 7494 | { |
474c48f9 | 7495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7496 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 7497 | |
474c48f9 | 7498 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7499 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7500 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7501 | { |
7502 | if (_obj1) | |
7503 | delete _arg1; | |
7504 | } | |
7505 | return _resultobj; | |
7506 | } | |
7507 | ||
b1462dfa RD |
7508 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
7509 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject * _resultobj; | |
7511 | wxMenuItem * _result; | |
7512 | wxMenu * _arg0; | |
7513 | int _arg1; | |
7514 | PyObject * _argo0 = 0; | |
7515 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
7516 | |
7517 | self = self; | |
7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7519 | return NULL; | |
7520 | if (_argo0) { | |
7521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7524 | return NULL; | |
7525 | } | |
7526 | } | |
7527 | { | |
474c48f9 | 7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7529 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 7530 | |
474c48f9 | 7531 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7532 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7533 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
7534 | return _resultobj; |
7535 | } | |
7536 | ||
8ab979d7 | 7537 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 7538 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7539 | PyObject * _resultobj; |
7540 | wxString * _result; | |
7541 | wxMenu * _arg0; | |
1d99702e | 7542 | PyObject * _argo0 = 0; |
efc5f224 | 7543 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7544 | |
7545 | self = self; | |
efc5f224 | 7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 7547 | return NULL; |
1d99702e RD |
7548 | if (_argo0) { |
7549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
7552 | return NULL; | |
7553 | } | |
7554 | } | |
8ab979d7 | 7555 | { |
474c48f9 | 7556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7557 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 7558 | |
474c48f9 | 7559 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7560 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7561 | }{ |
c8bc7bb8 RD |
7562 | #if wxUSE_UNICODE |
7563 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7564 | #else | |
eec92d76 | 7565 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7566 | #endif |
8ab979d7 RD |
7567 | } |
7568 | { | |
7569 | delete _result; | |
7570 | } | |
7571 | return _resultobj; | |
7572 | } | |
7573 | ||
7574 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 7575 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7576 | PyObject * _resultobj; |
7577 | wxMenu * _arg0; | |
7578 | wxString * _arg1; | |
1d99702e | 7579 | PyObject * _argo0 = 0; |
8ab979d7 | 7580 | PyObject * _obj1 = 0; |
efc5f224 | 7581 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
7582 | |
7583 | self = self; | |
efc5f224 | 7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7585 | return NULL; |
1d99702e RD |
7586 | if (_argo0) { |
7587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
7590 | return NULL; | |
7591 | } | |
7592 | } | |
7593 | { | |
c8bc7bb8 RD |
7594 | _arg1 = wxString_in_helper(_obj1); |
7595 | if (_arg1 == NULL) | |
2cd2fac8 | 7596 | return NULL; |
8ab979d7 | 7597 | } |
cf694132 | 7598 | { |
474c48f9 | 7599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7600 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 7601 | |
474c48f9 | 7602 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7603 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7604 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7605 | _resultobj = Py_None; |
7606 | { | |
7607 | if (_obj1) | |
7608 | delete _arg1; | |
7609 | } | |
7610 | return _resultobj; | |
7611 | } | |
7612 | ||
b1462dfa RD |
7613 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
7614 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7615 | PyObject * _resultobj; |
b1462dfa | 7616 | wxString * _result; |
8ab979d7 RD |
7617 | wxMenu * _arg0; |
7618 | int _arg1; | |
1d99702e | 7619 | PyObject * _argo0 = 0; |
efc5f224 | 7620 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7621 | |
7622 | self = self; | |
b1462dfa | 7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7624 | return NULL; |
1d99702e RD |
7625 | if (_argo0) { |
7626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7629 | return NULL; |
7630 | } | |
7631 | } | |
cf694132 | 7632 | { |
474c48f9 | 7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7634 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 7635 | |
474c48f9 | 7636 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7637 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7638 | }{ |
c8bc7bb8 RD |
7639 | #if wxUSE_UNICODE |
7640 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7641 | #else | |
eec92d76 | 7642 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7643 | #endif |
b1462dfa RD |
7644 | } |
7645 | { | |
7646 | delete _result; | |
7647 | } | |
8ab979d7 RD |
7648 | return _resultobj; |
7649 | } | |
7650 | ||
b1462dfa RD |
7651 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
7652 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7653 | PyObject * _resultobj; |
8ab979d7 RD |
7654 | wxMenu * _arg0; |
7655 | int _arg1; | |
b1462dfa | 7656 | wxString * _arg2; |
1d99702e | 7657 | PyObject * _argo0 = 0; |
b1462dfa RD |
7658 | PyObject * _obj2 = 0; |
7659 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
7660 | |
7661 | self = self; | |
b1462dfa | 7662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7663 | return NULL; |
1d99702e RD |
7664 | if (_argo0) { |
7665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
7668 | return NULL; |
7669 | } | |
7670 | } | |
b1462dfa | 7671 | { |
c8bc7bb8 RD |
7672 | _arg2 = wxString_in_helper(_obj2); |
7673 | if (_arg2 == NULL) | |
2cd2fac8 | 7674 | return NULL; |
b1462dfa | 7675 | } |
8ab979d7 | 7676 | { |
474c48f9 | 7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7678 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 7679 | |
474c48f9 | 7680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7681 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7682 | } Py_INCREF(Py_None); |
7683 | _resultobj = Py_None; | |
8ab979d7 | 7684 | { |
b1462dfa RD |
7685 | if (_obj2) |
7686 | delete _arg2; | |
8ab979d7 RD |
7687 | } |
7688 | return _resultobj; | |
7689 | } | |
7690 | ||
b1462dfa RD |
7691 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
7692 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7693 | PyObject * _resultobj; |
7694 | wxString * _result; | |
7695 | wxMenu * _arg0; | |
7696 | int _arg1; | |
1d99702e | 7697 | PyObject * _argo0 = 0; |
efc5f224 | 7698 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7699 | |
7700 | self = self; | |
b1462dfa | 7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7702 | return NULL; |
1d99702e RD |
7703 | if (_argo0) { |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
7707 | return NULL; |
7708 | } | |
7709 | } | |
8ab979d7 | 7710 | { |
474c48f9 | 7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7712 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 7713 | |
474c48f9 | 7714 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7715 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7716 | }{ |
c8bc7bb8 RD |
7717 | #if wxUSE_UNICODE |
7718 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7719 | #else | |
eec92d76 | 7720 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7721 | #endif |
8ab979d7 RD |
7722 | } |
7723 | { | |
7724 | delete _result; | |
7725 | } | |
7726 | return _resultobj; | |
7727 | } | |
7728 | ||
7729 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 7730 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7731 | PyObject * _resultobj; |
7732 | wxMenu * _arg0; | |
7733 | int _arg1; | |
7734 | wxString * _arg2; | |
1d99702e | 7735 | PyObject * _argo0 = 0; |
8ab979d7 | 7736 | PyObject * _obj2 = 0; |
efc5f224 | 7737 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
7738 | |
7739 | self = self; | |
efc5f224 | 7740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 7741 | return NULL; |
1d99702e RD |
7742 | if (_argo0) { |
7743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
7745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
7746 | return NULL; | |
7747 | } | |
7748 | } | |
7749 | { | |
c8bc7bb8 RD |
7750 | _arg2 = wxString_in_helper(_obj2); |
7751 | if (_arg2 == NULL) | |
2cd2fac8 | 7752 | return NULL; |
8ab979d7 | 7753 | } |
cf694132 | 7754 | { |
474c48f9 | 7755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7756 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 7757 | |
474c48f9 | 7758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7759 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7760 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7761 | _resultobj = Py_None; |
7762 | { | |
7763 | if (_obj2) | |
7764 | delete _arg2; | |
7765 | } | |
7766 | return _resultobj; | |
7767 | } | |
7768 | ||
b1462dfa RD |
7769 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
7770 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7771 | PyObject * _resultobj; |
8ab979d7 | 7772 | wxMenu * _arg0; |
b1462dfa | 7773 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 7774 | PyObject * _argo0 = 0; |
b1462dfa RD |
7775 | PyObject * _argo1 = 0; |
7776 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
7777 | |
7778 | self = self; | |
b1462dfa | 7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7780 | return NULL; |
1d99702e RD |
7781 | if (_argo0) { |
7782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
7784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
7785 | return NULL; | |
7786 | } | |
7787 | } | |
7788 | if (_argo1) { | |
7789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
7792 | return NULL; |
7793 | } | |
7794 | } | |
cf694132 | 7795 | { |
474c48f9 | 7796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7797 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 7798 | |
474c48f9 | 7799 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7800 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7801 | } Py_INCREF(Py_None); |
7802 | _resultobj = Py_None; | |
8ab979d7 RD |
7803 | return _resultobj; |
7804 | } | |
7805 | ||
b1462dfa RD |
7806 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7807 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7808 | PyObject * _resultobj; |
7809 | bool _result; | |
7810 | wxMenu * _arg0; | |
7811 | int _arg1; | |
1d99702e | 7812 | PyObject * _argo0 = 0; |
efc5f224 | 7813 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
7814 | |
7815 | self = self; | |
b1462dfa | 7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7817 | return NULL; |
1d99702e RD |
7818 | if (_argo0) { |
7819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
7822 | return NULL; |
7823 | } | |
7824 | } | |
cf694132 | 7825 | { |
474c48f9 | 7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7827 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 7828 | |
474c48f9 | 7829 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7830 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7831 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7832 | return _resultobj; |
7833 | } | |
7834 | ||
b1462dfa RD |
7835 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
7836 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7837 | PyObject * _resultobj; |
b1462dfa | 7838 | bool _result; |
8ab979d7 | 7839 | wxMenu * _arg0; |
b1462dfa | 7840 | wxMenuItem * _arg1; |
1d99702e | 7841 | PyObject * _argo0 = 0; |
b1462dfa RD |
7842 | PyObject * _argo1 = 0; |
7843 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7844 | |
7845 | self = self; | |
b1462dfa | 7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7847 | return NULL; |
1d99702e RD |
7848 | if (_argo0) { |
7849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
7852 | return NULL; |
7853 | } | |
7854 | } | |
b1462dfa RD |
7855 | if (_argo1) { |
7856 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7857 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7859 | return NULL; |
b1462dfa | 7860 | } |
8ab979d7 | 7861 | } |
cf694132 | 7862 | { |
474c48f9 | 7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7864 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 7865 | |
474c48f9 | 7866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7867 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7868 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7869 | return _resultobj; |
7870 | } | |
7871 | ||
b1462dfa RD |
7872 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7873 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7874 | PyObject * _resultobj; |
b1462dfa | 7875 | bool _result; |
8bf5d46e | 7876 | wxMenu * _arg0; |
b1462dfa RD |
7877 | size_t _arg1; |
7878 | wxMenuItem * _arg2; | |
1d99702e | 7879 | PyObject * _argo0 = 0; |
b1462dfa RD |
7880 | PyObject * _argo2 = 0; |
7881 | char *_kwnames[] = { "self","pos","item", NULL }; | |
8ab979d7 RD |
7882 | |
7883 | self = self; | |
b1462dfa | 7884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 7885 | return NULL; |
1d99702e RD |
7886 | if (_argo0) { |
7887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
8bf5d46e RD |
7890 | return NULL; |
7891 | } | |
7892 | } | |
b1462dfa RD |
7893 | if (_argo2) { |
7894 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7895 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
7897 | return NULL; |
7898 | } | |
7899 | } | |
cf694132 | 7900 | { |
474c48f9 | 7901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7902 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); |
cf694132 | 7903 | |
474c48f9 | 7904 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7905 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 7906 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7907 | return _resultobj; |
7908 | } | |
7909 | ||
b1462dfa RD |
7910 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7911 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 7912 | PyObject * _resultobj; |
b1462dfa | 7913 | wxMenuItem * _result; |
efc5f224 | 7914 | wxMenu * _arg0; |
b1462dfa | 7915 | int _arg1; |
efc5f224 | 7916 | PyObject * _argo0 = 0; |
b1462dfa | 7917 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
7918 | |
7919 | self = self; | |
b1462dfa | 7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
7921 | return NULL; |
7922 | if (_argo0) { | |
7923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 7925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
7926 | return NULL; |
7927 | } | |
7928 | } | |
7929 | { | |
474c48f9 | 7930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7931 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 7932 | |
474c48f9 | 7933 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7934 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7935 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
7936 | return _resultobj; |
7937 | } | |
7938 | ||
b1462dfa RD |
7939 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
7940 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7941 | PyObject * _resultobj; |
b1462dfa RD |
7942 | wxMenuItem * _result; |
7943 | wxMenu * _arg0; | |
7944 | wxMenuItem * _arg1; | |
7945 | PyObject * _argo0 = 0; | |
7946 | PyObject * _argo1 = 0; | |
7947 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
7948 | |
7949 | self = self; | |
b1462dfa RD |
7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
7951 | return NULL; | |
7952 | if (_argo0) { | |
7953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7956 | return NULL; | |
7957 | } | |
7958 | } | |
7959 | if (_argo1) { | |
7960 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7961 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 7963 | return NULL; |
b1462dfa RD |
7964 | } |
7965 | } | |
cf694132 | 7966 | { |
474c48f9 | 7967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7968 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 7969 | |
474c48f9 | 7970 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7971 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7972 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
7973 | return _resultobj; |
7974 | } | |
7975 | ||
eb715945 | 7976 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 7977 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7978 | PyObject * _resultobj; |
b1462dfa | 7979 | wxMenu * _arg0; |
1d99702e | 7980 | PyObject * _argo0 = 0; |
b1462dfa | 7981 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7982 | |
7983 | self = self; | |
b1462dfa | 7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 7985 | return NULL; |
1d99702e RD |
7986 | if (_argo0) { |
7987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
7988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
7990 | return NULL; |
7991 | } | |
7992 | } | |
cf694132 | 7993 | { |
474c48f9 | 7994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7995 | wxMenu_Destroy(_arg0); |
cf694132 | 7996 | |
474c48f9 | 7997 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7998 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7999 | } Py_INCREF(Py_None); |
8ab979d7 | 8000 | _resultobj = Py_None; |
8ab979d7 RD |
8001 | return _resultobj; |
8002 | } | |
8003 | ||
b1462dfa RD |
8004 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8005 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8006 | PyObject * _resultobj; |
b1462dfa RD |
8007 | bool _result; |
8008 | wxMenu * _arg0; | |
8ab979d7 | 8009 | int _arg1; |
1d99702e | 8010 | PyObject * _argo0 = 0; |
b1462dfa | 8011 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8012 | |
8013 | self = self; | |
b1462dfa | 8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8015 | return NULL; |
1d99702e RD |
8016 | if (_argo0) { |
8017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
8020 | return NULL; |
8021 | } | |
8022 | } | |
cf694132 | 8023 | { |
474c48f9 | 8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8025 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 8026 | |
474c48f9 | 8027 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8028 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8029 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8030 | return _resultobj; |
8031 | } | |
8032 | ||
b1462dfa RD |
8033 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8034 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8035 | PyObject * _resultobj; |
b1462dfa RD |
8036 | bool _result; |
8037 | wxMenu * _arg0; | |
8038 | wxMenuItem * _arg1; | |
1d99702e | 8039 | PyObject * _argo0 = 0; |
b1462dfa RD |
8040 | PyObject * _argo1 = 0; |
8041 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8042 | |
8043 | self = self; | |
b1462dfa | 8044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8045 | return NULL; |
1d99702e RD |
8046 | if (_argo0) { |
8047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8050 | return NULL; | |
8051 | } | |
8052 | } | |
8053 | if (_argo1) { | |
8054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8057 | return NULL; |
8058 | } | |
8059 | } | |
cf694132 | 8060 | { |
474c48f9 | 8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8062 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 8063 | |
474c48f9 | 8064 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8065 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8066 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8067 | return _resultobj; |
8068 | } | |
8069 | ||
b1462dfa RD |
8070 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
8071 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8072 | PyObject * _resultobj; |
b1462dfa RD |
8073 | size_t _result; |
8074 | wxMenu * _arg0; | |
1d99702e | 8075 | PyObject * _argo0 = 0; |
b1462dfa | 8076 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8077 | |
8078 | self = self; | |
b1462dfa | 8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8080 | return NULL; |
1d99702e RD |
8081 | if (_argo0) { |
8082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8085 | return NULL; |
8086 | } | |
8087 | } | |
cf694132 | 8088 | { |
474c48f9 | 8089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8090 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 8091 | |
474c48f9 | 8092 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8093 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8094 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8095 | return _resultobj; |
8096 | } | |
8097 | ||
b1462dfa RD |
8098 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8099 | wxMenuItemList& list = self->GetMenuItems(); | |
8100 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8101 | } | |
8102 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8103 | PyObject * _resultobj; |
b1462dfa RD |
8104 | PyObject * _result; |
8105 | wxMenu * _arg0; | |
1d99702e | 8106 | PyObject * _argo0 = 0; |
b1462dfa | 8107 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8108 | |
8109 | self = self; | |
b1462dfa | 8110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8111 | return NULL; |
1d99702e RD |
8112 | if (_argo0) { |
8113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8116 | return NULL; |
8117 | } | |
8118 | } | |
cf694132 | 8119 | { |
474c48f9 | 8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8121 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 8122 | |
474c48f9 | 8123 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8124 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8125 | }{ |
8126 | _resultobj = _result; | |
8127 | } | |
8ab979d7 RD |
8128 | return _resultobj; |
8129 | } | |
8130 | ||
b1462dfa RD |
8131 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8132 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8133 | PyObject * _resultobj; |
b1462dfa RD |
8134 | wxMenu * _arg0; |
8135 | wxEvtHandler * _arg1; | |
1d99702e | 8136 | PyObject * _argo0 = 0; |
b1462dfa RD |
8137 | PyObject * _argo1 = 0; |
8138 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8139 | |
8140 | self = self; | |
b1462dfa | 8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8142 | return NULL; |
1d99702e RD |
8143 | if (_argo0) { |
8144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8147 | return NULL; |
8148 | } | |
8149 | } | |
b1462dfa RD |
8150 | if (_argo1) { |
8151 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8152 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8154 | return NULL; |
b1462dfa | 8155 | } |
8ab979d7 | 8156 | } |
cf694132 | 8157 | { |
474c48f9 | 8158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8159 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 8160 | |
474c48f9 | 8161 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8162 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8163 | } Py_INCREF(Py_None); |
8164 | _resultobj = Py_None; | |
8ab979d7 RD |
8165 | return _resultobj; |
8166 | } | |
8167 | ||
b1462dfa RD |
8168 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8169 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8170 | PyObject * _resultobj; |
b1462dfa RD |
8171 | wxEvtHandler * _result; |
8172 | wxMenu * _arg0; | |
1d99702e | 8173 | PyObject * _argo0 = 0; |
b1462dfa | 8174 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8175 | |
8176 | self = self; | |
b1462dfa | 8177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8178 | return NULL; |
1d99702e RD |
8179 | if (_argo0) { |
8180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8183 | return NULL; |
8184 | } | |
8185 | } | |
cf694132 | 8186 | { |
474c48f9 | 8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8188 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 8189 | |
474c48f9 | 8190 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8191 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8192 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8193 | return _resultobj; |
8194 | } | |
8195 | ||
b1462dfa RD |
8196 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8197 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8198 | PyObject * _resultobj; |
b1462dfa RD |
8199 | wxMenu * _arg0; |
8200 | wxWindow * _arg1; | |
2f90df85 | 8201 | PyObject * _argo0 = 0; |
b1462dfa RD |
8202 | PyObject * _argo1 = 0; |
8203 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8204 | |
8205 | self = self; | |
b1462dfa | 8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8207 | return NULL; |
8208 | if (_argo0) { | |
8209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8212 | return NULL; |
8213 | } | |
8214 | } | |
b1462dfa RD |
8215 | if (_argo1) { |
8216 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8217 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 8219 | return NULL; |
b1462dfa | 8220 | } |
2f90df85 | 8221 | } |
2f90df85 | 8222 | { |
474c48f9 | 8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8224 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 8225 | |
474c48f9 | 8226 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8227 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
8228 | } Py_INCREF(Py_None); |
8229 | _resultobj = Py_None; | |
2f90df85 RD |
8230 | return _resultobj; |
8231 | } | |
8232 | ||
b1462dfa RD |
8233 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
8234 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8235 | PyObject * _resultobj; |
b1462dfa RD |
8236 | wxWindow * _result; |
8237 | wxMenu * _arg0; | |
1d99702e | 8238 | PyObject * _argo0 = 0; |
b1462dfa | 8239 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8240 | |
8241 | self = self; | |
b1462dfa | 8242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 8243 | return NULL; |
1d99702e RD |
8244 | if (_argo0) { |
8245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
8248 | return NULL; |
8249 | } | |
8250 | } | |
cf694132 | 8251 | { |
474c48f9 | 8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8253 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 8254 | |
474c48f9 | 8255 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8256 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8257 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8258 | return _resultobj; |
8259 | } | |
8260 | ||
b1462dfa RD |
8261 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
8262 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8263 | PyObject * _resultobj; |
b1462dfa RD |
8264 | long _result; |
8265 | wxMenu * _arg0; | |
1d99702e | 8266 | PyObject * _argo0 = 0; |
b1462dfa | 8267 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8268 | |
8269 | self = self; | |
b1462dfa | 8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 8271 | return NULL; |
1d99702e RD |
8272 | if (_argo0) { |
8273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
8276 | return NULL; |
8277 | } | |
8278 | } | |
8ab979d7 | 8279 | { |
474c48f9 | 8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8281 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 8282 | |
474c48f9 | 8283 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8284 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8285 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8286 | return _resultobj; |
8287 | } | |
8288 | ||
b1462dfa RD |
8289 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
8290 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8291 | PyObject * _resultobj; |
b1462dfa RD |
8292 | bool _result; |
8293 | wxMenu * _arg0; | |
1d99702e | 8294 | PyObject * _argo0 = 0; |
b1462dfa | 8295 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8296 | |
8297 | self = self; | |
b1462dfa | 8298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 8299 | return NULL; |
1d99702e RD |
8300 | if (_argo0) { |
8301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
8304 | return NULL; |
8305 | } | |
8306 | } | |
8ab979d7 | 8307 | { |
474c48f9 | 8308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8309 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 8310 | |
474c48f9 | 8311 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8312 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8313 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8314 | return _resultobj; |
8315 | } | |
8316 | ||
b1462dfa RD |
8317 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
8318 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8319 | PyObject * _resultobj; |
b1462dfa RD |
8320 | wxMenu * _arg0; |
8321 | wxMenu * _arg1; | |
1d99702e | 8322 | PyObject * _argo0 = 0; |
b1462dfa RD |
8323 | PyObject * _argo1 = 0; |
8324 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
8325 | |
8326 | self = self; | |
b1462dfa | 8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8328 | return NULL; |
1d99702e RD |
8329 | if (_argo0) { |
8330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8333 | return NULL; |
8334 | } | |
8335 | } | |
b1462dfa RD |
8336 | if (_argo1) { |
8337 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8338 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 8340 | return NULL; |
b1462dfa | 8341 | } |
8ab979d7 | 8342 | } |
cf694132 | 8343 | { |
474c48f9 | 8344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8345 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 8346 | |
474c48f9 | 8347 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8348 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8349 | } Py_INCREF(Py_None); |
8ab979d7 | 8350 | _resultobj = Py_None; |
8ab979d7 RD |
8351 | return _resultobj; |
8352 | } | |
8353 | ||
b1462dfa RD |
8354 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
8355 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8356 | PyObject * _resultobj; |
b1462dfa RD |
8357 | wxMenu * _result; |
8358 | wxMenu * _arg0; | |
1d99702e | 8359 | PyObject * _argo0 = 0; |
b1462dfa | 8360 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8361 | |
8362 | self = self; | |
b1462dfa | 8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 8364 | return NULL; |
1d99702e RD |
8365 | if (_argo0) { |
8366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
8369 | return NULL; |
8370 | } | |
8371 | } | |
8ab979d7 | 8372 | { |
474c48f9 | 8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8374 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 8375 | |
474c48f9 | 8376 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8377 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8378 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8379 | return _resultobj; |
8ab979d7 | 8380 | } |
b1462dfa RD |
8381 | |
8382 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8383 | wxMenuBar *src; | |
8384 | wxWindow *dest; | |
8385 | src = (wxMenuBar *) ptr; | |
8386 | dest = (wxWindow *) src; | |
8387 | return (void *) dest; | |
8388 | } | |
8389 | ||
8390 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8391 | wxMenuBar *src; | |
8392 | wxEvtHandler *dest; | |
8393 | src = (wxMenuBar *) ptr; | |
8394 | dest = (wxEvtHandler *) src; | |
8395 | return (void *) dest; | |
8ab979d7 | 8396 | } |
b1462dfa | 8397 | |
9df61a29 RD |
8398 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
8399 | wxMenuBar *src; | |
8400 | wxObject *dest; | |
8401 | src = (wxMenuBar *) ptr; | |
8402 | dest = (wxObject *) src; | |
8403 | return (void *) dest; | |
8404 | } | |
8405 | ||
c368d904 | 8406 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
8407 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8408 | PyObject * _resultobj; | |
8409 | wxMenuBar * _result; | |
c368d904 RD |
8410 | long _arg0 = (long ) 0; |
8411 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
8412 | char _ptemp[128]; |
8413 | ||
8414 | self = self; | |
c368d904 | 8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
8416 | return NULL; |
8417 | { | |
474c48f9 | 8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8419 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 8420 | |
474c48f9 | 8421 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8422 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8423 | } if (_result) { |
8424 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8425 | _resultobj = Py_BuildValue("s",_ptemp); | |
8426 | } else { | |
8427 | Py_INCREF(Py_None); | |
8428 | _resultobj = Py_None; | |
8429 | } | |
8ab979d7 RD |
8430 | return _resultobj; |
8431 | } | |
8432 | ||
b1462dfa RD |
8433 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
8434 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8435 | PyObject * _resultobj; |
b1462dfa | 8436 | bool _result; |
8ab979d7 | 8437 | wxMenuBar * _arg0; |
b1462dfa | 8438 | wxMenu * _arg1; |
8ab979d7 | 8439 | wxString * _arg2; |
1d99702e | 8440 | PyObject * _argo0 = 0; |
b1462dfa | 8441 | PyObject * _argo1 = 0; |
8ab979d7 | 8442 | PyObject * _obj2 = 0; |
b1462dfa | 8443 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
8444 | |
8445 | self = self; | |
b1462dfa | 8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8447 | return NULL; |
1d99702e RD |
8448 | if (_argo0) { |
8449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
8452 | return NULL; | |
8453 | } | |
8454 | } | |
8455 | if (_argo1) { | |
8456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
8459 | return NULL; |
8460 | } | |
8461 | } | |
8462 | { | |
c8bc7bb8 RD |
8463 | _arg2 = wxString_in_helper(_obj2); |
8464 | if (_arg2 == NULL) | |
2cd2fac8 | 8465 | return NULL; |
8ab979d7 | 8466 | } |
cf694132 | 8467 | { |
474c48f9 | 8468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8469 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 8470 | |
474c48f9 | 8471 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8472 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8473 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8474 | { |
8475 | if (_obj2) | |
8476 | delete _arg2; | |
8477 | } | |
8478 | return _resultobj; | |
8479 | } | |
8480 | ||
b1462dfa RD |
8481 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
8482 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8483 | PyObject * _resultobj; |
b1462dfa | 8484 | bool _result; |
8ab979d7 | 8485 | wxMenuBar * _arg0; |
b1462dfa RD |
8486 | size_t _arg1; |
8487 | wxMenu * _arg2; | |
8488 | wxString * _arg3; | |
1d99702e | 8489 | PyObject * _argo0 = 0; |
b1462dfa RD |
8490 | PyObject * _argo2 = 0; |
8491 | PyObject * _obj3 = 0; | |
8492 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
8493 | |
8494 | self = self; | |
b1462dfa | 8495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 8496 | return NULL; |
1d99702e RD |
8497 | if (_argo0) { |
8498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
8500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
8501 | return NULL; | |
8502 | } | |
8503 | } | |
8504 | if (_argo2) { | |
8505 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8506 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
8508 | return NULL; |
8509 | } | |
8510 | } | |
b1462dfa | 8511 | { |
c8bc7bb8 RD |
8512 | _arg3 = wxString_in_helper(_obj3); |
8513 | if (_arg3 == NULL) | |
2cd2fac8 | 8514 | return NULL; |
b1462dfa | 8515 | } |
cf694132 | 8516 | { |
474c48f9 | 8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8518 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 8519 | |
474c48f9 | 8520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8521 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8522 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
8523 | { |
8524 | if (_obj3) | |
8525 | delete _arg3; | |
8526 | } | |
8ab979d7 RD |
8527 | return _resultobj; |
8528 | } | |
8529 | ||
b1462dfa RD |
8530 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
8531 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8532 | PyObject * _resultobj; |
b1462dfa | 8533 | size_t _result; |
8ab979d7 | 8534 | wxMenuBar * _arg0; |
1d99702e | 8535 | PyObject * _argo0 = 0; |
b1462dfa | 8536 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8537 | |
8538 | self = self; | |
b1462dfa | 8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 8540 | return NULL; |
1d99702e RD |
8541 | if (_argo0) { |
8542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
8545 | return NULL; |
8546 | } | |
8547 | } | |
cf694132 | 8548 | { |
474c48f9 | 8549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8550 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 8551 | |
474c48f9 | 8552 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8553 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8555 | return _resultobj; |
8556 | } | |
8557 | ||
b1462dfa RD |
8558 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
8559 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 8560 | PyObject * _resultobj; |
b1462dfa | 8561 | wxMenu * _result; |
06c0fba4 | 8562 | wxMenuBar * _arg0; |
b1462dfa | 8563 | size_t _arg1; |
06c0fba4 | 8564 | PyObject * _argo0 = 0; |
b1462dfa | 8565 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
8566 | |
8567 | self = self; | |
b1462dfa | 8568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
8569 | return NULL; |
8570 | if (_argo0) { | |
8571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 8573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
8574 | return NULL; |
8575 | } | |
8576 | } | |
8577 | { | |
474c48f9 | 8578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8579 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 8580 | |
474c48f9 | 8581 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8582 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8583 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
8584 | return _resultobj; |
8585 | } | |
8586 | ||
2abc0a0f RD |
8587 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
8588 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8589 | PyObject * _resultobj; | |
8590 | wxMenu * _result; | |
8591 | wxMenuBar * _arg0; | |
8592 | size_t _arg1; | |
8593 | wxMenu * _arg2; | |
8594 | wxString * _arg3; | |
8595 | PyObject * _argo0 = 0; | |
8596 | PyObject * _argo2 = 0; | |
8597 | PyObject * _obj3 = 0; | |
8598 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
8599 | |
8600 | self = self; | |
8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8602 | return NULL; | |
8603 | if (_argo0) { | |
8604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8607 | return NULL; | |
8608 | } | |
8609 | } | |
8610 | if (_argo2) { | |
8611 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8612 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8614 | return NULL; | |
8615 | } | |
8616 | } | |
8617 | { | |
c8bc7bb8 RD |
8618 | _arg3 = wxString_in_helper(_obj3); |
8619 | if (_arg3 == NULL) | |
2cd2fac8 | 8620 | return NULL; |
2abc0a0f RD |
8621 | } |
8622 | { | |
474c48f9 | 8623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8624 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 8625 | |
474c48f9 | 8626 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8627 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8628 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8629 | { |
8630 | if (_obj3) | |
8631 | delete _arg3; | |
8632 | } | |
8633 | return _resultobj; | |
8634 | } | |
8635 | ||
8636 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8637 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8638 | PyObject * _resultobj; | |
8639 | wxMenu * _result; | |
8640 | wxMenuBar * _arg0; | |
8641 | size_t _arg1; | |
8642 | PyObject * _argo0 = 0; | |
8643 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
8644 | |
8645 | self = self; | |
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8647 | return NULL; | |
8648 | if (_argo0) { | |
8649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8652 | return NULL; | |
8653 | } | |
8654 | } | |
8655 | { | |
474c48f9 | 8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8657 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 8658 | |
474c48f9 | 8659 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8660 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8661 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
8662 | return _resultobj; |
8663 | } | |
8664 | ||
b1462dfa RD |
8665 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
8666 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 8667 | PyObject * _resultobj; |
b1462dfa RD |
8668 | wxMenuBar * _arg0; |
8669 | size_t _arg1; | |
8670 | bool _arg2; | |
8671 | PyObject * _argo0 = 0; | |
8672 | int tempbool2; | |
8673 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8674 | ||
8675 | self = self; | |
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8677 | return NULL; | |
8678 | if (_argo0) { | |
8679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8682 | return NULL; | |
8683 | } | |
8684 | } | |
8685 | _arg2 = (bool ) tempbool2; | |
8686 | { | |
474c48f9 | 8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8688 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 8689 | |
474c48f9 | 8690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8691 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8692 | } Py_INCREF(Py_None); |
8693 | _resultobj = Py_None; | |
8694 | return _resultobj; | |
8695 | } | |
8696 | ||
8697 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8698 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8699 | PyObject * _resultobj; | |
8700 | wxMenuBar * _arg0; | |
8701 | size_t _arg1; | |
8702 | wxString * _arg2; | |
1d99702e | 8703 | PyObject * _argo0 = 0; |
cf694132 | 8704 | PyObject * _obj2 = 0; |
b1462dfa | 8705 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
8706 | |
8707 | self = self; | |
b1462dfa | 8708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 8709 | return NULL; |
1d99702e RD |
8710 | if (_argo0) { |
8711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
8714 | return NULL; |
8715 | } | |
8716 | } | |
cf694132 | 8717 | { |
c8bc7bb8 RD |
8718 | _arg2 = wxString_in_helper(_obj2); |
8719 | if (_arg2 == NULL) | |
2cd2fac8 | 8720 | return NULL; |
cf694132 | 8721 | } |
cf694132 | 8722 | { |
474c48f9 | 8723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8724 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 8725 | |
474c48f9 | 8726 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8727 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8728 | } Py_INCREF(Py_None); |
8729 | _resultobj = Py_None; | |
8730 | { | |
8731 | if (_obj2) | |
8732 | delete _arg2; | |
8733 | } | |
8734 | return _resultobj; | |
8735 | } | |
8736 | ||
8737 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8738 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8739 | PyObject * _resultobj; | |
8740 | wxString * _result; | |
8741 | wxMenuBar * _arg0; | |
8742 | size_t _arg1; | |
8743 | PyObject * _argo0 = 0; | |
8744 | char *_kwnames[] = { "self","pos", NULL }; | |
8745 | ||
8746 | self = self; | |
8747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8748 | return NULL; | |
8749 | if (_argo0) { | |
8750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8753 | return NULL; | |
8754 | } | |
8755 | } | |
8756 | { | |
474c48f9 | 8757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8758 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 8759 | |
474c48f9 | 8760 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8761 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8762 | }{ |
c8bc7bb8 RD |
8763 | #if wxUSE_UNICODE |
8764 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8765 | #else | |
eec92d76 | 8766 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8767 | #endif |
b1462dfa RD |
8768 | } |
8769 | { | |
8770 | delete _result; | |
8771 | } | |
8772 | return _resultobj; | |
8773 | } | |
8774 | ||
10be44ac RD |
8775 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
8776 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8777 | PyObject * _resultobj; | |
8778 | int _result; | |
8779 | wxMenuBar * _arg0; | |
8780 | wxString * _arg1; | |
8781 | PyObject * _argo0 = 0; | |
8782 | PyObject * _obj1 = 0; | |
8783 | char *_kwnames[] = { "self","title", NULL }; | |
8784 | ||
8785 | self = self; | |
8786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8787 | return NULL; | |
8788 | if (_argo0) { | |
8789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8792 | return NULL; | |
8793 | } | |
8794 | } | |
8795 | { | |
c8bc7bb8 RD |
8796 | _arg1 = wxString_in_helper(_obj1); |
8797 | if (_arg1 == NULL) | |
10be44ac | 8798 | return NULL; |
10be44ac RD |
8799 | } |
8800 | { | |
474c48f9 | 8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8802 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
10be44ac | 8803 | |
474c48f9 | 8804 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
8805 | if (PyErr_Occurred()) return NULL; |
8806 | } _resultobj = Py_BuildValue("i",_result); | |
8807 | { | |
8808 | if (_obj1) | |
8809 | delete _arg1; | |
8810 | } | |
8811 | return _resultobj; | |
8812 | } | |
8813 | ||
b1462dfa RD |
8814 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
8815 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8816 | PyObject * _resultobj; | |
8817 | int _result; | |
8818 | wxMenuBar * _arg0; | |
8819 | wxString * _arg1; | |
8820 | wxString * _arg2; | |
8821 | PyObject * _argo0 = 0; | |
8822 | PyObject * _obj1 = 0; | |
8823 | PyObject * _obj2 = 0; | |
8824 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8825 | ||
8826 | self = self; | |
8827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8828 | return NULL; | |
8829 | if (_argo0) { | |
8830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8833 | return NULL; | |
8834 | } | |
8835 | } | |
8836 | { | |
c8bc7bb8 RD |
8837 | _arg1 = wxString_in_helper(_obj1); |
8838 | if (_arg1 == NULL) | |
2cd2fac8 | 8839 | return NULL; |
cf694132 | 8840 | } |
b1462dfa | 8841 | { |
c8bc7bb8 RD |
8842 | _arg2 = wxString_in_helper(_obj2); |
8843 | if (_arg2 == NULL) | |
b1462dfa | 8844 | return NULL; |
b1462dfa RD |
8845 | } |
8846 | { | |
474c48f9 | 8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8848 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 8849 | |
474c48f9 | 8850 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8851 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8852 | } _resultobj = Py_BuildValue("i",_result); |
8853 | { | |
8854 | if (_obj1) | |
8855 | delete _arg1; | |
8856 | } | |
8857 | { | |
8858 | if (_obj2) | |
8859 | delete _arg2; | |
8860 | } | |
8861 | return _resultobj; | |
8862 | } | |
8863 | ||
8864 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8865 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8866 | PyObject * _resultobj; | |
8867 | wxMenuItem * _result; | |
8868 | wxMenuBar * _arg0; | |
8869 | int _arg1; | |
8870 | PyObject * _argo0 = 0; | |
8871 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8872 | |
8873 | self = self; | |
8874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8875 | return NULL; | |
8876 | if (_argo0) { | |
8877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
8880 | return NULL; |
8881 | } | |
8882 | } | |
8883 | { | |
474c48f9 | 8884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8885 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 8886 | |
474c48f9 | 8887 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8888 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8889 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 8890 | return _resultobj; |
cf694132 | 8891 | } |
b1462dfa RD |
8892 | |
8893 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8894 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject * _resultobj; | |
8896 | wxMenuBar * _arg0; | |
8897 | int _arg1; | |
8898 | bool _arg2; | |
8899 | PyObject * _argo0 = 0; | |
8900 | int tempbool2; | |
8901 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8902 | ||
8903 | self = self; | |
8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8905 | return NULL; | |
8906 | if (_argo0) { | |
8907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8910 | return NULL; | |
8911 | } | |
8912 | } | |
8913 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8914 | { |
474c48f9 | 8915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8916 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 8917 | |
474c48f9 | 8918 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8919 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8920 | } Py_INCREF(Py_None); |
8921 | _resultobj = Py_None; | |
8922 | return _resultobj; | |
cf694132 | 8923 | } |
b1462dfa RD |
8924 | |
8925 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8926 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8927 | PyObject * _resultobj; | |
8928 | wxMenuBar * _arg0; | |
8929 | int _arg1; | |
8930 | bool _arg2; | |
8931 | PyObject * _argo0 = 0; | |
8932 | int tempbool2; | |
8933 | char *_kwnames[] = { "self","id","check", NULL }; | |
8934 | ||
8935 | self = self; | |
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8937 | return NULL; | |
8938 | if (_argo0) { | |
8939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8942 | return NULL; | |
8943 | } | |
8944 | } | |
8945 | _arg2 = (bool ) tempbool2; | |
8946 | { | |
474c48f9 | 8947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8948 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 8949 | |
474c48f9 | 8950 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8951 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8952 | } Py_INCREF(Py_None); |
8953 | _resultobj = Py_None; | |
cf694132 RD |
8954 | return _resultobj; |
8955 | } | |
8956 | ||
b1462dfa RD |
8957 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8958 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8959 | PyObject * _resultobj; |
8960 | bool _result; | |
b1462dfa RD |
8961 | wxMenuBar * _arg0; |
8962 | int _arg1; | |
1d99702e | 8963 | PyObject * _argo0 = 0; |
b1462dfa | 8964 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8965 | |
8966 | self = self; | |
b1462dfa | 8967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8968 | return NULL; |
1d99702e RD |
8969 | if (_argo0) { |
8970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
8972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
8973 | return NULL; |
8974 | } | |
8975 | } | |
cf694132 | 8976 | { |
474c48f9 | 8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8978 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 8979 | |
474c48f9 | 8980 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8981 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8982 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8983 | return _resultobj; |
8984 | } | |
8985 | ||
b1462dfa RD |
8986 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8987 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8988 | PyObject * _resultobj; |
8989 | bool _result; | |
b1462dfa RD |
8990 | wxMenuBar * _arg0; |
8991 | int _arg1; | |
1d99702e | 8992 | PyObject * _argo0 = 0; |
b1462dfa | 8993 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8994 | |
8995 | self = self; | |
b1462dfa | 8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8997 | return NULL; |
1d99702e RD |
8998 | if (_argo0) { |
8999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9002 | return NULL; |
9003 | } | |
9004 | } | |
cf694132 | 9005 | { |
474c48f9 | 9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9007 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 9008 | |
474c48f9 | 9009 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9010 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9011 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9012 | return _resultobj; |
9013 | } | |
9014 | ||
b1462dfa RD |
9015 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9016 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9017 | PyObject * _resultobj; |
b1462dfa RD |
9018 | wxMenuBar * _arg0; |
9019 | int _arg1; | |
9020 | wxString * _arg2; | |
1d99702e | 9021 | PyObject * _argo0 = 0; |
b1462dfa RD |
9022 | PyObject * _obj2 = 0; |
9023 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9024 | |
9025 | self = self; | |
b1462dfa | 9026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9027 | return NULL; |
1d99702e RD |
9028 | if (_argo0) { |
9029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9032 | return NULL; |
9033 | } | |
9034 | } | |
b1462dfa | 9035 | { |
c8bc7bb8 RD |
9036 | _arg2 = wxString_in_helper(_obj2); |
9037 | if (_arg2 == NULL) | |
b1462dfa | 9038 | return NULL; |
b1462dfa | 9039 | } |
cf694132 | 9040 | { |
474c48f9 | 9041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9042 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9043 | |
474c48f9 | 9044 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9045 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9046 | } Py_INCREF(Py_None); |
9047 | _resultobj = Py_None; | |
9048 | { | |
9049 | if (_obj2) | |
9050 | delete _arg2; | |
9051 | } | |
8ab979d7 RD |
9052 | return _resultobj; |
9053 | } | |
9054 | ||
b1462dfa RD |
9055 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9056 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9057 | PyObject * _resultobj; |
b1462dfa RD |
9058 | wxString * _result; |
9059 | wxMenuBar * _arg0; | |
9060 | int _arg1; | |
1d99702e | 9061 | PyObject * _argo0 = 0; |
b1462dfa | 9062 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9063 | |
9064 | self = self; | |
b1462dfa | 9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9066 | return NULL; |
1d99702e RD |
9067 | if (_argo0) { |
9068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9071 | return NULL; | |
9072 | } | |
9073 | } | |
9074 | { | |
474c48f9 | 9075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9076 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 9077 | |
474c48f9 | 9078 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9079 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9080 | }{ |
c8bc7bb8 RD |
9081 | #if wxUSE_UNICODE |
9082 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9083 | #else | |
eec92d76 | 9084 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9085 | #endif |
b1462dfa RD |
9086 | } |
9087 | { | |
9088 | delete _result; | |
9089 | } | |
9090 | return _resultobj; | |
9091 | } | |
9092 | ||
9093 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9094 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9095 | PyObject * _resultobj; | |
9096 | wxMenuBar * _arg0; | |
9097 | int _arg1; | |
9098 | wxString * _arg2; | |
9099 | PyObject * _argo0 = 0; | |
9100 | PyObject * _obj2 = 0; | |
9101 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9102 | ||
9103 | self = self; | |
9104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9105 | return NULL; | |
9106 | if (_argo0) { | |
9107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9110 | return NULL; | |
9111 | } | |
9112 | } | |
9113 | { | |
c8bc7bb8 RD |
9114 | _arg2 = wxString_in_helper(_obj2); |
9115 | if (_arg2 == NULL) | |
b1462dfa | 9116 | return NULL; |
b1462dfa RD |
9117 | } |
9118 | { | |
474c48f9 | 9119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9120 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 9121 | |
474c48f9 | 9122 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9123 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9124 | } Py_INCREF(Py_None); |
9125 | _resultobj = Py_None; | |
9126 | { | |
9127 | if (_obj2) | |
9128 | delete _arg2; | |
9129 | } | |
9130 | return _resultobj; | |
9131 | } | |
9132 | ||
9133 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9134 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject * _resultobj; | |
9136 | wxString * _result; | |
9137 | wxMenuBar * _arg0; | |
9138 | int _arg1; | |
9139 | PyObject * _argo0 = 0; | |
9140 | char *_kwnames[] = { "self","id", NULL }; | |
9141 | ||
9142 | self = self; | |
9143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9144 | return NULL; | |
9145 | if (_argo0) { | |
9146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9149 | return NULL; |
9150 | } | |
9151 | } | |
cf694132 | 9152 | { |
474c48f9 | 9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9154 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 9155 | |
474c48f9 | 9156 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9157 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9158 | }{ |
c8bc7bb8 RD |
9159 | #if wxUSE_UNICODE |
9160 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9161 | #else | |
eec92d76 | 9162 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9163 | #endif |
b1462dfa RD |
9164 | } |
9165 | { | |
9166 | delete _result; | |
9167 | } | |
8ab979d7 RD |
9168 | return _resultobj; |
9169 | } | |
9170 | ||
9df61a29 RD |
9171 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9172 | wxMenuItem *src; | |
9173 | wxObject *dest; | |
9174 | src = (wxMenuItem *) ptr; | |
9175 | dest = (wxObject *) src; | |
9176 | return (void *) dest; | |
9177 | } | |
9178 | ||
b1462dfa RD |
9179 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9180 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9181 | PyObject * _resultobj; |
b1462dfa RD |
9182 | wxMenuItem * _result; |
9183 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9184 | int _arg1 = (int ) wxID_SEPARATOR; |
8cb49012 RD |
9185 | wxString * _arg2 = (wxString *) &wxEmptyString; |
9186 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
b1462dfa RD |
9187 | bool _arg4 = (bool ) FALSE; |
9188 | wxMenu * _arg5 = (wxMenu *) NULL; | |
1d99702e | 9189 | PyObject * _argo0 = 0; |
b1462dfa RD |
9190 | PyObject * _obj2 = 0; |
9191 | PyObject * _obj3 = 0; | |
9192 | int tempbool4 = (int) FALSE; | |
9193 | PyObject * _argo5 = 0; | |
9194 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9195 | char _ptemp[128]; | |
8ab979d7 RD |
9196 | |
9197 | self = self; | |
b1462dfa | 9198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) |
8ab979d7 | 9199 | return NULL; |
1d99702e RD |
9200 | if (_argo0) { |
9201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9204 | return NULL; | |
9205 | } | |
9206 | } | |
9207 | if (_obj2) | |
9208 | { | |
c8bc7bb8 RD |
9209 | _arg2 = wxString_in_helper(_obj2); |
9210 | if (_arg2 == NULL) | |
b1462dfa | 9211 | return NULL; |
b1462dfa RD |
9212 | } |
9213 | if (_obj3) | |
9214 | { | |
c8bc7bb8 RD |
9215 | _arg3 = wxString_in_helper(_obj3); |
9216 | if (_arg3 == NULL) | |
b1462dfa | 9217 | return NULL; |
b1462dfa RD |
9218 | } |
9219 | _arg4 = (bool ) tempbool4; | |
9220 | if (_argo5) { | |
9221 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9222 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
9224 | return NULL; |
9225 | } | |
9226 | } | |
cf694132 | 9227 | { |
474c48f9 | 9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9229 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 9230 | |
474c48f9 | 9231 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9232 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9233 | } if (_result) { |
9234 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9235 | _resultobj = Py_BuildValue("s",_ptemp); | |
9236 | } else { | |
9237 | Py_INCREF(Py_None); | |
9238 | _resultobj = Py_None; | |
9239 | } | |
9240 | { | |
9241 | if (_obj2) | |
9242 | delete _arg2; | |
9243 | } | |
9244 | { | |
9245 | if (_obj3) | |
9246 | delete _arg3; | |
9247 | } | |
8ab979d7 RD |
9248 | return _resultobj; |
9249 | } | |
9250 | ||
b1462dfa RD |
9251 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
9252 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9253 | PyObject * _resultobj; |
b1462dfa | 9254 | wxMenu * _result; |
8ab979d7 | 9255 | wxMenuItem * _arg0; |
1d99702e | 9256 | PyObject * _argo0 = 0; |
efc5f224 | 9257 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9258 | |
9259 | self = self; | |
b1462dfa | 9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 9261 | return NULL; |
1d99702e RD |
9262 | if (_argo0) { |
9263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9266 | return NULL; |
9267 | } | |
9268 | } | |
cf694132 | 9269 | { |
474c48f9 | 9270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9271 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 9272 | |
474c48f9 | 9273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9274 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9275 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9276 | return _resultobj; |
9277 | } | |
9278 | ||
2abc0a0f RD |
9279 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
9280 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9281 | PyObject * _resultobj; |
9282 | wxMenuItem * _arg0; | |
2abc0a0f | 9283 | int _arg1; |
1d99702e | 9284 | PyObject * _argo0 = 0; |
2abc0a0f | 9285 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9286 | |
9287 | self = self; | |
2abc0a0f | 9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9289 | return NULL; |
1d99702e RD |
9290 | if (_argo0) { |
9291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 9293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9294 | return NULL; |
9295 | } | |
9296 | } | |
cf694132 | 9297 | { |
474c48f9 | 9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9299 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 9300 | |
474c48f9 | 9301 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9303 | } Py_INCREF(Py_None); |
8ab979d7 | 9304 | _resultobj = Py_None; |
8ab979d7 RD |
9305 | return _resultobj; |
9306 | } | |
9307 | ||
b1462dfa RD |
9308 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
9309 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9310 | PyObject * _resultobj; |
b1462dfa | 9311 | int _result; |
8ab979d7 | 9312 | wxMenuItem * _arg0; |
1d99702e | 9313 | PyObject * _argo0 = 0; |
efc5f224 | 9314 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9315 | |
9316 | self = self; | |
b1462dfa | 9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 9318 | return NULL; |
1d99702e RD |
9319 | if (_argo0) { |
9320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9323 | return NULL; |
9324 | } | |
9325 | } | |
8ab979d7 | 9326 | { |
474c48f9 | 9327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9328 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 9329 | |
474c48f9 | 9330 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9331 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9332 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9333 | return _resultobj; |
9334 | } | |
9335 | ||
b1462dfa RD |
9336 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
9337 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9338 | PyObject * _resultobj; |
b1462dfa | 9339 | bool _result; |
8ab979d7 | 9340 | wxMenuItem * _arg0; |
1d99702e | 9341 | PyObject * _argo0 = 0; |
efc5f224 | 9342 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9343 | |
9344 | self = self; | |
b1462dfa | 9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 9346 | return NULL; |
1d99702e RD |
9347 | if (_argo0) { |
9348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9351 | return NULL; |
9352 | } | |
9353 | } | |
8ab979d7 | 9354 | { |
474c48f9 | 9355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9356 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 9357 | |
474c48f9 | 9358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9359 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9360 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9361 | return _resultobj; |
9362 | } | |
9363 | ||
b1462dfa RD |
9364 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
9365 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9366 | PyObject * _resultobj; |
9367 | wxMenuItem * _arg0; | |
9368 | wxString * _arg1; | |
1d99702e | 9369 | PyObject * _argo0 = 0; |
8ab979d7 | 9370 | PyObject * _obj1 = 0; |
b1462dfa | 9371 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
9372 | |
9373 | self = self; | |
b1462dfa | 9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9375 | return NULL; |
1d99702e RD |
9376 | if (_argo0) { |
9377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9380 | return NULL; |
9381 | } | |
9382 | } | |
9383 | { | |
c8bc7bb8 RD |
9384 | _arg1 = wxString_in_helper(_obj1); |
9385 | if (_arg1 == NULL) | |
2cd2fac8 | 9386 | return NULL; |
8ab979d7 | 9387 | } |
cf694132 | 9388 | { |
474c48f9 | 9389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9390 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 9391 | |
474c48f9 | 9392 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9393 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9394 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9395 | _resultobj = Py_None; |
9396 | { | |
9397 | if (_obj1) | |
9398 | delete _arg1; | |
9399 | } | |
9400 | return _resultobj; | |
9401 | } | |
9402 | ||
b1462dfa RD |
9403 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
9404 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9405 | PyObject * _resultobj; |
b1462dfa | 9406 | wxString * _result; |
8ab979d7 | 9407 | wxMenuItem * _arg0; |
1d99702e | 9408 | PyObject * _argo0 = 0; |
b1462dfa | 9409 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9410 | |
9411 | self = self; | |
b1462dfa | 9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 9413 | return NULL; |
1d99702e RD |
9414 | if (_argo0) { |
9415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
9418 | return NULL; |
9419 | } | |
9420 | } | |
cf694132 | 9421 | { |
474c48f9 | 9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9423 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 9424 | |
474c48f9 | 9425 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9426 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9427 | }{ |
c8bc7bb8 RD |
9428 | #if wxUSE_UNICODE |
9429 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9430 | #else | |
eec92d76 | 9431 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9432 | #endif |
8ab979d7 | 9433 | } |
cf694132 | 9434 | { |
b1462dfa RD |
9435 | delete _result; |
9436 | } | |
cf694132 RD |
9437 | return _resultobj; |
9438 | } | |
9439 | ||
b1462dfa RD |
9440 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
9441 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9442 | PyObject * _resultobj; |
b1462dfa | 9443 | wxString * _result; |
cf694132 | 9444 | wxMenuItem * _arg0; |
1d99702e | 9445 | PyObject * _argo0 = 0; |
efc5f224 | 9446 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9447 | |
9448 | self = self; | |
b1462dfa | 9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 9450 | return NULL; |
1d99702e RD |
9451 | if (_argo0) { |
9452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
9455 | return NULL; |
9456 | } | |
9457 | } | |
9458 | { | |
474c48f9 | 9459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9460 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 9461 | _result = (wxString *) &_result_ref; |
cf694132 | 9462 | |
474c48f9 | 9463 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9464 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9465 | }{ |
c8bc7bb8 RD |
9466 | #if wxUSE_UNICODE |
9467 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9468 | #else | |
eec92d76 | 9469 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9470 | #endif |
cf694132 | 9471 | } |
cf694132 RD |
9472 | return _resultobj; |
9473 | } | |
9474 | ||
b1462dfa RD |
9475 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
9476 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9477 | PyObject * _resultobj; |
cf694132 | 9478 | wxMenuItem * _arg0; |
b1462dfa | 9479 | bool _arg1; |
1d99702e | 9480 | PyObject * _argo0 = 0; |
b1462dfa RD |
9481 | int tempbool1; |
9482 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
9483 | |
9484 | self = self; | |
b1462dfa | 9485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9486 | return NULL; |
1d99702e RD |
9487 | if (_argo0) { |
9488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9491 | return NULL; |
9492 | } | |
9493 | } | |
b1462dfa | 9494 | _arg1 = (bool ) tempbool1; |
cf694132 | 9495 | { |
474c48f9 | 9496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9497 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 9498 | |
474c48f9 | 9499 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9500 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9501 | } Py_INCREF(Py_None); |
9502 | _resultobj = Py_None; | |
cf694132 RD |
9503 | return _resultobj; |
9504 | } | |
9505 | ||
b1462dfa RD |
9506 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
9507 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9508 | PyObject * _resultobj; |
b1462dfa | 9509 | bool _result; |
cf694132 | 9510 | wxMenuItem * _arg0; |
1d99702e | 9511 | PyObject * _argo0 = 0; |
efc5f224 | 9512 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9513 | |
9514 | self = self; | |
b1462dfa | 9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 9516 | return NULL; |
1d99702e RD |
9517 | if (_argo0) { |
9518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
9521 | return NULL; |
9522 | } | |
9523 | } | |
9524 | { | |
474c48f9 | 9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9526 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 9527 | |
474c48f9 | 9528 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9529 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9530 | } _resultobj = Py_BuildValue("i",_result); |
9531 | return _resultobj; | |
9532 | } | |
9533 | ||
b1462dfa RD |
9534 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
9535 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9536 | PyObject * _resultobj; |
b1462dfa | 9537 | bool _result; |
cf694132 | 9538 | wxMenuItem * _arg0; |
1d99702e | 9539 | PyObject * _argo0 = 0; |
efc5f224 | 9540 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9541 | |
9542 | self = self; | |
b1462dfa | 9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 9544 | return NULL; |
1d99702e RD |
9545 | if (_argo0) { |
9546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9549 | return NULL; |
9550 | } | |
9551 | } | |
9552 | { | |
474c48f9 | 9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9554 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 9555 | |
474c48f9 | 9556 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9557 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9558 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9559 | return _resultobj; |
9560 | } | |
9561 | ||
b1462dfa RD |
9562 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
9563 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9564 | PyObject * _resultobj; |
9565 | wxMenuItem * _arg0; | |
b1462dfa | 9566 | wxMenu * _arg1; |
1d99702e RD |
9567 | PyObject * _argo0 = 0; |
9568 | PyObject * _argo1 = 0; | |
b1462dfa | 9569 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
9570 | |
9571 | self = self; | |
b1462dfa | 9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 9573 | return NULL; |
1d99702e RD |
9574 | if (_argo0) { |
9575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9578 | return NULL; |
9579 | } | |
9580 | } | |
1d99702e RD |
9581 | if (_argo1) { |
9582 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9583 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
9584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
9585 | return NULL; |
9586 | } | |
9587 | } | |
9588 | { | |
474c48f9 | 9589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9590 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 9591 | |
474c48f9 | 9592 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9593 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9594 | } Py_INCREF(Py_None); |
9595 | _resultobj = Py_None; | |
9596 | return _resultobj; | |
9597 | } | |
9598 | ||
b1462dfa RD |
9599 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
9600 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9601 | PyObject * _resultobj; |
b1462dfa | 9602 | wxMenu * _result; |
cf694132 | 9603 | wxMenuItem * _arg0; |
1d99702e | 9604 | PyObject * _argo0 = 0; |
b1462dfa | 9605 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9606 | |
9607 | self = self; | |
b1462dfa | 9608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 9609 | return NULL; |
1d99702e RD |
9610 | if (_argo0) { |
9611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
9614 | return NULL; |
9615 | } | |
9616 | } | |
b1462dfa | 9617 | { |
474c48f9 | 9618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9619 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 9620 | |
474c48f9 | 9621 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9622 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9623 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9624 | return _resultobj; |
9625 | } | |
9626 | ||
9627 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9628 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject * _resultobj; | |
9630 | wxMenuItem * _arg0; | |
9631 | bool _arg1 = (bool ) TRUE; | |
9632 | PyObject * _argo0 = 0; | |
9633 | int tempbool1 = (int) TRUE; | |
9634 | char *_kwnames[] = { "self","enable", NULL }; | |
9635 | ||
9636 | self = self; | |
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9638 | return NULL; | |
9639 | if (_argo0) { | |
9640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
9643 | return NULL; |
9644 | } | |
9645 | } | |
b1462dfa | 9646 | _arg1 = (bool ) tempbool1; |
cf694132 | 9647 | { |
474c48f9 | 9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9649 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 9650 | |
474c48f9 | 9651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9652 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9653 | } Py_INCREF(Py_None); |
9654 | _resultobj = Py_None; | |
9655 | return _resultobj; | |
9656 | } | |
9657 | ||
b1462dfa RD |
9658 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
9659 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9660 | PyObject * _resultobj; |
b1462dfa | 9661 | bool _result; |
cf694132 | 9662 | wxMenuItem * _arg0; |
1d99702e | 9663 | PyObject * _argo0 = 0; |
b1462dfa | 9664 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
9665 | |
9666 | self = self; | |
b1462dfa | 9667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 9668 | return NULL; |
1d99702e RD |
9669 | if (_argo0) { |
9670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
9673 | return NULL; |
9674 | } | |
9675 | } | |
9676 | { | |
474c48f9 | 9677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9678 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 9679 | |
474c48f9 | 9680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9681 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9682 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
9683 | return _resultobj; |
9684 | } | |
9685 | ||
b1462dfa RD |
9686 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
9687 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9688 | PyObject * _resultobj; |
9689 | wxMenuItem * _arg0; | |
b1462dfa | 9690 | bool _arg1 = (bool ) TRUE; |
1d99702e | 9691 | PyObject * _argo0 = 0; |
b1462dfa RD |
9692 | int tempbool1 = (int) TRUE; |
9693 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
9694 | |
9695 | self = self; | |
b1462dfa | 9696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 9697 | return NULL; |
1d99702e RD |
9698 | if (_argo0) { |
9699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
9702 | return NULL; |
9703 | } | |
9704 | } | |
b1462dfa | 9705 | _arg1 = (bool ) tempbool1; |
cf694132 | 9706 | { |
474c48f9 | 9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9708 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 9709 | |
474c48f9 | 9710 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9711 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
9712 | } Py_INCREF(Py_None); |
9713 | _resultobj = Py_None; | |
9714 | return _resultobj; | |
9715 | } | |
9716 | ||
b1462dfa RD |
9717 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
9718 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9719 | PyObject * _resultobj; |
b1462dfa | 9720 | bool _result; |
2abc0a0f | 9721 | wxMenuItem * _arg0; |
2abc0a0f | 9722 | PyObject * _argo0 = 0; |
b1462dfa | 9723 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
9724 | |
9725 | self = self; | |
b1462dfa | 9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
9727 | return NULL; |
9728 | if (_argo0) { | |
9729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9732 | return NULL; |
9733 | } | |
9734 | } | |
2abc0a0f | 9735 | { |
474c48f9 | 9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9737 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 9738 | |
474c48f9 | 9739 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9740 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9741 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
9742 | return _resultobj; |
9743 | } | |
9744 | ||
b1462dfa RD |
9745 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
9746 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9747 | PyObject * _resultobj; |
2abc0a0f RD |
9748 | wxMenuItem * _arg0; |
9749 | PyObject * _argo0 = 0; | |
9750 | char *_kwnames[] = { "self", NULL }; | |
9751 | ||
9752 | self = self; | |
b1462dfa | 9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
9754 | return NULL; |
9755 | if (_argo0) { | |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9759 | return NULL; |
9760 | } | |
9761 | } | |
9762 | { | |
474c48f9 | 9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9764 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 9765 | |
474c48f9 | 9766 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9767 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9768 | } Py_INCREF(Py_None); |
9769 | _resultobj = Py_None; | |
2abc0a0f RD |
9770 | return _resultobj; |
9771 | } | |
9772 | ||
b1462dfa RD |
9773 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
9774 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
9775 | PyObject * _resultobj; |
9776 | wxMenuItem * _arg0; | |
b1462dfa | 9777 | wxString * _arg1; |
1d99702e | 9778 | PyObject * _argo0 = 0; |
b1462dfa RD |
9779 | PyObject * _obj1 = 0; |
9780 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
9781 | |
9782 | self = self; | |
b1462dfa | 9783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 9784 | return NULL; |
1d99702e RD |
9785 | if (_argo0) { |
9786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
9789 | return NULL; |
9790 | } | |
9791 | } | |
b1462dfa | 9792 | { |
c8bc7bb8 RD |
9793 | _arg1 = wxString_in_helper(_obj1); |
9794 | if (_arg1 == NULL) | |
2cd2fac8 | 9795 | return NULL; |
b1462dfa | 9796 | } |
cf694132 | 9797 | { |
474c48f9 | 9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9799 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 9800 | |
474c48f9 | 9801 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9802 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9803 | } Py_INCREF(Py_None); |
8ab979d7 | 9804 | _resultobj = Py_None; |
b1462dfa RD |
9805 | { |
9806 | if (_obj1) | |
9807 | delete _arg1; | |
9808 | } | |
8ab979d7 RD |
9809 | return _resultobj; |
9810 | } | |
9811 | ||
b1462dfa RD |
9812 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
9813 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 9814 | PyObject * _resultobj; |
b1462dfa | 9815 | wxString * _result; |
be4d9c1f | 9816 | wxMenuItem * _arg0; |
1d99702e | 9817 | PyObject * _argo0 = 0; |
efc5f224 | 9818 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
9819 | |
9820 | self = self; | |
b1462dfa | 9821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 9822 | return NULL; |
1d99702e RD |
9823 | if (_argo0) { |
9824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
9827 | return NULL; |
9828 | } | |
9829 | } | |
cf694132 | 9830 | { |
474c48f9 | 9831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9832 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 9833 | _result = (wxString *) &_result_ref; |
cf694132 | 9834 | |
474c48f9 | 9835 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9836 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9837 | }{ |
c8bc7bb8 RD |
9838 | #if wxUSE_UNICODE |
9839 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9840 | #else | |
eec92d76 | 9841 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9842 | #endif |
b1462dfa | 9843 | } |
be4d9c1f RD |
9844 | return _resultobj; |
9845 | } | |
9846 | ||
b1462dfa RD |
9847 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
9848 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 9849 | PyObject * _resultobj; |
b1462dfa | 9850 | wxAcceleratorEntry * _result; |
2abc0a0f | 9851 | wxMenuItem * _arg0; |
2abc0a0f | 9852 | PyObject * _argo0 = 0; |
b1462dfa RD |
9853 | char *_kwnames[] = { "self", NULL }; |
9854 | char _ptemp[128]; | |
2abc0a0f RD |
9855 | |
9856 | self = self; | |
b1462dfa | 9857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
9858 | return NULL; |
9859 | if (_argo0) { | |
9860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9863 | return NULL; |
9864 | } | |
9865 | } | |
2abc0a0f | 9866 | { |
474c48f9 | 9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9868 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 9869 | |
474c48f9 | 9870 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9871 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9872 | } if (_result) { |
9873 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9874 | _resultobj = Py_BuildValue("s",_ptemp); | |
9875 | } else { | |
9876 | Py_INCREF(Py_None); | |
9877 | _resultobj = Py_None; | |
9878 | } | |
2abc0a0f RD |
9879 | return _resultobj; |
9880 | } | |
9881 | ||
b1462dfa RD |
9882 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
9883 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
9884 | PyObject * _resultobj; |
9885 | wxMenuItem * _arg0; | |
b1462dfa | 9886 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
9887 | PyObject * _argo0 = 0; |
9888 | PyObject * _argo1 = 0; | |
b1462dfa | 9889 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
9890 | |
9891 | self = self; | |
b1462dfa | 9892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
9893 | return NULL; |
9894 | if (_argo0) { | |
9895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
9898 | return NULL; |
9899 | } | |
9900 | } | |
9901 | if (_argo1) { | |
9902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
9903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
9904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
9905 | return NULL; |
9906 | } | |
9907 | } | |
9908 | { | |
474c48f9 | 9909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9910 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 9911 | |
474c48f9 | 9912 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9913 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
9914 | } Py_INCREF(Py_None); |
9915 | _resultobj = Py_None; | |
9916 | return _resultobj; | |
9917 | } | |
9918 | ||
9c4165ad RD |
9919 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9920 | PyObject * _resultobj; | |
9921 | wxString * _result; | |
9922 | wxString * _arg0; | |
9923 | PyObject * _obj0 = 0; | |
9924 | char *_kwnames[] = { "text", NULL }; | |
9925 | ||
9926 | self = self; | |
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9928 | return NULL; | |
9929 | { | |
c8bc7bb8 RD |
9930 | _arg0 = wxString_in_helper(_obj0); |
9931 | if (_arg0 == NULL) | |
9c4165ad | 9932 | return NULL; |
9c4165ad RD |
9933 | } |
9934 | { | |
474c48f9 | 9935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9936 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
9c4165ad | 9937 | |
474c48f9 | 9938 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9939 | if (PyErr_Occurred()) return NULL; |
9c4165ad | 9940 | }{ |
c8bc7bb8 RD |
9941 | #if wxUSE_UNICODE |
9942 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9943 | #else | |
9c4165ad | 9944 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9945 | #endif |
9c4165ad RD |
9946 | } |
9947 | { | |
9948 | if (_obj0) | |
9949 | delete _arg0; | |
9950 | } | |
9951 | { | |
9952 | delete _result; | |
9953 | } | |
9954 | return _resultobj; | |
9955 | } | |
9956 | ||
8ab979d7 | 9957 | static PyMethodDef windowscMethods[] = { |
9c4165ad | 9958 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9959 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
9960 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9965 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9966 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9967 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9968 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9969 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 9970 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9971 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9972 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
9973 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9976 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9977 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
9978 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9980 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 9981 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9982 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
9983 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 9984 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
9985 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
9986 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9987 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9988 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
9989 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9990 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 9991 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
9992 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
9993 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9994 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9995 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9996 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10000 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10001 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10002 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10003 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10004 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10005 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10006 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10007 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10008 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10009 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10010 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10011 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10012 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10013 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10014 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10015 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10016 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10020 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10021 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10022 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10023 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10024 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10025 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10026 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10027 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10028 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10029 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10030 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10031 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10032 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10033 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10034 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10036 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10037 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10038 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
49df1f52 | 10039 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
7a446686 RD |
10040 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10041 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10042 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10043 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f RD |
10044 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
10045 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10046 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10047 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10048 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10049 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10050 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10051 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10052 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10053 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10054 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10055 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10056 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10057 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10058 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10059 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10060 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10061 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10062 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10063 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10064 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
10065 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10066 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 10067 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
32c988a3 | 10068 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10069 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10070 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10071 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10072 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10073 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10074 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10075 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10079 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
10080 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10081 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10082 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
10083 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10084 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10085 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10086 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
49df1f52 | 10087 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 10088 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10089 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10090 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10091 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10092 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
94082a71 RD |
10093 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
10094 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10095 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10096 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10097 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10098 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10099 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10100 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10101 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10102 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10103 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10105 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10106 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10107 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10108 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10109 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
10110 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10113 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10114 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10115 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10116 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10117 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10118 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
2cd2fac8 | 10119 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10120 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10121 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10122 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10123 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10124 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10125 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10127 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10128 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10129 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10130 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10131 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10132 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10133 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10134 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10135 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10136 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10137 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10138 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10139 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10140 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10141 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 10142 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10143 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10144 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10145 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10146 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
5d413391 | 10147 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10148 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10149 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10150 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10151 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10152 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10153 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10154 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10155 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10156 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10157 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10158 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10159 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10160 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10161 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10162 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10163 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10164 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10165 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 10166 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10167 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10168 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10169 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10170 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10171 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10172 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10173 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10174 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10175 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10176 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10177 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10178 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10179 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10180 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10181 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10182 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10183 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10184 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10185 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10186 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 10187 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10188 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
10189 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10190 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 10191 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10192 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 RD |
10193 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
10194 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10195 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
10196 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10197 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10198 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 10199 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 10200 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10201 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
10202 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10203 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10204 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10205 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 10206 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10207 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
10208 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10209 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10210 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10211 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 10212 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
10213 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
10214 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10215 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
10216 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10217 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10218 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10219 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
10220 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10221 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10222 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0220cbc1 | 10223 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10224 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
10225 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
10226 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10227 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
10228 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10231 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 10232 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10233 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
10234 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
10235 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10240 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10241 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10242 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
10243 | { NULL, NULL } |
10244 | }; | |
1d99702e RD |
10245 | #ifdef __cplusplus |
10246 | } | |
10247 | #endif | |
10248 | /* | |
10249 | * This table is used by the pointer type-checker | |
10250 | */ | |
10251 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 10252 | { "_signed_long","_long",0}, |
b1462dfa | 10253 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10254 | { "_wxPrintQuality","_int",0}, |
10255 | { "_wxPrintQuality","_signed_int",0}, | |
10256 | { "_wxPrintQuality","_unsigned_int",0}, | |
10257 | { "_wxPrintQuality","_wxWindowID",0}, | |
10258 | { "_wxPrintQuality","_uint",0}, | |
10259 | { "_wxPrintQuality","_EBool",0}, | |
10260 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10261 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 10262 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10263 | { "_long","_unsigned_long",0}, |
10264 | { "_long","_signed_long",0}, | |
b1462dfa | 10265 | { "_size_t","_wxCoord",0}, |
1d99702e | 10266 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10267 | { "_size_t","_time_t",0}, |
1d99702e RD |
10268 | { "_size_t","_unsigned_int",0}, |
10269 | { "_size_t","_int",0}, | |
10270 | { "_size_t","_wxWindowID",0}, | |
10271 | { "_size_t","_uint",0}, | |
1d99702e | 10272 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 10273 | { "_uint","_wxCoord",0}, |
1d99702e | 10274 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10275 | { "_uint","_time_t",0}, |
1d99702e RD |
10276 | { "_uint","_size_t",0}, |
10277 | { "_uint","_unsigned_int",0}, | |
10278 | { "_uint","_int",0}, | |
10279 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10280 | { "_wxChar","_char",0}, |
f6bcfd97 | 10281 | { "_char","_wxChar",0}, |
059a841c | 10282 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10283 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10284 | { "_EBool","_wxPrintQuality",0}, |
10285 | { "_EBool","_signed_int",0}, | |
10286 | { "_EBool","_int",0}, | |
10287 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10288 | { "_unsigned_long","_long",0}, |
059a841c | 10289 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10290 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10291 | { "_signed_int","_wxPrintQuality",0}, |
10292 | { "_signed_int","_EBool",0}, | |
10293 | { "_signed_int","_wxWindowID",0}, | |
10294 | { "_signed_int","_int",0}, | |
1d99702e RD |
10295 | { "_WXTYPE","_short",0}, |
10296 | { "_WXTYPE","_signed_short",0}, | |
10297 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
10298 | { "_unsigned_short","_WXTYPE",0}, |
10299 | { "_unsigned_short","_short",0}, | |
9df61a29 | 10300 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9df61a29 | 10301 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9df61a29 | 10302 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9df61a29 | 10303 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9df61a29 | 10304 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9df61a29 | 10305 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9df61a29 | 10306 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9df61a29 | 10307 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9df61a29 | 10308 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
10309 | { "_signed_short","_WXTYPE",0}, |
10310 | { "_signed_short","_short",0}, | |
1d99702e | 10311 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10312 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10313 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10314 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10315 | { "_unsigned_int","_size_t",0}, |
10316 | { "_unsigned_int","_uint",0}, | |
10317 | { "_unsigned_int","_wxWindowID",0}, | |
10318 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
10319 | { "_short","_WXTYPE",0}, |
10320 | { "_short","_unsigned_short",0}, | |
10321 | { "_short","_signed_short",0}, | |
b1462dfa | 10322 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10323 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10324 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10325 | { "_wxWindowID","_size_t",0}, |
10326 | { "_wxWindowID","_EBool",0}, | |
10327 | { "_wxWindowID","_uint",0}, | |
10328 | { "_wxWindowID","_int",0}, | |
10329 | { "_wxWindowID","_signed_int",0}, | |
10330 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10331 | { "_int","_wxCoord",0}, |
1d99702e | 10332 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10333 | { "_int","_time_t",0}, |
1d99702e RD |
10334 | { "_int","_size_t",0}, |
10335 | { "_int","_EBool",0}, | |
10336 | { "_int","_uint",0}, | |
10337 | { "_int","_wxWindowID",0}, | |
10338 | { "_int","_unsigned_int",0}, | |
10339 | { "_int","_signed_int",0}, | |
c368d904 RD |
10340 | { "_time_t","_wxCoord",0}, |
10341 | { "_time_t","_wxPrintQuality",0}, | |
10342 | { "_time_t","_unsigned_int",0}, | |
10343 | { "_time_t","_int",0}, | |
10344 | { "_time_t","_wxWindowID",0}, | |
10345 | { "_time_t","_uint",0}, | |
10346 | { "_time_t","_size_t",0}, | |
2f90df85 | 10347 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
10348 | { "_wxCoord","_int",0}, |
10349 | { "_wxCoord","_signed_int",0}, | |
10350 | { "_wxCoord","_unsigned_int",0}, | |
10351 | { "_wxCoord","_wxWindowID",0}, | |
10352 | { "_wxCoord","_uint",0}, | |
10353 | { "_wxCoord","_EBool",0}, | |
10354 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10355 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10356 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 10357 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 10358 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 10359 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 10360 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 10361 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 10362 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 10363 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 10364 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 10365 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 10366 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
10367 | {0,0,0}}; |
10368 | ||
8ab979d7 RD |
10369 | static PyObject *SWIG_globals; |
10370 | #ifdef __cplusplus | |
10371 | extern "C" | |
10372 | #endif | |
1d99702e | 10373 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
10374 | PyObject *m, *d; |
10375 | SWIG_globals = SWIG_newvarlink(); | |
10376 | m = Py_InitModule("windowsc", windowscMethods); | |
10377 | d = PyModule_GetDict(m); | |
1d99702e RD |
10378 | { |
10379 | int i; | |
10380 | for (i = 0; _swig_mapping[i].n1; i++) | |
10381 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10382 | } | |
8ab979d7 | 10383 | } |