]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/windows.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
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) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
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 *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initwindowsc | |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/menuitem.h> | |
60 | #include <wx/tooltip.h> | |
61 | ||
62 | ||
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
67 | if (!target) { | |
68 | target = o; | |
69 | } else if (target == Py_None) { | |
70 | Py_DECREF(Py_None); | |
71 | target = o; | |
72 | } else { | |
73 | if (!PyTuple_Check(target)) { | |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
78 | o3 = PyTuple_New(1); | |
79 | PyTuple_SetItem(o3, 0, o); | |
80 | ||
81 | o2 = target; | |
82 | target = PySequence_Concat(o2, o3); | |
83 | Py_DECREF(o2); | |
84 | Py_DECREF(o3); | |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
c3bfa1cb RD |
89 | // Put some wx default wxChar* values into wxStrings. |
90 | DECLARE_DEF_STRING(PanelNameStr); | |
91 | static const wxString wxPyEmptyString(wxT("")); | |
92 | ||
e6056257 RD |
93 | class wxPyValidator : public wxValidator { |
94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
95 | public: | |
96 | wxPyValidator() { | |
97 | } | |
98 | ||
99 | ~wxPyValidator() { | |
100 | } | |
101 | ||
102 | wxObject* Clone() const { | |
103 | wxPyValidator* ptr = NULL; | |
104 | wxPyValidator* self = (wxPyValidator*)this; | |
105 | ||
0e2ff151 | 106 | wxPyBeginBlockThreads(); |
e6056257 RD |
107 | if (self->m_myInst.findCallback("Clone")) { |
108 | PyObject* ro; | |
109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
110 | if (ro) { | |
111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
112 | Py_DECREF(ro); | |
113 | } | |
114 | } | |
0e2ff151 | 115 | wxPyEndBlockThreads(); |
e6056257 RD |
116 | |
117 | // This is very dangerous!!! But is the only way I could find | |
118 | // to squash a memory leak. Currently it is okay, but if the | |
119 | // validator architecture in wxWindows ever changes, problems | |
120 | // could arise. | |
121 | delete self; | |
122 | return ptr; | |
123 | } | |
124 | ||
125 | ||
126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
129 | ||
130 | PYPRIVATE; | |
131 | }; | |
132 | ||
133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
136 | ||
137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { | |
143 | wxEvtHandler *src; | |
144 | wxObject *dest; | |
145 | src = (wxEvtHandler *) ptr; | |
146 | dest = (wxObject *) src; | |
147 | return (void *) dest; | |
148 | } | |
149 | ||
150 | #define new_wxEvtHandler() (new wxEvtHandler()) | |
151 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
152 | PyObject * _resultobj; | |
153 | wxEvtHandler * _result; | |
154 | char *_kwnames[] = { NULL }; | |
155 | char _ptemp[128]; | |
156 | ||
157 | self = self; | |
158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
159 | return NULL; | |
160 | { | |
0e2ff151 | 161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 162 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
e6056257 | 163 | |
0e2ff151 | 164 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
165 | if (PyErr_Occurred()) return NULL; |
166 | } if (_result) { | |
167 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
168 | _resultobj = Py_BuildValue("s",_ptemp); | |
169 | } else { | |
170 | Py_INCREF(Py_None); | |
171 | _resultobj = Py_None; | |
172 | } | |
173 | return _resultobj; | |
174 | } | |
175 | ||
176 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) | |
177 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
178 | PyObject * _resultobj; | |
179 | bool _result; | |
180 | wxEvtHandler * _arg0; | |
181 | wxEvent * _arg1; | |
182 | PyObject * _argo0 = 0; | |
183 | PyObject * _argo1 = 0; | |
184 | char *_kwnames[] = { "self","event", NULL }; | |
185 | ||
186 | self = self; | |
187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
188 | return NULL; | |
189 | if (_argo0) { | |
190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
193 | return NULL; | |
194 | } | |
195 | } | |
196 | if (_argo1) { | |
197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
200 | return NULL; | |
201 | } | |
202 | } | |
203 | { | |
0e2ff151 | 204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 205 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
e6056257 | 206 | |
0e2ff151 | 207 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
208 | if (PyErr_Occurred()) return NULL; |
209 | } _resultobj = Py_BuildValue("i",_result); | |
210 | return _resultobj; | |
211 | } | |
212 | ||
213 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) | |
214 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
215 | PyObject * _resultobj; | |
216 | wxEvtHandler * _arg0; | |
217 | wxEvent * _arg1; | |
218 | PyObject * _argo0 = 0; | |
219 | PyObject * _argo1 = 0; | |
220 | char *_kwnames[] = { "self","event", NULL }; | |
221 | ||
222 | self = self; | |
223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
224 | return NULL; | |
225 | if (_argo0) { | |
226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
229 | return NULL; | |
230 | } | |
231 | } | |
232 | if (_argo1) { | |
233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
236 | return NULL; | |
237 | } | |
238 | } | |
239 | { | |
0e2ff151 | 240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 241 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
e6056257 | 242 | |
0e2ff151 | 243 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
244 | if (PyErr_Occurred()) return NULL; |
245 | } Py_INCREF(Py_None); | |
246 | _resultobj = Py_None; | |
247 | return _resultobj; | |
248 | } | |
249 | ||
250 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) | |
251 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
252 | PyObject * _resultobj; | |
253 | bool _result; | |
254 | wxEvtHandler * _arg0; | |
255 | PyObject * _argo0 = 0; | |
256 | char *_kwnames[] = { "self", NULL }; | |
257 | ||
258 | self = self; | |
259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
260 | return NULL; | |
261 | if (_argo0) { | |
262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
265 | return NULL; | |
266 | } | |
267 | } | |
268 | { | |
0e2ff151 | 269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 270 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
e6056257 | 271 | |
0e2ff151 | 272 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
273 | if (PyErr_Occurred()) return NULL; |
274 | } _resultobj = Py_BuildValue("i",_result); | |
275 | return _resultobj; | |
276 | } | |
277 | ||
278 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
279 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
280 | PyObject * _resultobj; | |
281 | wxEvtHandler * _arg0; | |
282 | bool _arg1; | |
283 | PyObject * _argo0 = 0; | |
284 | int tempbool1; | |
285 | char *_kwnames[] = { "self","enabled", NULL }; | |
286 | ||
287 | self = self; | |
288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
289 | return NULL; | |
290 | if (_argo0) { | |
291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
294 | return NULL; | |
295 | } | |
296 | } | |
297 | _arg1 = (bool ) tempbool1; | |
298 | { | |
0e2ff151 | 299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 300 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
e6056257 | 301 | |
0e2ff151 | 302 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
303 | if (PyErr_Occurred()) return NULL; |
304 | } Py_INCREF(Py_None); | |
305 | _resultobj = Py_None; | |
306 | return _resultobj; | |
307 | } | |
308 | ||
309 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
310 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
311 | PyObject * _resultobj; | |
312 | wxEvtHandler * _result; | |
313 | wxEvtHandler * _arg0; | |
314 | PyObject * _argo0 = 0; | |
315 | char *_kwnames[] = { "self", NULL }; | |
316 | ||
317 | self = self; | |
318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
319 | return NULL; | |
320 | if (_argo0) { | |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
324 | return NULL; | |
325 | } | |
326 | } | |
327 | { | |
0e2ff151 | 328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 329 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
e6056257 | 330 | |
0e2ff151 | 331 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
332 | if (PyErr_Occurred()) return NULL; |
333 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
334 | return _resultobj; | |
335 | } | |
336 | ||
337 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
338 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
339 | PyObject * _resultobj; | |
340 | wxEvtHandler * _result; | |
341 | wxEvtHandler * _arg0; | |
342 | PyObject * _argo0 = 0; | |
343 | char *_kwnames[] = { "self", NULL }; | |
344 | ||
345 | self = self; | |
346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
347 | return NULL; | |
348 | if (_argo0) { | |
349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
352 | return NULL; | |
353 | } | |
354 | } | |
355 | { | |
0e2ff151 | 356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 357 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
e6056257 | 358 | |
0e2ff151 | 359 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
360 | if (PyErr_Occurred()) return NULL; |
361 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
362 | return _resultobj; | |
363 | } | |
364 | ||
365 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
366 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
367 | PyObject * _resultobj; | |
368 | wxEvtHandler * _arg0; | |
369 | wxEvtHandler * _arg1; | |
370 | PyObject * _argo0 = 0; | |
371 | PyObject * _argo1 = 0; | |
372 | char *_kwnames[] = { "self","handler", NULL }; | |
373 | ||
374 | self = self; | |
375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
376 | return NULL; | |
377 | if (_argo0) { | |
378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
381 | return NULL; | |
382 | } | |
383 | } | |
384 | if (_argo1) { | |
385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
388 | return NULL; | |
389 | } | |
390 | } | |
391 | { | |
0e2ff151 | 392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 393 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
e6056257 | 394 | |
0e2ff151 | 395 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
396 | if (PyErr_Occurred()) return NULL; |
397 | } Py_INCREF(Py_None); | |
398 | _resultobj = Py_None; | |
399 | return _resultobj; | |
400 | } | |
401 | ||
402 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
403 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
404 | PyObject * _resultobj; | |
405 | wxEvtHandler * _arg0; | |
406 | wxEvtHandler * _arg1; | |
407 | PyObject * _argo0 = 0; | |
408 | PyObject * _argo1 = 0; | |
409 | char *_kwnames[] = { "self","handler", NULL }; | |
410 | ||
411 | self = self; | |
412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
413 | return NULL; | |
414 | if (_argo0) { | |
415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | if (_argo1) { | |
422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
425 | return NULL; | |
426 | } | |
427 | } | |
428 | { | |
0e2ff151 | 429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 430 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
e6056257 | 431 | |
0e2ff151 | 432 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
433 | if (PyErr_Occurred()) return NULL; |
434 | } Py_INCREF(Py_None); | |
435 | _resultobj = Py_None; | |
436 | return _resultobj; | |
437 | } | |
438 | ||
439 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
440 | if (PyCallable_Check(func)) { | |
441 | self->Connect(id, lastId, eventType, | |
442 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
443 | new wxPyCallback(func)); | |
444 | } | |
742fc581 RD |
445 | else if (func == Py_None) { |
446 | self->Disconnect(id, lastId, eventType, | |
447 | (wxObjectEventFunction) | |
448 | &wxPyCallback::EventThunker); | |
449 | } | |
450 | else { | |
451 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
452 | } | |
e6056257 RD |
453 | } |
454 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
455 | PyObject * _resultobj; | |
456 | wxEvtHandler * _arg0; | |
457 | int _arg1; | |
458 | int _arg2; | |
459 | int _arg3; | |
460 | PyObject * _arg4; | |
461 | PyObject * _argo0 = 0; | |
462 | PyObject * _obj4 = 0; | |
463 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
464 | ||
465 | self = self; | |
466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
467 | return NULL; | |
468 | if (_argo0) { | |
469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
472 | return NULL; | |
473 | } | |
474 | } | |
475 | { | |
476 | _arg4 = _obj4; | |
477 | } | |
478 | { | |
0e2ff151 | 479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 480 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 481 | |
0e2ff151 | 482 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
483 | if (PyErr_Occurred()) return NULL; |
484 | } Py_INCREF(Py_None); | |
485 | _resultobj = Py_None; | |
486 | return _resultobj; | |
487 | } | |
488 | ||
489 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { | |
490 | return self->Disconnect(id, lastId, eventType, | |
491 | (wxObjectEventFunction) | |
492 | &wxPyCallback::EventThunker); | |
493 | } | |
494 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
495 | PyObject * _resultobj; | |
496 | bool _result; | |
497 | wxEvtHandler * _arg0; | |
498 | int _arg1; | |
499 | int _arg2 = (int ) -1; | |
500 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
501 | PyObject * _argo0 = 0; | |
502 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
503 | ||
504 | self = self; | |
505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
506 | return NULL; | |
507 | if (_argo0) { | |
508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
511 | return NULL; | |
512 | } | |
513 | } | |
514 | { | |
0e2ff151 | 515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 516 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 517 | |
0e2ff151 | 518 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
519 | if (PyErr_Occurred()) return NULL; |
520 | } _resultobj = Py_BuildValue("i",_result); | |
521 | return _resultobj; | |
522 | } | |
523 | ||
524 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { | |
59988cd0 | 525 | self->SetClientObject(new wxPyOORClientData(_self)); |
e6056257 RD |
526 | } |
527 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
528 | PyObject * _resultobj; | |
529 | wxEvtHandler * _arg0; | |
530 | PyObject * _arg1; | |
531 | PyObject * _argo0 = 0; | |
532 | PyObject * _obj1 = 0; | |
533 | char *_kwnames[] = { "self","_self", NULL }; | |
534 | ||
535 | self = self; | |
536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
537 | return NULL; | |
538 | if (_argo0) { | |
539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
542 | return NULL; | |
543 | } | |
544 | } | |
545 | { | |
546 | _arg1 = _obj1; | |
547 | } | |
548 | { | |
0e2ff151 | 549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 550 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
e6056257 | 551 | |
0e2ff151 | 552 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
553 | if (PyErr_Occurred()) return NULL; |
554 | } Py_INCREF(Py_None); | |
555 | _resultobj = Py_None; | |
556 | return _resultobj; | |
557 | } | |
558 | ||
559 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { | |
560 | wxValidator *src; | |
561 | wxEvtHandler *dest; | |
562 | src = (wxValidator *) ptr; | |
563 | dest = (wxEvtHandler *) src; | |
564 | return (void *) dest; | |
565 | } | |
566 | ||
567 | static void *SwigwxValidatorTowxObject(void *ptr) { | |
568 | wxValidator *src; | |
569 | wxObject *dest; | |
570 | src = (wxValidator *) ptr; | |
571 | dest = (wxObject *) src; | |
572 | return (void *) dest; | |
573 | } | |
574 | ||
575 | #define new_wxValidator() (new wxValidator()) | |
576 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
577 | PyObject * _resultobj; | |
578 | wxValidator * _result; | |
579 | char *_kwnames[] = { NULL }; | |
580 | char _ptemp[128]; | |
581 | ||
582 | self = self; | |
583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
584 | return NULL; | |
585 | { | |
0e2ff151 | 586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 587 | _result = (wxValidator *)new_wxValidator(); |
e6056257 | 588 | |
0e2ff151 | 589 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
590 | if (PyErr_Occurred()) return NULL; |
591 | } if (_result) { | |
592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
593 | _resultobj = Py_BuildValue("s",_ptemp); | |
594 | } else { | |
595 | Py_INCREF(Py_None); | |
596 | _resultobj = Py_None; | |
597 | } | |
598 | return _resultobj; | |
599 | } | |
600 | ||
601 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
602 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
603 | PyObject * _resultobj; | |
604 | wxValidator * _result; | |
605 | wxValidator * _arg0; | |
606 | PyObject * _argo0 = 0; | |
607 | char *_kwnames[] = { "self", NULL }; | |
608 | ||
609 | self = self; | |
610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
611 | return NULL; | |
612 | if (_argo0) { | |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
616 | return NULL; | |
617 | } | |
618 | } | |
619 | { | |
0e2ff151 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 621 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
e6056257 | 622 | |
0e2ff151 | 623 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
624 | if (PyErr_Occurred()) return NULL; |
625 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
626 | return _resultobj; | |
627 | } | |
628 | ||
629 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
630 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
631 | PyObject * _resultobj; | |
632 | wxWindow * _result; | |
633 | wxValidator * _arg0; | |
634 | PyObject * _argo0 = 0; | |
635 | char *_kwnames[] = { "self", NULL }; | |
636 | ||
637 | self = self; | |
638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
639 | return NULL; | |
640 | if (_argo0) { | |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
644 | return NULL; | |
645 | } | |
646 | } | |
647 | { | |
0e2ff151 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 649 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
e6056257 | 650 | |
0e2ff151 | 651 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
652 | if (PyErr_Occurred()) return NULL; |
653 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
654 | return _resultobj; | |
655 | } | |
656 | ||
657 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
658 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
659 | PyObject * _resultobj; | |
660 | wxValidator * _arg0; | |
661 | wxWindow * _arg1; | |
662 | PyObject * _argo0 = 0; | |
663 | PyObject * _argo1 = 0; | |
664 | char *_kwnames[] = { "self","window", NULL }; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
668 | return NULL; | |
669 | if (_argo0) { | |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
673 | return NULL; | |
674 | } | |
675 | } | |
676 | if (_argo1) { | |
677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
680 | return NULL; | |
681 | } | |
682 | } | |
683 | { | |
0e2ff151 | 684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 685 | wxValidator_SetWindow(_arg0,_arg1); |
e6056257 | 686 | |
0e2ff151 | 687 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
688 | if (PyErr_Occurred()) return NULL; |
689 | } Py_INCREF(Py_None); | |
690 | _resultobj = Py_None; | |
691 | return _resultobj; | |
692 | } | |
693 | ||
694 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
695 | PyObject * _resultobj; | |
696 | bool _result; | |
697 | char *_kwnames[] = { NULL }; | |
698 | ||
699 | self = self; | |
700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
701 | return NULL; | |
702 | { | |
0e2ff151 | 703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 704 | _result = (bool )wxValidator::IsSilent(); |
e6056257 | 705 | |
0e2ff151 | 706 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
707 | if (PyErr_Occurred()) return NULL; |
708 | } _resultobj = Py_BuildValue("i",_result); | |
709 | return _resultobj; | |
710 | } | |
711 | ||
712 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
713 | PyObject * _resultobj; | |
714 | int _arg0 = (int ) TRUE; | |
715 | char *_kwnames[] = { "doIt", NULL }; | |
716 | ||
717 | self = self; | |
718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
719 | return NULL; | |
720 | { | |
0e2ff151 | 721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 722 | wxValidator::SetBellOnError(_arg0); |
e6056257 | 723 | |
0e2ff151 | 724 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
725 | if (PyErr_Occurred()) return NULL; |
726 | } Py_INCREF(Py_None); | |
727 | _resultobj = Py_None; | |
728 | return _resultobj; | |
729 | } | |
730 | ||
731 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
732 | wxPyValidator *src; | |
733 | wxValidator *dest; | |
734 | src = (wxPyValidator *) ptr; | |
735 | dest = (wxValidator *) src; | |
736 | return (void *) dest; | |
737 | } | |
738 | ||
739 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
740 | wxPyValidator *src; | |
741 | wxEvtHandler *dest; | |
742 | src = (wxPyValidator *) ptr; | |
743 | dest = (wxEvtHandler *) src; | |
744 | return (void *) dest; | |
745 | } | |
746 | ||
747 | static void *SwigwxPyValidatorTowxObject(void *ptr) { | |
748 | wxPyValidator *src; | |
749 | wxObject *dest; | |
750 | src = (wxPyValidator *) ptr; | |
751 | dest = (wxObject *) src; | |
752 | return (void *) dest; | |
753 | } | |
754 | ||
755 | #define new_wxPyValidator() (new wxPyValidator()) | |
756 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject * _resultobj; | |
758 | wxPyValidator * _result; | |
759 | char *_kwnames[] = { NULL }; | |
760 | char _ptemp[128]; | |
761 | ||
762 | self = self; | |
763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
764 | return NULL; | |
765 | { | |
0e2ff151 | 766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 767 | _result = (wxPyValidator *)new_wxPyValidator(); |
e6056257 | 768 | |
0e2ff151 | 769 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
770 | if (PyErr_Occurred()) return NULL; |
771 | } if (_result) { | |
772 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
773 | _resultobj = Py_BuildValue("s",_ptemp); | |
774 | } else { | |
775 | Py_INCREF(Py_None); | |
776 | _resultobj = Py_None; | |
777 | } | |
778 | return _resultobj; | |
779 | } | |
780 | ||
781 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) | |
782 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
783 | PyObject * _resultobj; | |
784 | wxPyValidator * _arg0; | |
785 | PyObject * _arg1; | |
786 | PyObject * _arg2; | |
787 | int _arg3 = (int ) TRUE; | |
788 | PyObject * _argo0 = 0; | |
789 | PyObject * _obj1 = 0; | |
790 | PyObject * _obj2 = 0; | |
791 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
792 | ||
793 | self = self; | |
794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) | |
795 | return NULL; | |
796 | if (_argo0) { | |
797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); | |
800 | return NULL; | |
801 | } | |
802 | } | |
803 | { | |
804 | _arg1 = _obj1; | |
805 | } | |
806 | { | |
807 | _arg2 = _obj2; | |
808 | } | |
809 | { | |
0e2ff151 | 810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 811 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 812 | |
0e2ff151 | 813 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
814 | if (PyErr_Occurred()) return NULL; |
815 | } Py_INCREF(Py_None); | |
816 | _resultobj = Py_None; | |
817 | return _resultobj; | |
818 | } | |
819 | ||
820 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
821 | wxWindow *src; | |
822 | wxEvtHandler *dest; | |
823 | src = (wxWindow *) ptr; | |
824 | dest = (wxEvtHandler *) src; | |
825 | return (void *) dest; | |
826 | } | |
827 | ||
828 | static void *SwigwxWindowTowxObject(void *ptr) { | |
829 | wxWindow *src; | |
830 | wxObject *dest; | |
831 | src = (wxWindow *) ptr; | |
832 | dest = (wxObject *) src; | |
833 | return (void *) dest; | |
834 | } | |
835 | ||
836 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
837 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
838 | PyObject * _resultobj; | |
839 | wxWindow * _result; | |
840 | wxWindow * _arg0; | |
841 | wxWindowID _arg1; | |
842 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
843 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
844 | long _arg4 = (long ) 0; | |
c3bfa1cb | 845 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
e6056257 RD |
846 | PyObject * _argo0 = 0; |
847 | wxPoint temp; | |
848 | PyObject * _obj2 = 0; | |
849 | wxSize temp0; | |
850 | PyObject * _obj3 = 0; | |
c3bfa1cb | 851 | PyObject * _obj5 = 0; |
e6056257 RD |
852 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
853 | char _ptemp[128]; | |
854 | ||
855 | self = self; | |
c3bfa1cb | 856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
857 | return NULL; |
858 | if (_argo0) { | |
859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); | |
862 | return NULL; | |
863 | } | |
864 | } | |
865 | if (_obj2) | |
866 | { | |
867 | _arg2 = &temp; | |
868 | if (! wxPoint_helper(_obj2, &_arg2)) | |
869 | return NULL; | |
870 | } | |
871 | if (_obj3) | |
872 | { | |
873 | _arg3 = &temp0; | |
874 | if (! wxSize_helper(_obj3, &_arg3)) | |
875 | return NULL; | |
c3bfa1cb RD |
876 | } |
877 | if (_obj5) | |
878 | { | |
879 | _arg5 = wxString_in_helper(_obj5); | |
880 | if (_arg5 == NULL) | |
881 | return NULL; | |
e6056257 RD |
882 | } |
883 | { | |
0e2ff151 | 884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 885 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 886 | |
0e2ff151 | 887 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
888 | if (PyErr_Occurred()) return NULL; |
889 | } if (_result) { | |
890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
891 | _resultobj = Py_BuildValue("s",_ptemp); | |
892 | } else { | |
893 | Py_INCREF(Py_None); | |
894 | _resultobj = Py_None; | |
895 | } | |
c3bfa1cb RD |
896 | { |
897 | if (_obj5) | |
898 | delete _arg5; | |
899 | } | |
e6056257 RD |
900 | return _resultobj; |
901 | } | |
902 | ||
903 | #define new_wxPreWindow() (new wxWindow()) | |
904 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxWindow * _result; | |
907 | char *_kwnames[] = { NULL }; | |
908 | char _ptemp[128]; | |
909 | ||
910 | self = self; | |
911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
912 | return NULL; | |
913 | { | |
0e2ff151 | 914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 915 | _result = (wxWindow *)new_wxPreWindow(); |
e6056257 | 916 | |
0e2ff151 | 917 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
918 | if (PyErr_Occurred()) return NULL; |
919 | } if (_result) { | |
920 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
921 | _resultobj = Py_BuildValue("s",_ptemp); | |
922 | } else { | |
923 | Py_INCREF(Py_None); | |
924 | _resultobj = Py_None; | |
925 | } | |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
930 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | bool _result; | |
933 | wxWindow * _arg0; | |
934 | wxWindow * _arg1; | |
935 | wxWindowID _arg2; | |
936 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
937 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
938 | long _arg5 = (long ) 0; | |
c3bfa1cb | 939 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
e6056257 RD |
940 | PyObject * _argo0 = 0; |
941 | PyObject * _argo1 = 0; | |
942 | wxPoint temp; | |
943 | PyObject * _obj3 = 0; | |
944 | wxSize temp0; | |
945 | PyObject * _obj4 = 0; | |
c3bfa1cb | 946 | PyObject * _obj6 = 0; |
e6056257 RD |
947 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
948 | ||
949 | self = self; | |
c3bfa1cb | 950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
951 | return NULL; |
952 | if (_argo0) { | |
953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
956 | return NULL; | |
957 | } | |
958 | } | |
959 | if (_argo1) { | |
960 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
961 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
963 | return NULL; | |
964 | } | |
965 | } | |
966 | if (_obj3) | |
967 | { | |
968 | _arg3 = &temp; | |
969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
970 | return NULL; | |
971 | } | |
972 | if (_obj4) | |
973 | { | |
974 | _arg4 = &temp0; | |
975 | if (! wxSize_helper(_obj4, &_arg4)) | |
976 | return NULL; | |
c3bfa1cb RD |
977 | } |
978 | if (_obj6) | |
979 | { | |
980 | _arg6 = wxString_in_helper(_obj6); | |
981 | if (_arg6 == NULL) | |
982 | return NULL; | |
e6056257 RD |
983 | } |
984 | { | |
0e2ff151 | 985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 986 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 987 | |
0e2ff151 | 988 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
989 | if (PyErr_Occurred()) return NULL; |
990 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
991 | { |
992 | if (_obj6) | |
993 | delete _arg6; | |
994 | } | |
e6056257 RD |
995 | return _resultobj; |
996 | } | |
997 | ||
e6056257 RD |
998 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
999 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1000 | PyObject * _resultobj; | |
1001 | wxWindow * _arg0; | |
1002 | int _arg1 = (int ) wxBOTH; | |
1003 | PyObject * _argo0 = 0; | |
1004 | char *_kwnames[] = { "self","direction", NULL }; | |
1005 | ||
1006 | self = self; | |
1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) | |
1008 | return NULL; | |
1009 | if (_argo0) { | |
1010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); | |
1013 | return NULL; | |
1014 | } | |
1015 | } | |
1016 | { | |
0e2ff151 | 1017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1018 | wxWindow_Center(_arg0,_arg1); |
e6056257 | 1019 | |
0e2ff151 | 1020 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1021 | if (PyErr_Occurred()) return NULL; |
1022 | } Py_INCREF(Py_None); | |
1023 | _resultobj = Py_None; | |
1024 | return _resultobj; | |
1025 | } | |
1026 | ||
1027 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
1028 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1029 | PyObject * _resultobj; | |
1030 | wxWindow * _arg0; | |
1031 | int _arg1 = (int ) wxBOTH; | |
1032 | PyObject * _argo0 = 0; | |
1033 | char *_kwnames[] = { "self","direction", NULL }; | |
1034 | ||
1035 | self = self; | |
1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) | |
1037 | return NULL; | |
1038 | if (_argo0) { | |
1039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); | |
1042 | return NULL; | |
1043 | } | |
1044 | } | |
1045 | { | |
0e2ff151 | 1046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1047 | wxWindow_Centre(_arg0,_arg1); |
e6056257 | 1048 | |
0e2ff151 | 1049 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1050 | if (PyErr_Occurred()) return NULL; |
1051 | } Py_INCREF(Py_None); | |
1052 | _resultobj = Py_None; | |
1053 | return _resultobj; | |
1054 | } | |
1055 | ||
1056 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) | |
1057 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1058 | PyObject * _resultobj; | |
1059 | wxWindow * _arg0; | |
1060 | int _arg1 = (int ) wxBOTH; | |
1061 | PyObject * _argo0 = 0; | |
1062 | char *_kwnames[] = { "self","direction", NULL }; | |
1063 | ||
1064 | self = self; | |
1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) | |
1066 | return NULL; | |
1067 | if (_argo0) { | |
1068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); | |
1071 | return NULL; | |
1072 | } | |
1073 | } | |
1074 | { | |
0e2ff151 | 1075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1076 | wxWindow_CentreOnParent(_arg0,_arg1); |
e6056257 | 1077 | |
0e2ff151 | 1078 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1079 | if (PyErr_Occurred()) return NULL; |
1080 | } Py_INCREF(Py_None); | |
1081 | _resultobj = Py_None; | |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
1086 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1087 | PyObject * _resultobj; | |
1088 | wxWindow * _arg0; | |
1089 | int _arg1 = (int ) wxBOTH; | |
1090 | PyObject * _argo0 = 0; | |
1091 | char *_kwnames[] = { "self","direction", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
0e2ff151 | 1104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1105 | wxWindow_CenterOnParent(_arg0,_arg1); |
e6056257 | 1106 | |
0e2ff151 | 1107 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1108 | if (PyErr_Occurred()) return NULL; |
1109 | } Py_INCREF(Py_None); | |
1110 | _resultobj = Py_None; | |
1111 | return _resultobj; | |
1112 | } | |
1113 | ||
1114 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) | |
1115 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1116 | PyObject * _resultobj; | |
1117 | wxWindow * _arg0; | |
1118 | int _arg1 = (int ) wxBOTH; | |
1119 | PyObject * _argo0 = 0; | |
1120 | char *_kwnames[] = { "self","direction", NULL }; | |
1121 | ||
1122 | self = self; | |
1123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1124 | return NULL; | |
1125 | if (_argo0) { | |
1126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1129 | return NULL; | |
1130 | } | |
1131 | } | |
1132 | { | |
0e2ff151 | 1133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1134 | wxWindow_CentreOnScreen(_arg0,_arg1); |
e6056257 | 1135 | |
0e2ff151 | 1136 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1137 | if (PyErr_Occurred()) return NULL; |
1138 | } Py_INCREF(Py_None); | |
1139 | _resultobj = Py_None; | |
1140 | return _resultobj; | |
1141 | } | |
1142 | ||
1143 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1144 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject * _resultobj; | |
1146 | wxWindow * _arg0; | |
1147 | int _arg1 = (int ) wxBOTH; | |
1148 | PyObject * _argo0 = 0; | |
1149 | char *_kwnames[] = { "self","direction", NULL }; | |
1150 | ||
1151 | self = self; | |
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1153 | return NULL; | |
1154 | if (_argo0) { | |
1155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1158 | return NULL; | |
1159 | } | |
1160 | } | |
1161 | { | |
0e2ff151 | 1162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1163 | wxWindow_CenterOnScreen(_arg0,_arg1); |
e6056257 | 1164 | |
0e2ff151 | 1165 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1166 | if (PyErr_Occurred()) return NULL; |
1167 | } Py_INCREF(Py_None); | |
1168 | _resultobj = Py_None; | |
1169 | return _resultobj; | |
1170 | } | |
1171 | ||
1172 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) | |
1173 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1174 | PyObject * _resultobj; | |
1175 | wxWindow * _arg0; | |
1176 | PyObject * _argo0 = 0; | |
1177 | char *_kwnames[] = { "self", NULL }; | |
1178 | ||
1179 | self = self; | |
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1181 | return NULL; | |
1182 | if (_argo0) { | |
1183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1186 | return NULL; | |
1187 | } | |
1188 | } | |
1189 | { | |
0e2ff151 | 1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1191 | wxWindow_Clear(_arg0); |
e6056257 | 1192 | |
0e2ff151 | 1193 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1194 | if (PyErr_Occurred()) return NULL; |
1195 | } Py_INCREF(Py_None); | |
1196 | _resultobj = Py_None; | |
1197 | return _resultobj; | |
1198 | } | |
1199 | ||
1200 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) | |
1201 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1202 | PyObject * _resultobj; | |
1203 | wxWindow * _arg0; | |
1204 | int * _arg1; | |
1205 | int * _arg2; | |
1206 | PyObject * _argo0 = 0; | |
1207 | int temp; | |
1208 | PyObject * _obj1 = 0; | |
1209 | int temp0; | |
1210 | PyObject * _obj2 = 0; | |
1211 | char *_kwnames[] = { "self","x","y", NULL }; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
1224 | temp = (int) PyInt_AsLong(_obj1); | |
1225 | _arg1 = &temp; | |
1226 | } | |
1227 | { | |
1228 | temp0 = (int) PyInt_AsLong(_obj2); | |
1229 | _arg2 = &temp0; | |
1230 | } | |
1231 | { | |
0e2ff151 | 1232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1233 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
e6056257 | 1234 | |
0e2ff151 | 1235 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1236 | if (PyErr_Occurred()) return NULL; |
1237 | } Py_INCREF(Py_None); | |
1238 | _resultobj = Py_None; | |
1239 | { | |
1240 | PyObject *o; | |
1241 | o = PyInt_FromLong((long) (*_arg1)); | |
1242 | _resultobj = t_output_helper(_resultobj, o); | |
1243 | } | |
1244 | { | |
1245 | PyObject *o; | |
1246 | o = PyInt_FromLong((long) (*_arg2)); | |
1247 | _resultobj = t_output_helper(_resultobj, o); | |
1248 | } | |
1249 | return _resultobj; | |
1250 | } | |
1251 | ||
1252 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) | |
1253 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1254 | PyObject * _resultobj; | |
1255 | wxPoint * _result; | |
1256 | wxWindow * _arg0; | |
1257 | wxPoint * _arg1; | |
1258 | PyObject * _argo0 = 0; | |
1259 | wxPoint temp; | |
1260 | PyObject * _obj1 = 0; | |
1261 | char *_kwnames[] = { "self","pt", NULL }; | |
1262 | char _ptemp[128]; | |
1263 | ||
1264 | self = self; | |
1265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) | |
1266 | return NULL; | |
1267 | if (_argo0) { | |
1268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); | |
1271 | return NULL; | |
1272 | } | |
1273 | } | |
1274 | { | |
1275 | _arg1 = &temp; | |
1276 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1277 | return NULL; | |
1278 | } | |
1279 | { | |
0e2ff151 | 1280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1281 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
e6056257 | 1282 | |
0e2ff151 | 1283 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1284 | if (PyErr_Occurred()) return NULL; |
1285 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1286 | _resultobj = Py_BuildValue("s",_ptemp); | |
1287 | return _resultobj; | |
1288 | } | |
1289 | ||
1290 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) | |
1291 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1292 | PyObject * _resultobj; | |
1293 | bool _result; | |
1294 | wxWindow * _arg0; | |
1295 | int _arg1 = (int ) FALSE; | |
1296 | PyObject * _argo0 = 0; | |
1297 | char *_kwnames[] = { "self","force", NULL }; | |
1298 | ||
1299 | self = self; | |
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) | |
1301 | return NULL; | |
1302 | if (_argo0) { | |
1303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); | |
1306 | return NULL; | |
1307 | } | |
1308 | } | |
1309 | { | |
0e2ff151 | 1310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1311 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
e6056257 | 1312 | |
0e2ff151 | 1313 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1314 | if (PyErr_Occurred()) return NULL; |
1315 | } _resultobj = Py_BuildValue("i",_result); | |
1316 | return _resultobj; | |
1317 | } | |
1318 | ||
1319 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
1320 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject * _resultobj; | |
1322 | bool _result; | |
1323 | wxWindow * _arg0; | |
1324 | PyObject * _argo0 = 0; | |
1325 | char *_kwnames[] = { "self", NULL }; | |
1326 | ||
1327 | self = self; | |
1328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) | |
1329 | return NULL; | |
1330 | if (_argo0) { | |
1331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); | |
1334 | return NULL; | |
1335 | } | |
1336 | } | |
1337 | { | |
0e2ff151 | 1338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1339 | _result = (bool )wxWindow_Destroy(_arg0); |
e6056257 | 1340 | |
0e2ff151 | 1341 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1342 | if (PyErr_Occurred()) return NULL; |
1343 | } _resultobj = Py_BuildValue("i",_result); | |
1344 | return _resultobj; | |
1345 | } | |
1346 | ||
1347 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
1348 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1349 | PyObject * _resultobj; | |
1350 | wxWindow * _arg0; | |
1351 | PyObject * _argo0 = 0; | |
1352 | char *_kwnames[] = { "self", NULL }; | |
1353 | ||
1354 | self = self; | |
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) | |
1356 | return NULL; | |
1357 | if (_argo0) { | |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); | |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
1364 | { | |
0e2ff151 | 1365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1366 | wxWindow_DestroyChildren(_arg0); |
e6056257 | 1367 | |
0e2ff151 | 1368 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1369 | if (PyErr_Occurred()) return NULL; |
1370 | } Py_INCREF(Py_None); | |
1371 | _resultobj = Py_None; | |
1372 | return _resultobj; | |
1373 | } | |
1374 | ||
1375 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) | |
1376 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1377 | PyObject * _resultobj; | |
1378 | bool _result; | |
1379 | wxWindow * _arg0; | |
1380 | PyObject * _argo0 = 0; | |
1381 | char *_kwnames[] = { "self", NULL }; | |
1382 | ||
1383 | self = self; | |
1384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1385 | return NULL; | |
1386 | if (_argo0) { | |
1387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1390 | return NULL; | |
1391 | } | |
1392 | } | |
1393 | { | |
0e2ff151 | 1394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1395 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
e6056257 | 1396 | |
0e2ff151 | 1397 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1398 | if (PyErr_Occurred()) return NULL; |
1399 | } _resultobj = Py_BuildValue("i",_result); | |
1400 | return _resultobj; | |
1401 | } | |
1402 | ||
1403 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1404 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject * _resultobj; | |
1406 | wxWindow * _arg0; | |
1407 | bool _arg1; | |
1408 | PyObject * _argo0 = 0; | |
1409 | int tempbool1; | |
1410 | char *_kwnames[] = { "self","enable", NULL }; | |
1411 | ||
1412 | self = self; | |
1413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) | |
1414 | return NULL; | |
1415 | if (_argo0) { | |
1416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); | |
1419 | return NULL; | |
1420 | } | |
1421 | } | |
1422 | _arg1 = (bool ) tempbool1; | |
1423 | { | |
0e2ff151 | 1424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1425 | wxWindow_Enable(_arg0,_arg1); |
e6056257 | 1426 | |
0e2ff151 | 1427 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1428 | if (PyErr_Occurred()) return NULL; |
1429 | } Py_INCREF(Py_None); | |
1430 | _resultobj = Py_None; | |
1431 | return _resultobj; | |
1432 | } | |
1433 | ||
1434 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1435 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1436 | PyObject * _resultobj; | |
1437 | wxWindow * _result; | |
1438 | wxWindow * _arg0; | |
1439 | long _arg1; | |
1440 | PyObject * _argo0 = 0; | |
1441 | char *_kwnames[] = { "self","id", NULL }; | |
1442 | ||
1443 | self = self; | |
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) | |
1445 | return NULL; | |
1446 | if (_argo0) { | |
1447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); | |
1450 | return NULL; | |
1451 | } | |
1452 | } | |
1453 | { | |
0e2ff151 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1455 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
e6056257 | 1456 | |
0e2ff151 | 1457 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1458 | if (PyErr_Occurred()) return NULL; |
1459 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
1463 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1464 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1465 | PyObject * _resultobj; | |
1466 | wxWindow * _result; | |
1467 | wxWindow * _arg0; | |
1468 | wxString * _arg1; | |
1469 | PyObject * _argo0 = 0; | |
1470 | PyObject * _obj1 = 0; | |
1471 | char *_kwnames[] = { "self","name", NULL }; | |
1472 | ||
1473 | self = self; | |
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) | |
1475 | return NULL; | |
1476 | if (_argo0) { | |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); | |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | { | |
6824d4f9 RD |
1484 | _arg1 = wxString_in_helper(_obj1); |
1485 | if (_arg1 == NULL) | |
e6056257 | 1486 | return NULL; |
e6056257 RD |
1487 | } |
1488 | { | |
0e2ff151 | 1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1490 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
e6056257 | 1491 | |
0e2ff151 | 1492 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1493 | if (PyErr_Occurred()) return NULL; |
1494 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1495 | { | |
1496 | if (_obj1) | |
1497 | delete _arg1; | |
1498 | } | |
1499 | return _resultobj; | |
1500 | } | |
1501 | ||
1502 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
1503 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1504 | PyObject * _resultobj; | |
1505 | wxWindow * _arg0; | |
1506 | PyObject * _argo0 = 0; | |
1507 | char *_kwnames[] = { "self", NULL }; | |
1508 | ||
1509 | self = self; | |
1510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) | |
1511 | return NULL; | |
1512 | if (_argo0) { | |
1513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); | |
1516 | return NULL; | |
1517 | } | |
1518 | } | |
1519 | { | |
0e2ff151 | 1520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1521 | wxWindow_Fit(_arg0); |
e6056257 | 1522 | |
0e2ff151 | 1523 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1524 | if (PyErr_Occurred()) return NULL; |
1525 | } Py_INCREF(Py_None); | |
1526 | _resultobj = Py_None; | |
1527 | return _resultobj; | |
1528 | } | |
1529 | ||
1530 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1531 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject * _resultobj; | |
1533 | wxColour * _result; | |
1534 | wxWindow * _arg0; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self", NULL }; | |
1537 | char _ptemp[128]; | |
1538 | ||
1539 | self = self; | |
1540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) | |
1541 | return NULL; | |
1542 | if (_argo0) { | |
1543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); | |
1546 | return NULL; | |
1547 | } | |
1548 | } | |
1549 | { | |
0e2ff151 | 1550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1551 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
e6056257 | 1552 | |
0e2ff151 | 1553 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1554 | if (PyErr_Occurred()) return NULL; |
1555 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1556 | _resultobj = Py_BuildValue("s",_ptemp); | |
1557 | return _resultobj; | |
1558 | } | |
1559 | ||
a341e32e RD |
1560 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1561 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1562 | PyObject * _resultobj; | |
1563 | wxBorder _result; | |
1564 | wxWindow * _arg0; | |
1565 | PyObject * _argo0 = 0; | |
1566 | char *_kwnames[] = { "self", NULL }; | |
1567 | ||
1568 | self = self; | |
1569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1570 | return NULL; | |
1571 | if (_argo0) { | |
1572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1575 | return NULL; | |
1576 | } | |
1577 | } | |
1578 | { | |
1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 1580 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
a341e32e RD |
1581 | |
1582 | wxPyEndAllowThreads(__tstate); | |
1583 | if (PyErr_Occurred()) return NULL; | |
1584 | } _resultobj = Py_BuildValue("i",_result); | |
1585 | return _resultobj; | |
1586 | } | |
1587 | ||
e6056257 RD |
1588 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1589 | wxWindowList& list = self->GetChildren(); | |
1590 | return wxPy_ConvertList(&list, "wxWindow"); | |
1591 | } | |
1592 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1593 | PyObject * _resultobj; | |
1594 | PyObject * _result; | |
1595 | wxWindow * _arg0; | |
1596 | PyObject * _argo0 = 0; | |
1597 | char *_kwnames[] = { "self", NULL }; | |
1598 | ||
1599 | self = self; | |
1600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1601 | return NULL; | |
1602 | if (_argo0) { | |
1603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1606 | return NULL; | |
1607 | } | |
1608 | } | |
1609 | { | |
0e2ff151 | 1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1611 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
e6056257 | 1612 | |
0e2ff151 | 1613 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1614 | if (PyErr_Occurred()) return NULL; |
1615 | }{ | |
1616 | _resultobj = _result; | |
1617 | } | |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1622 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxWindow * _arg0; | |
1626 | PyObject * _argo0 = 0; | |
1627 | char *_kwnames[] = { "self", NULL }; | |
1628 | ||
1629 | self = self; | |
1630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) | |
1631 | return NULL; | |
1632 | if (_argo0) { | |
1633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); | |
1636 | return NULL; | |
1637 | } | |
1638 | } | |
1639 | { | |
0e2ff151 | 1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1641 | _result = (int )wxWindow_GetCharHeight(_arg0); |
e6056257 | 1642 | |
0e2ff151 | 1643 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1644 | if (PyErr_Occurred()) return NULL; |
1645 | } _resultobj = Py_BuildValue("i",_result); | |
1646 | return _resultobj; | |
1647 | } | |
1648 | ||
1649 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1650 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1651 | PyObject * _resultobj; | |
1652 | int _result; | |
1653 | wxWindow * _arg0; | |
1654 | PyObject * _argo0 = 0; | |
1655 | char *_kwnames[] = { "self", NULL }; | |
1656 | ||
1657 | self = self; | |
1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) | |
1659 | return NULL; | |
1660 | if (_argo0) { | |
1661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); | |
1664 | return NULL; | |
1665 | } | |
1666 | } | |
1667 | { | |
0e2ff151 | 1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1669 | _result = (int )wxWindow_GetCharWidth(_arg0); |
e6056257 | 1670 | |
0e2ff151 | 1671 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1672 | if (PyErr_Occurred()) return NULL; |
1673 | } _resultobj = Py_BuildValue("i",_result); | |
1674 | return _resultobj; | |
1675 | } | |
1676 | ||
1677 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) | |
1678 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1679 | PyObject * _resultobj; | |
1680 | wxWindow * _arg0; | |
1681 | int * _arg1; | |
1682 | int temp; | |
1683 | int * _arg2; | |
1684 | int temp0; | |
1685 | PyObject * _argo0 = 0; | |
1686 | char *_kwnames[] = { "self", NULL }; | |
1687 | ||
1688 | self = self; | |
1689 | { | |
1690 | _arg1 = &temp; | |
1691 | } | |
1692 | { | |
1693 | _arg2 = &temp0; | |
1694 | } | |
1695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) | |
1696 | return NULL; | |
1697 | if (_argo0) { | |
1698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); | |
1701 | return NULL; | |
1702 | } | |
1703 | } | |
1704 | { | |
0e2ff151 | 1705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1706 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
e6056257 | 1707 | |
0e2ff151 | 1708 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1709 | if (PyErr_Occurred()) return NULL; |
1710 | } Py_INCREF(Py_None); | |
1711 | _resultobj = Py_None; | |
1712 | { | |
1713 | PyObject *o; | |
1714 | o = PyInt_FromLong((long) (*_arg1)); | |
1715 | _resultobj = t_output_helper(_resultobj, o); | |
1716 | } | |
1717 | { | |
1718 | PyObject *o; | |
1719 | o = PyInt_FromLong((long) (*_arg2)); | |
1720 | _resultobj = t_output_helper(_resultobj, o); | |
1721 | } | |
1722 | return _resultobj; | |
1723 | } | |
1724 | ||
1725 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) | |
1726 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1727 | PyObject * _resultobj; | |
1728 | wxSize * _result; | |
1729 | wxWindow * _arg0; | |
1730 | PyObject * _argo0 = 0; | |
1731 | char *_kwnames[] = { "self", NULL }; | |
1732 | char _ptemp[128]; | |
1733 | ||
1734 | self = self; | |
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) | |
1736 | return NULL; | |
1737 | if (_argo0) { | |
1738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); | |
1741 | return NULL; | |
1742 | } | |
1743 | } | |
1744 | { | |
0e2ff151 | 1745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1746 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
e6056257 | 1747 | |
0e2ff151 | 1748 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1749 | if (PyErr_Occurred()) return NULL; |
1750 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1751 | _resultobj = Py_BuildValue("s",_ptemp); | |
1752 | return _resultobj; | |
1753 | } | |
1754 | ||
a341e32e RD |
1755 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1756 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject * _resultobj; | |
1758 | wxPoint * _result; | |
1759 | wxWindow * _arg0; | |
1760 | PyObject * _argo0 = 0; | |
1761 | char *_kwnames[] = { "self", NULL }; | |
1762 | char _ptemp[128]; | |
1763 | ||
1764 | self = self; | |
1765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1766 | return NULL; | |
1767 | if (_argo0) { | |
1768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1771 | return NULL; | |
1772 | } | |
1773 | } | |
1774 | { | |
1775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 1776 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
a341e32e RD |
1777 | |
1778 | wxPyEndAllowThreads(__tstate); | |
1779 | if (PyErr_Occurred()) return NULL; | |
1780 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1781 | _resultobj = Py_BuildValue("s",_ptemp); | |
1782 | return _resultobj; | |
1783 | } | |
1784 | ||
1785 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1786 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1787 | PyObject * _resultobj; | |
1788 | wxRect * _result; | |
1789 | wxWindow * _arg0; | |
1790 | PyObject * _argo0 = 0; | |
1791 | char *_kwnames[] = { "self", NULL }; | |
1792 | char _ptemp[128]; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1796 | return NULL; | |
1797 | if (_argo0) { | |
1798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1801 | return NULL; | |
1802 | } | |
1803 | } | |
1804 | { | |
1805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 1806 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
a341e32e RD |
1807 | |
1808 | wxPyEndAllowThreads(__tstate); | |
1809 | if (PyErr_Occurred()) return NULL; | |
1810 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1811 | _resultobj = Py_BuildValue("s",_ptemp); | |
1812 | return _resultobj; | |
1813 | } | |
1814 | ||
e6056257 RD |
1815 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
1816 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1817 | PyObject * _resultobj; | |
1818 | wxLayoutConstraints * _result; | |
1819 | wxWindow * _arg0; | |
1820 | PyObject * _argo0 = 0; | |
1821 | char *_kwnames[] = { "self", NULL }; | |
1822 | char _ptemp[128]; | |
1823 | ||
1824 | self = self; | |
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) | |
1826 | return NULL; | |
1827 | if (_argo0) { | |
1828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); | |
1831 | return NULL; | |
1832 | } | |
1833 | } | |
1834 | { | |
0e2ff151 | 1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1836 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
e6056257 | 1837 | |
0e2ff151 | 1838 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1839 | if (PyErr_Occurred()) return NULL; |
1840 | } if (_result) { | |
1841 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1842 | _resultobj = Py_BuildValue("s",_ptemp); | |
1843 | } else { | |
1844 | Py_INCREF(Py_None); | |
1845 | _resultobj = Py_None; | |
1846 | } | |
1847 | return _resultobj; | |
1848 | } | |
1849 | ||
1850 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
1851 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject * _resultobj; | |
1853 | wxEvtHandler * _result; | |
1854 | wxWindow * _arg0; | |
1855 | PyObject * _argo0 = 0; | |
1856 | char *_kwnames[] = { "self", NULL }; | |
1857 | ||
1858 | self = self; | |
1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1860 | return NULL; | |
1861 | if (_argo0) { | |
1862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1865 | return NULL; | |
1866 | } | |
1867 | } | |
1868 | { | |
0e2ff151 | 1869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1870 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
e6056257 | 1871 | |
0e2ff151 | 1872 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1873 | if (PyErr_Occurred()) return NULL; |
1874 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1875 | return _resultobj; | |
1876 | } | |
1877 | ||
1878 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) | |
1879 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1880 | PyObject * _resultobj; | |
1881 | wxFont * _result; | |
1882 | wxWindow * _arg0; | |
1883 | PyObject * _argo0 = 0; | |
1884 | char *_kwnames[] = { "self", NULL }; | |
1885 | char _ptemp[128]; | |
1886 | ||
1887 | self = self; | |
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) | |
1889 | return NULL; | |
1890 | if (_argo0) { | |
1891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); | |
1894 | return NULL; | |
1895 | } | |
1896 | } | |
1897 | { | |
0e2ff151 | 1898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1899 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
e6056257 | 1900 | |
0e2ff151 | 1901 | wxPyEndAllowThreads(__tstate); |
e6056257 | 1902 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
1903 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1904 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
1905 | return _resultobj; |
1906 | } | |
1907 | ||
1908 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
1909 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject * _resultobj; | |
1911 | wxColour * _result; | |
1912 | wxWindow * _arg0; | |
1913 | PyObject * _argo0 = 0; | |
1914 | char *_kwnames[] = { "self", NULL }; | |
1915 | char _ptemp[128]; | |
1916 | ||
1917 | self = self; | |
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) | |
1919 | return NULL; | |
1920 | if (_argo0) { | |
1921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); | |
1924 | return NULL; | |
1925 | } | |
1926 | } | |
1927 | { | |
0e2ff151 | 1928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1929 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
e6056257 | 1930 | |
0e2ff151 | 1931 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1932 | if (PyErr_Occurred()) return NULL; |
1933 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1934 | _resultobj = Py_BuildValue("s",_ptemp); | |
1935 | return _resultobj; | |
1936 | } | |
1937 | ||
1938 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
1939 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | wxWindow * _result; | |
1942 | wxWindow * _arg0; | |
1943 | PyObject * _argo0 = 0; | |
1944 | char *_kwnames[] = { "self", NULL }; | |
1945 | ||
1946 | self = self; | |
1947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) | |
1948 | return NULL; | |
1949 | if (_argo0) { | |
1950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); | |
1953 | return NULL; | |
1954 | } | |
1955 | } | |
1956 | { | |
0e2ff151 | 1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1958 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
e6056257 | 1959 | |
0e2ff151 | 1960 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1961 | if (PyErr_Occurred()) return NULL; |
1962 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1963 | return _resultobj; | |
1964 | } | |
1965 | ||
1966 | static long wxWindow_GetHandle(wxWindow *self) { | |
1967 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); | |
1968 | } | |
1969 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject * _resultobj; | |
1971 | long _result; | |
1972 | wxWindow * _arg0; | |
1973 | PyObject * _argo0 = 0; | |
1974 | char *_kwnames[] = { "self", NULL }; | |
1975 | ||
1976 | self = self; | |
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1978 | return NULL; | |
1979 | if (_argo0) { | |
1980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
1986 | { | |
0e2ff151 | 1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1988 | _result = (long )wxWindow_GetHandle(_arg0); |
e6056257 | 1989 | |
0e2ff151 | 1990 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1991 | if (PyErr_Occurred()) return NULL; |
1992 | } _resultobj = Py_BuildValue("l",_result); | |
1993 | return _resultobj; | |
1994 | } | |
1995 | ||
1996 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
1997 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject * _resultobj; | |
1999 | int _result; | |
2000 | wxWindow * _arg0; | |
2001 | PyObject * _argo0 = 0; | |
2002 | char *_kwnames[] = { "self", NULL }; | |
2003 | ||
2004 | self = self; | |
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) | |
2006 | return NULL; | |
2007 | if (_argo0) { | |
2008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); | |
2011 | return NULL; | |
2012 | } | |
2013 | } | |
2014 | { | |
0e2ff151 | 2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2016 | _result = (int )wxWindow_GetId(_arg0); |
e6056257 | 2017 | |
0e2ff151 | 2018 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2019 | if (PyErr_Occurred()) return NULL; |
2020 | } _resultobj = Py_BuildValue("i",_result); | |
2021 | return _resultobj; | |
2022 | } | |
2023 | ||
2024 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2025 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2026 | PyObject * _resultobj; | |
2027 | wxString * _result; | |
2028 | wxWindow * _arg0; | |
2029 | PyObject * _argo0 = 0; | |
2030 | char *_kwnames[] = { "self", NULL }; | |
2031 | ||
2032 | self = self; | |
2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) | |
2034 | return NULL; | |
2035 | if (_argo0) { | |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); | |
2039 | return NULL; | |
2040 | } | |
2041 | } | |
2042 | { | |
0e2ff151 | 2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2044 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
e6056257 | 2045 | |
0e2ff151 | 2046 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2047 | if (PyErr_Occurred()) return NULL; |
2048 | }{ | |
6824d4f9 RD |
2049 | #if wxUSE_UNICODE |
2050 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2051 | #else | |
e6056257 | 2052 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 2053 | #endif |
e6056257 RD |
2054 | } |
2055 | { | |
2056 | delete _result; | |
2057 | } | |
2058 | return _resultobj; | |
2059 | } | |
2060 | ||
2061 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
2062 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2063 | PyObject * _resultobj; | |
2064 | wxWindow * _arg0; | |
2065 | wxString * _arg1; | |
2066 | PyObject * _argo0 = 0; | |
2067 | PyObject * _obj1 = 0; | |
2068 | char *_kwnames[] = { "self","label", NULL }; | |
2069 | ||
2070 | self = self; | |
2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) | |
2072 | return NULL; | |
2073 | if (_argo0) { | |
2074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); | |
2077 | return NULL; | |
2078 | } | |
2079 | } | |
2080 | { | |
6824d4f9 RD |
2081 | _arg1 = wxString_in_helper(_obj1); |
2082 | if (_arg1 == NULL) | |
e6056257 | 2083 | return NULL; |
e6056257 RD |
2084 | } |
2085 | { | |
0e2ff151 | 2086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2087 | wxWindow_SetLabel(_arg0,*_arg1); |
e6056257 | 2088 | |
0e2ff151 | 2089 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2090 | if (PyErr_Occurred()) return NULL; |
2091 | } Py_INCREF(Py_None); | |
2092 | _resultobj = Py_None; | |
2093 | { | |
2094 | if (_obj1) | |
2095 | delete _arg1; | |
2096 | } | |
2097 | return _resultobj; | |
2098 | } | |
2099 | ||
2100 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) | |
2101 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2102 | PyObject * _resultobj; | |
2103 | wxString * _result; | |
2104 | wxWindow * _arg0; | |
2105 | PyObject * _argo0 = 0; | |
2106 | char *_kwnames[] = { "self", NULL }; | |
2107 | ||
2108 | self = self; | |
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) | |
2110 | return NULL; | |
2111 | if (_argo0) { | |
2112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); | |
2115 | return NULL; | |
2116 | } | |
2117 | } | |
2118 | { | |
0e2ff151 | 2119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2120 | _result = new wxString (wxWindow_GetName(_arg0)); |
e6056257 | 2121 | |
0e2ff151 | 2122 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2123 | if (PyErr_Occurred()) return NULL; |
2124 | }{ | |
6824d4f9 RD |
2125 | #if wxUSE_UNICODE |
2126 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2127 | #else | |
e6056257 | 2128 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 2129 | #endif |
e6056257 RD |
2130 | } |
2131 | { | |
2132 | delete _result; | |
2133 | } | |
2134 | return _resultobj; | |
2135 | } | |
2136 | ||
2137 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
2138 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject * _resultobj; | |
2140 | wxWindow * _result; | |
2141 | wxWindow * _arg0; | |
2142 | PyObject * _argo0 = 0; | |
2143 | char *_kwnames[] = { "self", NULL }; | |
2144 | ||
2145 | self = self; | |
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) | |
2147 | return NULL; | |
2148 | if (_argo0) { | |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); | |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
2155 | { | |
0e2ff151 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2157 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
e6056257 | 2158 | |
0e2ff151 | 2159 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2160 | if (PyErr_Occurred()) return NULL; |
2161 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2162 | return _resultobj; | |
2163 | } | |
2164 | ||
2165 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2166 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject * _resultobj; | |
2168 | wxWindow * _arg0; | |
2169 | int * _arg1; | |
2170 | int temp; | |
2171 | int * _arg2; | |
2172 | int temp0; | |
2173 | PyObject * _argo0 = 0; | |
2174 | char *_kwnames[] = { "self", NULL }; | |
2175 | ||
2176 | self = self; | |
2177 | { | |
2178 | _arg1 = &temp; | |
2179 | } | |
2180 | { | |
2181 | _arg2 = &temp0; | |
2182 | } | |
2183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) | |
2184 | return NULL; | |
2185 | if (_argo0) { | |
2186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); | |
2189 | return NULL; | |
2190 | } | |
2191 | } | |
2192 | { | |
0e2ff151 | 2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2194 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
e6056257 | 2195 | |
0e2ff151 | 2196 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2197 | if (PyErr_Occurred()) return NULL; |
2198 | } Py_INCREF(Py_None); | |
2199 | _resultobj = Py_None; | |
2200 | { | |
2201 | PyObject *o; | |
2202 | o = PyInt_FromLong((long) (*_arg1)); | |
2203 | _resultobj = t_output_helper(_resultobj, o); | |
2204 | } | |
2205 | { | |
2206 | PyObject *o; | |
2207 | o = PyInt_FromLong((long) (*_arg2)); | |
2208 | _resultobj = t_output_helper(_resultobj, o); | |
2209 | } | |
2210 | return _resultobj; | |
2211 | } | |
2212 | ||
2213 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2214 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject * _resultobj; | |
2216 | wxPoint * _result; | |
2217 | wxWindow * _arg0; | |
2218 | PyObject * _argo0 = 0; | |
2219 | char *_kwnames[] = { "self", NULL }; | |
2220 | char _ptemp[128]; | |
2221 | ||
2222 | self = self; | |
2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) | |
2224 | return NULL; | |
2225 | if (_argo0) { | |
2226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); | |
2229 | return NULL; | |
2230 | } | |
2231 | } | |
2232 | { | |
0e2ff151 | 2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2234 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
e6056257 | 2235 | |
0e2ff151 | 2236 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2237 | if (PyErr_Occurred()) return NULL; |
2238 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2239 | _resultobj = Py_BuildValue("s",_ptemp); | |
2240 | return _resultobj; | |
2241 | } | |
2242 | ||
2243 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
2244 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject * _resultobj; | |
2246 | wxRect * _result; | |
2247 | wxWindow * _arg0; | |
2248 | PyObject * _argo0 = 0; | |
2249 | char *_kwnames[] = { "self", NULL }; | |
2250 | char _ptemp[128]; | |
2251 | ||
2252 | self = self; | |
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) | |
2254 | return NULL; | |
2255 | if (_argo0) { | |
2256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); | |
2259 | return NULL; | |
2260 | } | |
2261 | } | |
2262 | { | |
0e2ff151 | 2263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2264 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
e6056257 | 2265 | |
0e2ff151 | 2266 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2267 | if (PyErr_Occurred()) return NULL; |
2268 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2269 | _resultobj = Py_BuildValue("s",_ptemp); | |
2270 | return _resultobj; | |
2271 | } | |
2272 | ||
2273 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) | |
2274 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2275 | PyObject * _resultobj; | |
2276 | int _result; | |
2277 | wxWindow * _arg0; | |
2278 | int _arg1; | |
2279 | PyObject * _argo0 = 0; | |
2280 | char *_kwnames[] = { "self","orientation", NULL }; | |
2281 | ||
2282 | self = self; | |
2283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) | |
2284 | return NULL; | |
2285 | if (_argo0) { | |
2286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); | |
2289 | return NULL; | |
2290 | } | |
2291 | } | |
2292 | { | |
0e2ff151 | 2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2294 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
e6056257 | 2295 | |
0e2ff151 | 2296 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2297 | if (PyErr_Occurred()) return NULL; |
2298 | } _resultobj = Py_BuildValue("i",_result); | |
2299 | return _resultobj; | |
2300 | } | |
2301 | ||
2302 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
2303 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2304 | PyObject * _resultobj; | |
2305 | int _result; | |
2306 | wxWindow * _arg0; | |
2307 | int _arg1; | |
2308 | PyObject * _argo0 = 0; | |
2309 | char *_kwnames[] = { "self","orientation", NULL }; | |
2310 | ||
2311 | self = self; | |
2312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) | |
2313 | return NULL; | |
2314 | if (_argo0) { | |
2315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); | |
2318 | return NULL; | |
2319 | } | |
2320 | } | |
2321 | { | |
0e2ff151 | 2322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2323 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
e6056257 | 2324 | |
0e2ff151 | 2325 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2326 | if (PyErr_Occurred()) return NULL; |
2327 | } _resultobj = Py_BuildValue("i",_result); | |
2328 | return _resultobj; | |
2329 | } | |
2330 | ||
2331 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
2332 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2333 | PyObject * _resultobj; | |
2334 | int _result; | |
2335 | wxWindow * _arg0; | |
2336 | int _arg1; | |
2337 | PyObject * _argo0 = 0; | |
2338 | char *_kwnames[] = { "self","orientation", NULL }; | |
2339 | ||
2340 | self = self; | |
2341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) | |
2342 | return NULL; | |
2343 | if (_argo0) { | |
2344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); | |
2347 | return NULL; | |
2348 | } | |
2349 | } | |
2350 | { | |
0e2ff151 | 2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2352 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
e6056257 | 2353 | |
0e2ff151 | 2354 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2355 | if (PyErr_Occurred()) return NULL; |
2356 | } _resultobj = Py_BuildValue("i",_result); | |
2357 | return _resultobj; | |
2358 | } | |
2359 | ||
2360 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2361 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2362 | PyObject * _resultobj; | |
2363 | wxWindow * _arg0; | |
2364 | int * _arg1; | |
2365 | int temp; | |
2366 | int * _arg2; | |
2367 | int temp0; | |
2368 | PyObject * _argo0 = 0; | |
2369 | char *_kwnames[] = { "self", NULL }; | |
2370 | ||
2371 | self = self; | |
2372 | { | |
2373 | _arg1 = &temp; | |
2374 | } | |
2375 | { | |
2376 | _arg2 = &temp0; | |
2377 | } | |
2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) | |
2379 | return NULL; | |
2380 | if (_argo0) { | |
2381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); | |
2384 | return NULL; | |
2385 | } | |
2386 | } | |
2387 | { | |
0e2ff151 | 2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2389 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
e6056257 | 2390 | |
0e2ff151 | 2391 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2392 | if (PyErr_Occurred()) return NULL; |
2393 | } Py_INCREF(Py_None); | |
2394 | _resultobj = Py_None; | |
2395 | { | |
2396 | PyObject *o; | |
2397 | o = PyInt_FromLong((long) (*_arg1)); | |
2398 | _resultobj = t_output_helper(_resultobj, o); | |
2399 | } | |
2400 | { | |
2401 | PyObject *o; | |
2402 | o = PyInt_FromLong((long) (*_arg2)); | |
2403 | _resultobj = t_output_helper(_resultobj, o); | |
2404 | } | |
2405 | return _resultobj; | |
2406 | } | |
2407 | ||
2408 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) | |
2409 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2410 | PyObject * _resultobj; | |
2411 | wxSize * _result; | |
2412 | wxWindow * _arg0; | |
2413 | PyObject * _argo0 = 0; | |
2414 | char *_kwnames[] = { "self", NULL }; | |
2415 | char _ptemp[128]; | |
2416 | ||
2417 | self = self; | |
2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) | |
2419 | return NULL; | |
2420 | if (_argo0) { | |
2421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); | |
2424 | return NULL; | |
2425 | } | |
2426 | } | |
2427 | { | |
0e2ff151 | 2428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2429 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
e6056257 | 2430 | |
0e2ff151 | 2431 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2432 | if (PyErr_Occurred()) return NULL; |
2433 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2434 | _resultobj = Py_BuildValue("s",_ptemp); | |
2435 | return _resultobj; | |
2436 | } | |
2437 | ||
2438 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
2439 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2440 | PyObject * _resultobj; | |
2441 | wxWindow * _arg0; | |
2442 | wxString * _arg1; | |
2443 | int * _arg2; | |
2444 | int temp; | |
2445 | int * _arg3; | |
2446 | int temp0; | |
2447 | PyObject * _argo0 = 0; | |
2448 | PyObject * _obj1 = 0; | |
2449 | char *_kwnames[] = { "self","string", NULL }; | |
2450 | ||
2451 | self = self; | |
2452 | { | |
2453 | _arg2 = &temp; | |
2454 | } | |
2455 | { | |
2456 | _arg3 = &temp0; | |
2457 | } | |
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
2459 | return NULL; | |
2460 | if (_argo0) { | |
2461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); | |
2464 | return NULL; | |
2465 | } | |
2466 | } | |
2467 | { | |
6824d4f9 RD |
2468 | _arg1 = wxString_in_helper(_obj1); |
2469 | if (_arg1 == NULL) | |
e6056257 | 2470 | return NULL; |
e6056257 RD |
2471 | } |
2472 | { | |
0e2ff151 | 2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2474 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 2475 | |
0e2ff151 | 2476 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2477 | if (PyErr_Occurred()) return NULL; |
2478 | } Py_INCREF(Py_None); | |
2479 | _resultobj = Py_None; | |
2480 | { | |
2481 | PyObject *o; | |
2482 | o = PyInt_FromLong((long) (*_arg2)); | |
2483 | _resultobj = t_output_helper(_resultobj, o); | |
2484 | } | |
2485 | { | |
2486 | PyObject *o; | |
2487 | o = PyInt_FromLong((long) (*_arg3)); | |
2488 | _resultobj = t_output_helper(_resultobj, o); | |
2489 | } | |
2490 | { | |
2491 | if (_obj1) | |
2492 | delete _arg1; | |
2493 | } | |
2494 | return _resultobj; | |
2495 | } | |
2496 | ||
2497 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2498 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2499 | PyObject * _resultobj; | |
2500 | wxWindow * _arg0; | |
2501 | wxString * _arg1; | |
2502 | int * _arg2; | |
2503 | int temp; | |
2504 | int * _arg3; | |
2505 | int temp0; | |
2506 | int * _arg4; | |
2507 | int temp1; | |
2508 | int * _arg5; | |
2509 | int temp2; | |
2510 | wxFont * _arg6 = (wxFont *) NULL; | |
2511 | PyObject * _argo0 = 0; | |
2512 | PyObject * _obj1 = 0; | |
2513 | PyObject * _argo6 = 0; | |
2514 | char *_kwnames[] = { "self","string","font", NULL }; | |
2515 | ||
2516 | self = self; | |
2517 | { | |
2518 | _arg2 = &temp; | |
2519 | } | |
2520 | { | |
2521 | _arg3 = &temp0; | |
2522 | } | |
2523 | { | |
2524 | _arg4 = &temp1; | |
2525 | } | |
2526 | { | |
2527 | _arg5 = &temp2; | |
2528 | } | |
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
2530 | return NULL; | |
2531 | if (_argo0) { | |
2532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); | |
2535 | return NULL; | |
2536 | } | |
2537 | } | |
2538 | { | |
6824d4f9 RD |
2539 | _arg1 = wxString_in_helper(_obj1); |
2540 | if (_arg1 == NULL) | |
e6056257 | 2541 | return NULL; |
e6056257 RD |
2542 | } |
2543 | if (_argo6) { | |
2544 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2545 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
2546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); | |
2547 | return NULL; | |
2548 | } | |
2549 | } | |
2550 | { | |
0e2ff151 | 2551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2552 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 2553 | |
0e2ff151 | 2554 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2555 | if (PyErr_Occurred()) return NULL; |
2556 | } Py_INCREF(Py_None); | |
2557 | _resultobj = Py_None; | |
2558 | { | |
2559 | PyObject *o; | |
2560 | o = PyInt_FromLong((long) (*_arg2)); | |
2561 | _resultobj = t_output_helper(_resultobj, o); | |
2562 | } | |
2563 | { | |
2564 | PyObject *o; | |
2565 | o = PyInt_FromLong((long) (*_arg3)); | |
2566 | _resultobj = t_output_helper(_resultobj, o); | |
2567 | } | |
2568 | { | |
2569 | PyObject *o; | |
2570 | o = PyInt_FromLong((long) (*_arg4)); | |
2571 | _resultobj = t_output_helper(_resultobj, o); | |
2572 | } | |
2573 | { | |
2574 | PyObject *o; | |
2575 | o = PyInt_FromLong((long) (*_arg5)); | |
2576 | _resultobj = t_output_helper(_resultobj, o); | |
2577 | } | |
2578 | { | |
2579 | if (_obj1) | |
2580 | delete _arg1; | |
2581 | } | |
2582 | return _resultobj; | |
2583 | } | |
2584 | ||
2585 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
2586 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2587 | PyObject * _resultobj; | |
2588 | wxString * _result; | |
2589 | wxWindow * _arg0; | |
2590 | PyObject * _argo0 = 0; | |
2591 | char *_kwnames[] = { "self", NULL }; | |
2592 | ||
2593 | self = self; | |
2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) | |
2595 | return NULL; | |
2596 | if (_argo0) { | |
2597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); | |
2600 | return NULL; | |
2601 | } | |
2602 | } | |
2603 | { | |
0e2ff151 | 2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2605 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
e6056257 | 2606 | |
0e2ff151 | 2607 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2608 | if (PyErr_Occurred()) return NULL; |
2609 | }{ | |
6824d4f9 RD |
2610 | #if wxUSE_UNICODE |
2611 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2612 | #else | |
e6056257 | 2613 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 2614 | #endif |
e6056257 RD |
2615 | } |
2616 | { | |
2617 | delete _result; | |
2618 | } | |
2619 | return _resultobj; | |
2620 | } | |
2621 | ||
2622 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) | |
2623 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2624 | PyObject * _resultobj; | |
2625 | wxRegion * _result; | |
2626 | wxWindow * _arg0; | |
2627 | PyObject * _argo0 = 0; | |
2628 | char *_kwnames[] = { "self", NULL }; | |
2629 | char _ptemp[128]; | |
2630 | ||
2631 | self = self; | |
2632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) | |
2633 | return NULL; | |
2634 | if (_argo0) { | |
2635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); | |
2638 | return NULL; | |
2639 | } | |
2640 | } | |
2641 | { | |
0e2ff151 | 2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2643 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
e6056257 | 2644 | |
0e2ff151 | 2645 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2646 | if (PyErr_Occurred()) return NULL; |
2647 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2648 | _resultobj = Py_BuildValue("s",_ptemp); | |
2649 | return _resultobj; | |
2650 | } | |
2651 | ||
2652 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) | |
2653 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2654 | PyObject * _resultobj; | |
2655 | long _result; | |
2656 | wxWindow * _arg0; | |
2657 | PyObject * _argo0 = 0; | |
2658 | char *_kwnames[] = { "self", NULL }; | |
2659 | ||
2660 | self = self; | |
2661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) | |
2662 | return NULL; | |
2663 | if (_argo0) { | |
2664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); | |
2667 | return NULL; | |
2668 | } | |
2669 | } | |
2670 | { | |
0e2ff151 | 2671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2672 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
e6056257 | 2673 | |
0e2ff151 | 2674 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2675 | if (PyErr_Occurred()) return NULL; |
2676 | } _resultobj = Py_BuildValue("l",_result); | |
2677 | return _resultobj; | |
2678 | } | |
2679 | ||
2680 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
2681 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2682 | PyObject * _resultobj; | |
2683 | wxWindow * _arg0; | |
2684 | long _arg1; | |
2685 | PyObject * _argo0 = 0; | |
2686 | char *_kwnames[] = { "self","style", NULL }; | |
2687 | ||
2688 | self = self; | |
2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2690 | return NULL; | |
2691 | if (_argo0) { | |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2695 | return NULL; | |
2696 | } | |
2697 | } | |
2698 | { | |
0e2ff151 | 2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2700 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
e6056257 | 2701 | |
0e2ff151 | 2702 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2703 | if (PyErr_Occurred()) return NULL; |
2704 | } Py_INCREF(Py_None); | |
2705 | _resultobj = Py_None; | |
2706 | return _resultobj; | |
2707 | } | |
2708 | ||
2709 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2710 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2711 | PyObject * _resultobj; | |
2712 | wxWindow * _arg0; | |
2713 | long _arg1; | |
2714 | PyObject * _argo0 = 0; | |
2715 | char *_kwnames[] = { "self","style", NULL }; | |
2716 | ||
2717 | self = self; | |
2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2719 | return NULL; | |
2720 | if (_argo0) { | |
2721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2724 | return NULL; | |
2725 | } | |
2726 | } | |
2727 | { | |
0e2ff151 | 2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2729 | wxWindow_SetWindowStyle(_arg0,_arg1); |
e6056257 | 2730 | |
0e2ff151 | 2731 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2732 | if (PyErr_Occurred()) return NULL; |
2733 | } Py_INCREF(Py_None); | |
2734 | _resultobj = Py_None; | |
2735 | return _resultobj; | |
2736 | } | |
2737 | ||
a341e32e RD |
2738 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2739 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2740 | PyObject * _resultobj; | |
2741 | bool _result; | |
2742 | wxWindow * _arg0; | |
2743 | int _arg1; | |
2744 | PyObject * _argo0 = 0; | |
2745 | char *_kwnames[] = { "self","orient", NULL }; | |
2746 | ||
2747 | self = self; | |
2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2749 | return NULL; | |
2750 | if (_argo0) { | |
2751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2754 | return NULL; | |
2755 | } | |
2756 | } | |
2757 | { | |
2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2759 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
a341e32e RD |
2760 | |
2761 | wxPyEndAllowThreads(__tstate); | |
2762 | if (PyErr_Occurred()) return NULL; | |
2763 | } _resultobj = Py_BuildValue("i",_result); | |
2764 | return _resultobj; | |
2765 | } | |
2766 | ||
e6056257 RD |
2767 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
2768 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2769 | PyObject * _resultobj; | |
2770 | bool _result; | |
2771 | wxWindow * _arg0; | |
2772 | PyObject * _argo0 = 0; | |
2773 | char *_kwnames[] = { "self", NULL }; | |
2774 | ||
2775 | self = self; | |
2776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) | |
2777 | return NULL; | |
2778 | if (_argo0) { | |
2779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); | |
2782 | return NULL; | |
2783 | } | |
2784 | } | |
2785 | { | |
0e2ff151 | 2786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2787 | _result = (bool )wxWindow_Hide(_arg0); |
e6056257 | 2788 | |
0e2ff151 | 2789 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2790 | if (PyErr_Occurred()) return NULL; |
2791 | } _resultobj = Py_BuildValue("i",_result); | |
2792 | return _resultobj; | |
2793 | } | |
2794 | ||
a341e32e RD |
2795 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2796 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2797 | PyObject * _resultobj; | |
2798 | wxHitTest _result; | |
2799 | wxWindow * _arg0; | |
2800 | wxPoint * _arg1; | |
2801 | PyObject * _argo0 = 0; | |
2802 | wxPoint temp; | |
2803 | PyObject * _obj1 = 0; | |
2804 | char *_kwnames[] = { "self","pt", NULL }; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2808 | return NULL; | |
2809 | if (_argo0) { | |
2810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2813 | return NULL; | |
2814 | } | |
2815 | } | |
2816 | { | |
2817 | _arg1 = &temp; | |
2818 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2819 | return NULL; | |
2820 | } | |
2821 | { | |
2822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2823 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
a341e32e RD |
2824 | |
2825 | wxPyEndAllowThreads(__tstate); | |
2826 | if (PyErr_Occurred()) return NULL; | |
2827 | } _resultobj = Py_BuildValue("i",_result); | |
2828 | return _resultobj; | |
2829 | } | |
2830 | ||
e6056257 RD |
2831 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
2832 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2833 | PyObject * _resultobj; | |
2834 | wxWindow * _arg0; | |
2835 | PyObject * _argo0 = 0; | |
2836 | char *_kwnames[] = { "self", NULL }; | |
2837 | ||
2838 | self = self; | |
2839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) | |
2840 | return NULL; | |
2841 | if (_argo0) { | |
2842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); | |
2845 | return NULL; | |
2846 | } | |
2847 | } | |
2848 | { | |
0e2ff151 | 2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2850 | wxWindow_InitDialog(_arg0); |
e6056257 | 2851 | |
0e2ff151 | 2852 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2853 | if (PyErr_Occurred()) return NULL; |
2854 | } Py_INCREF(Py_None); | |
2855 | _resultobj = Py_None; | |
2856 | return _resultobj; | |
2857 | } | |
2858 | ||
2859 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
2860 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2861 | PyObject * _resultobj; | |
2862 | bool _result; | |
2863 | wxWindow * _arg0; | |
2864 | PyObject * _argo0 = 0; | |
2865 | char *_kwnames[] = { "self", NULL }; | |
2866 | ||
2867 | self = self; | |
2868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) | |
2869 | return NULL; | |
2870 | if (_argo0) { | |
2871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); | |
2874 | return NULL; | |
2875 | } | |
2876 | } | |
2877 | { | |
0e2ff151 | 2878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2879 | _result = (bool )wxWindow_IsEnabled(_arg0); |
e6056257 | 2880 | |
0e2ff151 | 2881 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2882 | if (PyErr_Occurred()) return NULL; |
2883 | } _resultobj = Py_BuildValue("i",_result); | |
2884 | return _resultobj; | |
2885 | } | |
2886 | ||
2887 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2888 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2889 | PyObject * _resultobj; | |
2890 | bool _result; | |
2891 | wxWindow * _arg0; | |
2892 | int _arg1; | |
2893 | int _arg2; | |
2894 | int _arg3 = (int ) 0; | |
2895 | int _arg4 = (int ) 0; | |
2896 | PyObject * _argo0 = 0; | |
2897 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2898 | ||
2899 | self = self; | |
2900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2901 | return NULL; | |
2902 | if (_argo0) { | |
2903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2906 | return NULL; | |
2907 | } | |
2908 | } | |
2909 | { | |
0e2ff151 | 2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2911 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 2912 | |
0e2ff151 | 2913 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2914 | if (PyErr_Occurred()) return NULL; |
2915 | } _resultobj = Py_BuildValue("i",_result); | |
2916 | return _resultobj; | |
2917 | } | |
2918 | ||
2919 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2920 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2921 | PyObject * _resultobj; | |
2922 | bool _result; | |
2923 | wxWindow * _arg0; | |
2924 | wxPoint * _arg1; | |
2925 | PyObject * _argo0 = 0; | |
2926 | wxPoint temp; | |
2927 | PyObject * _obj1 = 0; | |
2928 | char *_kwnames[] = { "self","pt", NULL }; | |
2929 | ||
2930 | self = self; | |
2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2932 | return NULL; | |
2933 | if (_argo0) { | |
2934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2937 | return NULL; | |
2938 | } | |
2939 | } | |
2940 | { | |
2941 | _arg1 = &temp; | |
2942 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2943 | return NULL; | |
2944 | } | |
2945 | { | |
0e2ff151 | 2946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2947 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
e6056257 | 2948 | |
0e2ff151 | 2949 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2950 | if (PyErr_Occurred()) return NULL; |
2951 | } _resultobj = Py_BuildValue("i",_result); | |
2952 | return _resultobj; | |
2953 | } | |
2954 | ||
2955 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2956 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2957 | PyObject * _resultobj; | |
2958 | bool _result; | |
2959 | wxWindow * _arg0; | |
2960 | wxRect * _arg1; | |
2961 | PyObject * _argo0 = 0; | |
2962 | wxRect temp; | |
2963 | PyObject * _obj1 = 0; | |
2964 | char *_kwnames[] = { "self","rect", NULL }; | |
2965 | ||
2966 | self = self; | |
2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2968 | return NULL; | |
2969 | if (_argo0) { | |
2970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2973 | return NULL; | |
2974 | } | |
2975 | } | |
2976 | { | |
2977 | _arg1 = &temp; | |
2978 | if (! wxRect_helper(_obj1, &_arg1)) | |
2979 | return NULL; | |
2980 | } | |
2981 | { | |
0e2ff151 | 2982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2983 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
e6056257 | 2984 | |
0e2ff151 | 2985 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2986 | if (PyErr_Occurred()) return NULL; |
2987 | } _resultobj = Py_BuildValue("i",_result); | |
2988 | return _resultobj; | |
2989 | } | |
2990 | ||
2991 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
2992 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2993 | PyObject * _resultobj; | |
2994 | bool _result; | |
2995 | wxWindow * _arg0; | |
2996 | PyObject * _argo0 = 0; | |
2997 | char *_kwnames[] = { "self", NULL }; | |
2998 | ||
2999 | self = self; | |
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) | |
3001 | return NULL; | |
3002 | if (_argo0) { | |
3003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); | |
3006 | return NULL; | |
3007 | } | |
3008 | } | |
3009 | { | |
0e2ff151 | 3010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3011 | _result = (bool )wxWindow_IsRetained(_arg0); |
e6056257 | 3012 | |
0e2ff151 | 3013 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3014 | if (PyErr_Occurred()) return NULL; |
3015 | } _resultobj = Py_BuildValue("i",_result); | |
3016 | return _resultobj; | |
3017 | } | |
3018 | ||
3019 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
3020 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3021 | PyObject * _resultobj; | |
3022 | bool _result; | |
3023 | wxWindow * _arg0; | |
3024 | PyObject * _argo0 = 0; | |
3025 | char *_kwnames[] = { "self", NULL }; | |
3026 | ||
3027 | self = self; | |
3028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) | |
3029 | return NULL; | |
3030 | if (_argo0) { | |
3031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); | |
3034 | return NULL; | |
3035 | } | |
3036 | } | |
3037 | { | |
0e2ff151 | 3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3039 | _result = (bool )wxWindow_IsShown(_arg0); |
e6056257 | 3040 | |
0e2ff151 | 3041 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3042 | if (PyErr_Occurred()) return NULL; |
3043 | } _resultobj = Py_BuildValue("i",_result); | |
3044 | return _resultobj; | |
3045 | } | |
3046 | ||
3047 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) | |
3048 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3049 | PyObject * _resultobj; | |
3050 | bool _result; | |
3051 | wxWindow * _arg0; | |
3052 | PyObject * _argo0 = 0; | |
3053 | char *_kwnames[] = { "self", NULL }; | |
3054 | ||
3055 | self = self; | |
3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) | |
3057 | return NULL; | |
3058 | if (_argo0) { | |
3059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); | |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
3065 | { | |
0e2ff151 | 3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3067 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
e6056257 | 3068 | |
0e2ff151 | 3069 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3070 | if (PyErr_Occurred()) return NULL; |
3071 | } _resultobj = Py_BuildValue("i",_result); | |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) | |
3076 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject * _resultobj; | |
3078 | wxWindow * _arg0; | |
3079 | PyObject * _argo0 = 0; | |
3080 | char *_kwnames[] = { "self", NULL }; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) | |
3084 | return NULL; | |
3085 | if (_argo0) { | |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); | |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | { | |
0e2ff151 | 3093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3094 | wxWindow_Layout(_arg0); |
e6056257 | 3095 | |
0e2ff151 | 3096 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3097 | if (PyErr_Occurred()) return NULL; |
3098 | } Py_INCREF(Py_None); | |
3099 | _resultobj = Py_None; | |
3100 | return _resultobj; | |
3101 | } | |
3102 | ||
3103 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
3104 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3105 | PyObject * _resultobj; | |
3106 | bool _result; | |
3107 | wxWindow * _arg0; | |
3108 | wxWindow * _arg1; | |
3109 | wxString * _arg2; | |
3110 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; | |
3111 | PyObject * _argo0 = 0; | |
3112 | PyObject * _argo1 = 0; | |
3113 | PyObject * _obj2 = 0; | |
3114 | PyObject * _argo3 = 0; | |
3115 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; | |
3116 | ||
3117 | self = self; | |
3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) | |
3119 | return NULL; | |
3120 | if (_argo0) { | |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
3127 | if (_argo1) { | |
3128 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3129 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
3131 | return NULL; | |
3132 | } | |
3133 | } | |
3134 | { | |
6824d4f9 RD |
3135 | _arg2 = wxString_in_helper(_obj2); |
3136 | if (_arg2 == NULL) | |
e6056257 | 3137 | return NULL; |
e6056257 RD |
3138 | } |
3139 | if (_argo3) { | |
3140 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3141 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
3142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); | |
3143 | return NULL; | |
3144 | } | |
3145 | } | |
3146 | { | |
0e2ff151 | 3147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3148 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
e6056257 | 3149 | |
0e2ff151 | 3150 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3151 | if (PyErr_Occurred()) return NULL; |
3152 | } _resultobj = Py_BuildValue("i",_result); | |
3153 | { | |
3154 | if (_obj2) | |
3155 | delete _arg2; | |
3156 | } | |
3157 | return _resultobj; | |
3158 | } | |
3159 | ||
3160 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
3161 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3162 | PyObject * _resultobj; | |
3163 | wxWindow * _arg0; | |
3164 | PyObject * _argo0 = 0; | |
3165 | char *_kwnames[] = { "self", NULL }; | |
3166 | ||
3167 | self = self; | |
3168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) | |
3169 | return NULL; | |
3170 | if (_argo0) { | |
3171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); | |
3174 | return NULL; | |
3175 | } | |
3176 | } | |
3177 | { | |
0e2ff151 | 3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3179 | wxWindow_Lower(_arg0); |
e6056257 | 3180 | |
0e2ff151 | 3181 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3182 | if (PyErr_Occurred()) return NULL; |
3183 | } Py_INCREF(Py_None); | |
3184 | _resultobj = Py_None; | |
3185 | return _resultobj; | |
3186 | } | |
3187 | ||
3188 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
3189 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3190 | PyObject * _resultobj; | |
3191 | wxWindow * _arg0; | |
3192 | bool _arg1 = (bool ) TRUE; | |
3193 | PyObject * _argo0 = 0; | |
3194 | int tempbool1 = (int) TRUE; | |
3195 | char *_kwnames[] = { "self","flag", NULL }; | |
3196 | ||
3197 | self = self; | |
3198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
3199 | return NULL; | |
3200 | if (_argo0) { | |
3201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); | |
3204 | return NULL; | |
3205 | } | |
3206 | } | |
3207 | _arg1 = (bool ) tempbool1; | |
3208 | { | |
0e2ff151 | 3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3210 | wxWindow_MakeModal(_arg0,_arg1); |
e6056257 | 3211 | |
0e2ff151 | 3212 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3213 | if (PyErr_Occurred()) return NULL; |
3214 | } Py_INCREF(Py_None); | |
3215 | _resultobj = Py_None; | |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
a341e32e | 3219 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
e6056257 RD |
3220 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
3221 | PyObject * _resultobj; | |
3222 | wxWindow * _arg0; | |
3223 | int _arg1; | |
3224 | int _arg2; | |
a341e32e | 3225 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
e6056257 | 3226 | PyObject * _argo0 = 0; |
a341e32e | 3227 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
e6056257 RD |
3228 | |
3229 | self = self; | |
a341e32e | 3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
e6056257 RD |
3231 | return NULL; |
3232 | if (_argo0) { | |
3233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); | |
3236 | return NULL; | |
3237 | } | |
3238 | } | |
3239 | { | |
0e2ff151 | 3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3241 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 3242 | |
0e2ff151 | 3243 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3244 | if (PyErr_Occurred()) return NULL; |
3245 | } Py_INCREF(Py_None); | |
3246 | _resultobj = Py_None; | |
3247 | return _resultobj; | |
3248 | } | |
3249 | ||
a341e32e | 3250 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
e6056257 RD |
3251 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
3252 | PyObject * _resultobj; | |
3253 | wxWindow * _arg0; | |
3254 | wxPoint * _arg1; | |
a341e32e | 3255 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
e6056257 RD |
3256 | PyObject * _argo0 = 0; |
3257 | wxPoint temp; | |
3258 | PyObject * _obj1 = 0; | |
a341e32e | 3259 | char *_kwnames[] = { "self","point","flags", NULL }; |
e6056257 RD |
3260 | |
3261 | self = self; | |
a341e32e | 3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
e6056257 RD |
3263 | return NULL; |
3264 | if (_argo0) { | |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); | |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | { | |
3272 | _arg1 = &temp; | |
3273 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3274 | return NULL; | |
3275 | } | |
3276 | { | |
0e2ff151 | 3277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3278 | wxWindow_Move(_arg0,*_arg1,_arg2); |
e6056257 | 3279 | |
0e2ff151 | 3280 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3281 | if (PyErr_Occurred()) return NULL; |
3282 | } Py_INCREF(Py_None); | |
3283 | _resultobj = Py_None; | |
3284 | return _resultobj; | |
3285 | } | |
3286 | ||
3287 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) | |
3288 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3289 | PyObject * _resultobj; | |
3290 | wxEvtHandler * _result; | |
3291 | wxWindow * _arg0; | |
3292 | bool _arg1 = (bool ) FALSE; | |
3293 | PyObject * _argo0 = 0; | |
3294 | int tempbool1 = (int) FALSE; | |
3295 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3296 | ||
3297 | self = self; | |
3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3299 | return NULL; | |
3300 | if (_argo0) { | |
3301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3304 | return NULL; | |
3305 | } | |
3306 | } | |
3307 | _arg1 = (bool ) tempbool1; | |
3308 | { | |
0e2ff151 | 3309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3310 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
e6056257 | 3311 | |
0e2ff151 | 3312 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3313 | if (PyErr_Occurred()) return NULL; |
3314 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3315 | return _resultobj; | |
3316 | } | |
3317 | ||
3318 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3319 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3320 | PyObject * _resultobj; | |
3321 | wxWindow * _arg0; | |
3322 | wxEvtHandler * _arg1; | |
3323 | PyObject * _argo0 = 0; | |
3324 | PyObject * _argo1 = 0; | |
3325 | char *_kwnames[] = { "self","handler", NULL }; | |
3326 | ||
3327 | self = self; | |
3328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3329 | return NULL; | |
3330 | if (_argo0) { | |
3331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3334 | return NULL; | |
3335 | } | |
3336 | } | |
3337 | if (_argo1) { | |
3338 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3339 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3341 | return NULL; | |
3342 | } | |
3343 | } | |
3344 | { | |
0e2ff151 | 3345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3346 | wxWindow_PushEventHandler(_arg0,_arg1); |
e6056257 | 3347 | |
0e2ff151 | 3348 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3349 | if (PyErr_Occurred()) return NULL; |
3350 | } Py_INCREF(Py_None); | |
3351 | _resultobj = Py_None; | |
3352 | return _resultobj; | |
3353 | } | |
3354 | ||
ca31b3da RD |
3355 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3356 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3357 | PyObject * _resultobj; | |
3358 | bool _result; | |
3359 | wxWindow * _arg0; | |
3360 | wxEvtHandler * _arg1; | |
3361 | PyObject * _argo0 = 0; | |
3362 | PyObject * _argo1 = 0; | |
3363 | char *_kwnames[] = { "self","handler", NULL }; | |
3364 | ||
3365 | self = self; | |
3366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3367 | return NULL; | |
3368 | if (_argo0) { | |
3369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3372 | return NULL; | |
3373 | } | |
3374 | } | |
3375 | if (_argo1) { | |
3376 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3377 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3379 | return NULL; | |
3380 | } | |
3381 | } | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 3384 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
ca31b3da RD |
3385 | |
3386 | wxPyEndAllowThreads(__tstate); | |
3387 | if (PyErr_Occurred()) return NULL; | |
3388 | } _resultobj = Py_BuildValue("i",_result); | |
3389 | return _resultobj; | |
3390 | } | |
3391 | ||
e6056257 RD |
3392 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
3393 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3394 | PyObject * _resultobj; | |
3395 | bool _result; | |
3396 | wxWindow * _arg0; | |
3397 | wxMenu * _arg1; | |
3398 | int _arg2; | |
3399 | int _arg3; | |
3400 | PyObject * _argo0 = 0; | |
3401 | PyObject * _argo1 = 0; | |
3402 | char *_kwnames[] = { "self","menu","x","y", NULL }; | |
3403 | ||
3404 | self = self; | |
3405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
3406 | return NULL; | |
3407 | if (_argo0) { | |
3408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); | |
3411 | return NULL; | |
3412 | } | |
3413 | } | |
3414 | if (_argo1) { | |
3415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); | |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
3421 | { | |
0e2ff151 | 3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3423 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 3424 | |
0e2ff151 | 3425 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3426 | if (PyErr_Occurred()) return NULL; |
3427 | } _resultobj = Py_BuildValue("i",_result); | |
3428 | return _resultobj; | |
3429 | } | |
3430 | ||
3431 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
3432 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject * _resultobj; | |
3434 | bool _result; | |
3435 | wxWindow * _arg0; | |
3436 | wxMenu * _arg1; | |
3437 | wxPoint * _arg2; | |
3438 | PyObject * _argo0 = 0; | |
3439 | PyObject * _argo1 = 0; | |
3440 | wxPoint temp; | |
3441 | PyObject * _obj2 = 0; | |
3442 | char *_kwnames[] = { "self","menu","pos", NULL }; | |
3443 | ||
3444 | self = self; | |
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3446 | return NULL; | |
3447 | if (_argo0) { | |
3448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); | |
3451 | return NULL; | |
3452 | } | |
3453 | } | |
3454 | if (_argo1) { | |
3455 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | { | |
3462 | _arg2 = &temp; | |
3463 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3464 | return NULL; | |
3465 | } | |
3466 | { | |
0e2ff151 | 3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3468 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
e6056257 | 3469 | |
0e2ff151 | 3470 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3471 | if (PyErr_Occurred()) return NULL; |
3472 | } _resultobj = Py_BuildValue("i",_result); | |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
3476 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
3477 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject * _resultobj; | |
3479 | wxWindow * _arg0; | |
3480 | PyObject * _argo0 = 0; | |
3481 | char *_kwnames[] = { "self", NULL }; | |
3482 | ||
3483 | self = self; | |
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) | |
3485 | return NULL; | |
3486 | if (_argo0) { | |
3487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | { | |
0e2ff151 | 3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3495 | wxWindow_Raise(_arg0); |
e6056257 | 3496 | |
0e2ff151 | 3497 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3498 | if (PyErr_Occurred()) return NULL; |
3499 | } Py_INCREF(Py_None); | |
3500 | _resultobj = Py_None; | |
3501 | return _resultobj; | |
3502 | } | |
3503 | ||
3504 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
3505 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject * _resultobj; | |
3507 | wxWindow * _arg0; | |
3508 | bool _arg1 = (bool ) TRUE; | |
3509 | wxRect * _arg2 = (wxRect *) NULL; | |
3510 | PyObject * _argo0 = 0; | |
3511 | int tempbool1 = (int) TRUE; | |
3512 | wxRect temp; | |
3513 | PyObject * _obj2 = 0; | |
3514 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; | |
3515 | ||
3516 | self = self; | |
3517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) | |
3518 | return NULL; | |
3519 | if (_argo0) { | |
3520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); | |
3523 | return NULL; | |
3524 | } | |
3525 | } | |
3526 | _arg1 = (bool ) tempbool1; | |
3527 | if (_obj2) | |
3528 | { | |
3529 | _arg2 = &temp; | |
3530 | if (! wxRect_helper(_obj2, &_arg2)) | |
3531 | return NULL; | |
3532 | } | |
3533 | { | |
0e2ff151 | 3534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3535 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
e6056257 | 3536 | |
0e2ff151 | 3537 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3538 | if (PyErr_Occurred()) return NULL; |
3539 | } Py_INCREF(Py_None); | |
3540 | _resultobj = Py_None; | |
3541 | return _resultobj; | |
3542 | } | |
3543 | ||
3544 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) | |
3545 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3546 | PyObject * _resultobj; | |
3547 | wxWindow * _arg0; | |
3548 | wxRect * _arg1; | |
3549 | PyObject * _argo0 = 0; | |
3550 | wxRect temp; | |
3551 | PyObject * _obj1 = 0; | |
3552 | char *_kwnames[] = { "self","rect", NULL }; | |
3553 | ||
3554 | self = self; | |
3555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3556 | return NULL; | |
3557 | if (_argo0) { | |
3558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3561 | return NULL; | |
3562 | } | |
3563 | } | |
3564 | { | |
3565 | _arg1 = &temp; | |
3566 | if (! wxRect_helper(_obj1, &_arg1)) | |
3567 | return NULL; | |
3568 | } | |
3569 | { | |
0e2ff151 | 3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3571 | wxWindow_RefreshRect(_arg0,*_arg1); |
e6056257 | 3572 | |
0e2ff151 | 3573 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3574 | if (PyErr_Occurred()) return NULL; |
3575 | } Py_INCREF(Py_None); | |
3576 | _resultobj = Py_None; | |
3577 | return _resultobj; | |
3578 | } | |
3579 | ||
e6056257 RD |
3580 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3581 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3582 | PyObject * _resultobj; | |
3583 | wxWindow * _arg0; | |
3584 | wxWindow * _arg1; | |
3585 | PyObject * _argo0 = 0; | |
3586 | PyObject * _argo1 = 0; | |
3587 | char *_kwnames[] = { "self","child", NULL }; | |
3588 | ||
3589 | self = self; | |
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3591 | return NULL; | |
3592 | if (_argo0) { | |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
3599 | if (_argo1) { | |
3600 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3601 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3603 | return NULL; | |
3604 | } | |
3605 | } | |
3606 | { | |
0e2ff151 | 3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3608 | wxWindow_RemoveChild(_arg0,_arg1); |
e6056257 | 3609 | |
0e2ff151 | 3610 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3611 | if (PyErr_Occurred()) return NULL; |
3612 | } Py_INCREF(Py_None); | |
3613 | _resultobj = Py_None; | |
3614 | return _resultobj; | |
3615 | } | |
3616 | ||
3617 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) | |
3618 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3619 | PyObject * _resultobj; | |
3620 | bool _result; | |
3621 | wxWindow * _arg0; | |
3622 | wxWindow * _arg1; | |
3623 | PyObject * _argo0 = 0; | |
3624 | PyObject * _argo1 = 0; | |
3625 | char *_kwnames[] = { "self","newParent", NULL }; | |
3626 | ||
3627 | self = self; | |
3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) | |
3629 | return NULL; | |
3630 | if (_argo0) { | |
3631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3634 | return NULL; | |
3635 | } | |
3636 | } | |
3637 | if (_argo1) { | |
3638 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3639 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3641 | return NULL; | |
3642 | } | |
3643 | } | |
3644 | { | |
0e2ff151 | 3645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3646 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
e6056257 | 3647 | |
0e2ff151 | 3648 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3649 | if (PyErr_Occurred()) return NULL; |
3650 | } _resultobj = Py_BuildValue("i",_result); | |
3651 | return _resultobj; | |
3652 | } | |
3653 | ||
3654 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) | |
3655 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3656 | PyObject * _resultobj; | |
3657 | wxWindow * _arg0; | |
3658 | int * _arg1; | |
3659 | int * _arg2; | |
3660 | PyObject * _argo0 = 0; | |
3661 | int temp; | |
3662 | PyObject * _obj1 = 0; | |
3663 | int temp0; | |
3664 | PyObject * _obj2 = 0; | |
3665 | char *_kwnames[] = { "self","x","y", NULL }; | |
3666 | ||
3667 | self = self; | |
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3669 | return NULL; | |
3670 | if (_argo0) { | |
3671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); | |
3674 | return NULL; | |
3675 | } | |
3676 | } | |
3677 | { | |
3678 | temp = (int) PyInt_AsLong(_obj1); | |
3679 | _arg1 = &temp; | |
3680 | } | |
3681 | { | |
3682 | temp0 = (int) PyInt_AsLong(_obj2); | |
3683 | _arg2 = &temp0; | |
3684 | } | |
3685 | { | |
0e2ff151 | 3686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3687 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
e6056257 | 3688 | |
0e2ff151 | 3689 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3690 | if (PyErr_Occurred()) return NULL; |
3691 | } Py_INCREF(Py_None); | |
3692 | _resultobj = Py_None; | |
3693 | { | |
3694 | PyObject *o; | |
3695 | o = PyInt_FromLong((long) (*_arg1)); | |
3696 | _resultobj = t_output_helper(_resultobj, o); | |
3697 | } | |
3698 | { | |
3699 | PyObject *o; | |
3700 | o = PyInt_FromLong((long) (*_arg2)); | |
3701 | _resultobj = t_output_helper(_resultobj, o); | |
3702 | } | |
3703 | return _resultobj; | |
3704 | } | |
3705 | ||
3706 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) | |
3707 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3708 | PyObject * _resultobj; | |
3709 | wxPoint * _result; | |
3710 | wxWindow * _arg0; | |
3711 | wxPoint * _arg1; | |
3712 | PyObject * _argo0 = 0; | |
3713 | wxPoint temp; | |
3714 | PyObject * _obj1 = 0; | |
3715 | char *_kwnames[] = { "self","pt", NULL }; | |
3716 | char _ptemp[128]; | |
3717 | ||
3718 | self = self; | |
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) | |
3720 | return NULL; | |
3721 | if (_argo0) { | |
3722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); | |
3725 | return NULL; | |
3726 | } | |
3727 | } | |
3728 | { | |
3729 | _arg1 = &temp; | |
3730 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3731 | return NULL; | |
3732 | } | |
3733 | { | |
0e2ff151 | 3734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3735 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
e6056257 | 3736 | |
0e2ff151 | 3737 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3738 | if (PyErr_Occurred()) return NULL; |
3739 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3740 | _resultobj = Py_BuildValue("s",_ptemp); | |
3741 | return _resultobj; | |
3742 | } | |
3743 | ||
3744 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) | |
3745 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3746 | PyObject * _resultobj; | |
3747 | wxWindow * _arg0; | |
3748 | int _arg1; | |
3749 | int _arg2; | |
3750 | wxRect * _arg3 = (wxRect *) NULL; | |
3751 | PyObject * _argo0 = 0; | |
3752 | wxRect temp; | |
3753 | PyObject * _obj3 = 0; | |
3754 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; | |
3755 | ||
3756 | self = self; | |
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3758 | return NULL; | |
3759 | if (_argo0) { | |
3760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); | |
3763 | return NULL; | |
3764 | } | |
3765 | } | |
3766 | if (_obj3) | |
3767 | { | |
3768 | _arg3 = &temp; | |
3769 | if (! wxRect_helper(_obj3, &_arg3)) | |
3770 | return NULL; | |
3771 | } | |
3772 | { | |
0e2ff151 | 3773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3774 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 3775 | |
0e2ff151 | 3776 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3777 | if (PyErr_Occurred()) return NULL; |
3778 | } Py_INCREF(Py_None); | |
3779 | _resultobj = Py_None; | |
3780 | return _resultobj; | |
3781 | } | |
3782 | ||
3783 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
3784 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject * _resultobj; | |
3786 | wxWindow * _arg0; | |
3787 | bool _arg1; | |
3788 | PyObject * _argo0 = 0; | |
3789 | int tempbool1; | |
3790 | char *_kwnames[] = { "self","autoLayout", NULL }; | |
3791 | ||
3792 | self = self; | |
3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) | |
3794 | return NULL; | |
3795 | if (_argo0) { | |
3796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); | |
3799 | return NULL; | |
3800 | } | |
3801 | } | |
3802 | _arg1 = (bool ) tempbool1; | |
3803 | { | |
0e2ff151 | 3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3805 | wxWindow_SetAutoLayout(_arg0,_arg1); |
e6056257 | 3806 | |
0e2ff151 | 3807 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3808 | if (PyErr_Occurred()) return NULL; |
3809 | } Py_INCREF(Py_None); | |
3810 | _resultobj = Py_None; | |
3811 | return _resultobj; | |
3812 | } | |
3813 | ||
3814 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) | |
3815 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject * _resultobj; | |
3817 | bool _result; | |
3818 | wxWindow * _arg0; | |
3819 | PyObject * _argo0 = 0; | |
3820 | char *_kwnames[] = { "self", NULL }; | |
3821 | ||
3822 | self = self; | |
3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3824 | return NULL; | |
3825 | if (_argo0) { | |
3826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3829 | return NULL; | |
3830 | } | |
3831 | } | |
3832 | { | |
0e2ff151 | 3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3834 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
e6056257 | 3835 | |
0e2ff151 | 3836 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3837 | if (PyErr_Occurred()) return NULL; |
3838 | } _resultobj = Py_BuildValue("i",_result); | |
3839 | return _resultobj; | |
3840 | } | |
3841 | ||
3842 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3843 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3844 | PyObject * _resultobj; | |
3845 | wxWindow * _arg0; | |
3846 | wxColour * _arg1; | |
3847 | PyObject * _argo0 = 0; | |
3848 | wxColour temp; | |
3849 | PyObject * _obj1 = 0; | |
3850 | char *_kwnames[] = { "self","colour", NULL }; | |
3851 | ||
3852 | self = self; | |
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
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_SetBackgroundColour. Expected _wxWindow_p."); | |
3859 | return NULL; | |
3860 | } | |
3861 | } | |
3862 | { | |
3863 | _arg1 = &temp; | |
3864 | if (! wxColour_helper(_obj1, &_arg1)) | |
3865 | return NULL; | |
3866 | } | |
3867 | { | |
0e2ff151 | 3868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3869 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
e6056257 | 3870 | |
0e2ff151 | 3871 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3872 | if (PyErr_Occurred()) return NULL; |
3873 | } Py_INCREF(Py_None); | |
3874 | _resultobj = Py_None; | |
3875 | return _resultobj; | |
3876 | } | |
3877 | ||
3878 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
3879 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3880 | PyObject * _resultobj; | |
3881 | wxWindow * _arg0; | |
3882 | wxLayoutConstraints * _arg1; | |
3883 | PyObject * _argo0 = 0; | |
3884 | PyObject * _argo1 = 0; | |
3885 | char *_kwnames[] = { "self","constraints", NULL }; | |
3886 | ||
3887 | self = self; | |
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) | |
3889 | return NULL; | |
3890 | if (_argo0) { | |
3891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); | |
3894 | return NULL; | |
3895 | } | |
3896 | } | |
3897 | if (_argo1) { | |
3898 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3899 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); | |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | { | |
0e2ff151 | 3905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3906 | wxWindow_SetConstraints(_arg0,_arg1); |
e6056257 | 3907 | |
0e2ff151 | 3908 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3909 | if (PyErr_Occurred()) return NULL; |
3910 | } Py_INCREF(Py_None); | |
3911 | _resultobj = Py_None; | |
3912 | return _resultobj; | |
3913 | } | |
3914 | ||
3915 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) | |
3916 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3917 | PyObject * _resultobj; | |
3918 | wxWindow * _arg0; | |
3919 | wxLayoutConstraints * _arg1; | |
3920 | PyObject * _argo0 = 0; | |
3921 | PyObject * _argo1 = 0; | |
3922 | char *_kwnames[] = { "self","constraints", NULL }; | |
3923 | ||
3924 | self = self; | |
3925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3926 | return NULL; | |
3927 | if (_argo0) { | |
3928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3931 | return NULL; | |
3932 | } | |
3933 | } | |
3934 | if (_argo1) { | |
3935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3938 | return NULL; | |
3939 | } | |
3940 | } | |
3941 | { | |
0e2ff151 | 3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3943 | wxWindow_UnsetConstraints(_arg0,_arg1); |
e6056257 | 3944 | |
0e2ff151 | 3945 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3946 | if (PyErr_Occurred()) return NULL; |
3947 | } Py_INCREF(Py_None); | |
3948 | _resultobj = Py_None; | |
3949 | return _resultobj; | |
3950 | } | |
3951 | ||
3952 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) | |
3953 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject * _resultobj; | |
3955 | wxWindow * _arg0; | |
3956 | PyObject * _argo0 = 0; | |
3957 | char *_kwnames[] = { "self", NULL }; | |
3958 | ||
3959 | self = self; | |
3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) | |
3961 | return NULL; | |
3962 | if (_argo0) { | |
3963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); | |
3966 | return NULL; | |
3967 | } | |
3968 | } | |
3969 | { | |
0e2ff151 | 3970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3971 | wxWindow_SetFocus(_arg0); |
e6056257 | 3972 | |
0e2ff151 | 3973 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3974 | if (PyErr_Occurred()) return NULL; |
3975 | } Py_INCREF(Py_None); | |
3976 | _resultobj = Py_None; | |
3977 | return _resultobj; | |
3978 | } | |
3979 | ||
3980 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) | |
3981 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3982 | PyObject * _resultobj; | |
3983 | bool _result; | |
3984 | wxWindow * _arg0; | |
3985 | PyObject * _argo0 = 0; | |
3986 | char *_kwnames[] = { "self", NULL }; | |
3987 | ||
3988 | self = self; | |
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3990 | return NULL; | |
3991 | if (_argo0) { | |
3992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3995 | return NULL; | |
3996 | } | |
3997 | } | |
3998 | { | |
0e2ff151 | 3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4000 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
e6056257 | 4001 | |
0e2ff151 | 4002 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4003 | if (PyErr_Occurred()) return NULL; |
4004 | } _resultobj = Py_BuildValue("i",_result); | |
4005 | return _resultobj; | |
4006 | } | |
4007 | ||
4008 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
4009 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4010 | PyObject * _resultobj; | |
4011 | wxWindow * _arg0; | |
4012 | wxFont * _arg1; | |
4013 | PyObject * _argo0 = 0; | |
4014 | PyObject * _argo1 = 0; | |
4015 | char *_kwnames[] = { "self","font", NULL }; | |
4016 | ||
4017 | self = self; | |
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) | |
4019 | return NULL; | |
4020 | if (_argo0) { | |
4021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); | |
4024 | return NULL; | |
4025 | } | |
4026 | } | |
4027 | if (_argo1) { | |
4028 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4029 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); | |
4031 | return NULL; | |
4032 | } | |
4033 | } | |
4034 | { | |
0e2ff151 | 4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4036 | wxWindow_SetFont(_arg0,*_arg1); |
e6056257 | 4037 | |
0e2ff151 | 4038 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4039 | if (PyErr_Occurred()) return NULL; |
4040 | } Py_INCREF(Py_None); | |
4041 | _resultobj = Py_None; | |
4042 | return _resultobj; | |
4043 | } | |
4044 | ||
4045 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
4046 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4047 | PyObject * _resultobj; | |
4048 | wxWindow * _arg0; | |
4049 | wxColour * _arg1; | |
4050 | PyObject * _argo0 = 0; | |
4051 | wxColour temp; | |
4052 | PyObject * _obj1 = 0; | |
4053 | char *_kwnames[] = { "self","colour", NULL }; | |
4054 | ||
4055 | self = self; | |
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
4057 | return NULL; | |
4058 | if (_argo0) { | |
4059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); | |
4062 | return NULL; | |
4063 | } | |
4064 | } | |
4065 | { | |
4066 | _arg1 = &temp; | |
4067 | if (! wxColour_helper(_obj1, &_arg1)) | |
4068 | return NULL; | |
4069 | } | |
4070 | { | |
0e2ff151 | 4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4072 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
e6056257 | 4073 | |
0e2ff151 | 4074 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4075 | if (PyErr_Occurred()) return NULL; |
4076 | } Py_INCREF(Py_None); | |
4077 | _resultobj = Py_None; | |
4078 | return _resultobj; | |
4079 | } | |
4080 | ||
4081 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
4082 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4083 | PyObject * _resultobj; | |
4084 | wxWindow * _arg0; | |
4085 | int _arg1; | |
4086 | PyObject * _argo0 = 0; | |
4087 | char *_kwnames[] = { "self","id", NULL }; | |
4088 | ||
4089 | self = self; | |
4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) | |
4091 | return NULL; | |
4092 | if (_argo0) { | |
4093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); | |
4096 | return NULL; | |
4097 | } | |
4098 | } | |
4099 | { | |
0e2ff151 | 4100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4101 | wxWindow_SetId(_arg0,_arg1); |
e6056257 | 4102 | |
0e2ff151 | 4103 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4104 | if (PyErr_Occurred()) return NULL; |
4105 | } Py_INCREF(Py_None); | |
4106 | _resultobj = Py_None; | |
4107 | return _resultobj; | |
4108 | } | |
4109 | ||
4110 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
4111 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4112 | PyObject * _resultobj; | |
4113 | wxWindow * _arg0; | |
4114 | wxString * _arg1; | |
4115 | PyObject * _argo0 = 0; | |
4116 | PyObject * _obj1 = 0; | |
4117 | char *_kwnames[] = { "self","name", NULL }; | |
4118 | ||
4119 | self = self; | |
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) | |
4121 | return NULL; | |
4122 | if (_argo0) { | |
4123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); | |
4126 | return NULL; | |
4127 | } | |
4128 | } | |
4129 | { | |
6824d4f9 RD |
4130 | _arg1 = wxString_in_helper(_obj1); |
4131 | if (_arg1 == NULL) | |
e6056257 | 4132 | return NULL; |
e6056257 RD |
4133 | } |
4134 | { | |
0e2ff151 | 4135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4136 | wxWindow_SetName(_arg0,*_arg1); |
e6056257 | 4137 | |
0e2ff151 | 4138 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4139 | if (PyErr_Occurred()) return NULL; |
4140 | } Py_INCREF(Py_None); | |
4141 | _resultobj = Py_None; | |
4142 | { | |
4143 | if (_obj1) | |
4144 | delete _arg1; | |
4145 | } | |
4146 | return _resultobj; | |
4147 | } | |
4148 | ||
4149 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4150 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4151 | PyObject * _resultobj; | |
4152 | wxWindow * _arg0; | |
4153 | int _arg1; | |
4154 | int _arg2; | |
4155 | int _arg3; | |
4156 | int _arg4; | |
4157 | int _arg5 = (int ) TRUE; | |
4158 | PyObject * _argo0 = 0; | |
4159 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; | |
4160 | ||
4161 | self = self; | |
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4163 | return NULL; | |
4164 | if (_argo0) { | |
4165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); | |
4168 | return NULL; | |
4169 | } | |
4170 | } | |
4171 | { | |
0e2ff151 | 4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4173 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 4174 | |
0e2ff151 | 4175 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4176 | if (PyErr_Occurred()) return NULL; |
4177 | } Py_INCREF(Py_None); | |
4178 | _resultobj = Py_None; | |
4179 | return _resultobj; | |
4180 | } | |
4181 | ||
4182 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
4183 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject * _resultobj; | |
4185 | wxWindow * _arg0; | |
4186 | int _arg1; | |
4187 | int _arg2; | |
4188 | bool _arg3 = (bool ) TRUE; | |
4189 | PyObject * _argo0 = 0; | |
4190 | int tempbool3 = (int) TRUE; | |
4191 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; | |
4192 | ||
4193 | self = self; | |
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
4195 | return NULL; | |
4196 | if (_argo0) { | |
4197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); | |
4200 | return NULL; | |
4201 | } | |
4202 | } | |
4203 | _arg3 = (bool ) tempbool3; | |
4204 | { | |
0e2ff151 | 4205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4206 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 4207 | |
0e2ff151 | 4208 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4209 | if (PyErr_Occurred()) return NULL; |
4210 | } Py_INCREF(Py_None); | |
4211 | _resultobj = Py_None; | |
4212 | return _resultobj; | |
4213 | } | |
4214 | ||
4215 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4216 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4217 | PyObject * _resultobj; | |
4218 | wxWindow * _arg0; | |
4219 | int _arg1; | |
4220 | int _arg2; | |
4221 | int _arg3; | |
4222 | int _arg4; | |
4223 | int _arg5 = (int ) wxSIZE_AUTO; | |
4224 | PyObject * _argo0 = 0; | |
4225 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
4226 | ||
4227 | self = self; | |
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4229 | return NULL; | |
4230 | if (_argo0) { | |
4231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); | |
4234 | return NULL; | |
4235 | } | |
4236 | } | |
4237 | { | |
0e2ff151 | 4238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4239 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 4240 | |
0e2ff151 | 4241 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4242 | if (PyErr_Occurred()) return NULL; |
4243 | } Py_INCREF(Py_None); | |
4244 | _resultobj = Py_None; | |
4245 | return _resultobj; | |
4246 | } | |
4247 | ||
4248 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
4249 | self->SetSize(size); | |
4250 | } | |
4251 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4252 | PyObject * _resultobj; | |
4253 | wxWindow * _arg0; | |
4254 | wxSize * _arg1; | |
4255 | PyObject * _argo0 = 0; | |
4256 | wxSize temp; | |
4257 | PyObject * _obj1 = 0; | |
4258 | char *_kwnames[] = { "self","size", NULL }; | |
4259 | ||
4260 | self = self; | |
4261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) | |
4262 | return NULL; | |
4263 | if (_argo0) { | |
4264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); | |
4267 | return NULL; | |
4268 | } | |
4269 | } | |
4270 | { | |
4271 | _arg1 = &temp; | |
4272 | if (! wxSize_helper(_obj1, &_arg1)) | |
4273 | return NULL; | |
4274 | } | |
4275 | { | |
0e2ff151 | 4276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4277 | wxWindow_SetSize(_arg0,*_arg1); |
e6056257 | 4278 | |
0e2ff151 | 4279 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4280 | if (PyErr_Occurred()) return NULL; |
4281 | } Py_INCREF(Py_None); | |
4282 | _resultobj = Py_None; | |
4283 | return _resultobj; | |
4284 | } | |
4285 | ||
a341e32e RD |
4286 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4287 | self->Move(pos, flags); | |
e6056257 RD |
4288 | } |
4289 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4290 | PyObject * _resultobj; | |
4291 | wxWindow * _arg0; | |
4292 | wxPoint * _arg1; | |
a341e32e | 4293 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
e6056257 RD |
4294 | PyObject * _argo0 = 0; |
4295 | wxPoint temp; | |
4296 | PyObject * _obj1 = 0; | |
a341e32e | 4297 | char *_kwnames[] = { "self","pos","flags", NULL }; |
e6056257 RD |
4298 | |
4299 | self = self; | |
a341e32e | 4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
e6056257 RD |
4301 | return NULL; |
4302 | if (_argo0) { | |
4303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); | |
4306 | return NULL; | |
4307 | } | |
4308 | } | |
4309 | { | |
4310 | _arg1 = &temp; | |
4311 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4312 | return NULL; | |
4313 | } | |
4314 | { | |
0e2ff151 | 4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4316 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
e6056257 | 4317 | |
0e2ff151 | 4318 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4319 | if (PyErr_Occurred()) return NULL; |
4320 | } Py_INCREF(Py_None); | |
4321 | _resultobj = Py_None; | |
4322 | return _resultobj; | |
4323 | } | |
4324 | ||
4325 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { | |
4326 | self->SetSize(rect, sizeFlags); | |
4327 | } | |
4328 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject * _resultobj; | |
4330 | wxWindow * _arg0; | |
4331 | wxRect * _arg1; | |
4332 | int _arg2 = (int ) wxSIZE_AUTO; | |
4333 | PyObject * _argo0 = 0; | |
4334 | wxRect temp; | |
4335 | PyObject * _obj1 = 0; | |
4336 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4337 | ||
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
4349 | _arg1 = &temp; | |
4350 | if (! wxRect_helper(_obj1, &_arg1)) | |
4351 | return NULL; | |
4352 | } | |
4353 | { | |
0e2ff151 | 4354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4355 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
e6056257 | 4356 | |
0e2ff151 | 4357 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4358 | if (PyErr_Occurred()) return NULL; |
4359 | } Py_INCREF(Py_None); | |
4360 | _resultobj = Py_None; | |
4361 | return _resultobj; | |
4362 | } | |
4363 | ||
4364 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4365 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject * _resultobj; | |
4367 | wxWindow * _arg0; | |
4368 | int _arg1 = (int ) -1; | |
4369 | int _arg2 = (int ) -1; | |
4370 | int _arg3 = (int ) -1; | |
4371 | int _arg4 = (int ) -1; | |
4372 | int _arg5 = (int ) -1; | |
4373 | int _arg6 = (int ) -1; | |
4374 | PyObject * _argo0 = 0; | |
4375 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; | |
4376 | ||
4377 | self = self; | |
4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4379 | return NULL; | |
4380 | if (_argo0) { | |
4381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); | |
4384 | return NULL; | |
4385 | } | |
4386 | } | |
4387 | { | |
0e2ff151 | 4388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4389 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 4390 | |
0e2ff151 | 4391 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4392 | if (PyErr_Occurred()) return NULL; |
4393 | } Py_INCREF(Py_None); | |
4394 | _resultobj = Py_None; | |
4395 | return _resultobj; | |
4396 | } | |
4397 | ||
4398 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) | |
4399 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4400 | PyObject * _resultobj; | |
4401 | wxWindow * _arg0; | |
4402 | int _arg1; | |
4403 | int _arg2; | |
4404 | PyObject * _argo0 = 0; | |
4405 | char *_kwnames[] = { "self","width","height", NULL }; | |
4406 | ||
4407 | self = self; | |
4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4409 | return NULL; | |
4410 | if (_argo0) { | |
4411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); | |
4414 | return NULL; | |
4415 | } | |
4416 | } | |
4417 | { | |
0e2ff151 | 4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4419 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
e6056257 | 4420 | |
0e2ff151 | 4421 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4422 | if (PyErr_Occurred()) return NULL; |
4423 | } Py_INCREF(Py_None); | |
4424 | _resultobj = Py_None; | |
4425 | return _resultobj; | |
4426 | } | |
4427 | ||
4428 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
4429 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4430 | PyObject * _resultobj; | |
4431 | wxWindow * _arg0; | |
4432 | wxSize * _arg1; | |
4433 | PyObject * _argo0 = 0; | |
4434 | wxSize temp; | |
4435 | PyObject * _obj1 = 0; | |
4436 | char *_kwnames[] = { "self","size", NULL }; | |
4437 | ||
4438 | self = self; | |
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) | |
4440 | return NULL; | |
4441 | if (_argo0) { | |
4442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); | |
4445 | return NULL; | |
4446 | } | |
4447 | } | |
4448 | { | |
4449 | _arg1 = &temp; | |
4450 | if (! wxSize_helper(_obj1, &_arg1)) | |
4451 | return NULL; | |
4452 | } | |
4453 | { | |
0e2ff151 | 4454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4455 | wxWindow_SetClientSize(_arg0,*_arg1); |
e6056257 | 4456 | |
0e2ff151 | 4457 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4458 | if (PyErr_Occurred()) return NULL; |
4459 | } Py_INCREF(Py_None); | |
4460 | _resultobj = Py_None; | |
4461 | return _resultobj; | |
4462 | } | |
4463 | ||
4464 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
4465 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4466 | PyObject * _resultobj; | |
4467 | wxWindow * _arg0; | |
4468 | wxCursor * _arg1; | |
4469 | PyObject * _argo0 = 0; | |
4470 | PyObject * _argo1 = 0; | |
4471 | char *_kwnames[] = { "self","cursor", NULL }; | |
4472 | ||
4473 | self = self; | |
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) | |
4475 | return NULL; | |
4476 | if (_argo0) { | |
4477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); | |
4480 | return NULL; | |
4481 | } | |
4482 | } | |
4483 | if (_argo1) { | |
4484 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4485 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
4486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); | |
4487 | return NULL; | |
4488 | } | |
4489 | } | |
4490 | { | |
0e2ff151 | 4491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4492 | wxWindow_SetCursor(_arg0,*_arg1); |
e6056257 | 4493 | |
0e2ff151 | 4494 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4495 | if (PyErr_Occurred()) return NULL; |
4496 | } Py_INCREF(Py_None); | |
4497 | _resultobj = Py_None; | |
4498 | return _resultobj; | |
4499 | } | |
4500 | ||
4501 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
4502 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject * _resultobj; | |
4504 | wxWindow * _arg0; | |
4505 | wxEvtHandler * _arg1; | |
4506 | PyObject * _argo0 = 0; | |
4507 | PyObject * _argo1 = 0; | |
4508 | char *_kwnames[] = { "self","handler", NULL }; | |
4509 | ||
4510 | self = self; | |
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4512 | return NULL; | |
4513 | if (_argo0) { | |
4514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
4520 | if (_argo1) { | |
4521 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4522 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4524 | return NULL; | |
4525 | } | |
4526 | } | |
4527 | { | |
0e2ff151 | 4528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4529 | wxWindow_SetEventHandler(_arg0,_arg1); |
e6056257 | 4530 | |
0e2ff151 | 4531 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4532 | if (PyErr_Occurred()) return NULL; |
4533 | } Py_INCREF(Py_None); | |
4534 | _resultobj = Py_None; | |
4535 | return _resultobj; | |
4536 | } | |
4537 | ||
4538 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) | |
4539 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4540 | PyObject * _resultobj; | |
4541 | wxWindow * _arg0; | |
4542 | long _arg1; | |
4543 | PyObject * _argo0 = 0; | |
4544 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4545 | ||
4546 | self = self; | |
4547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4548 | return NULL; | |
4549 | if (_argo0) { | |
4550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4553 | return NULL; | |
4554 | } | |
4555 | } | |
4556 | { | |
0e2ff151 | 4557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4558 | wxWindow_SetExtraStyle(_arg0,_arg1); |
e6056257 | 4559 | |
0e2ff151 | 4560 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4561 | if (PyErr_Occurred()) return NULL; |
4562 | } Py_INCREF(Py_None); | |
4563 | _resultobj = Py_None; | |
4564 | return _resultobj; | |
4565 | } | |
4566 | ||
4567 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
4568 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4569 | PyObject * _resultobj; | |
4570 | wxWindow * _arg0; | |
4571 | wxString * _arg1; | |
4572 | PyObject * _argo0 = 0; | |
4573 | PyObject * _obj1 = 0; | |
4574 | char *_kwnames[] = { "self","title", NULL }; | |
4575 | ||
4576 | self = self; | |
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) | |
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_SetTitle. Expected _wxWindow_p."); | |
4583 | return NULL; | |
4584 | } | |
4585 | } | |
4586 | { | |
6824d4f9 RD |
4587 | _arg1 = wxString_in_helper(_obj1); |
4588 | if (_arg1 == NULL) | |
e6056257 | 4589 | return NULL; |
e6056257 RD |
4590 | } |
4591 | { | |
0e2ff151 | 4592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4593 | wxWindow_SetTitle(_arg0,*_arg1); |
e6056257 | 4594 | |
0e2ff151 | 4595 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4596 | if (PyErr_Occurred()) return NULL; |
4597 | } Py_INCREF(Py_None); | |
4598 | _resultobj = Py_None; | |
4599 | { | |
4600 | if (_obj1) | |
4601 | delete _arg1; | |
4602 | } | |
4603 | return _resultobj; | |
4604 | } | |
4605 | ||
4606 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
4607 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4608 | PyObject * _resultobj; | |
4609 | bool _result; | |
4610 | wxWindow * _arg0; | |
00360d46 | 4611 | bool _arg1 = (bool ) TRUE; |
e6056257 | 4612 | PyObject * _argo0 = 0; |
00360d46 | 4613 | int tempbool1 = (int) TRUE; |
e6056257 RD |
4614 | char *_kwnames[] = { "self","show", NULL }; |
4615 | ||
4616 | self = self; | |
00360d46 | 4617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
e6056257 RD |
4618 | return NULL; |
4619 | if (_argo0) { | |
4620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); | |
4623 | return NULL; | |
4624 | } | |
4625 | } | |
4626 | _arg1 = (bool ) tempbool1; | |
4627 | { | |
0e2ff151 | 4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4629 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
e6056257 | 4630 | |
0e2ff151 | 4631 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4632 | if (PyErr_Occurred()) return NULL; |
4633 | } _resultobj = Py_BuildValue("i",_result); | |
4634 | return _resultobj; | |
4635 | } | |
4636 | ||
4637 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
4638 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject * _resultobj; | |
4640 | bool _result; | |
4641 | wxWindow * _arg0; | |
4642 | PyObject * _argo0 = 0; | |
4643 | char *_kwnames[] = { "self", NULL }; | |
4644 | ||
4645 | self = self; | |
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) | |
4647 | return NULL; | |
4648 | if (_argo0) { | |
4649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); | |
4652 | return NULL; | |
4653 | } | |
4654 | } | |
4655 | { | |
0e2ff151 | 4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4657 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
e6056257 | 4658 | |
0e2ff151 | 4659 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4660 | if (PyErr_Occurred()) return NULL; |
4661 | } _resultobj = Py_BuildValue("i",_result); | |
4662 | return _resultobj; | |
4663 | } | |
4664 | ||
4665 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
4666 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4667 | PyObject * _resultobj; | |
4668 | bool _result; | |
4669 | wxWindow * _arg0; | |
4670 | PyObject * _argo0 = 0; | |
4671 | char *_kwnames[] = { "self", NULL }; | |
4672 | ||
4673 | self = self; | |
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) | |
4675 | return NULL; | |
4676 | if (_argo0) { | |
4677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); | |
4680 | return NULL; | |
4681 | } | |
4682 | } | |
4683 | { | |
0e2ff151 | 4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4685 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
e6056257 | 4686 | |
0e2ff151 | 4687 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4688 | if (PyErr_Occurred()) return NULL; |
4689 | } _resultobj = Py_BuildValue("i",_result); | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
a341e32e RD |
4693 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4694 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject * _resultobj; | |
4696 | wxWindow * _arg0; | |
4697 | PyObject * _argo0 = 0; | |
4698 | char *_kwnames[] = { "self", NULL }; | |
4699 | ||
4700 | self = self; | |
4701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4702 | return NULL; | |
4703 | if (_argo0) { | |
4704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4707 | return NULL; | |
4708 | } | |
4709 | } | |
4710 | { | |
4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4712 | wxWindow_UpdateWindowUI(_arg0); |
a341e32e RD |
4713 | |
4714 | wxPyEndAllowThreads(__tstate); | |
4715 | if (PyErr_Occurred()) return NULL; | |
4716 | } Py_INCREF(Py_None); | |
4717 | _resultobj = Py_None; | |
4718 | return _resultobj; | |
4719 | } | |
4720 | ||
e6056257 RD |
4721 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
4722 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4723 | PyObject * _resultobj; | |
4724 | bool _result; | |
4725 | wxWindow * _arg0; | |
4726 | PyObject * _argo0 = 0; | |
4727 | char *_kwnames[] = { "self", NULL }; | |
4728 | ||
4729 | self = self; | |
4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) | |
4731 | return NULL; | |
4732 | if (_argo0) { | |
4733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); | |
4736 | return NULL; | |
4737 | } | |
4738 | } | |
4739 | { | |
0e2ff151 | 4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4741 | _result = (bool )wxWindow_Validate(_arg0); |
e6056257 | 4742 | |
0e2ff151 | 4743 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4744 | if (PyErr_Occurred()) return NULL; |
4745 | } _resultobj = Py_BuildValue("i",_result); | |
4746 | return _resultobj; | |
4747 | } | |
4748 | ||
e6056257 RD |
4749 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
4750 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject * _resultobj; | |
4752 | wxPoint * _result; | |
4753 | wxWindow * _arg0; | |
4754 | wxPoint * _arg1; | |
4755 | PyObject * _argo0 = 0; | |
4756 | wxPoint temp; | |
4757 | PyObject * _obj1 = 0; | |
4758 | char *_kwnames[] = { "self","pt", NULL }; | |
4759 | char _ptemp[128]; | |
4760 | ||
4761 | self = self; | |
4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) | |
4763 | return NULL; | |
4764 | if (_argo0) { | |
4765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); | |
4768 | return NULL; | |
4769 | } | |
4770 | } | |
4771 | { | |
4772 | _arg1 = &temp; | |
4773 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4774 | return NULL; | |
4775 | } | |
4776 | { | |
0e2ff151 | 4777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4778 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
e6056257 | 4779 | |
0e2ff151 | 4780 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4781 | if (PyErr_Occurred()) return NULL; |
4782 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4783 | _resultobj = Py_BuildValue("s",_ptemp); | |
4784 | return _resultobj; | |
4785 | } | |
4786 | ||
4787 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4788 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4789 | PyObject * _resultobj; | |
4790 | wxSize * _result; | |
4791 | wxWindow * _arg0; | |
4792 | wxSize * _arg1; | |
4793 | PyObject * _argo0 = 0; | |
4794 | wxSize temp; | |
4795 | PyObject * _obj1 = 0; | |
4796 | char *_kwnames[] = { "self","sz", NULL }; | |
4797 | char _ptemp[128]; | |
4798 | ||
4799 | self = self; | |
4800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) | |
4801 | return NULL; | |
4802 | if (_argo0) { | |
4803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); | |
4806 | return NULL; | |
4807 | } | |
4808 | } | |
4809 | { | |
4810 | _arg1 = &temp; | |
4811 | if (! wxSize_helper(_obj1, &_arg1)) | |
4812 | return NULL; | |
4813 | } | |
4814 | { | |
0e2ff151 | 4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4816 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
e6056257 | 4817 | |
0e2ff151 | 4818 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4819 | if (PyErr_Occurred()) return NULL; |
4820 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4821 | _resultobj = Py_BuildValue("s",_ptemp); | |
4822 | return _resultobj; | |
4823 | } | |
4824 | ||
4825 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4826 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4827 | PyObject * _resultobj; | |
4828 | wxPoint * _result; | |
4829 | wxWindow * _arg0; | |
4830 | wxPoint * _arg1; | |
4831 | PyObject * _argo0 = 0; | |
4832 | wxPoint temp; | |
4833 | PyObject * _obj1 = 0; | |
4834 | char *_kwnames[] = { "self","pt", NULL }; | |
4835 | char _ptemp[128]; | |
4836 | ||
4837 | self = self; | |
4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) | |
4839 | return NULL; | |
4840 | if (_argo0) { | |
4841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); | |
4844 | return NULL; | |
4845 | } | |
4846 | } | |
4847 | { | |
4848 | _arg1 = &temp; | |
4849 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4850 | return NULL; | |
4851 | } | |
4852 | { | |
0e2ff151 | 4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4854 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
e6056257 | 4855 | |
0e2ff151 | 4856 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4857 | if (PyErr_Occurred()) return NULL; |
4858 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4859 | _resultobj = Py_BuildValue("s",_ptemp); | |
4860 | return _resultobj; | |
4861 | } | |
4862 | ||
4863 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4864 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4865 | PyObject * _resultobj; | |
4866 | wxSize * _result; | |
4867 | wxWindow * _arg0; | |
4868 | wxSize * _arg1; | |
4869 | PyObject * _argo0 = 0; | |
4870 | wxSize temp; | |
4871 | PyObject * _obj1 = 0; | |
4872 | char *_kwnames[] = { "self","sz", NULL }; | |
4873 | char _ptemp[128]; | |
4874 | ||
4875 | self = self; | |
4876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) | |
4877 | return NULL; | |
4878 | if (_argo0) { | |
4879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); | |
4882 | return NULL; | |
4883 | } | |
4884 | } | |
4885 | { | |
4886 | _arg1 = &temp; | |
4887 | if (! wxSize_helper(_obj1, &_arg1)) | |
4888 | return NULL; | |
4889 | } | |
4890 | { | |
0e2ff151 | 4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4892 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
e6056257 | 4893 | |
0e2ff151 | 4894 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4895 | if (PyErr_Occurred()) return NULL; |
4896 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4897 | _resultobj = Py_BuildValue("s",_ptemp); | |
4898 | return _resultobj; | |
4899 | } | |
4900 | ||
4901 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4902 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4903 | PyObject * _resultobj; | |
4904 | wxWindow * _arg0; | |
4905 | wxString * _arg1; | |
4906 | PyObject * _argo0 = 0; | |
4907 | PyObject * _obj1 = 0; | |
4908 | char *_kwnames[] = { "self","tip", NULL }; | |
4909 | ||
4910 | self = self; | |
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) | |
4912 | return NULL; | |
4913 | if (_argo0) { | |
4914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); | |
4917 | return NULL; | |
4918 | } | |
4919 | } | |
4920 | { | |
6824d4f9 RD |
4921 | _arg1 = wxString_in_helper(_obj1); |
4922 | if (_arg1 == NULL) | |
e6056257 | 4923 | return NULL; |
e6056257 RD |
4924 | } |
4925 | { | |
0e2ff151 | 4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4927 | wxWindow_SetToolTipString(_arg0,*_arg1); |
e6056257 | 4928 | |
0e2ff151 | 4929 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4930 | if (PyErr_Occurred()) return NULL; |
4931 | } Py_INCREF(Py_None); | |
4932 | _resultobj = Py_None; | |
4933 | { | |
4934 | if (_obj1) | |
4935 | delete _arg1; | |
4936 | } | |
4937 | return _resultobj; | |
4938 | } | |
4939 | ||
4940 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4941 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4942 | PyObject * _resultobj; | |
4943 | wxWindow * _arg0; | |
4944 | wxToolTip * _arg1; | |
4945 | PyObject * _argo0 = 0; | |
4946 | PyObject * _argo1 = 0; | |
4947 | char *_kwnames[] = { "self","tooltip", NULL }; | |
4948 | ||
4949 | self = self; | |
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) | |
4951 | return NULL; | |
4952 | if (_argo0) { | |
4953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); | |
4956 | return NULL; | |
4957 | } | |
4958 | } | |
4959 | if (_argo1) { | |
4960 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4961 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
4962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); | |
4963 | return NULL; | |
4964 | } | |
4965 | } | |
4966 | { | |
0e2ff151 | 4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4968 | wxWindow_SetToolTip(_arg0,_arg1); |
e6056257 | 4969 | |
0e2ff151 | 4970 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4971 | if (PyErr_Occurred()) return NULL; |
4972 | } Py_INCREF(Py_None); | |
4973 | _resultobj = Py_None; | |
4974 | return _resultobj; | |
4975 | } | |
4976 | ||
4977 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
4978 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject * _resultobj; | |
4980 | wxToolTip * _result; | |
4981 | wxWindow * _arg0; | |
4982 | PyObject * _argo0 = 0; | |
4983 | char *_kwnames[] = { "self", NULL }; | |
4984 | ||
4985 | self = self; | |
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) | |
4987 | return NULL; | |
4988 | if (_argo0) { | |
4989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); | |
4992 | return NULL; | |
4993 | } | |
4994 | } | |
4995 | { | |
0e2ff151 | 4996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4997 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
e6056257 | 4998 | |
0e2ff151 | 4999 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5000 | if (PyErr_Occurred()) return NULL; |
5001 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5002 | return _resultobj; | |
5003 | } | |
5004 | ||
c3bfa1cb | 5005 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
e6056257 RD |
5006 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5007 | PyObject * _resultobj; | |
5008 | wxWindow * _arg0; | |
5009 | wxSizer * _arg1; | |
c3bfa1cb | 5010 | bool _arg2 = (bool ) TRUE; |
e6056257 RD |
5011 | PyObject * _argo0 = 0; |
5012 | PyObject * _argo1 = 0; | |
c3bfa1cb RD |
5013 | int tempbool2 = (int) TRUE; |
5014 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
e6056257 RD |
5015 | |
5016 | self = self; | |
c3bfa1cb | 5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
e6056257 RD |
5018 | return NULL; |
5019 | if (_argo0) { | |
5020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5023 | return NULL; | |
5024 | } | |
5025 | } | |
5026 | if (_argo1) { | |
5027 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5028 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5030 | return NULL; | |
5031 | } | |
5032 | } | |
c3bfa1cb | 5033 | _arg2 = (bool ) tempbool2; |
e6056257 | 5034 | { |
0e2ff151 | 5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 5036 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
e6056257 | 5037 | |
0e2ff151 | 5038 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5039 | if (PyErr_Occurred()) return NULL; |
5040 | } Py_INCREF(Py_None); | |
5041 | _resultobj = Py_None; | |
5042 | return _resultobj; | |
5043 | } | |
5044 | ||
5045 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) | |
5046 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5047 | PyObject * _resultobj; | |
5048 | wxSizer * _result; | |
5049 | wxWindow * _arg0; | |
5050 | PyObject * _argo0 = 0; | |
5051 | char *_kwnames[] = { "self", NULL }; | |
5052 | ||
5053 | self = self; | |
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5055 | return NULL; | |
5056 | if (_argo0) { | |
5057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5060 | return NULL; | |
5061 | } | |
5062 | } | |
5063 | { | |
0e2ff151 | 5064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5065 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
e6056257 | 5066 | |
0e2ff151 | 5067 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5068 | if (PyErr_Occurred()) return NULL; |
00360d46 | 5069 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
e6056257 RD |
5070 | return _resultobj; |
5071 | } | |
5072 | ||
a341e32e RD |
5073 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5074 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5075 | PyObject * _resultobj; | |
5076 | wxWindow * _arg0; | |
5077 | wxSizer * _arg1; | |
5078 | PyObject * _argo0 = 0; | |
5079 | PyObject * _argo1 = 0; | |
5080 | char *_kwnames[] = { "self","sizer", NULL }; | |
5081 | ||
5082 | self = self; | |
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5084 | return NULL; | |
5085 | if (_argo0) { | |
5086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5089 | return NULL; | |
5090 | } | |
5091 | } | |
5092 | if (_argo1) { | |
5093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5096 | return NULL; | |
5097 | } | |
5098 | } | |
5099 | { | |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 5101 | wxWindow_SetContainingSizer(_arg0,_arg1); |
a341e32e RD |
5102 | |
5103 | wxPyEndAllowThreads(__tstate); | |
5104 | if (PyErr_Occurred()) return NULL; | |
5105 | } Py_INCREF(Py_None); | |
5106 | _resultobj = Py_None; | |
5107 | return _resultobj; | |
5108 | } | |
5109 | ||
5110 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5111 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject * _resultobj; | |
5113 | wxSizer * _result; | |
5114 | wxWindow * _arg0; | |
5115 | PyObject * _argo0 = 0; | |
5116 | char *_kwnames[] = { "self", NULL }; | |
5117 | ||
5118 | self = self; | |
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5120 | return NULL; | |
5121 | if (_argo0) { | |
5122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5125 | return NULL; | |
5126 | } | |
5127 | } | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 5130 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
a341e32e RD |
5131 | |
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) return NULL; | |
5134 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5135 | return _resultobj; | |
5136 | } | |
5137 | ||
e6056257 RD |
5138 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5139 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5140 | PyObject * _resultobj; | |
5141 | wxValidator * _result; | |
5142 | wxWindow * _arg0; | |
5143 | PyObject * _argo0 = 0; | |
5144 | char *_kwnames[] = { "self", NULL }; | |
5145 | ||
5146 | self = self; | |
5147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5148 | return NULL; | |
5149 | if (_argo0) { | |
5150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5153 | return NULL; | |
5154 | } | |
5155 | } | |
5156 | { | |
0e2ff151 | 5157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5158 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
e6056257 | 5159 | |
0e2ff151 | 5160 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5161 | if (PyErr_Occurred()) return NULL; |
5162 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5163 | return _resultobj; | |
5164 | } | |
5165 | ||
5166 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5167 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5168 | PyObject * _resultobj; | |
5169 | wxWindow * _arg0; | |
5170 | wxValidator * _arg1; | |
5171 | PyObject * _argo0 = 0; | |
5172 | PyObject * _argo1 = 0; | |
5173 | char *_kwnames[] = { "self","validator", NULL }; | |
5174 | ||
5175 | self = self; | |
5176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5177 | return NULL; | |
5178 | if (_argo0) { | |
5179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5182 | return NULL; | |
5183 | } | |
5184 | } | |
5185 | if (_argo1) { | |
5186 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5187 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5189 | return NULL; | |
5190 | } | |
5191 | } | |
5192 | { | |
0e2ff151 | 5193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5194 | wxWindow_SetValidator(_arg0,*_arg1); |
e6056257 | 5195 | |
0e2ff151 | 5196 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5197 | if (PyErr_Occurred()) return NULL; |
5198 | } Py_INCREF(Py_None); | |
5199 | _resultobj = Py_None; | |
5200 | return _resultobj; | |
5201 | } | |
5202 | ||
5203 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) | |
5204 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject * _resultobj; | |
5206 | wxSize * _result; | |
5207 | wxWindow * _arg0; | |
5208 | PyObject * _argo0 = 0; | |
5209 | char *_kwnames[] = { "self", NULL }; | |
5210 | char _ptemp[128]; | |
5211 | ||
5212 | self = self; | |
5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5214 | return NULL; | |
5215 | if (_argo0) { | |
5216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5219 | return NULL; | |
5220 | } | |
5221 | } | |
5222 | { | |
0e2ff151 | 5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5224 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
e6056257 | 5225 | |
0e2ff151 | 5226 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5227 | if (PyErr_Occurred()) return NULL; |
5228 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5229 | _resultobj = Py_BuildValue("s",_ptemp); | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
c3bfa1cb RD |
5233 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5234 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxSize * _result; | |
5237 | wxWindow * _arg0; | |
5238 | PyObject * _argo0 = 0; | |
5239 | char *_kwnames[] = { "self", NULL }; | |
5240 | char _ptemp[128]; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5244 | return NULL; | |
5245 | if (_argo0) { | |
5246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) return NULL; | |
5258 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5259 | _resultobj = Py_BuildValue("s",_ptemp); | |
5260 | return _resultobj; | |
5261 | } | |
5262 | ||
e6056257 RD |
5263 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5264 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5265 | PyObject * _resultobj; | |
5266 | wxWindow * _arg0; | |
5267 | wxCaret * _arg1; | |
5268 | PyObject * _argo0 = 0; | |
5269 | PyObject * _argo1 = 0; | |
5270 | char *_kwnames[] = { "self","caret", NULL }; | |
5271 | ||
5272 | self = self; | |
5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_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_SetCaret. 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,"_wxCaret_p")) { | |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | { | |
0e2ff151 | 5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5291 | wxWindow_SetCaret(_arg0,_arg1); |
e6056257 | 5292 | |
0e2ff151 | 5293 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5294 | if (PyErr_Occurred()) return NULL; |
5295 | } Py_INCREF(Py_None); | |
5296 | _resultobj = Py_None; | |
5297 | return _resultobj; | |
5298 | } | |
5299 | ||
5300 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5301 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5302 | PyObject * _resultobj; | |
5303 | wxCaret * _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_GetCaret",_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_GetCaret. Expected _wxWindow_p."); | |
5316 | return NULL; | |
5317 | } | |
5318 | } | |
5319 | { | |
0e2ff151 | 5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5321 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
e6056257 | 5322 | |
0e2ff151 | 5323 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5324 | if (PyErr_Occurred()) return NULL; |
5325 | } if (_result) { | |
5326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5327 | _resultobj = Py_BuildValue("s",_ptemp); | |
5328 | } else { | |
5329 | Py_INCREF(Py_None); | |
5330 | _resultobj = Py_None; | |
5331 | } | |
5332 | return _resultobj; | |
5333 | } | |
5334 | ||
5335 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) | |
5336 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject * _resultobj; | |
5338 | wxWindow * _arg0; | |
5339 | PyObject * _argo0 = 0; | |
5340 | char *_kwnames[] = { "self", NULL }; | |
5341 | ||
5342 | self = self; | |
5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5344 | return NULL; | |
5345 | if (_argo0) { | |
5346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5349 | return NULL; | |
5350 | } | |
5351 | } | |
5352 | { | |
0e2ff151 | 5353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5354 | wxWindow_Freeze(_arg0); |
e6056257 | 5355 | |
0e2ff151 | 5356 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5357 | if (PyErr_Occurred()) return NULL; |
5358 | } Py_INCREF(Py_None); | |
5359 | _resultobj = Py_None; | |
5360 | return _resultobj; | |
5361 | } | |
5362 | ||
5363 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5364 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5365 | PyObject * _resultobj; | |
5366 | wxWindow * _arg0; | |
5367 | PyObject * _argo0 = 0; | |
5368 | char *_kwnames[] = { "self", NULL }; | |
5369 | ||
5370 | self = self; | |
5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5372 | return NULL; | |
5373 | if (_argo0) { | |
5374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5377 | return NULL; | |
5378 | } | |
5379 | } | |
5380 | { | |
0e2ff151 | 5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5382 | wxWindow_Thaw(_arg0); |
e6056257 | 5383 | |
0e2ff151 | 5384 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5385 | if (PyErr_Occurred()) return NULL; |
5386 | } Py_INCREF(Py_None); | |
5387 | _resultobj = Py_None; | |
5388 | return _resultobj; | |
5389 | } | |
5390 | ||
5391 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) | |
5392 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5393 | PyObject * _resultobj; | |
5394 | wxWindow * _arg0; | |
5395 | PyObject * _argo0 = 0; | |
5396 | char *_kwnames[] = { "self", NULL }; | |
5397 | ||
5398 | self = self; | |
5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5400 | return NULL; | |
5401 | if (_argo0) { | |
5402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5405 | return NULL; | |
5406 | } | |
5407 | } | |
5408 | { | |
0e2ff151 | 5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5410 | wxWindow_Update(_arg0); |
e6056257 | 5411 | |
0e2ff151 | 5412 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5413 | if (PyErr_Occurred()) return NULL; |
5414 | } Py_INCREF(Py_None); | |
5415 | _resultobj = Py_None; | |
5416 | return _resultobj; | |
5417 | } | |
5418 | ||
5419 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) | |
5420 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5421 | PyObject * _resultobj; | |
5422 | wxString * _result; | |
5423 | wxWindow * _arg0; | |
5424 | PyObject * _argo0 = 0; | |
5425 | char *_kwnames[] = { "self", NULL }; | |
5426 | ||
5427 | self = self; | |
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5429 | return NULL; | |
5430 | if (_argo0) { | |
5431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
0e2ff151 | 5438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5439 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
e6056257 | 5440 | |
0e2ff151 | 5441 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5442 | if (PyErr_Occurred()) return NULL; |
5443 | }{ | |
6824d4f9 RD |
5444 | #if wxUSE_UNICODE |
5445 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5446 | #else | |
e6056257 | 5447 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 5448 | #endif |
e6056257 RD |
5449 | } |
5450 | { | |
5451 | delete _result; | |
5452 | } | |
5453 | return _resultobj; | |
5454 | } | |
5455 | ||
5456 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5457 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5458 | PyObject * _resultobj; | |
5459 | wxWindow * _arg0; | |
5460 | wxString * _arg1; | |
5461 | PyObject * _argo0 = 0; | |
5462 | PyObject * _obj1 = 0; | |
5463 | char *_kwnames[] = { "self","helpText", NULL }; | |
5464 | ||
5465 | self = self; | |
5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5467 | return NULL; | |
5468 | if (_argo0) { | |
5469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5472 | return NULL; | |
5473 | } | |
5474 | } | |
5475 | { | |
6824d4f9 RD |
5476 | _arg1 = wxString_in_helper(_obj1); |
5477 | if (_arg1 == NULL) | |
e6056257 | 5478 | return NULL; |
e6056257 RD |
5479 | } |
5480 | { | |
0e2ff151 | 5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5482 | wxWindow_SetHelpText(_arg0,*_arg1); |
e6056257 | 5483 | |
0e2ff151 | 5484 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5485 | if (PyErr_Occurred()) return NULL; |
5486 | } Py_INCREF(Py_None); | |
5487 | _resultobj = Py_None; | |
5488 | { | |
5489 | if (_obj1) | |
5490 | delete _arg1; | |
5491 | } | |
5492 | return _resultobj; | |
5493 | } | |
5494 | ||
a341e32e RD |
5495 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5496 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5497 | PyObject * _resultobj; | |
5498 | wxWindow * _arg0; | |
5499 | wxString * _arg1; | |
5500 | PyObject * _argo0 = 0; | |
5501 | PyObject * _obj1 = 0; | |
5502 | char *_kwnames[] = { "self","text", NULL }; | |
5503 | ||
5504 | self = self; | |
5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5506 | return NULL; | |
5507 | if (_argo0) { | |
5508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5511 | return NULL; | |
5512 | } | |
5513 | } | |
5514 | { | |
6824d4f9 RD |
5515 | _arg1 = wxString_in_helper(_obj1); |
5516 | if (_arg1 == NULL) | |
a341e32e | 5517 | return NULL; |
a341e32e RD |
5518 | } |
5519 | { | |
5520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 5521 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
a341e32e RD |
5522 | |
5523 | wxPyEndAllowThreads(__tstate); | |
5524 | if (PyErr_Occurred()) return NULL; | |
5525 | } Py_INCREF(Py_None); | |
5526 | _resultobj = Py_None; | |
5527 | { | |
5528 | if (_obj1) | |
5529 | delete _arg1; | |
5530 | } | |
5531 | return _resultobj; | |
5532 | } | |
5533 | ||
e6056257 RD |
5534 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5535 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5536 | PyObject * _resultobj; | |
5537 | bool _result; | |
5538 | wxWindow * _arg0; | |
5539 | int _arg1; | |
5540 | PyObject * _argo0 = 0; | |
5541 | char *_kwnames[] = { "self","lines", NULL }; | |
5542 | ||
5543 | self = self; | |
5544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5545 | return NULL; | |
5546 | if (_argo0) { | |
5547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5550 | return NULL; | |
5551 | } | |
5552 | } | |
5553 | { | |
0e2ff151 | 5554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5555 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
e6056257 | 5556 | |
0e2ff151 | 5557 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5558 | if (PyErr_Occurred()) return NULL; |
5559 | } _resultobj = Py_BuildValue("i",_result); | |
5560 | return _resultobj; | |
5561 | } | |
5562 | ||
5563 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5564 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5565 | PyObject * _resultobj; | |
5566 | bool _result; | |
5567 | wxWindow * _arg0; | |
5568 | int _arg1; | |
5569 | PyObject * _argo0 = 0; | |
5570 | char *_kwnames[] = { "self","pages", NULL }; | |
5571 | ||
5572 | self = self; | |
5573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5574 | return NULL; | |
5575 | if (_argo0) { | |
5576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5579 | return NULL; | |
5580 | } | |
5581 | } | |
5582 | { | |
0e2ff151 | 5583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5584 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
e6056257 | 5585 | |
0e2ff151 | 5586 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5587 | if (PyErr_Occurred()) return NULL; |
5588 | } _resultobj = Py_BuildValue("i",_result); | |
5589 | return _resultobj; | |
5590 | } | |
5591 | ||
5592 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5593 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject * _resultobj; | |
5595 | bool _result; | |
5596 | wxWindow * _arg0; | |
5597 | PyObject * _argo0 = 0; | |
5598 | char *_kwnames[] = { "self", NULL }; | |
5599 | ||
5600 | self = self; | |
5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5602 | return NULL; | |
5603 | if (_argo0) { | |
5604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5607 | return NULL; | |
5608 | } | |
5609 | } | |
5610 | { | |
0e2ff151 | 5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5612 | _result = (bool )wxWindow_LineUp(_arg0); |
e6056257 | 5613 | |
0e2ff151 | 5614 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5615 | if (PyErr_Occurred()) return NULL; |
5616 | } _resultobj = Py_BuildValue("i",_result); | |
5617 | return _resultobj; | |
5618 | } | |
5619 | ||
5620 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5621 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5622 | PyObject * _resultobj; | |
5623 | bool _result; | |
5624 | wxWindow * _arg0; | |
5625 | PyObject * _argo0 = 0; | |
5626 | char *_kwnames[] = { "self", NULL }; | |
5627 | ||
5628 | self = self; | |
5629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5630 | return NULL; | |
5631 | if (_argo0) { | |
5632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5635 | return NULL; | |
5636 | } | |
5637 | } | |
5638 | { | |
0e2ff151 | 5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5640 | _result = (bool )wxWindow_LineDown(_arg0); |
e6056257 | 5641 | |
0e2ff151 | 5642 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5643 | if (PyErr_Occurred()) return NULL; |
5644 | } _resultobj = Py_BuildValue("i",_result); | |
5645 | return _resultobj; | |
5646 | } | |
5647 | ||
5648 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5649 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject * _resultobj; | |
5651 | bool _result; | |
5652 | wxWindow * _arg0; | |
5653 | PyObject * _argo0 = 0; | |
5654 | char *_kwnames[] = { "self", NULL }; | |
5655 | ||
5656 | self = self; | |
5657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5658 | return NULL; | |
5659 | if (_argo0) { | |
5660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5663 | return NULL; | |
5664 | } | |
5665 | } | |
5666 | { | |
0e2ff151 | 5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5668 | _result = (bool )wxWindow_PageUp(_arg0); |
e6056257 | 5669 | |
0e2ff151 | 5670 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5671 | if (PyErr_Occurred()) return NULL; |
5672 | } _resultobj = Py_BuildValue("i",_result); | |
5673 | return _resultobj; | |
5674 | } | |
5675 | ||
5676 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5677 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject * _resultobj; | |
5679 | bool _result; | |
5680 | wxWindow * _arg0; | |
5681 | PyObject * _argo0 = 0; | |
5682 | char *_kwnames[] = { "self", NULL }; | |
5683 | ||
5684 | self = self; | |
5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5686 | return NULL; | |
5687 | if (_argo0) { | |
5688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5691 | return NULL; | |
5692 | } | |
5693 | } | |
5694 | { | |
0e2ff151 | 5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5696 | _result = (bool )wxWindow_PageDown(_arg0); |
e6056257 | 5697 | |
0e2ff151 | 5698 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5699 | if (PyErr_Occurred()) return NULL; |
5700 | } _resultobj = Py_BuildValue("i",_result); | |
5701 | return _resultobj; | |
5702 | } | |
5703 | ||
5704 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5705 | PyObject * _resultobj; | |
5706 | wxWindow * _result; | |
5707 | char *_kwnames[] = { NULL }; | |
5708 | ||
5709 | self = self; | |
5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5711 | return NULL; | |
5712 | { | |
0e2ff151 | 5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5714 | _result = (wxWindow *)wxWindow::FindFocus(); |
e6056257 | 5715 | |
0e2ff151 | 5716 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5717 | if (PyErr_Occurred()) return NULL; |
5718 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5719 | return _resultobj; | |
5720 | } | |
5721 | ||
5722 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5723 | PyObject * _resultobj; | |
5724 | int _result; | |
5725 | char *_kwnames[] = { NULL }; | |
5726 | ||
5727 | self = self; | |
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5729 | return NULL; | |
5730 | { | |
0e2ff151 | 5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5732 | _result = (int )wxWindow::NewControlId(); |
e6056257 | 5733 | |
0e2ff151 | 5734 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5735 | if (PyErr_Occurred()) return NULL; |
5736 | } _resultobj = Py_BuildValue("i",_result); | |
5737 | return _resultobj; | |
5738 | } | |
5739 | ||
5740 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject * _resultobj; | |
5742 | int _result; | |
5743 | int _arg0; | |
5744 | char *_kwnames[] = { "id", NULL }; | |
5745 | ||
5746 | self = self; | |
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5748 | return NULL; | |
5749 | { | |
0e2ff151 | 5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5751 | _result = (int )wxWindow::NextControlId(_arg0); |
e6056257 | 5752 | |
0e2ff151 | 5753 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5754 | if (PyErr_Occurred()) return NULL; |
5755 | } _resultobj = Py_BuildValue("i",_result); | |
5756 | return _resultobj; | |
5757 | } | |
5758 | ||
5759 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject * _resultobj; | |
5761 | int _result; | |
5762 | int _arg0; | |
5763 | char *_kwnames[] = { "id", NULL }; | |
5764 | ||
5765 | self = self; | |
5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5767 | return NULL; | |
5768 | { | |
0e2ff151 | 5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5770 | _result = (int )wxWindow::PrevControlId(_arg0); |
e6056257 | 5771 | |
0e2ff151 | 5772 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5773 | if (PyErr_Occurred()) return NULL; |
5774 | } _resultobj = Py_BuildValue("i",_result); | |
5775 | return _resultobj; | |
5776 | } | |
5777 | ||
5778 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) | |
5779 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject * _resultobj; | |
5781 | wxWindow * _arg0; | |
5782 | wxAcceleratorTable * _arg1; | |
5783 | PyObject * _argo0 = 0; | |
5784 | PyObject * _argo1 = 0; | |
5785 | char *_kwnames[] = { "self","accel", NULL }; | |
5786 | ||
5787 | self = self; | |
5788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5789 | return NULL; | |
5790 | if (_argo0) { | |
5791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5794 | return NULL; | |
5795 | } | |
5796 | } | |
5797 | if (_argo1) { | |
5798 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5799 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5801 | return NULL; | |
5802 | } | |
5803 | } | |
5804 | { | |
0e2ff151 | 5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5806 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
e6056257 | 5807 | |
0e2ff151 | 5808 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5809 | if (PyErr_Occurred()) return NULL; |
5810 | } Py_INCREF(Py_None); | |
5811 | _resultobj = Py_None; | |
5812 | return _resultobj; | |
5813 | } | |
5814 | ||
5815 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) | |
5816 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5817 | PyObject * _resultobj; | |
5818 | wxAcceleratorTable * _result; | |
5819 | wxWindow * _arg0; | |
5820 | PyObject * _argo0 = 0; | |
5821 | char *_kwnames[] = { "self", NULL }; | |
5822 | char _ptemp[128]; | |
5823 | ||
5824 | self = self; | |
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5826 | return NULL; | |
5827 | if (_argo0) { | |
5828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5831 | return NULL; | |
5832 | } | |
5833 | } | |
5834 | { | |
0e2ff151 | 5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5836 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
e6056257 | 5837 | |
0e2ff151 | 5838 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5839 | if (PyErr_Occurred()) return NULL; |
5840 | } if (_result) { | |
5841 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5842 | _resultobj = Py_BuildValue("s",_ptemp); | |
5843 | } else { | |
5844 | Py_INCREF(Py_None); | |
5845 | _resultobj = Py_None; | |
5846 | } | |
5847 | return _resultobj; | |
5848 | } | |
5849 | ||
6abe8375 RD |
5850 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
5851 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject * _resultobj; | |
c3bfa1cb | 5853 | wxWindow * _result; |
6abe8375 RD |
5854 | wxWindow * _arg0; |
5855 | PyObject * _argo0 = 0; | |
5856 | char *_kwnames[] = { "self", NULL }; | |
5857 | ||
5858 | self = self; | |
5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
5860 | return NULL; | |
5861 | if (_argo0) { | |
5862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
5865 | return NULL; | |
5866 | } | |
5867 | } | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c3bfa1cb | 5870 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
6abe8375 RD |
5871 | |
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) return NULL; | |
5874 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5875 | return _resultobj; | |
5876 | } | |
5877 | ||
5878 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
5879 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5880 | PyObject * _resultobj; | |
c3bfa1cb | 5881 | wxWindow * _result; |
6abe8375 | 5882 | wxWindow * _arg0; |
c3bfa1cb | 5883 | wxWindow * _arg1; |
6abe8375 RD |
5884 | PyObject * _argo0 = 0; |
5885 | PyObject * _argo1 = 0; | |
5886 | char *_kwnames[] = { "self","btn", NULL }; | |
5887 | ||
5888 | self = self; | |
5889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
5890 | return NULL; | |
5891 | if (_argo0) { | |
5892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5895 | return NULL; | |
5896 | } | |
5897 | } | |
5898 | if (_argo1) { | |
5899 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c3bfa1cb RD |
5900 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
5901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6abe8375 RD |
5902 | return NULL; |
5903 | } | |
5904 | } | |
5905 | { | |
5906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c3bfa1cb | 5907 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
6abe8375 RD |
5908 | |
5909 | wxPyEndAllowThreads(__tstate); | |
5910 | if (PyErr_Occurred()) return NULL; | |
c3bfa1cb | 5911 | }{ _resultobj = wxPyMake_wxObject(_result); } |
6abe8375 RD |
5912 | return _resultobj; |
5913 | } | |
5914 | ||
59988cd0 RD |
5915 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
5916 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5917 | PyObject * _resultobj; | |
5918 | wxWindow * _arg0; | |
5919 | int _arg1; | |
5920 | int _arg2; | |
5921 | PyObject * _argo0 = 0; | |
5922 | char *_kwnames[] = { "self","x","y", NULL }; | |
5923 | ||
5924 | self = self; | |
5925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5926 | return NULL; | |
5927 | if (_argo0) { | |
5928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
5931 | return NULL; | |
5932 | } | |
5933 | } | |
5934 | { | |
5935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5936 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
5937 | ||
5938 | wxPyEndAllowThreads(__tstate); | |
5939 | if (PyErr_Occurred()) return NULL; | |
5940 | } Py_INCREF(Py_None); | |
5941 | _resultobj = Py_None; | |
5942 | return _resultobj; | |
5943 | } | |
5944 | ||
5945 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
5946 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5947 | PyObject * _resultobj; | |
5948 | wxWindow * _arg0; | |
5949 | PyObject * _argo0 = 0; | |
5950 | char *_kwnames[] = { "self", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | { | |
5963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5964 | wxWindow_CaptureMouse(_arg0); | |
5965 | ||
5966 | wxPyEndAllowThreads(__tstate); | |
5967 | if (PyErr_Occurred()) return NULL; | |
5968 | } Py_INCREF(Py_None); | |
5969 | _resultobj = Py_None; | |
5970 | return _resultobj; | |
5971 | } | |
5972 | ||
5973 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
5974 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject * _resultobj; | |
5976 | wxWindow * _arg0; | |
5977 | PyObject * _argo0 = 0; | |
5978 | char *_kwnames[] = { "self", NULL }; | |
5979 | ||
5980 | self = self; | |
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
5982 | return NULL; | |
5983 | if (_argo0) { | |
5984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
5987 | return NULL; | |
5988 | } | |
5989 | } | |
5990 | { | |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | wxWindow_ReleaseMouse(_arg0); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) return NULL; | |
5996 | } Py_INCREF(Py_None); | |
5997 | _resultobj = Py_None; | |
5998 | return _resultobj; | |
5999 | } | |
6000 | ||
6001 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6002 | PyObject * _resultobj; | |
6003 | wxWindow * _result; | |
6004 | char *_kwnames[] = { NULL }; | |
6005 | ||
6006 | self = self; | |
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) | |
6008 | return NULL; | |
6009 | { | |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) return NULL; | |
6015 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6016 | return _resultobj; | |
6017 | } | |
6018 | ||
6019 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6020 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6021 | PyObject * _resultobj; | |
6022 | bool _result; | |
6023 | wxWindow * _arg0; | |
6024 | PyObject * _argo0 = 0; | |
6025 | char *_kwnames[] = { "self", NULL }; | |
6026 | ||
6027 | self = self; | |
6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) | |
6029 | return NULL; | |
6030 | if (_argo0) { | |
6031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6034 | return NULL; | |
6035 | } | |
6036 | } | |
6037 | { | |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6039 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6040 | ||
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) return NULL; | |
6043 | } _resultobj = Py_BuildValue("i",_result); | |
6044 | return _resultobj; | |
6045 | } | |
6046 | ||
e6056257 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 | ||
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 | ||
6071 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6072 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6073 | PyObject * _resultobj; | |
6074 | wxPanel * _result; | |
6075 | wxWindow * _arg0; | |
6076 | wxWindowID _arg1; | |
6077 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6078 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6079 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
c3bfa1cb | 6080 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
e6056257 RD |
6081 | PyObject * _argo0 = 0; |
6082 | wxPoint temp; | |
6083 | PyObject * _obj2 = 0; | |
6084 | wxSize temp0; | |
6085 | PyObject * _obj3 = 0; | |
c3bfa1cb | 6086 | PyObject * _obj5 = 0; |
e6056257 RD |
6087 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
6088 | char _ptemp[128]; | |
6089 | ||
6090 | self = self; | |
c3bfa1cb | 6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
6092 | return NULL; |
6093 | if (_argo0) { | |
6094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); | |
6097 | return NULL; | |
6098 | } | |
6099 | } | |
6100 | if (_obj2) | |
6101 | { | |
6102 | _arg2 = &temp; | |
6103 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6104 | return NULL; | |
6105 | } | |
6106 | if (_obj3) | |
6107 | { | |
6108 | _arg3 = &temp0; | |
6109 | if (! wxSize_helper(_obj3, &_arg3)) | |
6110 | return NULL; | |
c3bfa1cb RD |
6111 | } |
6112 | if (_obj5) | |
6113 | { | |
6114 | _arg5 = wxString_in_helper(_obj5); | |
6115 | if (_arg5 == NULL) | |
6116 | return NULL; | |
e6056257 RD |
6117 | } |
6118 | { | |
0e2ff151 | 6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 6120 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 6121 | |
0e2ff151 | 6122 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6123 | if (PyErr_Occurred()) return NULL; |
6124 | } if (_result) { | |
6125 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6126 | _resultobj = Py_BuildValue("s",_ptemp); | |
6127 | } else { | |
6128 | Py_INCREF(Py_None); | |
6129 | _resultobj = Py_None; | |
6130 | } | |
c3bfa1cb RD |
6131 | { |
6132 | if (_obj5) | |
6133 | delete _arg5; | |
6134 | } | |
e6056257 RD |
6135 | return _resultobj; |
6136 | } | |
6137 | ||
6138 | #define new_wxPrePanel() (new wxPanel()) | |
6139 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject * _resultobj; | |
6141 | wxPanel * _result; | |
6142 | char *_kwnames[] = { NULL }; | |
6143 | char _ptemp[128]; | |
6144 | ||
6145 | self = self; | |
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6147 | return NULL; | |
6148 | { | |
0e2ff151 | 6149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6150 | _result = (wxPanel *)new_wxPrePanel(); |
e6056257 | 6151 | |
0e2ff151 | 6152 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6153 | if (PyErr_Occurred()) return NULL; |
6154 | } if (_result) { | |
6155 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6156 | _resultobj = Py_BuildValue("s",_ptemp); | |
6157 | } else { | |
6158 | Py_INCREF(Py_None); | |
6159 | _resultobj = Py_None; | |
6160 | } | |
6161 | return _resultobj; | |
6162 | } | |
6163 | ||
6164 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6165 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6166 | PyObject * _resultobj; | |
6167 | bool _result; | |
6168 | wxPanel * _arg0; | |
6169 | wxWindow * _arg1; | |
6170 | wxWindowID _arg2; | |
6171 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6172 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6173 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
c3bfa1cb | 6174 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
e6056257 RD |
6175 | PyObject * _argo0 = 0; |
6176 | PyObject * _argo1 = 0; | |
6177 | wxPoint temp; | |
6178 | PyObject * _obj3 = 0; | |
6179 | wxSize temp0; | |
6180 | PyObject * _obj4 = 0; | |
c3bfa1cb | 6181 | PyObject * _obj6 = 0; |
e6056257 RD |
6182 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6183 | ||
6184 | self = self; | |
c3bfa1cb | 6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
6186 | return NULL; |
6187 | if (_argo0) { | |
6188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6191 | return NULL; | |
6192 | } | |
6193 | } | |
6194 | if (_argo1) { | |
6195 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6196 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6198 | return NULL; | |
6199 | } | |
6200 | } | |
6201 | if (_obj3) | |
6202 | { | |
6203 | _arg3 = &temp; | |
6204 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6205 | return NULL; | |
6206 | } | |
6207 | if (_obj4) | |
6208 | { | |
6209 | _arg4 = &temp0; | |
6210 | if (! wxSize_helper(_obj4, &_arg4)) | |
6211 | return NULL; | |
c3bfa1cb RD |
6212 | } |
6213 | if (_obj6) | |
6214 | { | |
6215 | _arg6 = wxString_in_helper(_obj6); | |
6216 | if (_arg6 == NULL) | |
6217 | return NULL; | |
e6056257 RD |
6218 | } |
6219 | { | |
0e2ff151 | 6220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 6221 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 6222 | |
0e2ff151 | 6223 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6224 | if (PyErr_Occurred()) return NULL; |
6225 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
6226 | { |
6227 | if (_obj6) | |
6228 | delete _arg6; | |
6229 | } | |
e6056257 RD |
6230 | return _resultobj; |
6231 | } | |
6232 | ||
6233 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
6234 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6235 | PyObject * _resultobj; | |
6236 | wxPanel * _arg0; | |
6237 | PyObject * _argo0 = 0; | |
6238 | char *_kwnames[] = { "self", NULL }; | |
6239 | ||
6240 | self = self; | |
6241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) | |
6242 | return NULL; | |
6243 | if (_argo0) { | |
6244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); | |
6247 | return NULL; | |
6248 | } | |
6249 | } | |
6250 | { | |
0e2ff151 | 6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6252 | wxPanel_InitDialog(_arg0); |
e6056257 | 6253 | |
0e2ff151 | 6254 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6255 | if (PyErr_Occurred()) return NULL; |
6256 | } Py_INCREF(Py_None); | |
6257 | _resultobj = Py_None; | |
6258 | return _resultobj; | |
6259 | } | |
6260 | ||
e6056257 RD |
6261 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6262 | wxScrolledWindow *src; | |
6263 | wxPanel *dest; | |
6264 | src = (wxScrolledWindow *) ptr; | |
6265 | dest = (wxPanel *) src; | |
6266 | return (void *) dest; | |
6267 | } | |
6268 | ||
6269 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { | |
6270 | wxScrolledWindow *src; | |
6271 | wxWindow *dest; | |
6272 | src = (wxScrolledWindow *) ptr; | |
6273 | dest = (wxWindow *) src; | |
6274 | return (void *) dest; | |
6275 | } | |
6276 | ||
6277 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6278 | wxScrolledWindow *src; | |
6279 | wxEvtHandler *dest; | |
6280 | src = (wxScrolledWindow *) ptr; | |
6281 | dest = (wxEvtHandler *) src; | |
6282 | return (void *) dest; | |
6283 | } | |
6284 | ||
6285 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { | |
6286 | wxScrolledWindow *src; | |
6287 | wxObject *dest; | |
6288 | src = (wxScrolledWindow *) ptr; | |
6289 | dest = (wxObject *) src; | |
6290 | return (void *) dest; | |
6291 | } | |
6292 | ||
6293 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6294 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject * _resultobj; | |
6296 | wxScrolledWindow * _result; | |
6297 | wxWindow * _arg0; | |
6298 | wxWindowID _arg1 = (wxWindowID ) -1; | |
6299 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6300 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6301 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
c3bfa1cb | 6302 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
e6056257 RD |
6303 | PyObject * _argo0 = 0; |
6304 | wxPoint temp; | |
6305 | PyObject * _obj2 = 0; | |
6306 | wxSize temp0; | |
6307 | PyObject * _obj3 = 0; | |
c3bfa1cb | 6308 | PyObject * _obj5 = 0; |
e6056257 RD |
6309 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
6310 | char _ptemp[128]; | |
6311 | ||
6312 | self = self; | |
c3bfa1cb | 6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
6314 | return NULL; |
6315 | if (_argo0) { | |
6316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); | |
6319 | return NULL; | |
6320 | } | |
6321 | } | |
6322 | if (_obj2) | |
6323 | { | |
6324 | _arg2 = &temp; | |
6325 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6326 | return NULL; | |
6327 | } | |
6328 | if (_obj3) | |
6329 | { | |
6330 | _arg3 = &temp0; | |
6331 | if (! wxSize_helper(_obj3, &_arg3)) | |
6332 | return NULL; | |
c3bfa1cb RD |
6333 | } |
6334 | if (_obj5) | |
6335 | { | |
6336 | _arg5 = wxString_in_helper(_obj5); | |
6337 | if (_arg5 == NULL) | |
6338 | return NULL; | |
e6056257 RD |
6339 | } |
6340 | { | |
0e2ff151 | 6341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 6342 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 6343 | |
0e2ff151 | 6344 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6345 | if (PyErr_Occurred()) return NULL; |
6346 | } if (_result) { | |
6347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6348 | _resultobj = Py_BuildValue("s",_ptemp); | |
6349 | } else { | |
6350 | Py_INCREF(Py_None); | |
6351 | _resultobj = Py_None; | |
6352 | } | |
c3bfa1cb RD |
6353 | { |
6354 | if (_obj5) | |
6355 | delete _arg5; | |
6356 | } | |
e6056257 RD |
6357 | return _resultobj; |
6358 | } | |
6359 | ||
6360 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) | |
6361 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6362 | PyObject * _resultobj; | |
6363 | wxScrolledWindow * _result; | |
6364 | char *_kwnames[] = { NULL }; | |
6365 | char _ptemp[128]; | |
6366 | ||
6367 | self = self; | |
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6369 | return NULL; | |
6370 | { | |
0e2ff151 | 6371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6372 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
e6056257 | 6373 | |
0e2ff151 | 6374 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6375 | if (PyErr_Occurred()) return NULL; |
6376 | } if (_result) { | |
6377 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6378 | _resultobj = Py_BuildValue("s",_ptemp); | |
6379 | } else { | |
6380 | Py_INCREF(Py_None); | |
6381 | _resultobj = Py_None; | |
6382 | } | |
6383 | return _resultobj; | |
6384 | } | |
6385 | ||
6386 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6387 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject * _resultobj; | |
6389 | bool _result; | |
6390 | wxScrolledWindow * _arg0; | |
6391 | wxWindow * _arg1; | |
6392 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6393 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6394 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6395 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
c3bfa1cb | 6396 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
e6056257 RD |
6397 | PyObject * _argo0 = 0; |
6398 | PyObject * _argo1 = 0; | |
6399 | wxPoint temp; | |
6400 | PyObject * _obj3 = 0; | |
6401 | wxSize temp0; | |
6402 | PyObject * _obj4 = 0; | |
c3bfa1cb | 6403 | PyObject * _obj6 = 0; |
e6056257 RD |
6404 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6405 | ||
6406 | self = self; | |
c3bfa1cb | 6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
6408 | return NULL; |
6409 | if (_argo0) { | |
6410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6413 | return NULL; | |
6414 | } | |
6415 | } | |
6416 | if (_argo1) { | |
6417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6420 | return NULL; | |
6421 | } | |
6422 | } | |
6423 | if (_obj3) | |
6424 | { | |
6425 | _arg3 = &temp; | |
6426 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6427 | return NULL; | |
6428 | } | |
6429 | if (_obj4) | |
6430 | { | |
6431 | _arg4 = &temp0; | |
6432 | if (! wxSize_helper(_obj4, &_arg4)) | |
6433 | return NULL; | |
c3bfa1cb RD |
6434 | } |
6435 | if (_obj6) | |
6436 | { | |
6437 | _arg6 = wxString_in_helper(_obj6); | |
6438 | if (_arg6 == NULL) | |
6439 | return NULL; | |
e6056257 RD |
6440 | } |
6441 | { | |
0e2ff151 | 6442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 6443 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 6444 | |
0e2ff151 | 6445 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6446 | if (PyErr_Occurred()) return NULL; |
6447 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
6448 | { |
6449 | if (_obj6) | |
6450 | delete _arg6; | |
6451 | } | |
e6056257 RD |
6452 | return _resultobj; |
6453 | } | |
6454 | ||
6455 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
6456 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6457 | PyObject * _resultobj; | |
6458 | wxScrolledWindow * _arg0; | |
6459 | bool _arg1; | |
6460 | bool _arg2; | |
6461 | PyObject * _argo0 = 0; | |
6462 | int tempbool1; | |
6463 | int tempbool2; | |
6464 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; | |
6465 | ||
6466 | self = self; | |
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
6468 | return NULL; | |
6469 | if (_argo0) { | |
6470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); | |
6473 | return NULL; | |
6474 | } | |
6475 | } | |
6476 | _arg1 = (bool ) tempbool1; | |
6477 | _arg2 = (bool ) tempbool2; | |
6478 | { | |
0e2ff151 | 6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6480 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
e6056257 | 6481 | |
0e2ff151 | 6482 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6483 | if (PyErr_Occurred()) return NULL; |
6484 | } Py_INCREF(Py_None); | |
6485 | _resultobj = Py_None; | |
6486 | return _resultobj; | |
6487 | } | |
6488 | ||
6489 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) | |
6490 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6491 | PyObject * _resultobj; | |
6492 | int _result; | |
6493 | wxScrolledWindow * _arg0; | |
6494 | int _arg1; | |
6495 | PyObject * _argo0 = 0; | |
6496 | char *_kwnames[] = { "self","orient", NULL }; | |
6497 | ||
6498 | self = self; | |
6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6500 | return NULL; | |
6501 | if (_argo0) { | |
6502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6505 | return NULL; | |
6506 | } | |
6507 | } | |
6508 | { | |
0e2ff151 | 6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6510 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
e6056257 | 6511 | |
0e2ff151 | 6512 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6513 | if (PyErr_Occurred()) return NULL; |
6514 | } _resultobj = Py_BuildValue("i",_result); | |
6515 | return _resultobj; | |
6516 | } | |
6517 | ||
6518 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
6519 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6520 | PyObject * _resultobj; | |
6521 | wxScrolledWindow * _arg0; | |
6522 | int * _arg1; | |
6523 | int temp; | |
6524 | int * _arg2; | |
6525 | int temp0; | |
6526 | PyObject * _argo0 = 0; | |
6527 | char *_kwnames[] = { "self", NULL }; | |
6528 | ||
6529 | self = self; | |
6530 | { | |
6531 | _arg1 = &temp; | |
6532 | } | |
6533 | { | |
6534 | _arg2 = &temp0; | |
6535 | } | |
6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) | |
6537 | return NULL; | |
6538 | if (_argo0) { | |
6539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | { | |
0e2ff151 | 6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6547 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
e6056257 | 6548 | |
0e2ff151 | 6549 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6550 | if (PyErr_Occurred()) return NULL; |
6551 | } Py_INCREF(Py_None); | |
6552 | _resultobj = Py_None; | |
6553 | { | |
6554 | PyObject *o; | |
6555 | o = PyInt_FromLong((long) (*_arg1)); | |
6556 | _resultobj = t_output_helper(_resultobj, o); | |
6557 | } | |
6558 | { | |
6559 | PyObject *o; | |
6560 | o = PyInt_FromLong((long) (*_arg2)); | |
6561 | _resultobj = t_output_helper(_resultobj, o); | |
6562 | } | |
6563 | return _resultobj; | |
6564 | } | |
6565 | ||
6566 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) | |
6567 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject * _resultobj; | |
6569 | wxWindow * _result; | |
6570 | wxScrolledWindow * _arg0; | |
6571 | PyObject * _argo0 = 0; | |
6572 | char *_kwnames[] = { "self", NULL }; | |
6573 | ||
6574 | self = self; | |
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6576 | return NULL; | |
6577 | if (_argo0) { | |
6578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6581 | return NULL; | |
6582 | } | |
6583 | } | |
6584 | { | |
0e2ff151 | 6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6586 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
e6056257 | 6587 | |
0e2ff151 | 6588 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6589 | if (PyErr_Occurred()) return NULL; |
6590 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6591 | return _resultobj; | |
6592 | } | |
6593 | ||
6594 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
6595 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6596 | PyObject * _resultobj; | |
6597 | wxScrolledWindow * _arg0; | |
6598 | int * _arg1; | |
6599 | int temp; | |
6600 | int * _arg2; | |
6601 | int temp0; | |
6602 | PyObject * _argo0 = 0; | |
6603 | char *_kwnames[] = { "self", NULL }; | |
6604 | ||
6605 | self = self; | |
6606 | { | |
6607 | _arg1 = &temp; | |
6608 | } | |
6609 | { | |
6610 | _arg2 = &temp0; | |
6611 | } | |
6612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) | |
6613 | return NULL; | |
6614 | if (_argo0) { | |
6615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); | |
6618 | return NULL; | |
6619 | } | |
6620 | } | |
6621 | { | |
0e2ff151 | 6622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6623 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
e6056257 | 6624 | |
0e2ff151 | 6625 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6626 | if (PyErr_Occurred()) return NULL; |
6627 | } Py_INCREF(Py_None); | |
6628 | _resultobj = Py_None; | |
6629 | { | |
6630 | PyObject *o; | |
6631 | o = PyInt_FromLong((long) (*_arg1)); | |
6632 | _resultobj = t_output_helper(_resultobj, o); | |
6633 | } | |
6634 | { | |
6635 | PyObject *o; | |
6636 | o = PyInt_FromLong((long) (*_arg2)); | |
6637 | _resultobj = t_output_helper(_resultobj, o); | |
6638 | } | |
6639 | return _resultobj; | |
6640 | } | |
6641 | ||
6642 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
6643 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6644 | PyObject * _resultobj; | |
6645 | bool _result; | |
6646 | wxScrolledWindow * _arg0; | |
6647 | PyObject * _argo0 = 0; | |
6648 | char *_kwnames[] = { "self", NULL }; | |
6649 | ||
6650 | self = self; | |
6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) | |
6652 | return NULL; | |
6653 | if (_argo0) { | |
6654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); | |
6657 | return NULL; | |
6658 | } | |
6659 | } | |
6660 | { | |
0e2ff151 | 6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6662 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
e6056257 | 6663 | |
0e2ff151 | 6664 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6665 | if (PyErr_Occurred()) return NULL; |
6666 | } _resultobj = Py_BuildValue("i",_result); | |
6667 | return _resultobj; | |
6668 | } | |
6669 | ||
6670 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
6671 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject * _resultobj; | |
6673 | wxScrolledWindow * _arg0; | |
6674 | wxDC * _arg1; | |
6675 | PyObject * _argo0 = 0; | |
6676 | PyObject * _argo1 = 0; | |
6677 | char *_kwnames[] = { "self","dc", NULL }; | |
6678 | ||
6679 | self = self; | |
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) | |
6681 | return NULL; | |
6682 | if (_argo0) { | |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); | |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | if (_argo1) { | |
6690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); | |
6693 | return NULL; | |
6694 | } | |
6695 | } | |
6696 | { | |
0e2ff151 | 6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6698 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
e6056257 | 6699 | |
0e2ff151 | 6700 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6701 | if (PyErr_Occurred()) return NULL; |
6702 | } Py_INCREF(Py_None); | |
6703 | _resultobj = Py_None; | |
6704 | return _resultobj; | |
6705 | } | |
6706 | ||
6707 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
6708 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6709 | PyObject * _resultobj; | |
6710 | wxScrolledWindow * _arg0; | |
6711 | int _arg1; | |
6712 | int _arg2; | |
6713 | PyObject * _argo0 = 0; | |
6714 | char *_kwnames[] = { "self","x","y", NULL }; | |
6715 | ||
6716 | self = self; | |
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6718 | return NULL; | |
6719 | if (_argo0) { | |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); | |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
6726 | { | |
0e2ff151 | 6727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6728 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
e6056257 | 6729 | |
0e2ff151 | 6730 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6731 | if (PyErr_Occurred()) return NULL; |
6732 | } Py_INCREF(Py_None); | |
6733 | _resultobj = Py_None; | |
6734 | return _resultobj; | |
6735 | } | |
6736 | ||
6737 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6738 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6739 | PyObject * _resultobj; | |
6740 | wxScrolledWindow * _arg0; | |
6741 | int _arg1; | |
6742 | int _arg2; | |
6743 | int _arg3; | |
6744 | int _arg4; | |
6745 | int _arg5 = (int ) 0; | |
6746 | int _arg6 = (int ) 0; | |
6747 | int _arg7 = (int ) FALSE; | |
6748 | PyObject * _argo0 = 0; | |
6749 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; | |
6750 | ||
6751 | self = self; | |
6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
6753 | return NULL; | |
6754 | if (_argo0) { | |
6755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); | |
6758 | return NULL; | |
6759 | } | |
6760 | } | |
6761 | { | |
0e2ff151 | 6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6763 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
e6056257 | 6764 | |
0e2ff151 | 6765 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6766 | if (PyErr_Occurred()) return NULL; |
6767 | } Py_INCREF(Py_None); | |
6768 | _resultobj = Py_None; | |
6769 | return _resultobj; | |
6770 | } | |
6771 | ||
6772 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) | |
6773 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject * _resultobj; | |
6775 | wxScrolledWindow * _arg0; | |
6776 | int _arg1; | |
6777 | int _arg2; | |
6778 | PyObject * _argo0 = 0; | |
6779 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6780 | ||
6781 | self = self; | |
6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6783 | return NULL; | |
6784 | if (_argo0) { | |
6785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6788 | return NULL; | |
6789 | } | |
6790 | } | |
6791 | { | |
0e2ff151 | 6792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6793 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
e6056257 | 6794 | |
0e2ff151 | 6795 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6796 | if (PyErr_Occurred()) return NULL; |
6797 | } Py_INCREF(Py_None); | |
6798 | _resultobj = Py_None; | |
6799 | return _resultobj; | |
6800 | } | |
6801 | ||
6802 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) | |
6803 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6804 | PyObject * _resultobj; | |
6805 | wxScrolledWindow * _arg0; | |
6806 | wxWindow * _arg1; | |
6807 | PyObject * _argo0 = 0; | |
6808 | PyObject * _argo1 = 0; | |
6809 | char *_kwnames[] = { "self","window", NULL }; | |
6810 | ||
6811 | self = self; | |
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6813 | return NULL; | |
6814 | if (_argo0) { | |
6815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6818 | return NULL; | |
6819 | } | |
6820 | } | |
6821 | if (_argo1) { | |
6822 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6823 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6825 | return NULL; | |
6826 | } | |
6827 | } | |
6828 | { | |
0e2ff151 | 6829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6830 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
e6056257 | 6831 | |
0e2ff151 | 6832 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6833 | if (PyErr_Occurred()) return NULL; |
6834 | } Py_INCREF(Py_None); | |
6835 | _resultobj = Py_None; | |
6836 | return _resultobj; | |
6837 | } | |
6838 | ||
6839 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) | |
6840 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject * _resultobj; | |
6842 | wxScrolledWindow * _arg0; | |
6843 | int * _arg1; | |
6844 | int temp; | |
6845 | int * _arg2; | |
6846 | int temp0; | |
6847 | PyObject * _argo0 = 0; | |
6848 | char *_kwnames[] = { "self", NULL }; | |
6849 | ||
6850 | self = self; | |
6851 | { | |
6852 | _arg1 = &temp; | |
6853 | } | |
6854 | { | |
6855 | _arg2 = &temp0; | |
6856 | } | |
6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6858 | return NULL; | |
6859 | if (_argo0) { | |
6860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6863 | return NULL; | |
6864 | } | |
6865 | } | |
6866 | { | |
0e2ff151 | 6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6868 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
e6056257 | 6869 | |
0e2ff151 | 6870 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6871 | if (PyErr_Occurred()) return NULL; |
6872 | } Py_INCREF(Py_None); | |
6873 | _resultobj = Py_None; | |
6874 | { | |
6875 | PyObject *o; | |
6876 | o = PyInt_FromLong((long) (*_arg1)); | |
6877 | _resultobj = t_output_helper(_resultobj, o); | |
6878 | } | |
6879 | { | |
6880 | PyObject *o; | |
6881 | o = PyInt_FromLong((long) (*_arg2)); | |
6882 | _resultobj = t_output_helper(_resultobj, o); | |
6883 | } | |
6884 | return _resultobj; | |
6885 | } | |
6886 | ||
c3bfa1cb RD |
6887 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
6888 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6889 | PyObject * _resultobj; | |
6890 | wxPoint * _result; | |
6891 | wxScrolledWindow * _arg0; | |
6892 | wxPoint * _arg1; | |
6893 | PyObject * _argo0 = 0; | |
6894 | wxPoint temp; | |
6895 | PyObject * _obj1 = 0; | |
6896 | char *_kwnames[] = { "self","pt", NULL }; | |
6897 | char _ptemp[128]; | |
6898 | ||
6899 | self = self; | |
6900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
6901 | return NULL; | |
6902 | if (_argo0) { | |
6903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
6906 | return NULL; | |
6907 | } | |
6908 | } | |
6909 | { | |
6910 | _arg1 = &temp; | |
6911 | if (! wxPoint_helper(_obj1, &_arg1)) | |
6912 | return NULL; | |
6913 | } | |
6914 | { | |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6916 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
6919 | if (PyErr_Occurred()) return NULL; | |
6920 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6921 | _resultobj = Py_BuildValue("s",_ptemp); | |
6922 | return _resultobj; | |
6923 | } | |
6924 | ||
6925 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6926 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
6927 | PyObject * _resultobj; |
6928 | wxScrolledWindow * _arg0; | |
6929 | int _arg1; | |
6930 | int _arg2; | |
6931 | int * _arg3; | |
6932 | int temp; | |
6933 | int * _arg4; | |
6934 | int temp0; | |
6935 | PyObject * _argo0 = 0; | |
6936 | char *_kwnames[] = { "self","x","y", NULL }; | |
6937 | ||
6938 | self = self; | |
6939 | { | |
6940 | _arg3 = &temp; | |
6941 | } | |
6942 | { | |
6943 | _arg4 = &temp0; | |
6944 | } | |
c3bfa1cb | 6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
e6056257 RD |
6946 | return NULL; |
6947 | if (_argo0) { | |
6948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
c3bfa1cb | 6950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
e6056257 RD |
6951 | return NULL; |
6952 | } | |
6953 | } | |
6954 | { | |
0e2ff151 | 6955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 6956 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 6957 | |
0e2ff151 | 6958 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6959 | if (PyErr_Occurred()) return NULL; |
6960 | } Py_INCREF(Py_None); | |
6961 | _resultobj = Py_None; | |
6962 | { | |
6963 | PyObject *o; | |
6964 | o = PyInt_FromLong((long) (*_arg3)); | |
6965 | _resultobj = t_output_helper(_resultobj, o); | |
6966 | } | |
6967 | { | |
6968 | PyObject *o; | |
6969 | o = PyInt_FromLong((long) (*_arg4)); | |
6970 | _resultobj = t_output_helper(_resultobj, o); | |
6971 | } | |
6972 | return _resultobj; | |
6973 | } | |
6974 | ||
c3bfa1cb RD |
6975 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
6976 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6977 | PyObject * _resultobj; | |
6978 | wxPoint * _result; | |
6979 | wxScrolledWindow * _arg0; | |
6980 | wxPoint * _arg1; | |
6981 | PyObject * _argo0 = 0; | |
6982 | wxPoint temp; | |
6983 | PyObject * _obj1 = 0; | |
6984 | char *_kwnames[] = { "self","pt", NULL }; | |
6985 | char _ptemp[128]; | |
6986 | ||
6987 | self = self; | |
6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
6989 | return NULL; | |
6990 | if (_argo0) { | |
6991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
6994 | return NULL; | |
6995 | } | |
6996 | } | |
6997 | { | |
6998 | _arg1 = &temp; | |
6999 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7000 | return NULL; | |
7001 | } | |
7002 | { | |
7003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7004 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7005 | ||
7006 | wxPyEndAllowThreads(__tstate); | |
7007 | if (PyErr_Occurred()) return NULL; | |
7008 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7009 | _resultobj = Py_BuildValue("s",_ptemp); | |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
7013 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7014 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7015 | PyObject * _resultobj; |
7016 | wxScrolledWindow * _arg0; | |
7017 | int _arg1; | |
7018 | int _arg2; | |
7019 | int * _arg3; | |
7020 | int temp; | |
7021 | int * _arg4; | |
7022 | int temp0; | |
7023 | PyObject * _argo0 = 0; | |
7024 | char *_kwnames[] = { "self","x","y", NULL }; | |
7025 | ||
7026 | self = self; | |
7027 | { | |
7028 | _arg3 = &temp; | |
7029 | } | |
7030 | { | |
7031 | _arg4 = &temp0; | |
7032 | } | |
c3bfa1cb | 7033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
e6056257 RD |
7034 | return NULL; |
7035 | if (_argo0) { | |
7036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
c3bfa1cb | 7038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
e6056257 RD |
7039 | return NULL; |
7040 | } | |
7041 | } | |
7042 | { | |
0e2ff151 | 7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 7044 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 7045 | |
0e2ff151 | 7046 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7047 | if (PyErr_Occurred()) return NULL; |
7048 | } Py_INCREF(Py_None); | |
7049 | _resultobj = Py_None; | |
7050 | { | |
7051 | PyObject *o; | |
7052 | o = PyInt_FromLong((long) (*_arg3)); | |
7053 | _resultobj = t_output_helper(_resultobj, o); | |
7054 | } | |
7055 | { | |
7056 | PyObject *o; | |
7057 | o = PyInt_FromLong((long) (*_arg4)); | |
7058 | _resultobj = t_output_helper(_resultobj, o); | |
7059 | } | |
7060 | return _resultobj; | |
7061 | } | |
7062 | ||
7063 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) | |
7064 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject * _resultobj; | |
7066 | wxScrolledWindow * _arg0; | |
7067 | double _arg1; | |
7068 | double _arg2; | |
7069 | PyObject * _argo0 = 0; | |
7070 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7071 | ||
7072 | self = self; | |
7073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7074 | return NULL; | |
7075 | if (_argo0) { | |
7076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7079 | return NULL; | |
7080 | } | |
7081 | } | |
7082 | { | |
0e2ff151 | 7083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7084 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
e6056257 | 7085 | |
0e2ff151 | 7086 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7087 | if (PyErr_Occurred()) return NULL; |
7088 | } Py_INCREF(Py_None); | |
7089 | _resultobj = Py_None; | |
7090 | return _resultobj; | |
7091 | } | |
7092 | ||
7093 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7094 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7095 | PyObject * _resultobj; | |
7096 | double _result; | |
7097 | wxScrolledWindow * _arg0; | |
7098 | PyObject * _argo0 = 0; | |
7099 | char *_kwnames[] = { "self", NULL }; | |
7100 | ||
7101 | self = self; | |
7102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7103 | return NULL; | |
7104 | if (_argo0) { | |
7105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7108 | return NULL; | |
7109 | } | |
7110 | } | |
7111 | { | |
0e2ff151 | 7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7113 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
e6056257 | 7114 | |
0e2ff151 | 7115 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7116 | if (PyErr_Occurred()) return NULL; |
7117 | } _resultobj = Py_BuildValue("d",_result); | |
7118 | return _resultobj; | |
7119 | } | |
7120 | ||
7121 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7122 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7123 | PyObject * _resultobj; | |
7124 | double _result; | |
7125 | wxScrolledWindow * _arg0; | |
7126 | PyObject * _argo0 = 0; | |
7127 | char *_kwnames[] = { "self", NULL }; | |
7128 | ||
7129 | self = self; | |
7130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7131 | return NULL; | |
7132 | if (_argo0) { | |
7133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7136 | return NULL; | |
7137 | } | |
7138 | } | |
7139 | { | |
0e2ff151 | 7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7141 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); |
e6056257 | 7142 | |
0e2ff151 | 7143 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7144 | if (PyErr_Occurred()) return NULL; |
7145 | } _resultobj = Py_BuildValue("d",_result); | |
7146 | return _resultobj; | |
7147 | } | |
7148 | ||
7149 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7150 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7151 | PyObject * _resultobj; | |
7152 | wxScrolledWindow * _arg0; | |
7153 | PyObject * _argo0 = 0; | |
7154 | char *_kwnames[] = { "self", NULL }; | |
7155 | ||
7156 | self = self; | |
7157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7158 | return NULL; | |
7159 | if (_argo0) { | |
7160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7163 | return NULL; | |
7164 | } | |
7165 | } | |
7166 | { | |
0e2ff151 | 7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7168 | wxScrolledWindow_AdjustScrollbars(_arg0); |
e6056257 | 7169 | |
0e2ff151 | 7170 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7171 | if (PyErr_Occurred()) return NULL; |
7172 | } Py_INCREF(Py_None); | |
7173 | _resultobj = Py_None; | |
7174 | return _resultobj; | |
7175 | } | |
7176 | ||
c3bfa1cb RD |
7177 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) |
7178 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7179 | PyObject * _resultobj; | |
7180 | bool _result; | |
7181 | wxScrolledWindow * _arg0; | |
7182 | PyObject * _argo0 = 0; | |
7183 | char *_kwnames[] = { "self", NULL }; | |
7184 | ||
7185 | self = self; | |
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7187 | return NULL; | |
7188 | if (_argo0) { | |
7189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7192 | return NULL; | |
7193 | } | |
7194 | } | |
7195 | { | |
7196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7197 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7198 | ||
7199 | wxPyEndAllowThreads(__tstate); | |
7200 | if (PyErr_Occurred()) return NULL; | |
7201 | } _resultobj = Py_BuildValue("i",_result); | |
7202 | return _resultobj; | |
7203 | } | |
7204 | ||
e6056257 RD |
7205 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7206 | wxMenu *src; | |
7207 | wxEvtHandler *dest; | |
7208 | src = (wxMenu *) ptr; | |
7209 | dest = (wxEvtHandler *) src; | |
7210 | return (void *) dest; | |
7211 | } | |
7212 | ||
7213 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7214 | wxMenu *src; | |
7215 | wxObject *dest; | |
7216 | src = (wxMenu *) ptr; | |
7217 | dest = (wxObject *) src; | |
7218 | return (void *) dest; | |
7219 | } | |
7220 | ||
7221 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7222 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7223 | PyObject * _resultobj; | |
7224 | wxMenu * _result; | |
c3bfa1cb | 7225 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
e6056257 RD |
7226 | long _arg1 = (long ) 0; |
7227 | PyObject * _obj0 = 0; | |
7228 | char *_kwnames[] = { "title","style", NULL }; | |
7229 | char _ptemp[128]; | |
7230 | ||
7231 | self = self; | |
7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7233 | return NULL; | |
7234 | if (_obj0) | |
7235 | { | |
6824d4f9 RD |
7236 | _arg0 = wxString_in_helper(_obj0); |
7237 | if (_arg0 == NULL) | |
e6056257 | 7238 | return NULL; |
e6056257 RD |
7239 | } |
7240 | { | |
0e2ff151 | 7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7242 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
e6056257 | 7243 | |
0e2ff151 | 7244 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7245 | if (PyErr_Occurred()) return NULL; |
7246 | } if (_result) { | |
7247 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7248 | _resultobj = Py_BuildValue("s",_ptemp); | |
7249 | } else { | |
7250 | Py_INCREF(Py_None); | |
7251 | _resultobj = Py_None; | |
7252 | } | |
7253 | { | |
7254 | if (_obj0) | |
7255 | delete _arg0; | |
7256 | } | |
7257 | return _resultobj; | |
7258 | } | |
7259 | ||
7260 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7261 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7262 | PyObject * _resultobj; | |
7263 | wxMenu * _arg0; | |
7264 | int _arg1; | |
7265 | wxString * _arg2; | |
c3bfa1cb | 7266 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7267 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
e6056257 RD |
7268 | PyObject * _argo0 = 0; |
7269 | PyObject * _obj2 = 0; | |
7270 | PyObject * _obj3 = 0; | |
c3bfa1cb | 7271 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; |
e6056257 RD |
7272 | |
7273 | self = self; | |
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7275 | return NULL; | |
7276 | if (_argo0) { | |
7277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7280 | return NULL; | |
7281 | } | |
7282 | } | |
7283 | { | |
6824d4f9 RD |
7284 | _arg2 = wxString_in_helper(_obj2); |
7285 | if (_arg2 == NULL) | |
e6056257 | 7286 | return NULL; |
e6056257 RD |
7287 | } |
7288 | if (_obj3) | |
7289 | { | |
6824d4f9 RD |
7290 | _arg3 = wxString_in_helper(_obj3); |
7291 | if (_arg3 == NULL) | |
e6056257 | 7292 | return NULL; |
e6056257 RD |
7293 | } |
7294 | { | |
0e2ff151 | 7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7296 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
e6056257 | 7297 | |
0e2ff151 | 7298 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7299 | if (PyErr_Occurred()) return NULL; |
7300 | } Py_INCREF(Py_None); | |
7301 | _resultobj = Py_None; | |
7302 | { | |
7303 | if (_obj2) | |
7304 | delete _arg2; | |
7305 | } | |
7306 | { | |
7307 | if (_obj3) | |
7308 | delete _arg3; | |
7309 | } | |
7310 | return _resultobj; | |
7311 | } | |
7312 | ||
7313 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7314 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7315 | PyObject * _resultobj; | |
7316 | wxMenu * _arg0; | |
7317 | int _arg1; | |
7318 | wxString * _arg2; | |
7319 | wxMenu * _arg3; | |
c3bfa1cb | 7320 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
e6056257 RD |
7321 | PyObject * _argo0 = 0; |
7322 | PyObject * _obj2 = 0; | |
7323 | PyObject * _argo3 = 0; | |
7324 | PyObject * _obj4 = 0; | |
7325 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7326 | ||
7327 | self = self; | |
7328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7329 | return NULL; | |
7330 | if (_argo0) { | |
7331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7334 | return NULL; | |
7335 | } | |
7336 | } | |
7337 | { | |
6824d4f9 RD |
7338 | _arg2 = wxString_in_helper(_obj2); |
7339 | if (_arg2 == NULL) | |
e6056257 | 7340 | return NULL; |
e6056257 RD |
7341 | } |
7342 | if (_argo3) { | |
7343 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7346 | return NULL; | |
7347 | } | |
7348 | } | |
7349 | if (_obj4) | |
7350 | { | |
6824d4f9 RD |
7351 | _arg4 = wxString_in_helper(_obj4); |
7352 | if (_arg4 == NULL) | |
e6056257 | 7353 | return NULL; |
e6056257 RD |
7354 | } |
7355 | { | |
0e2ff151 | 7356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7357 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
e6056257 | 7358 | |
0e2ff151 | 7359 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7360 | if (PyErr_Occurred()) return NULL; |
7361 | } Py_INCREF(Py_None); | |
7362 | _resultobj = Py_None; | |
7363 | { | |
7364 | if (_obj2) | |
7365 | delete _arg2; | |
7366 | } | |
7367 | { | |
7368 | if (_obj4) | |
7369 | delete _arg4; | |
7370 | } | |
7371 | return _resultobj; | |
7372 | } | |
7373 | ||
7374 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7375 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7376 | PyObject * _resultobj; | |
7377 | wxMenu * _arg0; | |
7378 | wxMenuItem * _arg1; | |
7379 | PyObject * _argo0 = 0; | |
7380 | PyObject * _argo1 = 0; | |
7381 | char *_kwnames[] = { "self","item", NULL }; | |
7382 | ||
7383 | self = self; | |
7384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7385 | return NULL; | |
7386 | if (_argo0) { | |
7387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7390 | return NULL; | |
7391 | } | |
7392 | } | |
7393 | if (_argo1) { | |
7394 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7395 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7397 | return NULL; | |
7398 | } | |
7399 | } | |
7400 | { | |
0e2ff151 | 7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7402 | wxMenu_AppendItem(_arg0,_arg1); |
e6056257 | 7403 | |
0e2ff151 | 7404 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7405 | if (PyErr_Occurred()) return NULL; |
7406 | } Py_INCREF(Py_None); | |
7407 | _resultobj = Py_None; | |
7408 | return _resultobj; | |
7409 | } | |
7410 | ||
c3bfa1cb RD |
7411 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
7412 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7413 | PyObject * _resultobj; |
7414 | wxMenu * _arg0; | |
c3bfa1cb RD |
7415 | int _arg1; |
7416 | wxString * _arg2; | |
7417 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
e6056257 | 7418 | PyObject * _argo0 = 0; |
c3bfa1cb RD |
7419 | PyObject * _obj2 = 0; |
7420 | PyObject * _obj3 = 0; | |
7421 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
e6056257 RD |
7422 | |
7423 | self = self; | |
c3bfa1cb | 7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
e6056257 RD |
7425 | return NULL; |
7426 | if (_argo0) { | |
7427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
c3bfa1cb | 7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); |
e6056257 RD |
7430 | return NULL; |
7431 | } | |
7432 | } | |
c3bfa1cb RD |
7433 | { |
7434 | _arg2 = wxString_in_helper(_obj2); | |
7435 | if (_arg2 == NULL) | |
7436 | return NULL; | |
7437 | } | |
7438 | if (_obj3) | |
7439 | { | |
7440 | _arg3 = wxString_in_helper(_obj3); | |
7441 | if (_arg3 == NULL) | |
7442 | return NULL; | |
7443 | } | |
e6056257 | 7444 | { |
0e2ff151 | 7445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 7446 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
e6056257 | 7447 | |
0e2ff151 | 7448 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7449 | if (PyErr_Occurred()) return NULL; |
7450 | } Py_INCREF(Py_None); | |
7451 | _resultobj = Py_None; | |
c3bfa1cb RD |
7452 | { |
7453 | if (_obj2) | |
7454 | delete _arg2; | |
7455 | } | |
7456 | { | |
7457 | if (_obj3) | |
7458 | delete _arg3; | |
7459 | } | |
e6056257 RD |
7460 | return _resultobj; |
7461 | } | |
7462 | ||
c3bfa1cb RD |
7463 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
7464 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7465 | PyObject * _resultobj; |
7466 | wxMenu * _arg0; | |
c3bfa1cb RD |
7467 | int _arg1; |
7468 | wxString * _arg2; | |
7469 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
e6056257 | 7470 | PyObject * _argo0 = 0; |
c3bfa1cb RD |
7471 | PyObject * _obj2 = 0; |
7472 | PyObject * _obj3 = 0; | |
7473 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
e6056257 RD |
7474 | |
7475 | self = self; | |
c3bfa1cb | 7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
e6056257 RD |
7477 | return NULL; |
7478 | if (_argo0) { | |
7479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
c3bfa1cb | 7481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); |
e6056257 RD |
7482 | return NULL; |
7483 | } | |
7484 | } | |
c3bfa1cb RD |
7485 | { |
7486 | _arg2 = wxString_in_helper(_obj2); | |
7487 | if (_arg2 == NULL) | |
7488 | return NULL; | |
7489 | } | |
7490 | if (_obj3) | |
7491 | { | |
7492 | _arg3 = wxString_in_helper(_obj3); | |
7493 | if (_arg3 == NULL) | |
7494 | return NULL; | |
7495 | } | |
e6056257 | 7496 | { |
0e2ff151 | 7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 7498 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
e6056257 | 7499 | |
0e2ff151 | 7500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7501 | if (PyErr_Occurred()) return NULL; |
7502 | } Py_INCREF(Py_None); | |
7503 | _resultobj = Py_None; | |
c3bfa1cb RD |
7504 | { |
7505 | if (_obj2) | |
7506 | delete _arg2; | |
7507 | } | |
7508 | { | |
7509 | if (_obj3) | |
7510 | delete _arg3; | |
7511 | } | |
e6056257 RD |
7512 | return _resultobj; |
7513 | } | |
7514 | ||
c3bfa1cb RD |
7515 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
7516 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
7517 | PyObject * _resultobj; |
7518 | wxMenu * _arg0; | |
e6056257 | 7519 | PyObject * _argo0 = 0; |
c3bfa1cb | 7520 | char *_kwnames[] = { "self", NULL }; |
e6056257 RD |
7521 | |
7522 | self = self; | |
c3bfa1cb | 7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
e6056257 RD |
7524 | return NULL; |
7525 | if (_argo0) { | |
7526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
c3bfa1cb | 7528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
e6056257 RD |
7529 | return NULL; |
7530 | } | |
7531 | } | |
e6056257 | 7532 | { |
0e2ff151 | 7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 7534 | wxMenu_AppendSeparator(_arg0); |
e6056257 | 7535 | |
0e2ff151 | 7536 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7537 | if (PyErr_Occurred()) return NULL; |
7538 | } Py_INCREF(Py_None); | |
7539 | _resultobj = Py_None; | |
7540 | return _resultobj; | |
7541 | } | |
7542 | ||
c3bfa1cb RD |
7543 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
7544 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 7545 | PyObject * _resultobj; |
e6056257 | 7546 | wxMenu * _arg0; |
c3bfa1cb RD |
7547 | size_t _arg1; |
7548 | int _arg2; | |
7549 | wxString * _arg3; | |
7550 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
546bfbea | 7551 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
e6056257 | 7552 | PyObject * _argo0 = 0; |
c3bfa1cb RD |
7553 | PyObject * _obj3 = 0; |
7554 | PyObject * _obj4 = 0; | |
7555 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
e6056257 RD |
7556 | |
7557 | self = self; | |
c3bfa1cb | 7558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) |
e6056257 RD |
7559 | return NULL; |
7560 | if (_argo0) { | |
7561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
c3bfa1cb | 7563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
e6056257 RD |
7564 | return NULL; |
7565 | } | |
7566 | } | |
c3bfa1cb RD |
7567 | { |
7568 | _arg3 = wxString_in_helper(_obj3); | |
7569 | if (_arg3 == NULL) | |
7570 | return NULL; | |
7571 | } | |
7572 | if (_obj4) | |
7573 | { | |
7574 | _arg4 = wxString_in_helper(_obj4); | |
7575 | if (_arg4 == NULL) | |
7576 | return NULL; | |
7577 | } | |
e6056257 | 7578 | { |
0e2ff151 | 7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 7580 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
e6056257 | 7581 | |
0e2ff151 | 7582 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7583 | if (PyErr_Occurred()) return NULL; |
c3bfa1cb RD |
7584 | } Py_INCREF(Py_None); |
7585 | _resultobj = Py_None; | |
7586 | { | |
7587 | if (_obj3) | |
7588 | delete _arg3; | |
7589 | } | |
7590 | { | |
7591 | if (_obj4) | |
7592 | delete _arg4; | |
7593 | } | |
7594 | return _resultobj; | |
7595 | } | |
7596 | ||
7597 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
7598 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7599 | PyObject * _resultobj; | |
7600 | wxMenu * _arg0; | |
7601 | size_t _arg1; | |
7602 | PyObject * _argo0 = 0; | |
7603 | char *_kwnames[] = { "self","pos", NULL }; | |
7604 | ||
7605 | self = self; | |
7606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
7607 | return NULL; | |
7608 | if (_argo0) { | |
7609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
7612 | return NULL; | |
7613 | } | |
7614 | } | |
7615 | { | |
7616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7617 | wxMenu_InsertSeparator(_arg0,_arg1); | |
7618 | ||
7619 | wxPyEndAllowThreads(__tstate); | |
7620 | if (PyErr_Occurred()) return NULL; | |
7621 | } Py_INCREF(Py_None); | |
7622 | _resultobj = Py_None; | |
7623 | return _resultobj; | |
7624 | } | |
7625 | ||
7626 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7627 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7628 | PyObject * _resultobj; | |
7629 | wxMenu * _arg0; | |
7630 | size_t _arg1; | |
7631 | int _arg2; | |
7632 | wxString * _arg3; | |
7633 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
7634 | PyObject * _argo0 = 0; | |
7635 | PyObject * _obj3 = 0; | |
7636 | PyObject * _obj4 = 0; | |
7637 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7638 | ||
7639 | self = self; | |
7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7641 | return NULL; | |
7642 | if (_argo0) { | |
7643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
7646 | return NULL; | |
7647 | } | |
7648 | } | |
7649 | { | |
7650 | _arg3 = wxString_in_helper(_obj3); | |
7651 | if (_arg3 == NULL) | |
7652 | return NULL; | |
7653 | } | |
7654 | if (_obj4) | |
7655 | { | |
7656 | _arg4 = wxString_in_helper(_obj4); | |
7657 | if (_arg4 == NULL) | |
7658 | return NULL; | |
7659 | } | |
7660 | { | |
7661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7662 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7663 | ||
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) return NULL; | |
7666 | } Py_INCREF(Py_None); | |
7667 | _resultobj = Py_None; | |
7668 | { | |
7669 | if (_obj3) | |
7670 | delete _arg3; | |
7671 | } | |
7672 | { | |
7673 | if (_obj4) | |
7674 | delete _arg4; | |
7675 | } | |
7676 | return _resultobj; | |
7677 | } | |
7678 | ||
7679 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7680 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7681 | PyObject * _resultobj; | |
7682 | wxMenu * _arg0; | |
7683 | size_t _arg1; | |
7684 | int _arg2; | |
7685 | wxString * _arg3; | |
7686 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
7687 | PyObject * _argo0 = 0; | |
7688 | PyObject * _obj3 = 0; | |
7689 | PyObject * _obj4 = 0; | |
7690 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7691 | ||
7692 | self = self; | |
7693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7694 | return NULL; | |
7695 | if (_argo0) { | |
7696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
7699 | return NULL; | |
7700 | } | |
7701 | } | |
7702 | { | |
7703 | _arg3 = wxString_in_helper(_obj3); | |
7704 | if (_arg3 == NULL) | |
7705 | return NULL; | |
7706 | } | |
7707 | if (_obj4) | |
7708 | { | |
7709 | _arg4 = wxString_in_helper(_obj4); | |
7710 | if (_arg4 == NULL) | |
7711 | return NULL; | |
7712 | } | |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) return NULL; | |
7719 | } Py_INCREF(Py_None); | |
7720 | _resultobj = Py_None; | |
7721 | { | |
7722 | if (_obj3) | |
7723 | delete _arg3; | |
7724 | } | |
7725 | { | |
7726 | if (_obj4) | |
7727 | delete _arg4; | |
7728 | } | |
7729 | return _resultobj; | |
7730 | } | |
7731 | ||
7732 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7733 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7734 | PyObject * _resultobj; | |
7735 | wxMenu * _arg0; | |
7736 | size_t _arg1; | |
7737 | int _arg2; | |
7738 | wxString * _arg3; | |
7739 | wxMenu * _arg4; | |
7740 | wxString * _arg5 = (wxString *) &wxPyEmptyString; | |
7741 | PyObject * _argo0 = 0; | |
7742 | PyObject * _obj3 = 0; | |
7743 | PyObject * _argo4 = 0; | |
7744 | PyObject * _obj5 = 0; | |
7745 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
7746 | ||
7747 | self = self; | |
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
7749 | return NULL; | |
7750 | if (_argo0) { | |
7751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7754 | return NULL; | |
7755 | } | |
7756 | } | |
7757 | { | |
7758 | _arg3 = wxString_in_helper(_obj3); | |
7759 | if (_arg3 == NULL) | |
7760 | return NULL; | |
7761 | } | |
7762 | if (_argo4) { | |
7763 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7764 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
7765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7766 | return NULL; | |
7767 | } | |
7768 | } | |
7769 | if (_obj5) | |
7770 | { | |
7771 | _arg5 = wxString_in_helper(_obj5); | |
7772 | if (_arg5 == NULL) | |
7773 | return NULL; | |
7774 | } | |
7775 | { | |
7776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7777 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
7778 | ||
7779 | wxPyEndAllowThreads(__tstate); | |
7780 | if (PyErr_Occurred()) return NULL; | |
7781 | } Py_INCREF(Py_None); | |
7782 | _resultobj = Py_None; | |
7783 | { | |
7784 | if (_obj3) | |
7785 | delete _arg3; | |
7786 | } | |
7787 | { | |
7788 | if (_obj5) | |
7789 | delete _arg5; | |
7790 | } | |
7791 | return _resultobj; | |
7792 | } | |
7793 | ||
7794 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) | |
7795 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7796 | PyObject * _resultobj; | |
7797 | bool _result; | |
7798 | wxMenu * _arg0; | |
7799 | size_t _arg1; | |
7800 | wxMenuItem * _arg2; | |
7801 | PyObject * _argo0 = 0; | |
7802 | PyObject * _argo2 = 0; | |
7803 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7804 | ||
7805 | self = self; | |
7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) | |
7807 | return NULL; | |
7808 | if (_argo0) { | |
7809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
7812 | return NULL; | |
7813 | } | |
7814 | } | |
7815 | if (_argo2) { | |
7816 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) return NULL; | |
7828 | } _resultobj = Py_BuildValue("i",_result); | |
7829 | return _resultobj; | |
7830 | } | |
7831 | ||
7832 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7833 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7834 | PyObject * _resultobj; | |
7835 | wxMenu * _arg0; | |
7836 | int _arg1; | |
7837 | wxString * _arg2; | |
7838 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 7839 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
c3bfa1cb RD |
7840 | PyObject * _argo0 = 0; |
7841 | PyObject * _obj2 = 0; | |
7842 | PyObject * _obj3 = 0; | |
7843 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
7844 | ||
7845 | self = self; | |
7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7847 | return NULL; | |
7848 | if (_argo0) { | |
7849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
7852 | return NULL; | |
7853 | } | |
7854 | } | |
7855 | { | |
7856 | _arg2 = wxString_in_helper(_obj2); | |
7857 | if (_arg2 == NULL) | |
7858 | return NULL; | |
7859 | } | |
7860 | if (_obj3) | |
7861 | { | |
7862 | _arg3 = wxString_in_helper(_obj3); | |
7863 | if (_arg3 == NULL) | |
7864 | return NULL; | |
7865 | } | |
7866 | { | |
7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7868 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7869 | ||
7870 | wxPyEndAllowThreads(__tstate); | |
7871 | if (PyErr_Occurred()) return NULL; | |
7872 | } Py_INCREF(Py_None); | |
7873 | _resultobj = Py_None; | |
7874 | { | |
7875 | if (_obj2) | |
7876 | delete _arg2; | |
7877 | } | |
7878 | { | |
7879 | if (_obj3) | |
7880 | delete _arg3; | |
7881 | } | |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
7885 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) | |
7886 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject * _resultobj; | |
7888 | wxMenu * _arg0; | |
7889 | PyObject * _argo0 = 0; | |
7890 | char *_kwnames[] = { "self", NULL }; | |
7891 | ||
7892 | self = self; | |
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) | |
7894 | return NULL; | |
7895 | if (_argo0) { | |
7896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
7899 | return NULL; | |
7900 | } | |
7901 | } | |
7902 | { | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | wxMenu_PrependSeparator(_arg0); | |
7905 | ||
7906 | wxPyEndAllowThreads(__tstate); | |
7907 | if (PyErr_Occurred()) return NULL; | |
7908 | } Py_INCREF(Py_None); | |
7909 | _resultobj = Py_None; | |
7910 | return _resultobj; | |
7911 | } | |
7912 | ||
7913 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7914 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject * _resultobj; | |
7916 | wxMenu * _arg0; | |
7917 | int _arg1; | |
7918 | wxString * _arg2; | |
7919 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
7920 | PyObject * _argo0 = 0; | |
7921 | PyObject * _obj2 = 0; | |
7922 | PyObject * _obj3 = 0; | |
7923 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7924 | ||
7925 | self = self; | |
7926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7927 | return NULL; | |
7928 | if (_argo0) { | |
7929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
7932 | return NULL; | |
7933 | } | |
7934 | } | |
7935 | { | |
7936 | _arg2 = wxString_in_helper(_obj2); | |
7937 | if (_arg2 == NULL) | |
7938 | return NULL; | |
7939 | } | |
7940 | if (_obj3) | |
7941 | { | |
7942 | _arg3 = wxString_in_helper(_obj3); | |
7943 | if (_arg3 == NULL) | |
7944 | return NULL; | |
7945 | } | |
7946 | { | |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7949 | ||
7950 | wxPyEndAllowThreads(__tstate); | |
7951 | if (PyErr_Occurred()) return NULL; | |
7952 | } Py_INCREF(Py_None); | |
7953 | _resultobj = Py_None; | |
7954 | { | |
7955 | if (_obj2) | |
7956 | delete _arg2; | |
7957 | } | |
7958 | { | |
7959 | if (_obj3) | |
7960 | delete _arg3; | |
7961 | } | |
7962 | return _resultobj; | |
7963 | } | |
7964 | ||
7965 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7966 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7967 | PyObject * _resultobj; | |
7968 | wxMenu * _arg0; | |
7969 | int _arg1; | |
7970 | wxString * _arg2; | |
7971 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
7972 | PyObject * _argo0 = 0; | |
7973 | PyObject * _obj2 = 0; | |
7974 | PyObject * _obj3 = 0; | |
7975 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7976 | ||
7977 | self = self; | |
7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7979 | return NULL; | |
7980 | if (_argo0) { | |
7981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); | |
7984 | return NULL; | |
7985 | } | |
7986 | } | |
7987 | { | |
7988 | _arg2 = wxString_in_helper(_obj2); | |
7989 | if (_arg2 == NULL) | |
7990 | return NULL; | |
7991 | } | |
7992 | if (_obj3) | |
7993 | { | |
7994 | _arg3 = wxString_in_helper(_obj3); | |
7995 | if (_arg3 == NULL) | |
7996 | return NULL; | |
7997 | } | |
7998 | { | |
7999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8000 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
8001 | ||
8002 | wxPyEndAllowThreads(__tstate); | |
8003 | if (PyErr_Occurred()) return NULL; | |
8004 | } Py_INCREF(Py_None); | |
8005 | _resultobj = Py_None; | |
8006 | { | |
8007 | if (_obj2) | |
8008 | delete _arg2; | |
8009 | } | |
8010 | { | |
8011 | if (_obj3) | |
8012 | delete _arg3; | |
8013 | } | |
8014 | return _resultobj; | |
8015 | } | |
8016 | ||
8017 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8018 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject * _resultobj; | |
8020 | wxMenu * _arg0; | |
8021 | int _arg1; | |
8022 | wxString * _arg2; | |
8023 | wxMenu * _arg3; | |
8024 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
8025 | PyObject * _argo0 = 0; | |
8026 | PyObject * _obj2 = 0; | |
8027 | PyObject * _argo3 = 0; | |
8028 | PyObject * _obj4 = 0; | |
8029 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; | |
8030 | ||
8031 | self = self; | |
8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
8033 | return NULL; | |
8034 | if (_argo0) { | |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); | |
8038 | return NULL; | |
8039 | } | |
8040 | } | |
8041 | { | |
8042 | _arg2 = wxString_in_helper(_obj2); | |
8043 | if (_arg2 == NULL) | |
8044 | return NULL; | |
8045 | } | |
8046 | if (_argo3) { | |
8047 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8048 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); | |
8050 | return NULL; | |
8051 | } | |
8052 | } | |
8053 | if (_obj4) | |
8054 | { | |
8055 | _arg4 = wxString_in_helper(_obj4); | |
8056 | if (_arg4 == NULL) | |
8057 | return NULL; | |
8058 | } | |
8059 | { | |
8060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8061 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
8062 | ||
8063 | wxPyEndAllowThreads(__tstate); | |
8064 | if (PyErr_Occurred()) return NULL; | |
8065 | } Py_INCREF(Py_None); | |
8066 | _resultobj = Py_None; | |
8067 | { | |
8068 | if (_obj2) | |
8069 | delete _arg2; | |
8070 | } | |
8071 | { | |
8072 | if (_obj4) | |
8073 | delete _arg4; | |
8074 | } | |
8075 | return _resultobj; | |
8076 | } | |
8077 | ||
8078 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) | |
8079 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8080 | PyObject * _resultobj; | |
8081 | wxMenu * _arg0; | |
8082 | wxMenuItem * _arg1; | |
8083 | PyObject * _argo0 = 0; | |
8084 | PyObject * _argo1 = 0; | |
8085 | char *_kwnames[] = { "self","item", NULL }; | |
8086 | ||
8087 | self = self; | |
8088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) | |
8089 | return NULL; | |
8090 | if (_argo0) { | |
8091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); | |
8094 | return NULL; | |
8095 | } | |
8096 | } | |
8097 | if (_argo1) { | |
8098 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8099 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); | |
8101 | return NULL; | |
8102 | } | |
8103 | } | |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | wxMenu_PrependItem(_arg0,_arg1); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) return NULL; | |
8110 | } Py_INCREF(Py_None); | |
8111 | _resultobj = Py_None; | |
8112 | return _resultobj; | |
8113 | } | |
8114 | ||
8115 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
8116 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8117 | PyObject * _resultobj; | |
8118 | wxMenu * _arg0; | |
8119 | PyObject * _argo0 = 0; | |
8120 | char *_kwnames[] = { "self", NULL }; | |
8121 | ||
8122 | self = self; | |
8123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) | |
8124 | return NULL; | |
8125 | if (_argo0) { | |
8126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); | |
8129 | return NULL; | |
8130 | } | |
8131 | } | |
8132 | { | |
8133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8134 | wxMenu_Break(_arg0); | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) return NULL; | |
8138 | } Py_INCREF(Py_None); | |
8139 | _resultobj = Py_None; | |
8140 | return _resultobj; | |
8141 | } | |
8142 | ||
8143 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8144 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8145 | PyObject * _resultobj; | |
8146 | wxMenu * _arg0; | |
8147 | int _arg1; | |
8148 | bool _arg2; | |
8149 | PyObject * _argo0 = 0; | |
8150 | int tempbool2; | |
8151 | char *_kwnames[] = { "self","id","flag", NULL }; | |
8152 | ||
8153 | self = self; | |
8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8155 | return NULL; | |
8156 | if (_argo0) { | |
8157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); | |
8160 | return NULL; | |
8161 | } | |
8162 | } | |
8163 | _arg2 = (bool ) tempbool2; | |
8164 | { | |
8165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8166 | wxMenu_Check(_arg0,_arg1,_arg2); | |
8167 | ||
8168 | wxPyEndAllowThreads(__tstate); | |
8169 | if (PyErr_Occurred()) return NULL; | |
8170 | } Py_INCREF(Py_None); | |
8171 | _resultobj = Py_None; | |
8172 | return _resultobj; | |
8173 | } | |
8174 | ||
8175 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
8176 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8177 | PyObject * _resultobj; | |
8178 | bool _result; | |
8179 | wxMenu * _arg0; | |
8180 | int _arg1; | |
8181 | PyObject * _argo0 = 0; | |
8182 | char *_kwnames[] = { "self","id", NULL }; | |
8183 | ||
8184 | self = self; | |
8185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8186 | return NULL; | |
8187 | if (_argo0) { | |
8188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8191 | return NULL; | |
8192 | } | |
8193 | } | |
8194 | { | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) return NULL; | |
8200 | } _resultobj = Py_BuildValue("i",_result); | |
8201 | return _resultobj; | |
e6056257 RD |
8202 | } |
8203 | ||
8204 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8205 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8206 | PyObject * _resultobj; | |
8207 | wxMenu * _arg0; | |
8208 | int _arg1; | |
8209 | bool _arg2; | |
8210 | PyObject * _argo0 = 0; | |
8211 | int tempbool2; | |
8212 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8213 | ||
8214 | self = self; | |
8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8216 | return NULL; | |
8217 | if (_argo0) { | |
8218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); | |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | _arg2 = (bool ) tempbool2; | |
8225 | { | |
0e2ff151 | 8226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8227 | wxMenu_Enable(_arg0,_arg1,_arg2); |
e6056257 | 8228 | |
0e2ff151 | 8229 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8230 | if (PyErr_Occurred()) return NULL; |
8231 | } Py_INCREF(Py_None); | |
8232 | _resultobj = Py_None; | |
8233 | return _resultobj; | |
8234 | } | |
8235 | ||
8236 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
8237 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8238 | PyObject * _resultobj; | |
8239 | bool _result; | |
8240 | wxMenu * _arg0; | |
8241 | int _arg1; | |
8242 | PyObject * _argo0 = 0; | |
8243 | char *_kwnames[] = { "self","id", NULL }; | |
8244 | ||
8245 | self = self; | |
8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8247 | return NULL; | |
8248 | if (_argo0) { | |
8249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8252 | return NULL; | |
8253 | } | |
8254 | } | |
8255 | { | |
0e2ff151 | 8256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8257 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
e6056257 | 8258 | |
0e2ff151 | 8259 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8260 | if (PyErr_Occurred()) return NULL; |
8261 | } _resultobj = Py_BuildValue("i",_result); | |
8262 | return _resultobj; | |
8263 | } | |
8264 | ||
8265 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8266 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8267 | PyObject * _resultobj; | |
8268 | int _result; | |
8269 | wxMenu * _arg0; | |
8270 | wxString * _arg1; | |
8271 | PyObject * _argo0 = 0; | |
8272 | PyObject * _obj1 = 0; | |
8273 | char *_kwnames[] = { "self","itemString", NULL }; | |
8274 | ||
8275 | self = self; | |
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) | |
8277 | return NULL; | |
8278 | if (_argo0) { | |
8279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); | |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
8285 | { | |
6824d4f9 RD |
8286 | _arg1 = wxString_in_helper(_obj1); |
8287 | if (_arg1 == NULL) | |
e6056257 | 8288 | return NULL; |
e6056257 RD |
8289 | } |
8290 | { | |
0e2ff151 | 8291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8292 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
e6056257 | 8293 | |
0e2ff151 | 8294 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8295 | if (PyErr_Occurred()) return NULL; |
8296 | } _resultobj = Py_BuildValue("i",_result); | |
8297 | { | |
8298 | if (_obj1) | |
8299 | delete _arg1; | |
8300 | } | |
8301 | return _resultobj; | |
8302 | } | |
8303 | ||
8304 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8305 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8306 | PyObject * _resultobj; | |
8307 | wxMenuItem * _result; | |
8308 | wxMenu * _arg0; | |
8309 | int _arg1; | |
8310 | PyObject * _argo0 = 0; | |
8311 | char *_kwnames[] = { "self","id", NULL }; | |
8312 | ||
8313 | self = self; | |
8314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8315 | return NULL; | |
8316 | if (_argo0) { | |
8317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
8323 | { | |
0e2ff151 | 8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8325 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
e6056257 | 8326 | |
0e2ff151 | 8327 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8328 | if (PyErr_Occurred()) return NULL; |
8329 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8330 | return _resultobj; | |
8331 | } | |
8332 | ||
8333 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
8334 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8335 | PyObject * _resultobj; | |
8336 | wxString * _result; | |
8337 | wxMenu * _arg0; | |
8338 | PyObject * _argo0 = 0; | |
8339 | char *_kwnames[] = { "self", NULL }; | |
8340 | ||
8341 | self = self; | |
8342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) | |
8343 | return NULL; | |
8344 | if (_argo0) { | |
8345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); | |
8348 | return NULL; | |
8349 | } | |
8350 | } | |
8351 | { | |
0e2ff151 | 8352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8353 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
e6056257 | 8354 | |
0e2ff151 | 8355 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8356 | if (PyErr_Occurred()) return NULL; |
8357 | }{ | |
6824d4f9 RD |
8358 | #if wxUSE_UNICODE |
8359 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8360 | #else | |
e6056257 | 8361 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8362 | #endif |
e6056257 RD |
8363 | } |
8364 | { | |
8365 | delete _result; | |
8366 | } | |
8367 | return _resultobj; | |
8368 | } | |
8369 | ||
8370 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
8371 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8372 | PyObject * _resultobj; | |
8373 | wxMenu * _arg0; | |
8374 | wxString * _arg1; | |
8375 | PyObject * _argo0 = 0; | |
8376 | PyObject * _obj1 = 0; | |
8377 | char *_kwnames[] = { "self","title", NULL }; | |
8378 | ||
8379 | self = self; | |
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) | |
8381 | return NULL; | |
8382 | if (_argo0) { | |
8383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); | |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
8389 | { | |
6824d4f9 RD |
8390 | _arg1 = wxString_in_helper(_obj1); |
8391 | if (_arg1 == NULL) | |
e6056257 | 8392 | return NULL; |
e6056257 RD |
8393 | } |
8394 | { | |
0e2ff151 | 8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8396 | wxMenu_SetTitle(_arg0,*_arg1); |
e6056257 | 8397 | |
0e2ff151 | 8398 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8399 | if (PyErr_Occurred()) return NULL; |
8400 | } Py_INCREF(Py_None); | |
8401 | _resultobj = Py_None; | |
8402 | { | |
8403 | if (_obj1) | |
8404 | delete _arg1; | |
8405 | } | |
8406 | return _resultobj; | |
8407 | } | |
8408 | ||
8409 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
8410 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8411 | PyObject * _resultobj; | |
8412 | wxString * _result; | |
8413 | wxMenu * _arg0; | |
8414 | int _arg1; | |
8415 | PyObject * _argo0 = 0; | |
8416 | char *_kwnames[] = { "self","id", NULL }; | |
8417 | ||
8418 | self = self; | |
8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) | |
8420 | return NULL; | |
8421 | if (_argo0) { | |
8422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); | |
8425 | return NULL; | |
8426 | } | |
8427 | } | |
8428 | { | |
0e2ff151 | 8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8430 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
e6056257 | 8431 | |
0e2ff151 | 8432 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8433 | if (PyErr_Occurred()) return NULL; |
8434 | }{ | |
6824d4f9 RD |
8435 | #if wxUSE_UNICODE |
8436 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8437 | #else | |
e6056257 | 8438 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8439 | #endif |
e6056257 RD |
8440 | } |
8441 | { | |
8442 | delete _result; | |
8443 | } | |
8444 | return _resultobj; | |
8445 | } | |
8446 | ||
8447 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
8448 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject * _resultobj; | |
8450 | wxMenu * _arg0; | |
8451 | int _arg1; | |
8452 | wxString * _arg2; | |
8453 | PyObject * _argo0 = 0; | |
8454 | PyObject * _obj2 = 0; | |
8455 | char *_kwnames[] = { "self","id","label", NULL }; | |
8456 | ||
8457 | self = self; | |
8458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8459 | return NULL; | |
8460 | if (_argo0) { | |
8461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); | |
8464 | return NULL; | |
8465 | } | |
8466 | } | |
8467 | { | |
6824d4f9 RD |
8468 | _arg2 = wxString_in_helper(_obj2); |
8469 | if (_arg2 == NULL) | |
e6056257 | 8470 | return NULL; |
e6056257 RD |
8471 | } |
8472 | { | |
0e2ff151 | 8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8474 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
e6056257 | 8475 | |
0e2ff151 | 8476 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8477 | if (PyErr_Occurred()) return NULL; |
8478 | } Py_INCREF(Py_None); | |
8479 | _resultobj = Py_None; | |
8480 | { | |
8481 | if (_obj2) | |
8482 | delete _arg2; | |
8483 | } | |
8484 | return _resultobj; | |
8485 | } | |
8486 | ||
8487 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8488 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8489 | PyObject * _resultobj; | |
8490 | wxString * _result; | |
8491 | wxMenu * _arg0; | |
8492 | int _arg1; | |
8493 | PyObject * _argo0 = 0; | |
8494 | char *_kwnames[] = { "self","id", NULL }; | |
8495 | ||
8496 | self = self; | |
8497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8498 | return NULL; | |
8499 | if (_argo0) { | |
8500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); | |
8503 | return NULL; | |
8504 | } | |
8505 | } | |
8506 | { | |
0e2ff151 | 8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8508 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
e6056257 | 8509 | |
0e2ff151 | 8510 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8511 | if (PyErr_Occurred()) return NULL; |
8512 | }{ | |
6824d4f9 RD |
8513 | #if wxUSE_UNICODE |
8514 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8515 | #else | |
e6056257 | 8516 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 8517 | #endif |
e6056257 RD |
8518 | } |
8519 | { | |
8520 | delete _result; | |
8521 | } | |
8522 | return _resultobj; | |
8523 | } | |
8524 | ||
8525 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8526 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8527 | PyObject * _resultobj; | |
8528 | wxMenu * _arg0; | |
8529 | int _arg1; | |
8530 | wxString * _arg2; | |
8531 | PyObject * _argo0 = 0; | |
8532 | PyObject * _obj2 = 0; | |
8533 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8534 | ||
8535 | self = self; | |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8537 | return NULL; | |
8538 | if (_argo0) { | |
8539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); | |
8542 | return NULL; | |
8543 | } | |
8544 | } | |
8545 | { | |
6824d4f9 RD |
8546 | _arg2 = wxString_in_helper(_obj2); |
8547 | if (_arg2 == NULL) | |
e6056257 | 8548 | return NULL; |
e6056257 RD |
8549 | } |
8550 | { | |
0e2ff151 | 8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8552 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
e6056257 | 8553 | |
0e2ff151 | 8554 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8555 | if (PyErr_Occurred()) return NULL; |
8556 | } Py_INCREF(Py_None); | |
8557 | _resultobj = Py_None; | |
8558 | { | |
8559 | if (_obj2) | |
8560 | delete _arg2; | |
8561 | } | |
8562 | return _resultobj; | |
8563 | } | |
8564 | ||
8565 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) | |
8566 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8567 | PyObject * _resultobj; | |
8568 | wxMenu * _arg0; | |
8569 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; | |
8570 | PyObject * _argo0 = 0; | |
8571 | PyObject * _argo1 = 0; | |
8572 | char *_kwnames[] = { "self","source", NULL }; | |
8573 | ||
8574 | self = self; | |
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) | |
8576 | return NULL; | |
8577 | if (_argo0) { | |
8578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); | |
8581 | return NULL; | |
8582 | } | |
8583 | } | |
8584 | if (_argo1) { | |
8585 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8586 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8588 | return NULL; | |
8589 | } | |
8590 | } | |
8591 | { | |
0e2ff151 | 8592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8593 | wxMenu_UpdateUI(_arg0,_arg1); |
e6056257 | 8594 | |
0e2ff151 | 8595 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8596 | if (PyErr_Occurred()) return NULL; |
8597 | } Py_INCREF(Py_None); | |
8598 | _resultobj = Py_None; | |
8599 | return _resultobj; | |
8600 | } | |
8601 | ||
8602 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8603 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8604 | PyObject * _resultobj; | |
8605 | bool _result; | |
8606 | wxMenu * _arg0; | |
8607 | int _arg1; | |
8608 | PyObject * _argo0 = 0; | |
8609 | char *_kwnames[] = { "self","id", NULL }; | |
8610 | ||
8611 | self = self; | |
8612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) | |
8613 | return NULL; | |
8614 | if (_argo0) { | |
8615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); | |
8618 | return NULL; | |
8619 | } | |
8620 | } | |
8621 | { | |
0e2ff151 | 8622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8623 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
e6056257 | 8624 | |
0e2ff151 | 8625 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8626 | if (PyErr_Occurred()) return NULL; |
8627 | } _resultobj = Py_BuildValue("i",_result); | |
8628 | return _resultobj; | |
8629 | } | |
8630 | ||
8631 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8632 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8633 | PyObject * _resultobj; | |
8634 | bool _result; | |
8635 | wxMenu * _arg0; | |
8636 | wxMenuItem * _arg1; | |
8637 | PyObject * _argo0 = 0; | |
8638 | PyObject * _argo1 = 0; | |
8639 | char *_kwnames[] = { "self","item", NULL }; | |
8640 | ||
8641 | self = self; | |
8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) | |
8643 | return NULL; | |
8644 | if (_argo0) { | |
8645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); | |
8648 | return NULL; | |
8649 | } | |
8650 | } | |
8651 | if (_argo1) { | |
8652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8655 | return NULL; | |
8656 | } | |
8657 | } | |
8658 | { | |
0e2ff151 | 8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8660 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
e6056257 | 8661 | |
0e2ff151 | 8662 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8663 | if (PyErr_Occurred()) return NULL; |
8664 | } _resultobj = Py_BuildValue("i",_result); | |
8665 | return _resultobj; | |
8666 | } | |
8667 | ||
e6056257 RD |
8668 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8669 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8670 | PyObject * _resultobj; | |
8671 | wxMenuItem * _result; | |
8672 | wxMenu * _arg0; | |
8673 | int _arg1; | |
8674 | PyObject * _argo0 = 0; | |
8675 | char *_kwnames[] = { "self","id", NULL }; | |
8676 | ||
8677 | self = self; | |
8678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) | |
8679 | return NULL; | |
8680 | if (_argo0) { | |
8681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); | |
8684 | return NULL; | |
8685 | } | |
8686 | } | |
8687 | { | |
0e2ff151 | 8688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8689 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
e6056257 | 8690 | |
0e2ff151 | 8691 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8692 | if (PyErr_Occurred()) return NULL; |
8693 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8694 | return _resultobj; | |
8695 | } | |
8696 | ||
8697 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8698 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8699 | PyObject * _resultobj; | |
8700 | wxMenuItem * _result; | |
8701 | wxMenu * _arg0; | |
8702 | wxMenuItem * _arg1; | |
8703 | PyObject * _argo0 = 0; | |
8704 | PyObject * _argo1 = 0; | |
8705 | char *_kwnames[] = { "self","item", NULL }; | |
8706 | ||
8707 | self = self; | |
8708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) | |
8709 | return NULL; | |
8710 | if (_argo0) { | |
8711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
8714 | return NULL; | |
8715 | } | |
8716 | } | |
8717 | if (_argo1) { | |
8718 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8719 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8721 | return NULL; | |
8722 | } | |
8723 | } | |
8724 | { | |
0e2ff151 | 8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8726 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
e6056257 | 8727 | |
0e2ff151 | 8728 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8729 | if (PyErr_Occurred()) return NULL; |
8730 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8731 | return _resultobj; | |
8732 | } | |
8733 | ||
8734 | static void wxMenu_Destroy(wxMenu *self) { delete self; } | |
8735 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8736 | PyObject * _resultobj; | |
8737 | wxMenu * _arg0; | |
8738 | PyObject * _argo0 = 0; | |
8739 | char *_kwnames[] = { "self", NULL }; | |
8740 | ||
8741 | self = self; | |
8742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
8743 | return NULL; | |
8744 | if (_argo0) { | |
8745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8748 | return NULL; | |
8749 | } | |
8750 | } | |
8751 | { | |
0e2ff151 | 8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8753 | wxMenu_Destroy(_arg0); |
e6056257 | 8754 | |
0e2ff151 | 8755 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8756 | if (PyErr_Occurred()) return NULL; |
8757 | } Py_INCREF(Py_None); | |
8758 | _resultobj = Py_None; | |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
8762 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
8763 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject * _resultobj; | |
8765 | bool _result; | |
8766 | wxMenu * _arg0; | |
8767 | int _arg1; | |
8768 | PyObject * _argo0 = 0; | |
8769 | char *_kwnames[] = { "self","id", NULL }; | |
8770 | ||
8771 | self = self; | |
8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) | |
8773 | return NULL; | |
8774 | if (_argo0) { | |
8775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8778 | return NULL; | |
8779 | } | |
8780 | } | |
8781 | { | |
0e2ff151 | 8782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8783 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
e6056257 | 8784 | |
0e2ff151 | 8785 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8786 | if (PyErr_Occurred()) return NULL; |
8787 | } _resultobj = Py_BuildValue("i",_result); | |
8788 | return _resultobj; | |
8789 | } | |
8790 | ||
8791 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
8792 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject * _resultobj; | |
8794 | bool _result; | |
8795 | wxMenu * _arg0; | |
8796 | wxMenuItem * _arg1; | |
8797 | PyObject * _argo0 = 0; | |
8798 | PyObject * _argo1 = 0; | |
8799 | char *_kwnames[] = { "self","item", NULL }; | |
8800 | ||
8801 | self = self; | |
8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) | |
8803 | return NULL; | |
8804 | if (_argo0) { | |
8805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8808 | return NULL; | |
8809 | } | |
8810 | } | |
8811 | if (_argo1) { | |
8812 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | { | |
0e2ff151 | 8819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8820 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
e6056257 | 8821 | |
0e2ff151 | 8822 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8823 | if (PyErr_Occurred()) return NULL; |
8824 | } _resultobj = Py_BuildValue("i",_result); | |
8825 | return _resultobj; | |
8826 | } | |
8827 | ||
8828 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) | |
8829 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject * _resultobj; | |
8831 | size_t _result; | |
8832 | wxMenu * _arg0; | |
8833 | PyObject * _argo0 = 0; | |
8834 | char *_kwnames[] = { "self", NULL }; | |
8835 | ||
8836 | self = self; | |
8837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) | |
8838 | return NULL; | |
8839 | if (_argo0) { | |
8840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8843 | return NULL; | |
8844 | } | |
8845 | } | |
8846 | { | |
0e2ff151 | 8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8848 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
e6056257 | 8849 | |
0e2ff151 | 8850 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8851 | if (PyErr_Occurred()) return NULL; |
8852 | } _resultobj = Py_BuildValue("i",_result); | |
8853 | return _resultobj; | |
8854 | } | |
8855 | ||
8856 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { | |
8857 | wxMenuItemList& list = self->GetMenuItems(); | |
8858 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8859 | } | |
8860 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8861 | PyObject * _resultobj; | |
8862 | PyObject * _result; | |
8863 | wxMenu * _arg0; | |
8864 | PyObject * _argo0 = 0; | |
8865 | char *_kwnames[] = { "self", NULL }; | |
8866 | ||
8867 | self = self; | |
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) | |
8869 | return NULL; | |
8870 | if (_argo0) { | |
8871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8874 | return NULL; | |
8875 | } | |
8876 | } | |
8877 | { | |
0e2ff151 | 8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8879 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
e6056257 | 8880 | |
0e2ff151 | 8881 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8882 | if (PyErr_Occurred()) return NULL; |
8883 | }{ | |
8884 | _resultobj = _result; | |
8885 | } | |
8886 | return _resultobj; | |
8887 | } | |
8888 | ||
8889 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
8890 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8891 | PyObject * _resultobj; | |
8892 | wxMenu * _arg0; | |
8893 | wxEvtHandler * _arg1; | |
8894 | PyObject * _argo0 = 0; | |
8895 | PyObject * _argo1 = 0; | |
8896 | char *_kwnames[] = { "self","handler", NULL }; | |
8897 | ||
8898 | self = self; | |
8899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
8900 | return NULL; | |
8901 | if (_argo0) { | |
8902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8905 | return NULL; | |
8906 | } | |
8907 | } | |
8908 | if (_argo1) { | |
8909 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8910 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8912 | return NULL; | |
8913 | } | |
8914 | } | |
8915 | { | |
0e2ff151 | 8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8917 | wxMenu_SetEventHandler(_arg0,_arg1); |
e6056257 | 8918 | |
0e2ff151 | 8919 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8920 | if (PyErr_Occurred()) return NULL; |
8921 | } Py_INCREF(Py_None); | |
8922 | _resultobj = Py_None; | |
8923 | return _resultobj; | |
8924 | } | |
8925 | ||
8926 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
8927 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8928 | PyObject * _resultobj; | |
8929 | wxEvtHandler * _result; | |
8930 | wxMenu * _arg0; | |
8931 | PyObject * _argo0 = 0; | |
8932 | char *_kwnames[] = { "self", NULL }; | |
8933 | ||
8934 | self = self; | |
8935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) | |
8936 | return NULL; | |
8937 | if (_argo0) { | |
8938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8941 | return NULL; | |
8942 | } | |
8943 | } | |
8944 | { | |
0e2ff151 | 8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8946 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
e6056257 | 8947 | |
0e2ff151 | 8948 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8949 | if (PyErr_Occurred()) return NULL; |
8950 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8951 | return _resultobj; | |
8952 | } | |
8953 | ||
8954 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) | |
8955 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject * _resultobj; | |
8957 | wxMenu * _arg0; | |
8958 | wxWindow * _arg1; | |
8959 | PyObject * _argo0 = 0; | |
8960 | PyObject * _argo1 = 0; | |
8961 | char *_kwnames[] = { "self","win", NULL }; | |
8962 | ||
8963 | self = self; | |
8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) | |
8965 | return NULL; | |
8966 | if (_argo0) { | |
8967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
8970 | return NULL; | |
8971 | } | |
8972 | } | |
8973 | if (_argo1) { | |
8974 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8975 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
8977 | return NULL; | |
8978 | } | |
8979 | } | |
8980 | { | |
0e2ff151 | 8981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8982 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
e6056257 | 8983 | |
0e2ff151 | 8984 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8985 | if (PyErr_Occurred()) return NULL; |
8986 | } Py_INCREF(Py_None); | |
8987 | _resultobj = Py_None; | |
8988 | return _resultobj; | |
8989 | } | |
8990 | ||
8991 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) | |
8992 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8993 | PyObject * _resultobj; | |
8994 | wxWindow * _result; | |
8995 | wxMenu * _arg0; | |
8996 | PyObject * _argo0 = 0; | |
8997 | char *_kwnames[] = { "self", NULL }; | |
8998 | ||
8999 | self = self; | |
9000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) | |
9001 | return NULL; | |
9002 | if (_argo0) { | |
9003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
9006 | return NULL; | |
9007 | } | |
9008 | } | |
9009 | { | |
0e2ff151 | 9010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9011 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
e6056257 | 9012 | |
0e2ff151 | 9013 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9014 | if (PyErr_Occurred()) return NULL; |
9015 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9016 | return _resultobj; | |
9017 | } | |
9018 | ||
9019 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
9020 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9021 | PyObject * _resultobj; | |
9022 | long _result; | |
9023 | wxMenu * _arg0; | |
9024 | PyObject * _argo0 = 0; | |
9025 | char *_kwnames[] = { "self", NULL }; | |
9026 | ||
9027 | self = self; | |
9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) | |
9029 | return NULL; | |
9030 | if (_argo0) { | |
9031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
9034 | return NULL; | |
9035 | } | |
9036 | } | |
9037 | { | |
0e2ff151 | 9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9039 | _result = (long )wxMenu_GetStyle(_arg0); |
e6056257 | 9040 | |
0e2ff151 | 9041 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9042 | if (PyErr_Occurred()) return NULL; |
9043 | } _resultobj = Py_BuildValue("l",_result); | |
9044 | return _resultobj; | |
9045 | } | |
9046 | ||
9047 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) | |
9048 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject * _resultobj; | |
9050 | bool _result; | |
9051 | wxMenu * _arg0; | |
9052 | PyObject * _argo0 = 0; | |
9053 | char *_kwnames[] = { "self", NULL }; | |
9054 | ||
9055 | self = self; | |
9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) | |
9057 | return NULL; | |
9058 | if (_argo0) { | |
9059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
9062 | return NULL; | |
9063 | } | |
9064 | } | |
9065 | { | |
0e2ff151 | 9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9067 | _result = (bool )wxMenu_IsAttached(_arg0); |
e6056257 | 9068 | |
0e2ff151 | 9069 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9070 | if (PyErr_Occurred()) return NULL; |
9071 | } _resultobj = Py_BuildValue("i",_result); | |
9072 | return _resultobj; | |
9073 | } | |
9074 | ||
9075 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
9076 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9077 | PyObject * _resultobj; | |
9078 | wxMenu * _arg0; | |
9079 | wxMenu * _arg1; | |
9080 | PyObject * _argo0 = 0; | |
9081 | PyObject * _argo1 = 0; | |
9082 | char *_kwnames[] = { "self","parent", NULL }; | |
9083 | ||
9084 | self = self; | |
9085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) | |
9086 | return NULL; | |
9087 | if (_argo0) { | |
9088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
9091 | return NULL; | |
9092 | } | |
9093 | } | |
9094 | if (_argo1) { | |
9095 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9096 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
9098 | return NULL; | |
9099 | } | |
9100 | } | |
9101 | { | |
0e2ff151 | 9102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9103 | wxMenu_SetParent(_arg0,_arg1); |
e6056257 | 9104 | |
0e2ff151 | 9105 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9106 | if (PyErr_Occurred()) return NULL; |
9107 | } Py_INCREF(Py_None); | |
9108 | _resultobj = Py_None; | |
9109 | return _resultobj; | |
9110 | } | |
9111 | ||
9112 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) | |
9113 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9114 | PyObject * _resultobj; | |
9115 | wxMenu * _result; | |
9116 | wxMenu * _arg0; | |
9117 | PyObject * _argo0 = 0; | |
9118 | char *_kwnames[] = { "self", NULL }; | |
9119 | ||
9120 | self = self; | |
9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) | |
9122 | return NULL; | |
9123 | if (_argo0) { | |
9124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
9127 | return NULL; | |
9128 | } | |
9129 | } | |
9130 | { | |
0e2ff151 | 9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9132 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
e6056257 | 9133 | |
0e2ff151 | 9134 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9135 | if (PyErr_Occurred()) return NULL; |
9136 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9137 | return _resultobj; | |
9138 | } | |
9139 | ||
9140 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9141 | wxMenuBar *src; | |
9142 | wxWindow *dest; | |
9143 | src = (wxMenuBar *) ptr; | |
9144 | dest = (wxWindow *) src; | |
9145 | return (void *) dest; | |
9146 | } | |
9147 | ||
9148 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9149 | wxMenuBar *src; | |
9150 | wxEvtHandler *dest; | |
9151 | src = (wxMenuBar *) ptr; | |
9152 | dest = (wxEvtHandler *) src; | |
9153 | return (void *) dest; | |
9154 | } | |
9155 | ||
9156 | static void *SwigwxMenuBarTowxObject(void *ptr) { | |
9157 | wxMenuBar *src; | |
9158 | wxObject *dest; | |
9159 | src = (wxMenuBar *) ptr; | |
9160 | dest = (wxObject *) src; | |
9161 | return (void *) dest; | |
9162 | } | |
9163 | ||
9164 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) | |
9165 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject * _resultobj; | |
9167 | wxMenuBar * _result; | |
9168 | long _arg0 = (long ) 0; | |
9169 | char *_kwnames[] = { "style", NULL }; | |
9170 | char _ptemp[128]; | |
9171 | ||
9172 | self = self; | |
9173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) | |
9174 | return NULL; | |
9175 | { | |
0e2ff151 | 9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9177 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
e6056257 | 9178 | |
0e2ff151 | 9179 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9180 | if (PyErr_Occurred()) return NULL; |
9181 | } if (_result) { | |
9182 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9183 | _resultobj = Py_BuildValue("s",_ptemp); | |
9184 | } else { | |
9185 | Py_INCREF(Py_None); | |
9186 | _resultobj = Py_None; | |
9187 | } | |
9188 | return _resultobj; | |
9189 | } | |
9190 | ||
9191 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
9192 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9193 | PyObject * _resultobj; | |
9194 | bool _result; | |
9195 | wxMenuBar * _arg0; | |
9196 | wxMenu * _arg1; | |
9197 | wxString * _arg2; | |
9198 | PyObject * _argo0 = 0; | |
9199 | PyObject * _argo1 = 0; | |
9200 | PyObject * _obj2 = 0; | |
9201 | char *_kwnames[] = { "self","menu","title", NULL }; | |
9202 | ||
9203 | self = self; | |
9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9205 | return NULL; | |
9206 | if (_argo0) { | |
9207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); | |
9210 | return NULL; | |
9211 | } | |
9212 | } | |
9213 | if (_argo1) { | |
9214 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
9217 | return NULL; | |
9218 | } | |
9219 | } | |
9220 | { | |
6824d4f9 RD |
9221 | _arg2 = wxString_in_helper(_obj2); |
9222 | if (_arg2 == NULL) | |
e6056257 | 9223 | return NULL; |
e6056257 RD |
9224 | } |
9225 | { | |
0e2ff151 | 9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9227 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
e6056257 | 9228 | |
0e2ff151 | 9229 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9230 | if (PyErr_Occurred()) return NULL; |
9231 | } _resultobj = Py_BuildValue("i",_result); | |
9232 | { | |
9233 | if (_obj2) | |
9234 | delete _arg2; | |
9235 | } | |
9236 | return _resultobj; | |
9237 | } | |
9238 | ||
9239 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) | |
9240 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9241 | PyObject * _resultobj; | |
9242 | bool _result; | |
9243 | wxMenuBar * _arg0; | |
9244 | size_t _arg1; | |
9245 | wxMenu * _arg2; | |
9246 | wxString * _arg3; | |
9247 | PyObject * _argo0 = 0; | |
9248 | PyObject * _argo2 = 0; | |
9249 | PyObject * _obj3 = 0; | |
9250 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
9251 | ||
9252 | self = self; | |
9253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9254 | return NULL; | |
9255 | if (_argo0) { | |
9256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); | |
9259 | return NULL; | |
9260 | } | |
9261 | } | |
9262 | if (_argo2) { | |
9263 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9264 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
9266 | return NULL; | |
9267 | } | |
9268 | } | |
9269 | { | |
6824d4f9 RD |
9270 | _arg3 = wxString_in_helper(_obj3); |
9271 | if (_arg3 == NULL) | |
e6056257 | 9272 | return NULL; |
e6056257 RD |
9273 | } |
9274 | { | |
0e2ff151 | 9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9276 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
e6056257 | 9277 | |
0e2ff151 | 9278 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9279 | if (PyErr_Occurred()) return NULL; |
9280 | } _resultobj = Py_BuildValue("i",_result); | |
9281 | { | |
9282 | if (_obj3) | |
9283 | delete _arg3; | |
9284 | } | |
9285 | return _resultobj; | |
9286 | } | |
9287 | ||
9288 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) | |
9289 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9290 | PyObject * _resultobj; | |
9291 | size_t _result; | |
9292 | wxMenuBar * _arg0; | |
9293 | PyObject * _argo0 = 0; | |
9294 | char *_kwnames[] = { "self", NULL }; | |
9295 | ||
9296 | self = self; | |
9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) | |
9298 | return NULL; | |
9299 | if (_argo0) { | |
9300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); | |
9303 | return NULL; | |
9304 | } | |
9305 | } | |
9306 | { | |
0e2ff151 | 9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9308 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
e6056257 | 9309 | |
0e2ff151 | 9310 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9311 | if (PyErr_Occurred()) return NULL; |
9312 | } _resultobj = Py_BuildValue("i",_result); | |
9313 | return _resultobj; | |
9314 | } | |
9315 | ||
9316 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
9317 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9318 | PyObject * _resultobj; | |
9319 | wxMenu * _result; | |
9320 | wxMenuBar * _arg0; | |
9321 | size_t _arg1; | |
9322 | PyObject * _argo0 = 0; | |
9323 | char *_kwnames[] = { "self","pos", NULL }; | |
9324 | ||
9325 | self = self; | |
9326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) | |
9327 | return NULL; | |
9328 | if (_argo0) { | |
9329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); | |
9332 | return NULL; | |
9333 | } | |
9334 | } | |
9335 | { | |
0e2ff151 | 9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9337 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
e6056257 | 9338 | |
0e2ff151 | 9339 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9340 | if (PyErr_Occurred()) return NULL; |
9341 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9342 | return _resultobj; | |
9343 | } | |
9344 | ||
9345 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
9346 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9347 | PyObject * _resultobj; | |
9348 | wxMenu * _result; | |
9349 | wxMenuBar * _arg0; | |
9350 | size_t _arg1; | |
9351 | wxMenu * _arg2; | |
9352 | wxString * _arg3; | |
9353 | PyObject * _argo0 = 0; | |
9354 | PyObject * _argo2 = 0; | |
9355 | PyObject * _obj3 = 0; | |
9356 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
9357 | ||
9358 | self = self; | |
9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9360 | return NULL; | |
9361 | if (_argo0) { | |
9362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9365 | return NULL; | |
9366 | } | |
9367 | } | |
9368 | if (_argo2) { | |
9369 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9370 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9372 | return NULL; | |
9373 | } | |
9374 | } | |
9375 | { | |
6824d4f9 RD |
9376 | _arg3 = wxString_in_helper(_obj3); |
9377 | if (_arg3 == NULL) | |
e6056257 | 9378 | return NULL; |
e6056257 RD |
9379 | } |
9380 | { | |
0e2ff151 | 9381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9382 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
e6056257 | 9383 | |
0e2ff151 | 9384 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9385 | if (PyErr_Occurred()) return NULL; |
9386 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9387 | { | |
9388 | if (_obj3) | |
9389 | delete _arg3; | |
9390 | } | |
9391 | return _resultobj; | |
9392 | } | |
9393 | ||
9394 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9395 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9396 | PyObject * _resultobj; | |
9397 | wxMenu * _result; | |
9398 | wxMenuBar * _arg0; | |
9399 | size_t _arg1; | |
9400 | PyObject * _argo0 = 0; | |
9401 | char *_kwnames[] = { "self","pos", NULL }; | |
9402 | ||
9403 | self = self; | |
9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9405 | return NULL; | |
9406 | if (_argo0) { | |
9407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9410 | return NULL; | |
9411 | } | |
9412 | } | |
9413 | { | |
0e2ff151 | 9414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9415 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
e6056257 | 9416 | |
0e2ff151 | 9417 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9418 | if (PyErr_Occurred()) return NULL; |
9419 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9420 | return _resultobj; | |
9421 | } | |
9422 | ||
9423 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
9424 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject * _resultobj; | |
9426 | wxMenuBar * _arg0; | |
9427 | size_t _arg1; | |
9428 | bool _arg2; | |
9429 | PyObject * _argo0 = 0; | |
9430 | int tempbool2; | |
9431 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9432 | ||
9433 | self = self; | |
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9435 | return NULL; | |
9436 | if (_argo0) { | |
9437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9440 | return NULL; | |
9441 | } | |
9442 | } | |
9443 | _arg2 = (bool ) tempbool2; | |
9444 | { | |
0e2ff151 | 9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9446 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
e6056257 | 9447 | |
0e2ff151 | 9448 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9449 | if (PyErr_Occurred()) return NULL; |
9450 | } Py_INCREF(Py_None); | |
9451 | _resultobj = Py_None; | |
9452 | return _resultobj; | |
9453 | } | |
9454 | ||
9455 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9456 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9457 | PyObject * _resultobj; | |
9458 | wxMenuBar * _arg0; | |
9459 | size_t _arg1; | |
9460 | wxString * _arg2; | |
9461 | PyObject * _argo0 = 0; | |
9462 | PyObject * _obj2 = 0; | |
9463 | char *_kwnames[] = { "self","pos","label", NULL }; | |
9464 | ||
9465 | self = self; | |
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9467 | return NULL; | |
9468 | if (_argo0) { | |
9469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
9472 | return NULL; | |
9473 | } | |
9474 | } | |
9475 | { | |
6824d4f9 RD |
9476 | _arg2 = wxString_in_helper(_obj2); |
9477 | if (_arg2 == NULL) | |
e6056257 | 9478 | return NULL; |
e6056257 RD |
9479 | } |
9480 | { | |
0e2ff151 | 9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9482 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
e6056257 | 9483 | |
0e2ff151 | 9484 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9485 | if (PyErr_Occurred()) return NULL; |
9486 | } Py_INCREF(Py_None); | |
9487 | _resultobj = Py_None; | |
9488 | { | |
9489 | if (_obj2) | |
9490 | delete _arg2; | |
9491 | } | |
9492 | return _resultobj; | |
9493 | } | |
9494 | ||
9495 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9496 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9497 | PyObject * _resultobj; | |
9498 | wxString * _result; | |
9499 | wxMenuBar * _arg0; | |
9500 | size_t _arg1; | |
9501 | PyObject * _argo0 = 0; | |
9502 | char *_kwnames[] = { "self","pos", NULL }; | |
9503 | ||
9504 | self = self; | |
9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9506 | return NULL; | |
9507 | if (_argo0) { | |
9508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9511 | return NULL; | |
9512 | } | |
9513 | } | |
9514 | { | |
0e2ff151 | 9515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9516 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
e6056257 | 9517 | |
0e2ff151 | 9518 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9519 | if (PyErr_Occurred()) return NULL; |
9520 | }{ | |
6824d4f9 RD |
9521 | #if wxUSE_UNICODE |
9522 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9523 | #else | |
e6056257 | 9524 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 9525 | #endif |
e6056257 RD |
9526 | } |
9527 | { | |
9528 | delete _result; | |
9529 | } | |
9530 | return _resultobj; | |
9531 | } | |
9532 | ||
9533 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) | |
9534 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9535 | PyObject * _resultobj; | |
9536 | int _result; | |
9537 | wxMenuBar * _arg0; | |
9538 | wxString * _arg1; | |
9539 | PyObject * _argo0 = 0; | |
9540 | PyObject * _obj1 = 0; | |
9541 | char *_kwnames[] = { "self","title", NULL }; | |
9542 | ||
9543 | self = self; | |
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9545 | return NULL; | |
9546 | if (_argo0) { | |
9547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9550 | return NULL; | |
9551 | } | |
9552 | } | |
9553 | { | |
6824d4f9 RD |
9554 | _arg1 = wxString_in_helper(_obj1); |
9555 | if (_arg1 == NULL) | |
e6056257 | 9556 | return NULL; |
e6056257 RD |
9557 | } |
9558 | { | |
0e2ff151 | 9559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9560 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
e6056257 | 9561 | |
0e2ff151 | 9562 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9563 | if (PyErr_Occurred()) return NULL; |
9564 | } _resultobj = Py_BuildValue("i",_result); | |
9565 | { | |
9566 | if (_obj1) | |
9567 | delete _arg1; | |
9568 | } | |
9569 | return _resultobj; | |
9570 | } | |
9571 | ||
9572 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
9573 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9574 | PyObject * _resultobj; | |
9575 | int _result; | |
9576 | wxMenuBar * _arg0; | |
9577 | wxString * _arg1; | |
9578 | wxString * _arg2; | |
9579 | PyObject * _argo0 = 0; | |
9580 | PyObject * _obj1 = 0; | |
9581 | PyObject * _obj2 = 0; | |
9582 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9583 | ||
9584 | self = self; | |
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9586 | return NULL; | |
9587 | if (_argo0) { | |
9588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9591 | return NULL; | |
9592 | } | |
9593 | } | |
9594 | { | |
6824d4f9 RD |
9595 | _arg1 = wxString_in_helper(_obj1); |
9596 | if (_arg1 == NULL) | |
e6056257 | 9597 | return NULL; |
e6056257 RD |
9598 | } |
9599 | { | |
6824d4f9 RD |
9600 | _arg2 = wxString_in_helper(_obj2); |
9601 | if (_arg2 == NULL) | |
e6056257 | 9602 | return NULL; |
e6056257 RD |
9603 | } |
9604 | { | |
0e2ff151 | 9605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9606 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
e6056257 | 9607 | |
0e2ff151 | 9608 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9609 | if (PyErr_Occurred()) return NULL; |
9610 | } _resultobj = Py_BuildValue("i",_result); | |
9611 | { | |
9612 | if (_obj1) | |
9613 | delete _arg1; | |
9614 | } | |
9615 | { | |
9616 | if (_obj2) | |
9617 | delete _arg2; | |
9618 | } | |
9619 | return _resultobj; | |
9620 | } | |
9621 | ||
9622 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
9623 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9624 | PyObject * _resultobj; | |
9625 | wxMenuItem * _result; | |
9626 | wxMenuBar * _arg0; | |
9627 | int _arg1; | |
9628 | PyObject * _argo0 = 0; | |
9629 | char *_kwnames[] = { "self","id", NULL }; | |
9630 | ||
9631 | self = self; | |
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
9633 | return NULL; | |
9634 | if (_argo0) { | |
9635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
9638 | return NULL; | |
9639 | } | |
9640 | } | |
9641 | { | |
0e2ff151 | 9642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9643 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
e6056257 | 9644 | |
0e2ff151 | 9645 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9646 | if (PyErr_Occurred()) return NULL; |
9647 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9648 | return _resultobj; | |
9649 | } | |
9650 | ||
9651 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9652 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9653 | PyObject * _resultobj; | |
9654 | wxMenuBar * _arg0; | |
9655 | int _arg1; | |
9656 | bool _arg2; | |
9657 | PyObject * _argo0 = 0; | |
9658 | int tempbool2; | |
9659 | char *_kwnames[] = { "self","id","enable", NULL }; | |
9660 | ||
9661 | self = self; | |
9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9663 | return NULL; | |
9664 | if (_argo0) { | |
9665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
9668 | return NULL; | |
9669 | } | |
9670 | } | |
9671 | _arg2 = (bool ) tempbool2; | |
9672 | { | |
0e2ff151 | 9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9674 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
e6056257 | 9675 | |
0e2ff151 | 9676 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9677 | if (PyErr_Occurred()) return NULL; |
9678 | } Py_INCREF(Py_None); | |
9679 | _resultobj = Py_None; | |
9680 | return _resultobj; | |
9681 | } | |
9682 | ||
9683 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
9684 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9685 | PyObject * _resultobj; | |
9686 | wxMenuBar * _arg0; | |
9687 | int _arg1; | |
9688 | bool _arg2; | |
9689 | PyObject * _argo0 = 0; | |
9690 | int tempbool2; | |
9691 | char *_kwnames[] = { "self","id","check", NULL }; | |
9692 | ||
9693 | self = self; | |
9694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9695 | return NULL; | |
9696 | if (_argo0) { | |
9697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
9700 | return NULL; | |
9701 | } | |
9702 | } | |
9703 | _arg2 = (bool ) tempbool2; | |
9704 | { | |
0e2ff151 | 9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9706 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
e6056257 | 9707 | |
0e2ff151 | 9708 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9709 | if (PyErr_Occurred()) return NULL; |
9710 | } Py_INCREF(Py_None); | |
9711 | _resultobj = Py_None; | |
9712 | return _resultobj; | |
9713 | } | |
9714 | ||
9715 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
9716 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9717 | PyObject * _resultobj; | |
9718 | bool _result; | |
9719 | wxMenuBar * _arg0; | |
9720 | int _arg1; | |
9721 | PyObject * _argo0 = 0; | |
9722 | char *_kwnames[] = { "self","id", NULL }; | |
9723 | ||
9724 | self = self; | |
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) | |
9726 | return NULL; | |
9727 | if (_argo0) { | |
9728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
9731 | return NULL; | |
9732 | } | |
9733 | } | |
9734 | { | |
0e2ff151 | 9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9736 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
e6056257 | 9737 | |
0e2ff151 | 9738 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9739 | if (PyErr_Occurred()) return NULL; |
9740 | } _resultobj = Py_BuildValue("i",_result); | |
9741 | return _resultobj; | |
9742 | } | |
9743 | ||
9744 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
9745 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject * _resultobj; | |
9747 | bool _result; | |
9748 | wxMenuBar * _arg0; | |
9749 | int _arg1; | |
9750 | PyObject * _argo0 = 0; | |
9751 | char *_kwnames[] = { "self","id", NULL }; | |
9752 | ||
9753 | self = self; | |
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
9755 | return NULL; | |
9756 | if (_argo0) { | |
9757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
9760 | return NULL; | |
9761 | } | |
9762 | } | |
9763 | { | |
0e2ff151 | 9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9765 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
e6056257 | 9766 | |
0e2ff151 | 9767 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9768 | if (PyErr_Occurred()) return NULL; |
9769 | } _resultobj = Py_BuildValue("i",_result); | |
9770 | return _resultobj; | |
9771 | } | |
9772 | ||
9773 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
9774 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject * _resultobj; | |
9776 | wxMenuBar * _arg0; | |
9777 | int _arg1; | |
9778 | wxString * _arg2; | |
9779 | PyObject * _argo0 = 0; | |
9780 | PyObject * _obj2 = 0; | |
9781 | char *_kwnames[] = { "self","id","label", NULL }; | |
9782 | ||
9783 | self = self; | |
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9785 | return NULL; | |
9786 | if (_argo0) { | |
9787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
9790 | return NULL; | |
9791 | } | |
9792 | } | |
9793 | { | |
6824d4f9 RD |
9794 | _arg2 = wxString_in_helper(_obj2); |
9795 | if (_arg2 == NULL) | |
e6056257 | 9796 | return NULL; |
e6056257 RD |
9797 | } |
9798 | { | |
0e2ff151 | 9799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9800 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
e6056257 | 9801 | |
0e2ff151 | 9802 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9803 | if (PyErr_Occurred()) return NULL; |
9804 | } Py_INCREF(Py_None); | |
9805 | _resultobj = Py_None; | |
9806 | { | |
9807 | if (_obj2) | |
9808 | delete _arg2; | |
9809 | } | |
9810 | return _resultobj; | |
9811 | } | |
9812 | ||
9813 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
9814 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9815 | PyObject * _resultobj; | |
9816 | wxString * _result; | |
9817 | wxMenuBar * _arg0; | |
9818 | int _arg1; | |
9819 | PyObject * _argo0 = 0; | |
9820 | char *_kwnames[] = { "self","id", NULL }; | |
9821 | ||
9822 | self = self; | |
9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
9824 | return NULL; | |
9825 | if (_argo0) { | |
9826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9829 | return NULL; | |
9830 | } | |
9831 | } | |
9832 | { | |
0e2ff151 | 9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9834 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
e6056257 | 9835 | |
0e2ff151 | 9836 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9837 | if (PyErr_Occurred()) return NULL; |
9838 | }{ | |
6824d4f9 RD |
9839 | #if wxUSE_UNICODE |
9840 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9841 | #else | |
e6056257 | 9842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 9843 | #endif |
e6056257 RD |
9844 | } |
9845 | { | |
9846 | delete _result; | |
9847 | } | |
9848 | return _resultobj; | |
9849 | } | |
9850 | ||
9851 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9852 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9853 | PyObject * _resultobj; | |
9854 | wxMenuBar * _arg0; | |
9855 | int _arg1; | |
9856 | wxString * _arg2; | |
9857 | PyObject * _argo0 = 0; | |
9858 | PyObject * _obj2 = 0; | |
9859 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9860 | ||
9861 | self = self; | |
9862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9863 | return NULL; | |
9864 | if (_argo0) { | |
9865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9868 | return NULL; | |
9869 | } | |
9870 | } | |
9871 | { | |
6824d4f9 RD |
9872 | _arg2 = wxString_in_helper(_obj2); |
9873 | if (_arg2 == NULL) | |
e6056257 | 9874 | return NULL; |
e6056257 RD |
9875 | } |
9876 | { | |
0e2ff151 | 9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9878 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
e6056257 | 9879 | |
0e2ff151 | 9880 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9881 | if (PyErr_Occurred()) return NULL; |
9882 | } Py_INCREF(Py_None); | |
9883 | _resultobj = Py_None; | |
9884 | { | |
9885 | if (_obj2) | |
9886 | delete _arg2; | |
9887 | } | |
9888 | return _resultobj; | |
9889 | } | |
9890 | ||
9891 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9892 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9893 | PyObject * _resultobj; | |
9894 | wxString * _result; | |
9895 | wxMenuBar * _arg0; | |
9896 | int _arg1; | |
9897 | PyObject * _argo0 = 0; | |
9898 | char *_kwnames[] = { "self","id", NULL }; | |
9899 | ||
9900 | self = self; | |
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9902 | return NULL; | |
9903 | if (_argo0) { | |
9904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
9907 | return NULL; | |
9908 | } | |
9909 | } | |
9910 | { | |
0e2ff151 | 9911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9912 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
e6056257 | 9913 | |
0e2ff151 | 9914 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9915 | if (PyErr_Occurred()) return NULL; |
9916 | }{ | |
6824d4f9 RD |
9917 | #if wxUSE_UNICODE |
9918 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9919 | #else | |
e6056257 | 9920 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 9921 | #endif |
e6056257 RD |
9922 | } |
9923 | { | |
9924 | delete _result; | |
9925 | } | |
9926 | return _resultobj; | |
9927 | } | |
9928 | ||
9929 | static void *SwigwxMenuItemTowxObject(void *ptr) { | |
9930 | wxMenuItem *src; | |
9931 | wxObject *dest; | |
9932 | src = (wxMenuItem *) ptr; | |
9933 | dest = (wxObject *) src; | |
9934 | return (void *) dest; | |
9935 | } | |
9936 | ||
9937 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
9938 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9939 | PyObject * _resultobj; | |
9940 | wxMenuItem * _result; | |
9941 | wxMenu * _arg0 = (wxMenu *) NULL; | |
9942 | int _arg1 = (int ) wxID_SEPARATOR; | |
c3bfa1cb RD |
9943 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
9944 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 9945 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
e6056257 RD |
9946 | wxMenu * _arg5 = (wxMenu *) NULL; |
9947 | PyObject * _argo0 = 0; | |
9948 | PyObject * _obj2 = 0; | |
9949 | PyObject * _obj3 = 0; | |
e6056257 | 9950 | PyObject * _argo5 = 0; |
c3bfa1cb | 9951 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
e6056257 RD |
9952 | char _ptemp[128]; |
9953 | ||
9954 | self = self; | |
c3bfa1cb | 9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
e6056257 RD |
9956 | return NULL; |
9957 | if (_argo0) { | |
9958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9961 | return NULL; | |
9962 | } | |
9963 | } | |
9964 | if (_obj2) | |
9965 | { | |
6824d4f9 RD |
9966 | _arg2 = wxString_in_helper(_obj2); |
9967 | if (_arg2 == NULL) | |
e6056257 | 9968 | return NULL; |
e6056257 RD |
9969 | } |
9970 | if (_obj3) | |
9971 | { | |
6824d4f9 RD |
9972 | _arg3 = wxString_in_helper(_obj3); |
9973 | if (_arg3 == NULL) | |
e6056257 | 9974 | return NULL; |
e6056257 | 9975 | } |
e6056257 RD |
9976 | if (_argo5) { |
9977 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9978 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
9980 | return NULL; | |
9981 | } | |
9982 | } | |
9983 | { | |
0e2ff151 | 9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9985 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
e6056257 | 9986 | |
0e2ff151 | 9987 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9988 | if (PyErr_Occurred()) return NULL; |
9989 | } if (_result) { | |
9990 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9991 | _resultobj = Py_BuildValue("s",_ptemp); | |
9992 | } else { | |
9993 | Py_INCREF(Py_None); | |
9994 | _resultobj = Py_None; | |
9995 | } | |
9996 | { | |
9997 | if (_obj2) | |
9998 | delete _arg2; | |
9999 | } | |
10000 | { | |
10001 | if (_obj3) | |
10002 | delete _arg3; | |
10003 | } | |
10004 | return _resultobj; | |
10005 | } | |
10006 | ||
10007 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) | |
10008 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10009 | PyObject * _resultobj; | |
10010 | wxMenu * _result; | |
10011 | wxMenuItem * _arg0; | |
10012 | PyObject * _argo0 = 0; | |
10013 | char *_kwnames[] = { "self", NULL }; | |
10014 | ||
10015 | self = self; | |
10016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) | |
10017 | return NULL; | |
10018 | if (_argo0) { | |
10019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); | |
10022 | return NULL; | |
10023 | } | |
10024 | } | |
10025 | { | |
0e2ff151 | 10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10027 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
e6056257 | 10028 | |
0e2ff151 | 10029 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10030 | if (PyErr_Occurred()) return NULL; |
10031 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
10032 | return _resultobj; | |
10033 | } | |
10034 | ||
10035 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
10036 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10037 | PyObject * _resultobj; | |
10038 | wxMenuItem * _arg0; | |
10039 | int _arg1; | |
10040 | PyObject * _argo0 = 0; | |
10041 | char *_kwnames[] = { "self","id", NULL }; | |
10042 | ||
10043 | self = self; | |
10044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) | |
10045 | return NULL; | |
10046 | if (_argo0) { | |
10047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); | |
10050 | return NULL; | |
10051 | } | |
10052 | } | |
10053 | { | |
0e2ff151 | 10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10055 | wxMenuItem_SetId(_arg0,_arg1); |
e6056257 | 10056 | |
0e2ff151 | 10057 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10058 | if (PyErr_Occurred()) return NULL; |
10059 | } Py_INCREF(Py_None); | |
10060 | _resultobj = Py_None; | |
10061 | return _resultobj; | |
10062 | } | |
10063 | ||
10064 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
10065 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10066 | PyObject * _resultobj; | |
10067 | int _result; | |
10068 | wxMenuItem * _arg0; | |
10069 | PyObject * _argo0 = 0; | |
10070 | char *_kwnames[] = { "self", NULL }; | |
10071 | ||
10072 | self = self; | |
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) | |
10074 | return NULL; | |
10075 | if (_argo0) { | |
10076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); | |
10079 | return NULL; | |
10080 | } | |
10081 | } | |
10082 | { | |
0e2ff151 | 10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10084 | _result = (int )wxMenuItem_GetId(_arg0); |
e6056257 | 10085 | |
0e2ff151 | 10086 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10087 | if (PyErr_Occurred()) return NULL; |
10088 | } _resultobj = Py_BuildValue("i",_result); | |
10089 | return _resultobj; | |
10090 | } | |
10091 | ||
10092 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
10093 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10094 | PyObject * _resultobj; | |
10095 | bool _result; | |
10096 | wxMenuItem * _arg0; | |
10097 | PyObject * _argo0 = 0; | |
10098 | char *_kwnames[] = { "self", NULL }; | |
10099 | ||
10100 | self = self; | |
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) | |
10102 | return NULL; | |
10103 | if (_argo0) { | |
10104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); | |
10107 | return NULL; | |
10108 | } | |
10109 | } | |
10110 | { | |
0e2ff151 | 10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10112 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
e6056257 | 10113 | |
0e2ff151 | 10114 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10115 | if (PyErr_Occurred()) return NULL; |
10116 | } _resultobj = Py_BuildValue("i",_result); | |
10117 | return _resultobj; | |
10118 | } | |
10119 | ||
10120 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
10121 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10122 | PyObject * _resultobj; | |
10123 | wxMenuItem * _arg0; | |
10124 | wxString * _arg1; | |
10125 | PyObject * _argo0 = 0; | |
10126 | PyObject * _obj1 = 0; | |
10127 | char *_kwnames[] = { "self","str", NULL }; | |
10128 | ||
10129 | self = self; | |
10130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) | |
10131 | return NULL; | |
10132 | if (_argo0) { | |
10133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); | |
10136 | return NULL; | |
10137 | } | |
10138 | } | |
10139 | { | |
6824d4f9 RD |
10140 | _arg1 = wxString_in_helper(_obj1); |
10141 | if (_arg1 == NULL) | |
e6056257 | 10142 | return NULL; |
e6056257 RD |
10143 | } |
10144 | { | |
0e2ff151 | 10145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10146 | wxMenuItem_SetText(_arg0,*_arg1); |
e6056257 | 10147 | |
0e2ff151 | 10148 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10149 | if (PyErr_Occurred()) return NULL; |
10150 | } Py_INCREF(Py_None); | |
10151 | _resultobj = Py_None; | |
10152 | { | |
10153 | if (_obj1) | |
10154 | delete _arg1; | |
10155 | } | |
10156 | return _resultobj; | |
10157 | } | |
10158 | ||
10159 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
10160 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject * _resultobj; | |
10162 | wxString * _result; | |
10163 | wxMenuItem * _arg0; | |
10164 | PyObject * _argo0 = 0; | |
10165 | char *_kwnames[] = { "self", NULL }; | |
10166 | ||
10167 | self = self; | |
10168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) | |
10169 | return NULL; | |
10170 | if (_argo0) { | |
10171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); | |
10174 | return NULL; | |
10175 | } | |
10176 | } | |
10177 | { | |
0e2ff151 | 10178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10179 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
e6056257 | 10180 | |
0e2ff151 | 10181 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10182 | if (PyErr_Occurred()) return NULL; |
10183 | }{ | |
6824d4f9 RD |
10184 | #if wxUSE_UNICODE |
10185 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10186 | #else | |
e6056257 | 10187 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 10188 | #endif |
e6056257 RD |
10189 | } |
10190 | { | |
10191 | delete _result; | |
10192 | } | |
10193 | return _resultobj; | |
10194 | } | |
10195 | ||
10196 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) | |
10197 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10198 | PyObject * _resultobj; | |
10199 | wxString * _result; | |
10200 | wxMenuItem * _arg0; | |
10201 | PyObject * _argo0 = 0; | |
10202 | char *_kwnames[] = { "self", NULL }; | |
10203 | ||
10204 | self = self; | |
10205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) | |
10206 | return NULL; | |
10207 | if (_argo0) { | |
10208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); | |
10211 | return NULL; | |
10212 | } | |
10213 | } | |
10214 | { | |
0e2ff151 | 10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10216 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
e6056257 RD |
10217 | _result = (wxString *) &_result_ref; |
10218 | ||
0e2ff151 | 10219 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10220 | if (PyErr_Occurred()) return NULL; |
10221 | }{ | |
6824d4f9 RD |
10222 | #if wxUSE_UNICODE |
10223 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10224 | #else | |
e6056257 | 10225 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 10226 | #endif |
e6056257 RD |
10227 | } |
10228 | return _resultobj; | |
10229 | } | |
10230 | ||
c3bfa1cb RD |
10231 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10232 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject * _resultobj; | |
10234 | wxItemKind _result; | |
10235 | wxMenuItem * _arg0; | |
10236 | PyObject * _argo0 = 0; | |
10237 | char *_kwnames[] = { "self", NULL }; | |
10238 | ||
10239 | self = self; | |
10240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10241 | return NULL; | |
10242 | if (_argo0) { | |
10243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10246 | return NULL; | |
10247 | } | |
10248 | } | |
10249 | { | |
10250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10251 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10252 | ||
10253 | wxPyEndAllowThreads(__tstate); | |
10254 | if (PyErr_Occurred()) return NULL; | |
10255 | } _resultobj = Py_BuildValue("i",_result); | |
10256 | return _resultobj; | |
10257 | } | |
10258 | ||
e6056257 RD |
10259 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10260 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10261 | PyObject * _resultobj; | |
10262 | wxMenuItem * _arg0; | |
10263 | bool _arg1; | |
10264 | PyObject * _argo0 = 0; | |
10265 | int tempbool1; | |
10266 | char *_kwnames[] = { "self","checkable", NULL }; | |
10267 | ||
10268 | self = self; | |
10269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) | |
10270 | return NULL; | |
10271 | if (_argo0) { | |
10272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); | |
10275 | return NULL; | |
10276 | } | |
10277 | } | |
10278 | _arg1 = (bool ) tempbool1; | |
10279 | { | |
0e2ff151 | 10280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10281 | wxMenuItem_SetCheckable(_arg0,_arg1); |
e6056257 | 10282 | |
0e2ff151 | 10283 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10284 | if (PyErr_Occurred()) return NULL; |
10285 | } Py_INCREF(Py_None); | |
10286 | _resultobj = Py_None; | |
10287 | return _resultobj; | |
10288 | } | |
10289 | ||
10290 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
10291 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10292 | PyObject * _resultobj; | |
10293 | bool _result; | |
10294 | wxMenuItem * _arg0; | |
10295 | PyObject * _argo0 = 0; | |
10296 | char *_kwnames[] = { "self", NULL }; | |
10297 | ||
10298 | self = self; | |
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) | |
10300 | return NULL; | |
10301 | if (_argo0) { | |
10302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); | |
10305 | return NULL; | |
10306 | } | |
10307 | } | |
10308 | { | |
0e2ff151 | 10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10310 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
e6056257 | 10311 | |
0e2ff151 | 10312 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10313 | if (PyErr_Occurred()) return NULL; |
10314 | } _resultobj = Py_BuildValue("i",_result); | |
10315 | return _resultobj; | |
10316 | } | |
10317 | ||
10318 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) | |
10319 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject * _resultobj; | |
10321 | bool _result; | |
10322 | wxMenuItem * _arg0; | |
10323 | PyObject * _argo0 = 0; | |
10324 | char *_kwnames[] = { "self", NULL }; | |
10325 | ||
10326 | self = self; | |
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) | |
10328 | return NULL; | |
10329 | if (_argo0) { | |
10330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); | |
10333 | return NULL; | |
10334 | } | |
10335 | } | |
10336 | { | |
0e2ff151 | 10337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10338 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
e6056257 | 10339 | |
0e2ff151 | 10340 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10341 | if (PyErr_Occurred()) return NULL; |
10342 | } _resultobj = Py_BuildValue("i",_result); | |
10343 | return _resultobj; | |
10344 | } | |
10345 | ||
10346 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) | |
10347 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject * _resultobj; | |
10349 | wxMenuItem * _arg0; | |
10350 | wxMenu * _arg1; | |
10351 | PyObject * _argo0 = 0; | |
10352 | PyObject * _argo1 = 0; | |
10353 | char *_kwnames[] = { "self","menu", NULL }; | |
10354 | ||
10355 | self = self; | |
10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) | |
10357 | return NULL; | |
10358 | if (_argo0) { | |
10359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); | |
10362 | return NULL; | |
10363 | } | |
10364 | } | |
10365 | if (_argo1) { | |
10366 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10367 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
10369 | return NULL; | |
10370 | } | |
10371 | } | |
10372 | { | |
0e2ff151 | 10373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10374 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
e6056257 | 10375 | |
0e2ff151 | 10376 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10377 | if (PyErr_Occurred()) return NULL; |
10378 | } Py_INCREF(Py_None); | |
10379 | _resultobj = Py_None; | |
10380 | return _resultobj; | |
10381 | } | |
10382 | ||
10383 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
10384 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10385 | PyObject * _resultobj; | |
10386 | wxMenu * _result; | |
10387 | wxMenuItem * _arg0; | |
10388 | PyObject * _argo0 = 0; | |
10389 | char *_kwnames[] = { "self", NULL }; | |
10390 | ||
10391 | self = self; | |
10392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) | |
10393 | return NULL; | |
10394 | if (_argo0) { | |
10395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); | |
10398 | return NULL; | |
10399 | } | |
10400 | } | |
10401 | { | |
0e2ff151 | 10402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10403 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
e6056257 | 10404 | |
0e2ff151 | 10405 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10406 | if (PyErr_Occurred()) return NULL; |
10407 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
10408 | return _resultobj; | |
10409 | } | |
10410 | ||
10411 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10412 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject * _resultobj; | |
10414 | wxMenuItem * _arg0; | |
10415 | bool _arg1 = (bool ) TRUE; | |
10416 | PyObject * _argo0 = 0; | |
10417 | int tempbool1 = (int) TRUE; | |
10418 | char *_kwnames[] = { "self","enable", NULL }; | |
10419 | ||
10420 | self = self; | |
10421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10422 | return NULL; | |
10423 | if (_argo0) { | |
10424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
10427 | return NULL; | |
10428 | } | |
10429 | } | |
10430 | _arg1 = (bool ) tempbool1; | |
10431 | { | |
0e2ff151 | 10432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10433 | wxMenuItem_Enable(_arg0,_arg1); |
e6056257 | 10434 | |
0e2ff151 | 10435 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10436 | if (PyErr_Occurred()) return NULL; |
10437 | } Py_INCREF(Py_None); | |
10438 | _resultobj = Py_None; | |
10439 | return _resultobj; | |
10440 | } | |
10441 | ||
10442 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
10443 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10444 | PyObject * _resultobj; | |
10445 | bool _result; | |
10446 | wxMenuItem * _arg0; | |
10447 | PyObject * _argo0 = 0; | |
10448 | char *_kwnames[] = { "self", NULL }; | |
10449 | ||
10450 | self = self; | |
10451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) | |
10452 | return NULL; | |
10453 | if (_argo0) { | |
10454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); | |
10457 | return NULL; | |
10458 | } | |
10459 | } | |
10460 | { | |
0e2ff151 | 10461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10462 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
e6056257 | 10463 | |
0e2ff151 | 10464 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10465 | if (PyErr_Occurred()) return NULL; |
10466 | } _resultobj = Py_BuildValue("i",_result); | |
10467 | return _resultobj; | |
10468 | } | |
10469 | ||
10470 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
10471 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10472 | PyObject * _resultobj; | |
10473 | wxMenuItem * _arg0; | |
10474 | bool _arg1 = (bool ) TRUE; | |
10475 | PyObject * _argo0 = 0; | |
10476 | int tempbool1 = (int) TRUE; | |
10477 | char *_kwnames[] = { "self","check", NULL }; | |
10478 | ||
10479 | self = self; | |
10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) | |
10481 | return NULL; | |
10482 | if (_argo0) { | |
10483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); | |
10486 | return NULL; | |
10487 | } | |
10488 | } | |
10489 | _arg1 = (bool ) tempbool1; | |
10490 | { | |
0e2ff151 | 10491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10492 | wxMenuItem_Check(_arg0,_arg1); |
e6056257 | 10493 | |
0e2ff151 | 10494 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10495 | if (PyErr_Occurred()) return NULL; |
10496 | } Py_INCREF(Py_None); | |
10497 | _resultobj = Py_None; | |
10498 | return _resultobj; | |
10499 | } | |
10500 | ||
10501 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
10502 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10503 | PyObject * _resultobj; | |
10504 | bool _result; | |
10505 | wxMenuItem * _arg0; | |
10506 | PyObject * _argo0 = 0; | |
10507 | char *_kwnames[] = { "self", NULL }; | |
10508 | ||
10509 | self = self; | |
10510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) | |
10511 | return NULL; | |
10512 | if (_argo0) { | |
10513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); | |
10516 | return NULL; | |
10517 | } | |
10518 | } | |
10519 | { | |
0e2ff151 | 10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10521 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
e6056257 | 10522 | |
0e2ff151 | 10523 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10524 | if (PyErr_Occurred()) return NULL; |
10525 | } _resultobj = Py_BuildValue("i",_result); | |
10526 | return _resultobj; | |
10527 | } | |
10528 | ||
10529 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) | |
10530 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10531 | PyObject * _resultobj; | |
10532 | wxMenuItem * _arg0; | |
10533 | PyObject * _argo0 = 0; | |
10534 | char *_kwnames[] = { "self", NULL }; | |
10535 | ||
10536 | self = self; | |
10537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) | |
10538 | return NULL; | |
10539 | if (_argo0) { | |
10540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); | |
10543 | return NULL; | |
10544 | } | |
10545 | } | |
10546 | { | |
0e2ff151 | 10547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10548 | wxMenuItem_Toggle(_arg0); |
e6056257 | 10549 | |
0e2ff151 | 10550 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10551 | if (PyErr_Occurred()) return NULL; |
10552 | } Py_INCREF(Py_None); | |
10553 | _resultobj = Py_None; | |
10554 | return _resultobj; | |
10555 | } | |
10556 | ||
10557 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
10558 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10559 | PyObject * _resultobj; | |
10560 | wxMenuItem * _arg0; | |
10561 | wxString * _arg1; | |
10562 | PyObject * _argo0 = 0; | |
10563 | PyObject * _obj1 = 0; | |
10564 | char *_kwnames[] = { "self","str", NULL }; | |
10565 | ||
10566 | self = self; | |
10567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) | |
10568 | return NULL; | |
10569 | if (_argo0) { | |
10570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); | |
10573 | return NULL; | |
10574 | } | |
10575 | } | |
10576 | { | |
6824d4f9 RD |
10577 | _arg1 = wxString_in_helper(_obj1); |
10578 | if (_arg1 == NULL) | |
e6056257 | 10579 | return NULL; |
e6056257 RD |
10580 | } |
10581 | { | |
0e2ff151 | 10582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10583 | wxMenuItem_SetHelp(_arg0,*_arg1); |
e6056257 | 10584 | |
0e2ff151 | 10585 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10586 | if (PyErr_Occurred()) return NULL; |
10587 | } Py_INCREF(Py_None); | |
10588 | _resultobj = Py_None; | |
10589 | { | |
10590 | if (_obj1) | |
10591 | delete _arg1; | |
10592 | } | |
10593 | return _resultobj; | |
10594 | } | |
10595 | ||
10596 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) | |
10597 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10598 | PyObject * _resultobj; | |
10599 | wxString * _result; | |
10600 | wxMenuItem * _arg0; | |
10601 | PyObject * _argo0 = 0; | |
10602 | char *_kwnames[] = { "self", NULL }; | |
10603 | ||
10604 | self = self; | |
10605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) | |
10606 | return NULL; | |
10607 | if (_argo0) { | |
10608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); | |
10611 | return NULL; | |
10612 | } | |
10613 | } | |
10614 | { | |
0e2ff151 | 10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10616 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
e6056257 RD |
10617 | _result = (wxString *) &_result_ref; |
10618 | ||
0e2ff151 | 10619 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10620 | if (PyErr_Occurred()) return NULL; |
10621 | }{ | |
6824d4f9 RD |
10622 | #if wxUSE_UNICODE |
10623 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10624 | #else | |
e6056257 | 10625 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 10626 | #endif |
e6056257 RD |
10627 | } |
10628 | return _resultobj; | |
10629 | } | |
10630 | ||
10631 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) | |
10632 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10633 | PyObject * _resultobj; | |
10634 | wxAcceleratorEntry * _result; | |
10635 | wxMenuItem * _arg0; | |
10636 | PyObject * _argo0 = 0; | |
10637 | char *_kwnames[] = { "self", NULL }; | |
10638 | char _ptemp[128]; | |
10639 | ||
10640 | self = self; | |
10641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) | |
10642 | return NULL; | |
10643 | if (_argo0) { | |
10644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); | |
10647 | return NULL; | |
10648 | } | |
10649 | } | |
10650 | { | |
0e2ff151 | 10651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10652 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
e6056257 | 10653 | |
0e2ff151 | 10654 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10655 | if (PyErr_Occurred()) return NULL; |
10656 | } if (_result) { | |
10657 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
10658 | _resultobj = Py_BuildValue("s",_ptemp); | |
10659 | } else { | |
10660 | Py_INCREF(Py_None); | |
10661 | _resultobj = Py_None; | |
10662 | } | |
10663 | return _resultobj; | |
10664 | } | |
10665 | ||
10666 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) | |
10667 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10668 | PyObject * _resultobj; | |
10669 | wxMenuItem * _arg0; | |
10670 | wxAcceleratorEntry * _arg1; | |
10671 | PyObject * _argo0 = 0; | |
10672 | PyObject * _argo1 = 0; | |
10673 | char *_kwnames[] = { "self","accel", NULL }; | |
10674 | ||
10675 | self = self; | |
10676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) | |
10677 | return NULL; | |
10678 | if (_argo0) { | |
10679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); | |
10682 | return NULL; | |
10683 | } | |
10684 | } | |
10685 | if (_argo1) { | |
10686 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10687 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { | |
10688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
10689 | return NULL; | |
10690 | } | |
10691 | } | |
10692 | { | |
0e2ff151 | 10693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10694 | wxMenuItem_SetAccel(_arg0,_arg1); |
e6056257 | 10695 | |
0e2ff151 | 10696 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10697 | if (PyErr_Occurred()) return NULL; |
10698 | } Py_INCREF(Py_None); | |
10699 | _resultobj = Py_None; | |
10700 | return _resultobj; | |
10701 | } | |
10702 | ||
10703 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10704 | PyObject * _resultobj; | |
10705 | wxString * _result; | |
10706 | wxString * _arg0; | |
10707 | PyObject * _obj0 = 0; | |
10708 | char *_kwnames[] = { "text", NULL }; | |
10709 | ||
10710 | self = self; | |
10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10712 | return NULL; | |
10713 | { | |
6824d4f9 RD |
10714 | _arg0 = wxString_in_helper(_obj0); |
10715 | if (_arg0 == NULL) | |
e6056257 | 10716 | return NULL; |
e6056257 RD |
10717 | } |
10718 | { | |
0e2ff151 | 10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10720 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
e6056257 | 10721 | |
0e2ff151 | 10722 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10723 | if (PyErr_Occurred()) return NULL; |
10724 | }{ | |
6824d4f9 RD |
10725 | #if wxUSE_UNICODE |
10726 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10727 | #else | |
e6056257 | 10728 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 10729 | #endif |
e6056257 RD |
10730 | } |
10731 | { | |
10732 | if (_obj0) | |
10733 | delete _arg0; | |
10734 | } | |
10735 | { | |
10736 | delete _result; | |
10737 | } | |
10738 | return _resultobj; | |
10739 | } | |
10740 | ||
10741 | static PyMethodDef windowscMethods[] = { | |
10742 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb | 10757 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10758 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
10759 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10802 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
10803 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb RD |
10818 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
10819 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 10830 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
c3bfa1cb RD |
10831 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
10832 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10833 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
10834 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb | 10837 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10838 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10839 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb RD |
10842 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
10843 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10846 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
10847 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10861 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
10862 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
59988cd0 RD |
10865 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
10866 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
10870 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10871 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10872 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
10873 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e | 10884 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10885 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10886 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb | 10892 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10893 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
10894 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e RD |
10896 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
10897 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10898 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
10899 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 10909 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
a341e32e | 10910 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10911 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
10912 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10943 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
10944 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
ca31b3da | 10948 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10949 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10950 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e | 10965 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
e6056257 | 10966 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
a341e32e | 10967 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10968 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10969 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e RD |
10994 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
10995 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10996 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
10997 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e | 11001 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
11002 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11003 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11020 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11021 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { NULL, NULL } | |
11044 | }; | |
11045 | #ifdef __cplusplus | |
11046 | } | |
11047 | #endif | |
11048 | /* | |
11049 | * This table is used by the pointer type-checker | |
11050 | */ | |
11051 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11052 | { "_signed_long","_long",0}, | |
11053 | { "_wxPrintQuality","_wxCoord",0}, | |
11054 | { "_wxPrintQuality","_int",0}, | |
11055 | { "_wxPrintQuality","_signed_int",0}, | |
11056 | { "_wxPrintQuality","_unsigned_int",0}, | |
11057 | { "_wxPrintQuality","_wxWindowID",0}, | |
11058 | { "_wxPrintQuality","_uint",0}, | |
11059 | { "_wxPrintQuality","_EBool",0}, | |
11060 | { "_wxPrintQuality","_size_t",0}, | |
11061 | { "_wxPrintQuality","_time_t",0}, | |
11062 | { "_byte","_unsigned_char",0}, | |
11063 | { "_long","_unsigned_long",0}, | |
11064 | { "_long","_signed_long",0}, | |
11065 | { "_size_t","_wxCoord",0}, | |
11066 | { "_size_t","_wxPrintQuality",0}, | |
11067 | { "_size_t","_time_t",0}, | |
11068 | { "_size_t","_unsigned_int",0}, | |
11069 | { "_size_t","_int",0}, | |
11070 | { "_size_t","_wxWindowID",0}, | |
11071 | { "_size_t","_uint",0}, | |
11072 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
11073 | { "_uint","_wxCoord",0}, | |
11074 | { "_uint","_wxPrintQuality",0}, | |
11075 | { "_uint","_time_t",0}, | |
11076 | { "_uint","_size_t",0}, | |
11077 | { "_uint","_unsigned_int",0}, | |
11078 | { "_uint","_int",0}, | |
11079 | { "_uint","_wxWindowID",0}, | |
11080 | { "_wxChar","_char",0}, | |
11081 | { "_char","_wxChar",0}, | |
11082 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11083 | { "_EBool","_wxCoord",0}, | |
11084 | { "_EBool","_wxPrintQuality",0}, | |
11085 | { "_EBool","_signed_int",0}, | |
11086 | { "_EBool","_int",0}, | |
11087 | { "_EBool","_wxWindowID",0}, | |
11088 | { "_unsigned_long","_long",0}, | |
11089 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11090 | { "_signed_int","_wxCoord",0}, | |
11091 | { "_signed_int","_wxPrintQuality",0}, | |
11092 | { "_signed_int","_EBool",0}, | |
11093 | { "_signed_int","_wxWindowID",0}, | |
11094 | { "_signed_int","_int",0}, | |
11095 | { "_WXTYPE","_short",0}, | |
11096 | { "_WXTYPE","_signed_short",0}, | |
11097 | { "_WXTYPE","_unsigned_short",0}, | |
11098 | { "_unsigned_short","_WXTYPE",0}, | |
11099 | { "_unsigned_short","_short",0}, | |
11100 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
11101 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
11102 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
11103 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
11104 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
11105 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
11106 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
11107 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
11108 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
11109 | { "_signed_short","_WXTYPE",0}, | |
11110 | { "_signed_short","_short",0}, | |
11111 | { "_unsigned_char","_byte",0}, | |
11112 | { "_unsigned_int","_wxCoord",0}, | |
11113 | { "_unsigned_int","_wxPrintQuality",0}, | |
11114 | { "_unsigned_int","_time_t",0}, | |
11115 | { "_unsigned_int","_size_t",0}, | |
11116 | { "_unsigned_int","_uint",0}, | |
11117 | { "_unsigned_int","_wxWindowID",0}, | |
11118 | { "_unsigned_int","_int",0}, | |
11119 | { "_short","_WXTYPE",0}, | |
11120 | { "_short","_unsigned_short",0}, | |
11121 | { "_short","_signed_short",0}, | |
11122 | { "_wxWindowID","_wxCoord",0}, | |
11123 | { "_wxWindowID","_wxPrintQuality",0}, | |
11124 | { "_wxWindowID","_time_t",0}, | |
11125 | { "_wxWindowID","_size_t",0}, | |
11126 | { "_wxWindowID","_EBool",0}, | |
11127 | { "_wxWindowID","_uint",0}, | |
11128 | { "_wxWindowID","_int",0}, | |
11129 | { "_wxWindowID","_signed_int",0}, | |
11130 | { "_wxWindowID","_unsigned_int",0}, | |
11131 | { "_int","_wxCoord",0}, | |
11132 | { "_int","_wxPrintQuality",0}, | |
11133 | { "_int","_time_t",0}, | |
11134 | { "_int","_size_t",0}, | |
11135 | { "_int","_EBool",0}, | |
11136 | { "_int","_uint",0}, | |
11137 | { "_int","_wxWindowID",0}, | |
11138 | { "_int","_unsigned_int",0}, | |
11139 | { "_int","_signed_int",0}, | |
11140 | { "_time_t","_wxCoord",0}, | |
11141 | { "_time_t","_wxPrintQuality",0}, | |
11142 | { "_time_t","_unsigned_int",0}, | |
11143 | { "_time_t","_int",0}, | |
11144 | { "_time_t","_wxWindowID",0}, | |
11145 | { "_time_t","_uint",0}, | |
11146 | { "_time_t","_size_t",0}, | |
11147 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
11148 | { "_wxCoord","_int",0}, | |
11149 | { "_wxCoord","_signed_int",0}, | |
11150 | { "_wxCoord","_unsigned_int",0}, | |
11151 | { "_wxCoord","_wxWindowID",0}, | |
11152 | { "_wxCoord","_uint",0}, | |
11153 | { "_wxCoord","_EBool",0}, | |
11154 | { "_wxCoord","_size_t",0}, | |
11155 | { "_wxCoord","_time_t",0}, | |
11156 | { "_wxCoord","_wxPrintQuality",0}, | |
11157 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
11158 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
11159 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
11160 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
11161 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
11162 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
11163 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
11164 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
11165 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
11166 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
11167 | {0,0,0}}; | |
11168 | ||
11169 | static PyObject *SWIG_globals; | |
11170 | #ifdef __cplusplus | |
11171 | extern "C" | |
11172 | #endif | |
11173 | SWIGEXPORT(void) initwindowsc() { | |
11174 | PyObject *m, *d; | |
11175 | SWIG_globals = SWIG_newvarlink(); | |
11176 | m = Py_InitModule("windowsc", windowscMethods); | |
11177 | d = PyModule_GetDict(m); | |
11178 | { | |
11179 | int i; | |
11180 | for (i = 0; _swig_mapping[i].n1; i++) | |
11181 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11182 | } | |
11183 | } |