]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/gtk/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 | ||
61 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
62 | PyObject* o2; | |
63 | if (!target) { | |
64 | target = o; | |
65 | } else if (target == Py_None) { | |
66 | Py_DECREF(Py_None); | |
67 | target = o; | |
68 | } else { | |
69 | if (!PyList_Check(target)) { | |
70 | o2 = target; | |
71 | target = PyList_New(0); | |
72 | PyList_Append(target, o2); | |
73 | Py_XDECREF(o2); | |
74 | } | |
75 | PyList_Append(target,o); | |
76 | Py_XDECREF(o); | |
77 | } | |
78 | return target; | |
79 | } | |
80 | ||
81 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
82 | PyObject* o2; | |
83 | PyObject* o3; | |
84 | ||
85 | if (!target) { | |
86 | target = o; | |
87 | } else if (target == Py_None) { | |
88 | Py_DECREF(Py_None); | |
89 | target = o; | |
90 | } else { | |
91 | if (!PyTuple_Check(target)) { | |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
96 | o3 = PyTuple_New(1); | |
97 | PyTuple_SetItem(o3, 0, o); | |
98 | ||
99 | o2 = target; | |
100 | target = PySequence_Concat(o2, o3); | |
101 | Py_DECREF(o2); | |
102 | Py_DECREF(o3); | |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
107 | #if PYTHON_API_VERSION >= 1009 | |
108 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
109 | #else | |
110 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
111 | #endif | |
112 | ||
113 | static wxString wxPyEmptyStr(""); | |
114 | ||
115 | bool wxValidator_IsSilent() { | |
116 | return wxValidator::IsSilent(); | |
117 | } | |
118 | ||
119 | void wxValidator_SetBellOnError(int doIt = TRUE) { | |
120 | wxValidator::SetBellOnError(doIt); | |
121 | } | |
122 | ||
123 | class wxPyValidator : public wxValidator { | |
124 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
125 | public: | |
126 | wxPyValidator() { | |
127 | } | |
128 | // wxPyValidator(const wxPyValidator& other); | |
129 | ||
130 | ~wxPyValidator() { | |
131 | } | |
132 | ||
133 | wxObject* wxPyValidator::Clone() const { | |
134 | wxPyValidator* ptr = NULL; | |
135 | wxPyValidator* self = (wxPyValidator*)this; | |
136 | ||
137 | bool doSave = wxPyRestoreThread(); | |
138 | if (self->m_myInst.findCallback("Clone")) { | |
139 | PyObject* ro; | |
140 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
141 | if (ro) { | |
142 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
143 | Py_DECREF(ro); | |
144 | } | |
145 | } | |
146 | // This is very dangerous!!! But is the only way I could find | |
147 | // to squash a memory leak. Currently it is okay, but if the | |
148 | // validator architecture in wxWindows ever changes, problems | |
149 | // could arise. | |
150 | delete self; | |
151 | ||
152 | wxPySaveThread(doSave); | |
153 | return ptr; | |
154 | } | |
155 | ||
156 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
157 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
158 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
159 | ||
160 | PYPRIVATE; | |
161 | // PyObject* m_data; | |
162 | }; | |
163 | ||
164 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
165 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
166 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
167 | ||
168 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
169 | ||
170 | ||
171 | wxWindow* wxWindow_FindFocus() { | |
172 | return wxWindow::FindFocus(); | |
173 | } | |
174 | ||
175 | int wxWindow_NewControlId() { | |
176 | return wxWindow::NewControlId(); | |
177 | } | |
178 | int wxWindow_NextControlId(int id) { | |
179 | return wxWindow::NextControlId(id); | |
180 | } | |
181 | int wxWindow_PrevControlId(int id) { | |
182 | return wxWindow::PrevControlId(id); | |
183 | } | |
184 | #ifdef __cplusplus | |
185 | extern "C" { | |
186 | #endif | |
187 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
188 | PyObject * _resultobj; | |
189 | bool _result; | |
190 | char *_kwnames[] = { NULL }; | |
191 | ||
192 | self = self; | |
193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
194 | return NULL; | |
195 | { | |
196 | wxPy_BEGIN_ALLOW_THREADS; | |
197 | _result = (bool )wxValidator_IsSilent(); | |
198 | ||
199 | wxPy_END_ALLOW_THREADS; | |
200 | } _resultobj = Py_BuildValue("i",_result); | |
201 | return _resultobj; | |
202 | } | |
203 | ||
204 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
205 | PyObject * _resultobj; | |
206 | int _arg0 = (int ) TRUE; | |
207 | char *_kwnames[] = { "doIt", NULL }; | |
208 | ||
209 | self = self; | |
210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
211 | return NULL; | |
212 | { | |
213 | wxPy_BEGIN_ALLOW_THREADS; | |
214 | wxValidator_SetBellOnError(_arg0); | |
215 | ||
216 | wxPy_END_ALLOW_THREADS; | |
217 | } Py_INCREF(Py_None); | |
218 | _resultobj = Py_None; | |
219 | return _resultobj; | |
220 | } | |
221 | ||
222 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
223 | PyObject * _resultobj; | |
224 | wxWindow * _result; | |
225 | char *_kwnames[] = { NULL }; | |
226 | char _ptemp[128]; | |
227 | ||
228 | self = self; | |
229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
230 | return NULL; | |
231 | { | |
232 | wxPy_BEGIN_ALLOW_THREADS; | |
233 | _result = (wxWindow *)wxWindow_FindFocus(); | |
234 | ||
235 | wxPy_END_ALLOW_THREADS; | |
236 | } if (_result) { | |
237 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
238 | _resultobj = Py_BuildValue("s",_ptemp); | |
239 | } else { | |
240 | Py_INCREF(Py_None); | |
241 | _resultobj = Py_None; | |
242 | } | |
243 | return _resultobj; | |
244 | } | |
245 | ||
246 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
247 | PyObject * _resultobj; | |
248 | int _result; | |
249 | char *_kwnames[] = { NULL }; | |
250 | ||
251 | self = self; | |
252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
253 | return NULL; | |
254 | { | |
255 | wxPy_BEGIN_ALLOW_THREADS; | |
256 | _result = (int )wxWindow_NewControlId(); | |
257 | ||
258 | wxPy_END_ALLOW_THREADS; | |
259 | } _resultobj = Py_BuildValue("i",_result); | |
260 | return _resultobj; | |
261 | } | |
262 | ||
263 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
264 | PyObject * _resultobj; | |
265 | int _result; | |
266 | int _arg0; | |
267 | char *_kwnames[] = { "id", NULL }; | |
268 | ||
269 | self = self; | |
270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
271 | return NULL; | |
272 | { | |
273 | wxPy_BEGIN_ALLOW_THREADS; | |
274 | _result = (int )wxWindow_NextControlId(_arg0); | |
275 | ||
276 | wxPy_END_ALLOW_THREADS; | |
277 | } _resultobj = Py_BuildValue("i",_result); | |
278 | return _resultobj; | |
279 | } | |
280 | ||
281 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | int _result; | |
284 | int _arg0; | |
285 | char *_kwnames[] = { "id", NULL }; | |
286 | ||
287 | self = self; | |
288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
289 | return NULL; | |
290 | { | |
291 | wxPy_BEGIN_ALLOW_THREADS; | |
292 | _result = (int )wxWindow_PrevControlId(_arg0); | |
293 | ||
294 | wxPy_END_ALLOW_THREADS; | |
295 | } _resultobj = Py_BuildValue("i",_result); | |
296 | return _resultobj; | |
297 | } | |
298 | ||
299 | #define new_wxEvtHandler() (new wxEvtHandler()) | |
300 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
301 | PyObject * _resultobj; | |
302 | wxEvtHandler * _result; | |
303 | char *_kwnames[] = { NULL }; | |
304 | char _ptemp[128]; | |
305 | ||
306 | self = self; | |
307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
308 | return NULL; | |
309 | { | |
310 | wxPy_BEGIN_ALLOW_THREADS; | |
311 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
312 | ||
313 | wxPy_END_ALLOW_THREADS; | |
314 | } if (_result) { | |
315 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
316 | _resultobj = Py_BuildValue("s",_ptemp); | |
317 | } else { | |
318 | Py_INCREF(Py_None); | |
319 | _resultobj = Py_None; | |
320 | } | |
321 | return _resultobj; | |
322 | } | |
323 | ||
324 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) | |
325 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
326 | PyObject * _resultobj; | |
327 | bool _result; | |
328 | wxEvtHandler * _arg0; | |
329 | wxEvent * _arg1; | |
330 | PyObject * _argo0 = 0; | |
331 | PyObject * _argo1 = 0; | |
332 | char *_kwnames[] = { "self","event", NULL }; | |
333 | ||
334 | self = self; | |
335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
336 | return NULL; | |
337 | if (_argo0) { | |
338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
341 | return NULL; | |
342 | } | |
343 | } | |
344 | if (_argo1) { | |
345 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
352 | wxPy_BEGIN_ALLOW_THREADS; | |
353 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
354 | ||
355 | wxPy_END_ALLOW_THREADS; | |
356 | } _resultobj = Py_BuildValue("i",_result); | |
357 | return _resultobj; | |
358 | } | |
359 | ||
360 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) | |
361 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
362 | PyObject * _resultobj; | |
363 | wxEvtHandler * _arg0; | |
364 | wxEvent * _arg1; | |
365 | PyObject * _argo0 = 0; | |
366 | PyObject * _argo1 = 0; | |
367 | char *_kwnames[] = { "self","event", NULL }; | |
368 | ||
369 | self = self; | |
370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
371 | return NULL; | |
372 | if (_argo0) { | |
373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | if (_argo1) { | |
380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
387 | wxPy_BEGIN_ALLOW_THREADS; | |
388 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
389 | ||
390 | wxPy_END_ALLOW_THREADS; | |
391 | } Py_INCREF(Py_None); | |
392 | _resultobj = Py_None; | |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) | |
397 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | bool _result; | |
400 | wxEvtHandler * _arg0; | |
401 | PyObject * _argo0 = 0; | |
402 | char *_kwnames[] = { "self", NULL }; | |
403 | ||
404 | self = self; | |
405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
406 | return NULL; | |
407 | if (_argo0) { | |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | { | |
415 | wxPy_BEGIN_ALLOW_THREADS; | |
416 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
417 | ||
418 | wxPy_END_ALLOW_THREADS; | |
419 | } _resultobj = Py_BuildValue("i",_result); | |
420 | return _resultobj; | |
421 | } | |
422 | ||
423 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
424 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
425 | PyObject * _resultobj; | |
426 | wxEvtHandler * _arg0; | |
427 | bool _arg1; | |
428 | PyObject * _argo0 = 0; | |
429 | int tempbool1; | |
430 | char *_kwnames[] = { "self","enabled", NULL }; | |
431 | ||
432 | self = self; | |
433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
434 | return NULL; | |
435 | if (_argo0) { | |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | _arg1 = (bool ) tempbool1; | |
443 | { | |
444 | wxPy_BEGIN_ALLOW_THREADS; | |
445 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
446 | ||
447 | wxPy_END_ALLOW_THREADS; | |
448 | } Py_INCREF(Py_None); | |
449 | _resultobj = Py_None; | |
450 | return _resultobj; | |
451 | } | |
452 | ||
453 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
454 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
455 | PyObject * _resultobj; | |
456 | wxEvtHandler * _result; | |
457 | wxEvtHandler * _arg0; | |
458 | PyObject * _argo0 = 0; | |
459 | char *_kwnames[] = { "self", NULL }; | |
460 | char _ptemp[128]; | |
461 | ||
462 | self = self; | |
463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
464 | return NULL; | |
465 | if (_argo0) { | |
466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
469 | return NULL; | |
470 | } | |
471 | } | |
472 | { | |
473 | wxPy_BEGIN_ALLOW_THREADS; | |
474 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
475 | ||
476 | wxPy_END_ALLOW_THREADS; | |
477 | } if (_result) { | |
478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
479 | _resultobj = Py_BuildValue("s",_ptemp); | |
480 | } else { | |
481 | Py_INCREF(Py_None); | |
482 | _resultobj = Py_None; | |
483 | } | |
484 | return _resultobj; | |
485 | } | |
486 | ||
487 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
488 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
489 | PyObject * _resultobj; | |
490 | wxEvtHandler * _result; | |
491 | wxEvtHandler * _arg0; | |
492 | PyObject * _argo0 = 0; | |
493 | char *_kwnames[] = { "self", NULL }; | |
494 | char _ptemp[128]; | |
495 | ||
496 | self = self; | |
497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
498 | return NULL; | |
499 | if (_argo0) { | |
500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
503 | return NULL; | |
504 | } | |
505 | } | |
506 | { | |
507 | wxPy_BEGIN_ALLOW_THREADS; | |
508 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
509 | ||
510 | wxPy_END_ALLOW_THREADS; | |
511 | } if (_result) { | |
512 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
513 | _resultobj = Py_BuildValue("s",_ptemp); | |
514 | } else { | |
515 | Py_INCREF(Py_None); | |
516 | _resultobj = Py_None; | |
517 | } | |
518 | return _resultobj; | |
519 | } | |
520 | ||
521 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
522 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
523 | PyObject * _resultobj; | |
524 | wxEvtHandler * _arg0; | |
525 | wxEvtHandler * _arg1; | |
526 | PyObject * _argo0 = 0; | |
527 | PyObject * _argo1 = 0; | |
528 | char *_kwnames[] = { "self","handler", NULL }; | |
529 | ||
530 | self = self; | |
531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
532 | return NULL; | |
533 | if (_argo0) { | |
534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
537 | return NULL; | |
538 | } | |
539 | } | |
540 | if (_argo1) { | |
541 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
542 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
544 | return NULL; | |
545 | } | |
546 | } | |
547 | { | |
548 | wxPy_BEGIN_ALLOW_THREADS; | |
549 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
550 | ||
551 | wxPy_END_ALLOW_THREADS; | |
552 | } Py_INCREF(Py_None); | |
553 | _resultobj = Py_None; | |
554 | return _resultobj; | |
555 | } | |
556 | ||
557 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
558 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
559 | PyObject * _resultobj; | |
560 | wxEvtHandler * _arg0; | |
561 | wxEvtHandler * _arg1; | |
562 | PyObject * _argo0 = 0; | |
563 | PyObject * _argo1 = 0; | |
564 | char *_kwnames[] = { "self","handler", NULL }; | |
565 | ||
566 | self = self; | |
567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
568 | return NULL; | |
569 | if (_argo0) { | |
570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
573 | return NULL; | |
574 | } | |
575 | } | |
576 | if (_argo1) { | |
577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
580 | return NULL; | |
581 | } | |
582 | } | |
583 | { | |
584 | wxPy_BEGIN_ALLOW_THREADS; | |
585 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
586 | ||
587 | wxPy_END_ALLOW_THREADS; | |
588 | } Py_INCREF(Py_None); | |
589 | _resultobj = Py_None; | |
590 | return _resultobj; | |
591 | } | |
592 | ||
593 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
594 | if (PyCallable_Check(func)) { | |
595 | self->Connect(id, lastId, eventType, | |
596 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
597 | new wxPyCallback(func)); | |
598 | } | |
599 | } | |
600 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
601 | PyObject * _resultobj; | |
602 | wxEvtHandler * _arg0; | |
603 | int _arg1; | |
604 | int _arg2; | |
605 | int _arg3; | |
606 | PyObject * _arg4; | |
607 | PyObject * _argo0 = 0; | |
608 | PyObject * _obj4 = 0; | |
609 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
610 | ||
611 | self = self; | |
612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
613 | return NULL; | |
614 | if (_argo0) { | |
615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
618 | return NULL; | |
619 | } | |
620 | } | |
621 | { | |
622 | _arg4 = _obj4; | |
623 | } | |
624 | { | |
625 | wxPy_BEGIN_ALLOW_THREADS; | |
626 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
627 | ||
628 | wxPy_END_ALLOW_THREADS; | |
629 | } Py_INCREF(Py_None); | |
630 | _resultobj = Py_None; | |
631 | return _resultobj; | |
632 | } | |
633 | ||
634 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { | |
635 | return self->Disconnect(id, lastId, eventType, | |
636 | (wxObjectEventFunction) | |
637 | &wxPyCallback::EventThunker); | |
638 | } | |
639 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
640 | PyObject * _resultobj; | |
641 | bool _result; | |
642 | wxEvtHandler * _arg0; | |
643 | int _arg1; | |
644 | int _arg2 = (int ) -1; | |
645 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
646 | PyObject * _argo0 = 0; | |
647 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
648 | ||
649 | self = self; | |
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
651 | return NULL; | |
652 | if (_argo0) { | |
653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
656 | return NULL; | |
657 | } | |
658 | } | |
659 | { | |
660 | wxPy_BEGIN_ALLOW_THREADS; | |
661 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
662 | ||
663 | wxPy_END_ALLOW_THREADS; | |
664 | } _resultobj = Py_BuildValue("i",_result); | |
665 | return _resultobj; | |
666 | } | |
667 | ||
668 | static const char * wxEvtHandler_GetClassName(wxEvtHandler *self) { | |
669 | return self->GetClassInfo()->GetClassName(); | |
670 | } | |
671 | static PyObject *_wrap_wxEvtHandler_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
672 | PyObject * _resultobj; | |
673 | char * _result; | |
674 | wxEvtHandler * _arg0; | |
675 | PyObject * _argo0 = 0; | |
676 | char *_kwnames[] = { "self", NULL }; | |
677 | ||
678 | self = self; | |
679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetClassName",_kwnames,&_argo0)) | |
680 | return NULL; | |
681 | if (_argo0) { | |
682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetClassName. Expected _wxEvtHandler_p."); | |
685 | return NULL; | |
686 | } | |
687 | } | |
688 | { | |
689 | wxPy_BEGIN_ALLOW_THREADS; | |
690 | _result = (char *)wxEvtHandler_GetClassName(_arg0); | |
691 | ||
692 | wxPy_END_ALLOW_THREADS; | |
693 | } _resultobj = Py_BuildValue("s", _result); | |
694 | return _resultobj; | |
695 | } | |
696 | ||
697 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { | |
698 | wxValidator *src; | |
699 | wxEvtHandler *dest; | |
700 | src = (wxValidator *) ptr; | |
701 | dest = (wxEvtHandler *) src; | |
702 | return (void *) dest; | |
703 | } | |
704 | ||
705 | #define new_wxValidator() (new wxValidator()) | |
706 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
707 | PyObject * _resultobj; | |
708 | wxValidator * _result; | |
709 | char *_kwnames[] = { NULL }; | |
710 | char _ptemp[128]; | |
711 | ||
712 | self = self; | |
713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
714 | return NULL; | |
715 | { | |
716 | wxPy_BEGIN_ALLOW_THREADS; | |
717 | _result = (wxValidator *)new_wxValidator(); | |
718 | ||
719 | wxPy_END_ALLOW_THREADS; | |
720 | } if (_result) { | |
721 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
722 | _resultobj = Py_BuildValue("s",_ptemp); | |
723 | } else { | |
724 | Py_INCREF(Py_None); | |
725 | _resultobj = Py_None; | |
726 | } | |
727 | return _resultobj; | |
728 | } | |
729 | ||
730 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
731 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
732 | PyObject * _resultobj; | |
733 | wxValidator * _result; | |
734 | wxValidator * _arg0; | |
735 | PyObject * _argo0 = 0; | |
736 | char *_kwnames[] = { "self", NULL }; | |
737 | char _ptemp[128]; | |
738 | ||
739 | self = self; | |
740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
741 | return NULL; | |
742 | if (_argo0) { | |
743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
746 | return NULL; | |
747 | } | |
748 | } | |
749 | { | |
750 | wxPy_BEGIN_ALLOW_THREADS; | |
751 | _result = (wxValidator *)wxValidator_Clone(_arg0); | |
752 | ||
753 | wxPy_END_ALLOW_THREADS; | |
754 | } if (_result) { | |
755 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
756 | _resultobj = Py_BuildValue("s",_ptemp); | |
757 | } else { | |
758 | Py_INCREF(Py_None); | |
759 | _resultobj = Py_None; | |
760 | } | |
761 | return _resultobj; | |
762 | } | |
763 | ||
764 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
765 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
766 | PyObject * _resultobj; | |
767 | wxWindow * _result; | |
768 | wxValidator * _arg0; | |
769 | PyObject * _argo0 = 0; | |
770 | char *_kwnames[] = { "self", NULL }; | |
771 | char _ptemp[128]; | |
772 | ||
773 | self = self; | |
774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
775 | return NULL; | |
776 | if (_argo0) { | |
777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
780 | return NULL; | |
781 | } | |
782 | } | |
783 | { | |
784 | wxPy_BEGIN_ALLOW_THREADS; | |
785 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); | |
786 | ||
787 | wxPy_END_ALLOW_THREADS; | |
788 | } if (_result) { | |
789 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
790 | _resultobj = Py_BuildValue("s",_ptemp); | |
791 | } else { | |
792 | Py_INCREF(Py_None); | |
793 | _resultobj = Py_None; | |
794 | } | |
795 | return _resultobj; | |
796 | } | |
797 | ||
798 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
799 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
800 | PyObject * _resultobj; | |
801 | wxValidator * _arg0; | |
802 | wxWindow * _arg1; | |
803 | PyObject * _argo0 = 0; | |
804 | PyObject * _argo1 = 0; | |
805 | char *_kwnames[] = { "self","window", NULL }; | |
806 | ||
807 | self = self; | |
808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
809 | return NULL; | |
810 | if (_argo0) { | |
811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
814 | return NULL; | |
815 | } | |
816 | } | |
817 | if (_argo1) { | |
818 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | { | |
825 | wxPy_BEGIN_ALLOW_THREADS; | |
826 | wxValidator_SetWindow(_arg0,_arg1); | |
827 | ||
828 | wxPy_END_ALLOW_THREADS; | |
829 | } Py_INCREF(Py_None); | |
830 | _resultobj = Py_None; | |
831 | return _resultobj; | |
832 | } | |
833 | ||
834 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
835 | wxPyValidator *src; | |
836 | wxValidator *dest; | |
837 | src = (wxPyValidator *) ptr; | |
838 | dest = (wxValidator *) src; | |
839 | return (void *) dest; | |
840 | } | |
841 | ||
842 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
843 | wxPyValidator *src; | |
844 | wxEvtHandler *dest; | |
845 | src = (wxPyValidator *) ptr; | |
846 | dest = (wxEvtHandler *) src; | |
847 | return (void *) dest; | |
848 | } | |
849 | ||
850 | #define new_wxPyValidator() (new wxPyValidator()) | |
851 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
852 | PyObject * _resultobj; | |
853 | wxPyValidator * _result; | |
854 | char *_kwnames[] = { NULL }; | |
855 | char _ptemp[128]; | |
856 | ||
857 | self = self; | |
858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
859 | return NULL; | |
860 | { | |
861 | wxPy_BEGIN_ALLOW_THREADS; | |
862 | _result = (wxPyValidator *)new_wxPyValidator(); | |
863 | ||
864 | wxPy_END_ALLOW_THREADS; | |
865 | } if (_result) { | |
866 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
867 | _resultobj = Py_BuildValue("s",_ptemp); | |
868 | } else { | |
869 | Py_INCREF(Py_None); | |
870 | _resultobj = Py_None; | |
871 | } | |
872 | return _resultobj; | |
873 | } | |
874 | ||
875 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
876 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
877 | PyObject * _resultobj; | |
878 | wxPyValidator * _arg0; | |
879 | PyObject * _argo0 = 0; | |
880 | char *_kwnames[] = { "self", NULL }; | |
881 | ||
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
884 | return NULL; | |
885 | if (_argo0) { | |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
889 | return NULL; | |
890 | } | |
891 | } | |
892 | { | |
893 | wxPy_BEGIN_ALLOW_THREADS; | |
894 | wxPyValidator_Destroy(_arg0); | |
895 | ||
896 | wxPy_END_ALLOW_THREADS; | |
897 | } Py_INCREF(Py_None); | |
898 | _resultobj = Py_None; | |
899 | return _resultobj; | |
900 | } | |
901 | ||
902 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) | |
903 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
904 | PyObject * _resultobj; | |
905 | wxPyValidator * _arg0; | |
906 | PyObject * _arg1; | |
907 | PyObject * _arg2; | |
908 | int _arg3 = (int ) TRUE; | |
909 | PyObject * _argo0 = 0; | |
910 | PyObject * _obj1 = 0; | |
911 | PyObject * _obj2 = 0; | |
912 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
913 | ||
914 | self = self; | |
915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) | |
916 | return NULL; | |
917 | if (_argo0) { | |
918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
921 | return NULL; | |
922 | } | |
923 | } | |
924 | { | |
925 | _arg1 = _obj1; | |
926 | } | |
927 | { | |
928 | _arg2 = _obj2; | |
929 | } | |
930 | { | |
931 | wxPy_BEGIN_ALLOW_THREADS; | |
932 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); | |
933 | ||
934 | wxPy_END_ALLOW_THREADS; | |
935 | } Py_INCREF(Py_None); | |
936 | _resultobj = Py_None; | |
937 | return _resultobj; | |
938 | } | |
939 | ||
940 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
941 | wxWindow *src; | |
942 | wxEvtHandler *dest; | |
943 | src = (wxWindow *) ptr; | |
944 | dest = (wxEvtHandler *) src; | |
945 | return (void *) dest; | |
946 | } | |
947 | ||
948 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
949 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
950 | PyObject * _resultobj; | |
951 | wxWindow * _result; | |
952 | wxWindow * _arg0; | |
953 | wxWindowID _arg1; | |
954 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
955 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
956 | long _arg4 = (long ) 0; | |
957 | char * _arg5 = (char *) "panel"; | |
958 | PyObject * _argo0 = 0; | |
959 | wxPoint temp; | |
960 | PyObject * _obj2 = 0; | |
961 | wxSize temp0; | |
962 | PyObject * _obj3 = 0; | |
963 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
964 | char _ptemp[128]; | |
965 | ||
966 | self = self; | |
967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
968 | return NULL; | |
969 | if (_argo0) { | |
970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); | |
973 | return NULL; | |
974 | } | |
975 | } | |
976 | if (_obj2) | |
977 | { | |
978 | _arg2 = &temp; | |
979 | if (! wxPoint_helper(_obj2, &_arg2)) | |
980 | return NULL; | |
981 | } | |
982 | if (_obj3) | |
983 | { | |
984 | _arg3 = &temp0; | |
985 | if (! wxSize_helper(_obj3, &_arg3)) | |
986 | return NULL; | |
987 | } | |
988 | { | |
989 | wxPy_BEGIN_ALLOW_THREADS; | |
990 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
991 | ||
992 | wxPy_END_ALLOW_THREADS; | |
993 | } if (_result) { | |
994 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
995 | _resultobj = Py_BuildValue("s",_ptemp); | |
996 | } else { | |
997 | Py_INCREF(Py_None); | |
998 | _resultobj = Py_None; | |
999 | } | |
1000 | return _resultobj; | |
1001 | } | |
1002 | ||
1003 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
1004 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1005 | PyObject * _resultobj; | |
1006 | wxWindow * _arg0; | |
1007 | PyObject * _argo0 = 0; | |
1008 | char *_kwnames[] = { "self", NULL }; | |
1009 | ||
1010 | self = self; | |
1011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
1012 | return NULL; | |
1013 | if (_argo0) { | |
1014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
1017 | return NULL; | |
1018 | } | |
1019 | } | |
1020 | { | |
1021 | wxPy_BEGIN_ALLOW_THREADS; | |
1022 | wxWindow_CaptureMouse(_arg0); | |
1023 | ||
1024 | wxPy_END_ALLOW_THREADS; | |
1025 | } Py_INCREF(Py_None); | |
1026 | _resultobj = Py_None; | |
1027 | return _resultobj; | |
1028 | } | |
1029 | ||
1030 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
1031 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1032 | PyObject * _resultobj; | |
1033 | wxWindow * _arg0; | |
1034 | int _arg1 = (int ) wxBOTH; | |
1035 | PyObject * _argo0 = 0; | |
1036 | char *_kwnames[] = { "self","direction", NULL }; | |
1037 | ||
1038 | self = self; | |
1039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) | |
1040 | return NULL; | |
1041 | if (_argo0) { | |
1042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); | |
1045 | return NULL; | |
1046 | } | |
1047 | } | |
1048 | { | |
1049 | wxPy_BEGIN_ALLOW_THREADS; | |
1050 | wxWindow_Center(_arg0,_arg1); | |
1051 | ||
1052 | wxPy_END_ALLOW_THREADS; | |
1053 | } Py_INCREF(Py_None); | |
1054 | _resultobj = Py_None; | |
1055 | return _resultobj; | |
1056 | } | |
1057 | ||
1058 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
1059 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1060 | PyObject * _resultobj; | |
1061 | wxWindow * _arg0; | |
1062 | int _arg1 = (int ) wxBOTH; | |
1063 | PyObject * _argo0 = 0; | |
1064 | char *_kwnames[] = { "self","direction", NULL }; | |
1065 | ||
1066 | self = self; | |
1067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) | |
1068 | return NULL; | |
1069 | if (_argo0) { | |
1070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); | |
1073 | return NULL; | |
1074 | } | |
1075 | } | |
1076 | { | |
1077 | wxPy_BEGIN_ALLOW_THREADS; | |
1078 | wxWindow_Centre(_arg0,_arg1); | |
1079 | ||
1080 | wxPy_END_ALLOW_THREADS; | |
1081 | } Py_INCREF(Py_None); | |
1082 | _resultobj = Py_None; | |
1083 | return _resultobj; | |
1084 | } | |
1085 | ||
1086 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) | |
1087 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1088 | PyObject * _resultobj; | |
1089 | wxWindow * _arg0; | |
1090 | int _arg1 = (int ) wxBOTH; | |
1091 | PyObject * _argo0 = 0; | |
1092 | char *_kwnames[] = { "self","direction", NULL }; | |
1093 | ||
1094 | self = self; | |
1095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) | |
1096 | return NULL; | |
1097 | if (_argo0) { | |
1098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); | |
1101 | return NULL; | |
1102 | } | |
1103 | } | |
1104 | { | |
1105 | wxPy_BEGIN_ALLOW_THREADS; | |
1106 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1107 | ||
1108 | wxPy_END_ALLOW_THREADS; | |
1109 | } Py_INCREF(Py_None); | |
1110 | _resultobj = Py_None; | |
1111 | return _resultobj; | |
1112 | } | |
1113 | ||
1114 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
1115 | static PyObject *_wrap_wxWindow_CenterOnParent(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_CenterOnParent",_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_CenterOnParent. Expected _wxWindow_p."); | |
1129 | return NULL; | |
1130 | } | |
1131 | } | |
1132 | { | |
1133 | wxPy_BEGIN_ALLOW_THREADS; | |
1134 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1135 | ||
1136 | wxPy_END_ALLOW_THREADS; | |
1137 | } Py_INCREF(Py_None); | |
1138 | _resultobj = Py_None; | |
1139 | return _resultobj; | |
1140 | } | |
1141 | ||
1142 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) | |
1143 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1144 | PyObject * _resultobj; | |
1145 | wxWindow * _arg0; | |
1146 | int _arg1 = (int ) wxBOTH; | |
1147 | PyObject * _argo0 = 0; | |
1148 | char *_kwnames[] = { "self","direction", NULL }; | |
1149 | ||
1150 | self = self; | |
1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1152 | return NULL; | |
1153 | if (_argo0) { | |
1154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1157 | return NULL; | |
1158 | } | |
1159 | } | |
1160 | { | |
1161 | wxPy_BEGIN_ALLOW_THREADS; | |
1162 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1163 | ||
1164 | wxPy_END_ALLOW_THREADS; | |
1165 | } Py_INCREF(Py_None); | |
1166 | _resultobj = Py_None; | |
1167 | return _resultobj; | |
1168 | } | |
1169 | ||
1170 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1171 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1172 | PyObject * _resultobj; | |
1173 | wxWindow * _arg0; | |
1174 | int _arg1 = (int ) wxBOTH; | |
1175 | PyObject * _argo0 = 0; | |
1176 | char *_kwnames[] = { "self","direction", NULL }; | |
1177 | ||
1178 | self = self; | |
1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1180 | return NULL; | |
1181 | if (_argo0) { | |
1182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1185 | return NULL; | |
1186 | } | |
1187 | } | |
1188 | { | |
1189 | wxPy_BEGIN_ALLOW_THREADS; | |
1190 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1191 | ||
1192 | wxPy_END_ALLOW_THREADS; | |
1193 | } Py_INCREF(Py_None); | |
1194 | _resultobj = Py_None; | |
1195 | return _resultobj; | |
1196 | } | |
1197 | ||
1198 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) | |
1199 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1200 | PyObject * _resultobj; | |
1201 | wxWindow * _arg0; | |
1202 | int * _arg1; | |
1203 | int * _arg2; | |
1204 | PyObject * _argo0 = 0; | |
1205 | int temp; | |
1206 | PyObject * _obj1 = 0; | |
1207 | int temp0; | |
1208 | PyObject * _obj2 = 0; | |
1209 | char *_kwnames[] = { "self","x","y", NULL }; | |
1210 | ||
1211 | self = self; | |
1212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1213 | return NULL; | |
1214 | if (_argo0) { | |
1215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); | |
1218 | return NULL; | |
1219 | } | |
1220 | } | |
1221 | { | |
1222 | temp = (int) PyInt_AsLong(_obj1); | |
1223 | _arg1 = &temp; | |
1224 | } | |
1225 | { | |
1226 | temp0 = (int) PyInt_AsLong(_obj2); | |
1227 | _arg2 = &temp0; | |
1228 | } | |
1229 | { | |
1230 | wxPy_BEGIN_ALLOW_THREADS; | |
1231 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1232 | ||
1233 | wxPy_END_ALLOW_THREADS; | |
1234 | } Py_INCREF(Py_None); | |
1235 | _resultobj = Py_None; | |
1236 | { | |
1237 | PyObject *o; | |
1238 | o = PyInt_FromLong((long) (*_arg1)); | |
1239 | _resultobj = t_output_helper(_resultobj, o); | |
1240 | } | |
1241 | { | |
1242 | PyObject *o; | |
1243 | o = PyInt_FromLong((long) (*_arg2)); | |
1244 | _resultobj = t_output_helper(_resultobj, o); | |
1245 | } | |
1246 | return _resultobj; | |
1247 | } | |
1248 | ||
1249 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) | |
1250 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1251 | PyObject * _resultobj; | |
1252 | wxPoint * _result; | |
1253 | wxWindow * _arg0; | |
1254 | wxPoint * _arg1; | |
1255 | PyObject * _argo0 = 0; | |
1256 | wxPoint temp; | |
1257 | PyObject * _obj1 = 0; | |
1258 | char *_kwnames[] = { "self","pt", NULL }; | |
1259 | char _ptemp[128]; | |
1260 | ||
1261 | self = self; | |
1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) | |
1263 | return NULL; | |
1264 | if (_argo0) { | |
1265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); | |
1268 | return NULL; | |
1269 | } | |
1270 | } | |
1271 | { | |
1272 | _arg1 = &temp; | |
1273 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1274 | return NULL; | |
1275 | } | |
1276 | { | |
1277 | wxPy_BEGIN_ALLOW_THREADS; | |
1278 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1279 | ||
1280 | wxPy_END_ALLOW_THREADS; | |
1281 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1282 | _resultobj = Py_BuildValue("s",_ptemp); | |
1283 | return _resultobj; | |
1284 | } | |
1285 | ||
1286 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) | |
1287 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject * _resultobj; | |
1289 | bool _result; | |
1290 | wxWindow * _arg0; | |
1291 | int _arg1 = (int ) FALSE; | |
1292 | PyObject * _argo0 = 0; | |
1293 | char *_kwnames[] = { "self","force", NULL }; | |
1294 | ||
1295 | self = self; | |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) | |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); | |
1302 | return NULL; | |
1303 | } | |
1304 | } | |
1305 | { | |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1308 | ||
1309 | wxPy_END_ALLOW_THREADS; | |
1310 | } _resultobj = Py_BuildValue("i",_result); | |
1311 | return _resultobj; | |
1312 | } | |
1313 | ||
1314 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
1315 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1316 | PyObject * _resultobj; | |
1317 | bool _result; | |
1318 | wxWindow * _arg0; | |
1319 | PyObject * _argo0 = 0; | |
1320 | char *_kwnames[] = { "self", NULL }; | |
1321 | ||
1322 | self = self; | |
1323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) | |
1324 | return NULL; | |
1325 | if (_argo0) { | |
1326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); | |
1329 | return NULL; | |
1330 | } | |
1331 | } | |
1332 | { | |
1333 | wxPy_BEGIN_ALLOW_THREADS; | |
1334 | _result = (bool )wxWindow_Destroy(_arg0); | |
1335 | ||
1336 | wxPy_END_ALLOW_THREADS; | |
1337 | } _resultobj = Py_BuildValue("i",_result); | |
1338 | return _resultobj; | |
1339 | } | |
1340 | ||
1341 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
1342 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1343 | PyObject * _resultobj; | |
1344 | wxWindow * _arg0; | |
1345 | PyObject * _argo0 = 0; | |
1346 | char *_kwnames[] = { "self", NULL }; | |
1347 | ||
1348 | self = self; | |
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) | |
1350 | return NULL; | |
1351 | if (_argo0) { | |
1352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); | |
1355 | return NULL; | |
1356 | } | |
1357 | } | |
1358 | { | |
1359 | wxPy_BEGIN_ALLOW_THREADS; | |
1360 | wxWindow_DestroyChildren(_arg0); | |
1361 | ||
1362 | wxPy_END_ALLOW_THREADS; | |
1363 | } Py_INCREF(Py_None); | |
1364 | _resultobj = Py_None; | |
1365 | return _resultobj; | |
1366 | } | |
1367 | ||
1368 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1369 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject * _resultobj; | |
1371 | wxWindow * _arg0; | |
1372 | bool _arg1; | |
1373 | PyObject * _argo0 = 0; | |
1374 | int tempbool1; | |
1375 | char *_kwnames[] = { "self","enable", NULL }; | |
1376 | ||
1377 | self = self; | |
1378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) | |
1379 | return NULL; | |
1380 | if (_argo0) { | |
1381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); | |
1384 | return NULL; | |
1385 | } | |
1386 | } | |
1387 | _arg1 = (bool ) tempbool1; | |
1388 | { | |
1389 | wxPy_BEGIN_ALLOW_THREADS; | |
1390 | wxWindow_Enable(_arg0,_arg1); | |
1391 | ||
1392 | wxPy_END_ALLOW_THREADS; | |
1393 | } Py_INCREF(Py_None); | |
1394 | _resultobj = Py_None; | |
1395 | return _resultobj; | |
1396 | } | |
1397 | ||
1398 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1399 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1400 | PyObject * _resultobj; | |
1401 | wxWindow * _result; | |
1402 | wxWindow * _arg0; | |
1403 | long _arg1; | |
1404 | PyObject * _argo0 = 0; | |
1405 | char *_kwnames[] = { "self","id", NULL }; | |
1406 | char _ptemp[128]; | |
1407 | ||
1408 | self = self; | |
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) | |
1410 | return NULL; | |
1411 | if (_argo0) { | |
1412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); | |
1415 | return NULL; | |
1416 | } | |
1417 | } | |
1418 | { | |
1419 | wxPy_BEGIN_ALLOW_THREADS; | |
1420 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1421 | ||
1422 | wxPy_END_ALLOW_THREADS; | |
1423 | } if (_result) { | |
1424 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1425 | _resultobj = Py_BuildValue("s",_ptemp); | |
1426 | } else { | |
1427 | Py_INCREF(Py_None); | |
1428 | _resultobj = Py_None; | |
1429 | } | |
1430 | return _resultobj; | |
1431 | } | |
1432 | ||
1433 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1434 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1435 | PyObject * _resultobj; | |
1436 | wxWindow * _result; | |
1437 | wxWindow * _arg0; | |
1438 | wxString * _arg1; | |
1439 | PyObject * _argo0 = 0; | |
1440 | PyObject * _obj1 = 0; | |
1441 | char *_kwnames[] = { "self","name", NULL }; | |
1442 | char _ptemp[128]; | |
1443 | ||
1444 | self = self; | |
1445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) | |
1446 | return NULL; | |
1447 | if (_argo0) { | |
1448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); | |
1451 | return NULL; | |
1452 | } | |
1453 | } | |
1454 | { | |
1455 | #if PYTHON_API_VERSION >= 1009 | |
1456 | char* tmpPtr; int tmpSize; | |
1457 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1459 | return NULL; | |
1460 | } | |
1461 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1462 | return NULL; | |
1463 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1464 | #else | |
1465 | if (!PyString_Check(_obj1)) { | |
1466 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1467 | return NULL; | |
1468 | } | |
1469 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1470 | #endif | |
1471 | } | |
1472 | { | |
1473 | wxPy_BEGIN_ALLOW_THREADS; | |
1474 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1475 | ||
1476 | wxPy_END_ALLOW_THREADS; | |
1477 | } if (_result) { | |
1478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1479 | _resultobj = Py_BuildValue("s",_ptemp); | |
1480 | } else { | |
1481 | Py_INCREF(Py_None); | |
1482 | _resultobj = Py_None; | |
1483 | } | |
1484 | { | |
1485 | if (_obj1) | |
1486 | delete _arg1; | |
1487 | } | |
1488 | return _resultobj; | |
1489 | } | |
1490 | ||
1491 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
1492 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1493 | PyObject * _resultobj; | |
1494 | wxWindow * _arg0; | |
1495 | PyObject * _argo0 = 0; | |
1496 | char *_kwnames[] = { "self", NULL }; | |
1497 | ||
1498 | self = self; | |
1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) | |
1500 | return NULL; | |
1501 | if (_argo0) { | |
1502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); | |
1505 | return NULL; | |
1506 | } | |
1507 | } | |
1508 | { | |
1509 | wxPy_BEGIN_ALLOW_THREADS; | |
1510 | wxWindow_Fit(_arg0); | |
1511 | ||
1512 | wxPy_END_ALLOW_THREADS; | |
1513 | } Py_INCREF(Py_None); | |
1514 | _resultobj = Py_None; | |
1515 | return _resultobj; | |
1516 | } | |
1517 | ||
1518 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1519 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1520 | PyObject * _resultobj; | |
1521 | wxColour * _result; | |
1522 | wxWindow * _arg0; | |
1523 | PyObject * _argo0 = 0; | |
1524 | char *_kwnames[] = { "self", NULL }; | |
1525 | char _ptemp[128]; | |
1526 | ||
1527 | self = self; | |
1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) | |
1529 | return NULL; | |
1530 | if (_argo0) { | |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); | |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
1537 | { | |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
1542 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1543 | _resultobj = Py_BuildValue("s",_ptemp); | |
1544 | return _resultobj; | |
1545 | } | |
1546 | ||
1547 | static PyObject * wxWindow_GetChildren(wxWindow *self) { | |
1548 | wxWindowList& list = self->GetChildren(); | |
1549 | return wxPy_ConvertList(&list, "wxWindow"); | |
1550 | } | |
1551 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1552 | PyObject * _resultobj; | |
1553 | PyObject * _result; | |
1554 | wxWindow * _arg0; | |
1555 | PyObject * _argo0 = 0; | |
1556 | char *_kwnames[] = { "self", NULL }; | |
1557 | ||
1558 | self = self; | |
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1560 | return NULL; | |
1561 | if (_argo0) { | |
1562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1565 | return NULL; | |
1566 | } | |
1567 | } | |
1568 | { | |
1569 | wxPy_BEGIN_ALLOW_THREADS; | |
1570 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1571 | ||
1572 | wxPy_END_ALLOW_THREADS; | |
1573 | }{ | |
1574 | _resultobj = _result; | |
1575 | } | |
1576 | return _resultobj; | |
1577 | } | |
1578 | ||
1579 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1580 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1581 | PyObject * _resultobj; | |
1582 | int _result; | |
1583 | wxWindow * _arg0; | |
1584 | PyObject * _argo0 = 0; | |
1585 | char *_kwnames[] = { "self", NULL }; | |
1586 | ||
1587 | self = self; | |
1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) | |
1589 | return NULL; | |
1590 | if (_argo0) { | |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); | |
1594 | return NULL; | |
1595 | } | |
1596 | } | |
1597 | { | |
1598 | wxPy_BEGIN_ALLOW_THREADS; | |
1599 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1600 | ||
1601 | wxPy_END_ALLOW_THREADS; | |
1602 | } _resultobj = Py_BuildValue("i",_result); | |
1603 | return _resultobj; | |
1604 | } | |
1605 | ||
1606 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1607 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject * _resultobj; | |
1609 | int _result; | |
1610 | wxWindow * _arg0; | |
1611 | PyObject * _argo0 = 0; | |
1612 | char *_kwnames[] = { "self", NULL }; | |
1613 | ||
1614 | self = self; | |
1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) | |
1616 | return NULL; | |
1617 | if (_argo0) { | |
1618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); | |
1621 | return NULL; | |
1622 | } | |
1623 | } | |
1624 | { | |
1625 | wxPy_BEGIN_ALLOW_THREADS; | |
1626 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1627 | ||
1628 | wxPy_END_ALLOW_THREADS; | |
1629 | } _resultobj = Py_BuildValue("i",_result); | |
1630 | return _resultobj; | |
1631 | } | |
1632 | ||
1633 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) | |
1634 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1635 | PyObject * _resultobj; | |
1636 | wxWindow * _arg0; | |
1637 | int * _arg1; | |
1638 | int temp; | |
1639 | int * _arg2; | |
1640 | int temp0; | |
1641 | PyObject * _argo0 = 0; | |
1642 | char *_kwnames[] = { "self", NULL }; | |
1643 | ||
1644 | self = self; | |
1645 | { | |
1646 | _arg1 = &temp; | |
1647 | } | |
1648 | { | |
1649 | _arg2 = &temp0; | |
1650 | } | |
1651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) | |
1652 | return NULL; | |
1653 | if (_argo0) { | |
1654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); | |
1657 | return NULL; | |
1658 | } | |
1659 | } | |
1660 | { | |
1661 | wxPy_BEGIN_ALLOW_THREADS; | |
1662 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1663 | ||
1664 | wxPy_END_ALLOW_THREADS; | |
1665 | } Py_INCREF(Py_None); | |
1666 | _resultobj = Py_None; | |
1667 | { | |
1668 | PyObject *o; | |
1669 | o = PyInt_FromLong((long) (*_arg1)); | |
1670 | _resultobj = t_output_helper(_resultobj, o); | |
1671 | } | |
1672 | { | |
1673 | PyObject *o; | |
1674 | o = PyInt_FromLong((long) (*_arg2)); | |
1675 | _resultobj = t_output_helper(_resultobj, o); | |
1676 | } | |
1677 | return _resultobj; | |
1678 | } | |
1679 | ||
1680 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) | |
1681 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1682 | PyObject * _resultobj; | |
1683 | wxSize * _result; | |
1684 | wxWindow * _arg0; | |
1685 | PyObject * _argo0 = 0; | |
1686 | char *_kwnames[] = { "self", NULL }; | |
1687 | char _ptemp[128]; | |
1688 | ||
1689 | self = self; | |
1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) | |
1691 | return NULL; | |
1692 | if (_argo0) { | |
1693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); | |
1696 | return NULL; | |
1697 | } | |
1698 | } | |
1699 | { | |
1700 | wxPy_BEGIN_ALLOW_THREADS; | |
1701 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1702 | ||
1703 | wxPy_END_ALLOW_THREADS; | |
1704 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1705 | _resultobj = Py_BuildValue("s",_ptemp); | |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
1709 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) | |
1710 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject * _resultobj; | |
1712 | wxLayoutConstraints * _result; | |
1713 | wxWindow * _arg0; | |
1714 | PyObject * _argo0 = 0; | |
1715 | char *_kwnames[] = { "self", NULL }; | |
1716 | char _ptemp[128]; | |
1717 | ||
1718 | self = self; | |
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) | |
1720 | return NULL; | |
1721 | if (_argo0) { | |
1722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); | |
1725 | return NULL; | |
1726 | } | |
1727 | } | |
1728 | { | |
1729 | wxPy_BEGIN_ALLOW_THREADS; | |
1730 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1731 | ||
1732 | wxPy_END_ALLOW_THREADS; | |
1733 | } if (_result) { | |
1734 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1735 | _resultobj = Py_BuildValue("s",_ptemp); | |
1736 | } else { | |
1737 | Py_INCREF(Py_None); | |
1738 | _resultobj = Py_None; | |
1739 | } | |
1740 | return _resultobj; | |
1741 | } | |
1742 | ||
1743 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
1744 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject * _resultobj; | |
1746 | wxEvtHandler * _result; | |
1747 | wxWindow * _arg0; | |
1748 | PyObject * _argo0 = 0; | |
1749 | char *_kwnames[] = { "self", NULL }; | |
1750 | char _ptemp[128]; | |
1751 | ||
1752 | self = self; | |
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1754 | return NULL; | |
1755 | if (_argo0) { | |
1756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1759 | return NULL; | |
1760 | } | |
1761 | } | |
1762 | { | |
1763 | wxPy_BEGIN_ALLOW_THREADS; | |
1764 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1765 | ||
1766 | wxPy_END_ALLOW_THREADS; | |
1767 | } if (_result) { | |
1768 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1769 | _resultobj = Py_BuildValue("s",_ptemp); | |
1770 | } else { | |
1771 | Py_INCREF(Py_None); | |
1772 | _resultobj = Py_None; | |
1773 | } | |
1774 | return _resultobj; | |
1775 | } | |
1776 | ||
1777 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) | |
1778 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1779 | PyObject * _resultobj; | |
1780 | wxFont * _result; | |
1781 | wxWindow * _arg0; | |
1782 | PyObject * _argo0 = 0; | |
1783 | char *_kwnames[] = { "self", NULL }; | |
1784 | char _ptemp[128]; | |
1785 | ||
1786 | self = self; | |
1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) | |
1788 | return NULL; | |
1789 | if (_argo0) { | |
1790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); | |
1793 | return NULL; | |
1794 | } | |
1795 | } | |
1796 | { | |
1797 | wxPy_BEGIN_ALLOW_THREADS; | |
1798 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
1799 | _result = (wxFont *) &_result_ref; | |
1800 | ||
1801 | wxPy_END_ALLOW_THREADS; | |
1802 | } if (_result) { | |
1803 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1804 | _resultobj = Py_BuildValue("s",_ptemp); | |
1805 | } else { | |
1806 | Py_INCREF(Py_None); | |
1807 | _resultobj = Py_None; | |
1808 | } | |
1809 | return _resultobj; | |
1810 | } | |
1811 | ||
1812 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
1813 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject * _resultobj; | |
1815 | wxColour * _result; | |
1816 | wxWindow * _arg0; | |
1817 | PyObject * _argo0 = 0; | |
1818 | char *_kwnames[] = { "self", NULL }; | |
1819 | char _ptemp[128]; | |
1820 | ||
1821 | self = self; | |
1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) | |
1823 | return NULL; | |
1824 | if (_argo0) { | |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); | |
1828 | return NULL; | |
1829 | } | |
1830 | } | |
1831 | { | |
1832 | wxPy_BEGIN_ALLOW_THREADS; | |
1833 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1834 | ||
1835 | wxPy_END_ALLOW_THREADS; | |
1836 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1837 | _resultobj = Py_BuildValue("s",_ptemp); | |
1838 | return _resultobj; | |
1839 | } | |
1840 | ||
1841 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
1842 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject * _resultobj; | |
1844 | wxWindow * _result; | |
1845 | wxWindow * _arg0; | |
1846 | PyObject * _argo0 = 0; | |
1847 | char *_kwnames[] = { "self", NULL }; | |
1848 | char _ptemp[128]; | |
1849 | ||
1850 | self = self; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) | |
1852 | return NULL; | |
1853 | if (_argo0) { | |
1854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); | |
1857 | return NULL; | |
1858 | } | |
1859 | } | |
1860 | { | |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
1865 | } if (_result) { | |
1866 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1867 | _resultobj = Py_BuildValue("s",_ptemp); | |
1868 | } else { | |
1869 | Py_INCREF(Py_None); | |
1870 | _resultobj = Py_None; | |
1871 | } | |
1872 | return _resultobj; | |
1873 | } | |
1874 | ||
1875 | static long wxWindow_GetHandle(wxWindow *self) { | |
1876 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); | |
1877 | } | |
1878 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1879 | PyObject * _resultobj; | |
1880 | long _result; | |
1881 | wxWindow * _arg0; | |
1882 | PyObject * _argo0 = 0; | |
1883 | char *_kwnames[] = { "self", NULL }; | |
1884 | ||
1885 | self = self; | |
1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1887 | return NULL; | |
1888 | if (_argo0) { | |
1889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1892 | return NULL; | |
1893 | } | |
1894 | } | |
1895 | { | |
1896 | wxPy_BEGIN_ALLOW_THREADS; | |
1897 | _result = (long )wxWindow_GetHandle(_arg0); | |
1898 | ||
1899 | wxPy_END_ALLOW_THREADS; | |
1900 | } _resultobj = Py_BuildValue("l",_result); | |
1901 | return _resultobj; | |
1902 | } | |
1903 | ||
1904 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
1905 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject * _resultobj; | |
1907 | int _result; | |
1908 | wxWindow * _arg0; | |
1909 | PyObject * _argo0 = 0; | |
1910 | char *_kwnames[] = { "self", NULL }; | |
1911 | ||
1912 | self = self; | |
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) | |
1914 | return NULL; | |
1915 | if (_argo0) { | |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); | |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
1922 | { | |
1923 | wxPy_BEGIN_ALLOW_THREADS; | |
1924 | _result = (int )wxWindow_GetId(_arg0); | |
1925 | ||
1926 | wxPy_END_ALLOW_THREADS; | |
1927 | } _resultobj = Py_BuildValue("i",_result); | |
1928 | return _resultobj; | |
1929 | } | |
1930 | ||
1931 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
1932 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1933 | PyObject * _resultobj; | |
1934 | wxString * _result; | |
1935 | wxWindow * _arg0; | |
1936 | PyObject * _argo0 = 0; | |
1937 | char *_kwnames[] = { "self", NULL }; | |
1938 | ||
1939 | self = self; | |
1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) | |
1941 | return NULL; | |
1942 | if (_argo0) { | |
1943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); | |
1946 | return NULL; | |
1947 | } | |
1948 | } | |
1949 | { | |
1950 | wxPy_BEGIN_ALLOW_THREADS; | |
1951 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1952 | ||
1953 | wxPy_END_ALLOW_THREADS; | |
1954 | }{ | |
1955 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1956 | } | |
1957 | { | |
1958 | delete _result; | |
1959 | } | |
1960 | return _resultobj; | |
1961 | } | |
1962 | ||
1963 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
1964 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1965 | PyObject * _resultobj; | |
1966 | wxWindow * _arg0; | |
1967 | wxString * _arg1; | |
1968 | PyObject * _argo0 = 0; | |
1969 | PyObject * _obj1 = 0; | |
1970 | char *_kwnames[] = { "self","label", NULL }; | |
1971 | ||
1972 | self = self; | |
1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) | |
1974 | return NULL; | |
1975 | if (_argo0) { | |
1976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); | |
1979 | return NULL; | |
1980 | } | |
1981 | } | |
1982 | { | |
1983 | #if PYTHON_API_VERSION >= 1009 | |
1984 | char* tmpPtr; int tmpSize; | |
1985 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1986 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1987 | return NULL; | |
1988 | } | |
1989 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1990 | return NULL; | |
1991 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1992 | #else | |
1993 | if (!PyString_Check(_obj1)) { | |
1994 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1995 | return NULL; | |
1996 | } | |
1997 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1998 | #endif | |
1999 | } | |
2000 | { | |
2001 | wxPy_BEGIN_ALLOW_THREADS; | |
2002 | wxWindow_SetLabel(_arg0,*_arg1); | |
2003 | ||
2004 | wxPy_END_ALLOW_THREADS; | |
2005 | } Py_INCREF(Py_None); | |
2006 | _resultobj = Py_None; | |
2007 | { | |
2008 | if (_obj1) | |
2009 | delete _arg1; | |
2010 | } | |
2011 | return _resultobj; | |
2012 | } | |
2013 | ||
2014 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) | |
2015 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject * _resultobj; | |
2017 | wxString * _result; | |
2018 | wxWindow * _arg0; | |
2019 | PyObject * _argo0 = 0; | |
2020 | char *_kwnames[] = { "self", NULL }; | |
2021 | ||
2022 | self = self; | |
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) | |
2024 | return NULL; | |
2025 | if (_argo0) { | |
2026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); | |
2029 | return NULL; | |
2030 | } | |
2031 | } | |
2032 | { | |
2033 | wxPy_BEGIN_ALLOW_THREADS; | |
2034 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2035 | ||
2036 | wxPy_END_ALLOW_THREADS; | |
2037 | }{ | |
2038 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2039 | } | |
2040 | { | |
2041 | delete _result; | |
2042 | } | |
2043 | return _resultobj; | |
2044 | } | |
2045 | ||
2046 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
2047 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject * _resultobj; | |
2049 | wxWindow * _result; | |
2050 | wxWindow * _arg0; | |
2051 | PyObject * _argo0 = 0; | |
2052 | char *_kwnames[] = { "self", NULL }; | |
2053 | char _ptemp[128]; | |
2054 | ||
2055 | self = self; | |
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) | |
2057 | return NULL; | |
2058 | if (_argo0) { | |
2059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); | |
2062 | return NULL; | |
2063 | } | |
2064 | } | |
2065 | { | |
2066 | wxPy_BEGIN_ALLOW_THREADS; | |
2067 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2068 | ||
2069 | wxPy_END_ALLOW_THREADS; | |
2070 | } if (_result) { | |
2071 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2072 | _resultobj = Py_BuildValue("s",_ptemp); | |
2073 | } else { | |
2074 | Py_INCREF(Py_None); | |
2075 | _resultobj = Py_None; | |
2076 | } | |
2077 | return _resultobj; | |
2078 | } | |
2079 | ||
2080 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2081 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2082 | PyObject * _resultobj; | |
2083 | wxWindow * _arg0; | |
2084 | int * _arg1; | |
2085 | int temp; | |
2086 | int * _arg2; | |
2087 | int temp0; | |
2088 | PyObject * _argo0 = 0; | |
2089 | char *_kwnames[] = { "self", NULL }; | |
2090 | ||
2091 | self = self; | |
2092 | { | |
2093 | _arg1 = &temp; | |
2094 | } | |
2095 | { | |
2096 | _arg2 = &temp0; | |
2097 | } | |
2098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) | |
2099 | return NULL; | |
2100 | if (_argo0) { | |
2101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); | |
2104 | return NULL; | |
2105 | } | |
2106 | } | |
2107 | { | |
2108 | wxPy_BEGIN_ALLOW_THREADS; | |
2109 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2110 | ||
2111 | wxPy_END_ALLOW_THREADS; | |
2112 | } Py_INCREF(Py_None); | |
2113 | _resultobj = Py_None; | |
2114 | { | |
2115 | PyObject *o; | |
2116 | o = PyInt_FromLong((long) (*_arg1)); | |
2117 | _resultobj = t_output_helper(_resultobj, o); | |
2118 | } | |
2119 | { | |
2120 | PyObject *o; | |
2121 | o = PyInt_FromLong((long) (*_arg2)); | |
2122 | _resultobj = t_output_helper(_resultobj, o); | |
2123 | } | |
2124 | return _resultobj; | |
2125 | } | |
2126 | ||
2127 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2128 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2129 | PyObject * _resultobj; | |
2130 | wxPoint * _result; | |
2131 | wxWindow * _arg0; | |
2132 | PyObject * _argo0 = 0; | |
2133 | char *_kwnames[] = { "self", NULL }; | |
2134 | char _ptemp[128]; | |
2135 | ||
2136 | self = self; | |
2137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) | |
2138 | return NULL; | |
2139 | if (_argo0) { | |
2140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); | |
2143 | return NULL; | |
2144 | } | |
2145 | } | |
2146 | { | |
2147 | wxPy_BEGIN_ALLOW_THREADS; | |
2148 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2149 | ||
2150 | wxPy_END_ALLOW_THREADS; | |
2151 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2152 | _resultobj = Py_BuildValue("s",_ptemp); | |
2153 | return _resultobj; | |
2154 | } | |
2155 | ||
2156 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
2157 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2158 | PyObject * _resultobj; | |
2159 | wxRect * _result; | |
2160 | wxWindow * _arg0; | |
2161 | PyObject * _argo0 = 0; | |
2162 | char *_kwnames[] = { "self", NULL }; | |
2163 | char _ptemp[128]; | |
2164 | ||
2165 | self = self; | |
2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) | |
2167 | return NULL; | |
2168 | if (_argo0) { | |
2169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); | |
2172 | return NULL; | |
2173 | } | |
2174 | } | |
2175 | { | |
2176 | wxPy_BEGIN_ALLOW_THREADS; | |
2177 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2178 | ||
2179 | wxPy_END_ALLOW_THREADS; | |
2180 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2181 | _resultobj = Py_BuildValue("s",_ptemp); | |
2182 | return _resultobj; | |
2183 | } | |
2184 | ||
2185 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) | |
2186 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject * _resultobj; | |
2188 | int _result; | |
2189 | wxWindow * _arg0; | |
2190 | int _arg1; | |
2191 | PyObject * _argo0 = 0; | |
2192 | char *_kwnames[] = { "self","orientation", NULL }; | |
2193 | ||
2194 | self = self; | |
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) | |
2196 | return NULL; | |
2197 | if (_argo0) { | |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); | |
2201 | return NULL; | |
2202 | } | |
2203 | } | |
2204 | { | |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
2206 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2207 | ||
2208 | wxPy_END_ALLOW_THREADS; | |
2209 | } _resultobj = Py_BuildValue("i",_result); | |
2210 | return _resultobj; | |
2211 | } | |
2212 | ||
2213 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
2214 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject * _resultobj; | |
2216 | int _result; | |
2217 | wxWindow * _arg0; | |
2218 | int _arg1; | |
2219 | PyObject * _argo0 = 0; | |
2220 | char *_kwnames[] = { "self","orientation", NULL }; | |
2221 | ||
2222 | self = self; | |
2223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) | |
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_GetScrollPos. Expected _wxWindow_p."); | |
2229 | return NULL; | |
2230 | } | |
2231 | } | |
2232 | { | |
2233 | wxPy_BEGIN_ALLOW_THREADS; | |
2234 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2235 | ||
2236 | wxPy_END_ALLOW_THREADS; | |
2237 | } _resultobj = Py_BuildValue("i",_result); | |
2238 | return _resultobj; | |
2239 | } | |
2240 | ||
2241 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
2242 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2243 | PyObject * _resultobj; | |
2244 | int _result; | |
2245 | wxWindow * _arg0; | |
2246 | int _arg1; | |
2247 | PyObject * _argo0 = 0; | |
2248 | char *_kwnames[] = { "self","orientation", NULL }; | |
2249 | ||
2250 | self = self; | |
2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) | |
2252 | return NULL; | |
2253 | if (_argo0) { | |
2254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); | |
2257 | return NULL; | |
2258 | } | |
2259 | } | |
2260 | { | |
2261 | wxPy_BEGIN_ALLOW_THREADS; | |
2262 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2263 | ||
2264 | wxPy_END_ALLOW_THREADS; | |
2265 | } _resultobj = Py_BuildValue("i",_result); | |
2266 | return _resultobj; | |
2267 | } | |
2268 | ||
2269 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2270 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2271 | PyObject * _resultobj; | |
2272 | wxWindow * _arg0; | |
2273 | int * _arg1; | |
2274 | int temp; | |
2275 | int * _arg2; | |
2276 | int temp0; | |
2277 | PyObject * _argo0 = 0; | |
2278 | char *_kwnames[] = { "self", NULL }; | |
2279 | ||
2280 | self = self; | |
2281 | { | |
2282 | _arg1 = &temp; | |
2283 | } | |
2284 | { | |
2285 | _arg2 = &temp0; | |
2286 | } | |
2287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) | |
2288 | return NULL; | |
2289 | if (_argo0) { | |
2290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); | |
2293 | return NULL; | |
2294 | } | |
2295 | } | |
2296 | { | |
2297 | wxPy_BEGIN_ALLOW_THREADS; | |
2298 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2299 | ||
2300 | wxPy_END_ALLOW_THREADS; | |
2301 | } Py_INCREF(Py_None); | |
2302 | _resultobj = Py_None; | |
2303 | { | |
2304 | PyObject *o; | |
2305 | o = PyInt_FromLong((long) (*_arg1)); | |
2306 | _resultobj = t_output_helper(_resultobj, o); | |
2307 | } | |
2308 | { | |
2309 | PyObject *o; | |
2310 | o = PyInt_FromLong((long) (*_arg2)); | |
2311 | _resultobj = t_output_helper(_resultobj, o); | |
2312 | } | |
2313 | return _resultobj; | |
2314 | } | |
2315 | ||
2316 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) | |
2317 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2318 | PyObject * _resultobj; | |
2319 | wxSize * _result; | |
2320 | wxWindow * _arg0; | |
2321 | PyObject * _argo0 = 0; | |
2322 | char *_kwnames[] = { "self", NULL }; | |
2323 | char _ptemp[128]; | |
2324 | ||
2325 | self = self; | |
2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) | |
2327 | return NULL; | |
2328 | if (_argo0) { | |
2329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); | |
2332 | return NULL; | |
2333 | } | |
2334 | } | |
2335 | { | |
2336 | wxPy_BEGIN_ALLOW_THREADS; | |
2337 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2338 | ||
2339 | wxPy_END_ALLOW_THREADS; | |
2340 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2341 | _resultobj = Py_BuildValue("s",_ptemp); | |
2342 | return _resultobj; | |
2343 | } | |
2344 | ||
2345 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
2346 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject * _resultobj; | |
2348 | wxWindow * _arg0; | |
2349 | wxString * _arg1; | |
2350 | int * _arg2; | |
2351 | int temp; | |
2352 | int * _arg3; | |
2353 | int temp0; | |
2354 | PyObject * _argo0 = 0; | |
2355 | PyObject * _obj1 = 0; | |
2356 | char *_kwnames[] = { "self","string", NULL }; | |
2357 | ||
2358 | self = self; | |
2359 | { | |
2360 | _arg2 = &temp; | |
2361 | } | |
2362 | { | |
2363 | _arg3 = &temp0; | |
2364 | } | |
2365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
2366 | return NULL; | |
2367 | if (_argo0) { | |
2368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); | |
2371 | return NULL; | |
2372 | } | |
2373 | } | |
2374 | { | |
2375 | #if PYTHON_API_VERSION >= 1009 | |
2376 | char* tmpPtr; int tmpSize; | |
2377 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2378 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2379 | return NULL; | |
2380 | } | |
2381 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2382 | return NULL; | |
2383 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2384 | #else | |
2385 | if (!PyString_Check(_obj1)) { | |
2386 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2387 | return NULL; | |
2388 | } | |
2389 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2390 | #endif | |
2391 | } | |
2392 | { | |
2393 | wxPy_BEGIN_ALLOW_THREADS; | |
2394 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2395 | ||
2396 | wxPy_END_ALLOW_THREADS; | |
2397 | } Py_INCREF(Py_None); | |
2398 | _resultobj = Py_None; | |
2399 | { | |
2400 | PyObject *o; | |
2401 | o = PyInt_FromLong((long) (*_arg2)); | |
2402 | _resultobj = t_output_helper(_resultobj, o); | |
2403 | } | |
2404 | { | |
2405 | PyObject *o; | |
2406 | o = PyInt_FromLong((long) (*_arg3)); | |
2407 | _resultobj = t_output_helper(_resultobj, o); | |
2408 | } | |
2409 | { | |
2410 | if (_obj1) | |
2411 | delete _arg1; | |
2412 | } | |
2413 | return _resultobj; | |
2414 | } | |
2415 | ||
2416 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2417 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2418 | PyObject * _resultobj; | |
2419 | wxWindow * _arg0; | |
2420 | wxString * _arg1; | |
2421 | int * _arg2; | |
2422 | int temp; | |
2423 | int * _arg3; | |
2424 | int temp0; | |
2425 | int * _arg4; | |
2426 | int temp1; | |
2427 | int * _arg5; | |
2428 | int temp2; | |
2429 | wxFont * _arg6 = (wxFont *) NULL; | |
2430 | PyObject * _argo0 = 0; | |
2431 | PyObject * _obj1 = 0; | |
2432 | PyObject * _argo6 = 0; | |
2433 | char *_kwnames[] = { "self","string","font", NULL }; | |
2434 | ||
2435 | self = self; | |
2436 | { | |
2437 | _arg2 = &temp; | |
2438 | } | |
2439 | { | |
2440 | _arg3 = &temp0; | |
2441 | } | |
2442 | { | |
2443 | _arg4 = &temp1; | |
2444 | } | |
2445 | { | |
2446 | _arg5 = &temp2; | |
2447 | } | |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
2449 | return NULL; | |
2450 | if (_argo0) { | |
2451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); | |
2454 | return NULL; | |
2455 | } | |
2456 | } | |
2457 | { | |
2458 | #if PYTHON_API_VERSION >= 1009 | |
2459 | char* tmpPtr; int tmpSize; | |
2460 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2461 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2462 | return NULL; | |
2463 | } | |
2464 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2465 | return NULL; | |
2466 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2467 | #else | |
2468 | if (!PyString_Check(_obj1)) { | |
2469 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2470 | return NULL; | |
2471 | } | |
2472 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2473 | #endif | |
2474 | } | |
2475 | if (_argo6) { | |
2476 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2477 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
2478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); | |
2479 | return NULL; | |
2480 | } | |
2481 | } | |
2482 | { | |
2483 | wxPy_BEGIN_ALLOW_THREADS; | |
2484 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2485 | ||
2486 | wxPy_END_ALLOW_THREADS; | |
2487 | } Py_INCREF(Py_None); | |
2488 | _resultobj = Py_None; | |
2489 | { | |
2490 | PyObject *o; | |
2491 | o = PyInt_FromLong((long) (*_arg2)); | |
2492 | _resultobj = t_output_helper(_resultobj, o); | |
2493 | } | |
2494 | { | |
2495 | PyObject *o; | |
2496 | o = PyInt_FromLong((long) (*_arg3)); | |
2497 | _resultobj = t_output_helper(_resultobj, o); | |
2498 | } | |
2499 | { | |
2500 | PyObject *o; | |
2501 | o = PyInt_FromLong((long) (*_arg4)); | |
2502 | _resultobj = t_output_helper(_resultobj, o); | |
2503 | } | |
2504 | { | |
2505 | PyObject *o; | |
2506 | o = PyInt_FromLong((long) (*_arg5)); | |
2507 | _resultobj = t_output_helper(_resultobj, o); | |
2508 | } | |
2509 | { | |
2510 | if (_obj1) | |
2511 | delete _arg1; | |
2512 | } | |
2513 | return _resultobj; | |
2514 | } | |
2515 | ||
2516 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
2517 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2518 | PyObject * _resultobj; | |
2519 | wxString * _result; | |
2520 | wxWindow * _arg0; | |
2521 | PyObject * _argo0 = 0; | |
2522 | char *_kwnames[] = { "self", NULL }; | |
2523 | ||
2524 | self = self; | |
2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) | |
2526 | return NULL; | |
2527 | if (_argo0) { | |
2528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); | |
2531 | return NULL; | |
2532 | } | |
2533 | } | |
2534 | { | |
2535 | wxPy_BEGIN_ALLOW_THREADS; | |
2536 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2537 | ||
2538 | wxPy_END_ALLOW_THREADS; | |
2539 | }{ | |
2540 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2541 | } | |
2542 | { | |
2543 | delete _result; | |
2544 | } | |
2545 | return _resultobj; | |
2546 | } | |
2547 | ||
2548 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) | |
2549 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2550 | PyObject * _resultobj; | |
2551 | wxRegion * _result; | |
2552 | wxWindow * _arg0; | |
2553 | PyObject * _argo0 = 0; | |
2554 | char *_kwnames[] = { "self", NULL }; | |
2555 | char _ptemp[128]; | |
2556 | ||
2557 | self = self; | |
2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) | |
2559 | return NULL; | |
2560 | if (_argo0) { | |
2561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); | |
2564 | return NULL; | |
2565 | } | |
2566 | } | |
2567 | { | |
2568 | wxPy_BEGIN_ALLOW_THREADS; | |
2569 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2570 | ||
2571 | wxPy_END_ALLOW_THREADS; | |
2572 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2573 | _resultobj = Py_BuildValue("s",_ptemp); | |
2574 | return _resultobj; | |
2575 | } | |
2576 | ||
2577 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) | |
2578 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2579 | PyObject * _resultobj; | |
2580 | long _result; | |
2581 | wxWindow * _arg0; | |
2582 | PyObject * _argo0 = 0; | |
2583 | char *_kwnames[] = { "self", NULL }; | |
2584 | ||
2585 | self = self; | |
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) | |
2587 | return NULL; | |
2588 | if (_argo0) { | |
2589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); | |
2592 | return NULL; | |
2593 | } | |
2594 | } | |
2595 | { | |
2596 | wxPy_BEGIN_ALLOW_THREADS; | |
2597 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2598 | ||
2599 | wxPy_END_ALLOW_THREADS; | |
2600 | } _resultobj = Py_BuildValue("l",_result); | |
2601 | return _resultobj; | |
2602 | } | |
2603 | ||
2604 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
2605 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject * _resultobj; | |
2607 | wxWindow * _arg0; | |
2608 | long _arg1; | |
2609 | PyObject * _argo0 = 0; | |
2610 | char *_kwnames[] = { "self","style", NULL }; | |
2611 | ||
2612 | self = self; | |
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2614 | return NULL; | |
2615 | if (_argo0) { | |
2616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2619 | return NULL; | |
2620 | } | |
2621 | } | |
2622 | { | |
2623 | wxPy_BEGIN_ALLOW_THREADS; | |
2624 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2625 | ||
2626 | wxPy_END_ALLOW_THREADS; | |
2627 | } Py_INCREF(Py_None); | |
2628 | _resultobj = Py_None; | |
2629 | return _resultobj; | |
2630 | } | |
2631 | ||
2632 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2633 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject * _resultobj; | |
2635 | wxWindow * _arg0; | |
2636 | long _arg1; | |
2637 | PyObject * _argo0 = 0; | |
2638 | char *_kwnames[] = { "self","style", NULL }; | |
2639 | ||
2640 | self = self; | |
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2642 | return NULL; | |
2643 | if (_argo0) { | |
2644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2647 | return NULL; | |
2648 | } | |
2649 | } | |
2650 | { | |
2651 | wxPy_BEGIN_ALLOW_THREADS; | |
2652 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2653 | ||
2654 | wxPy_END_ALLOW_THREADS; | |
2655 | } Py_INCREF(Py_None); | |
2656 | _resultobj = Py_None; | |
2657 | return _resultobj; | |
2658 | } | |
2659 | ||
2660 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) | |
2661 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject * _resultobj; | |
2663 | bool _result; | |
2664 | wxWindow * _arg0; | |
2665 | PyObject * _argo0 = 0; | |
2666 | char *_kwnames[] = { "self", NULL }; | |
2667 | ||
2668 | self = self; | |
2669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) | |
2670 | return NULL; | |
2671 | if (_argo0) { | |
2672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); | |
2675 | return NULL; | |
2676 | } | |
2677 | } | |
2678 | { | |
2679 | wxPy_BEGIN_ALLOW_THREADS; | |
2680 | _result = (bool )wxWindow_Hide(_arg0); | |
2681 | ||
2682 | wxPy_END_ALLOW_THREADS; | |
2683 | } _resultobj = Py_BuildValue("i",_result); | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
2687 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
2688 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2689 | PyObject * _resultobj; | |
2690 | wxWindow * _arg0; | |
2691 | PyObject * _argo0 = 0; | |
2692 | char *_kwnames[] = { "self", NULL }; | |
2693 | ||
2694 | self = self; | |
2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) | |
2696 | return NULL; | |
2697 | if (_argo0) { | |
2698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); | |
2701 | return NULL; | |
2702 | } | |
2703 | } | |
2704 | { | |
2705 | wxPy_BEGIN_ALLOW_THREADS; | |
2706 | wxWindow_InitDialog(_arg0); | |
2707 | ||
2708 | wxPy_END_ALLOW_THREADS; | |
2709 | } Py_INCREF(Py_None); | |
2710 | _resultobj = Py_None; | |
2711 | return _resultobj; | |
2712 | } | |
2713 | ||
2714 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
2715 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2716 | PyObject * _resultobj; | |
2717 | bool _result; | |
2718 | wxWindow * _arg0; | |
2719 | PyObject * _argo0 = 0; | |
2720 | char *_kwnames[] = { "self", NULL }; | |
2721 | ||
2722 | self = self; | |
2723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) | |
2724 | return NULL; | |
2725 | if (_argo0) { | |
2726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); | |
2729 | return NULL; | |
2730 | } | |
2731 | } | |
2732 | { | |
2733 | wxPy_BEGIN_ALLOW_THREADS; | |
2734 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2735 | ||
2736 | wxPy_END_ALLOW_THREADS; | |
2737 | } _resultobj = Py_BuildValue("i",_result); | |
2738 | return _resultobj; | |
2739 | } | |
2740 | ||
2741 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2742 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2743 | PyObject * _resultobj; | |
2744 | bool _result; | |
2745 | wxWindow * _arg0; | |
2746 | int _arg1; | |
2747 | int _arg2; | |
2748 | int _arg3 = (int ) 0; | |
2749 | int _arg4 = (int ) 0; | |
2750 | PyObject * _argo0 = 0; | |
2751 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2752 | ||
2753 | self = self; | |
2754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2755 | return NULL; | |
2756 | if (_argo0) { | |
2757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2760 | return NULL; | |
2761 | } | |
2762 | } | |
2763 | { | |
2764 | wxPy_BEGIN_ALLOW_THREADS; | |
2765 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2766 | ||
2767 | wxPy_END_ALLOW_THREADS; | |
2768 | } _resultobj = Py_BuildValue("i",_result); | |
2769 | return _resultobj; | |
2770 | } | |
2771 | ||
2772 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2773 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2774 | PyObject * _resultobj; | |
2775 | bool _result; | |
2776 | wxWindow * _arg0; | |
2777 | wxPoint * _arg1; | |
2778 | PyObject * _argo0 = 0; | |
2779 | wxPoint temp; | |
2780 | PyObject * _obj1 = 0; | |
2781 | char *_kwnames[] = { "self","pt", NULL }; | |
2782 | ||
2783 | self = self; | |
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2785 | return NULL; | |
2786 | if (_argo0) { | |
2787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2790 | return NULL; | |
2791 | } | |
2792 | } | |
2793 | { | |
2794 | _arg1 = &temp; | |
2795 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2796 | return NULL; | |
2797 | } | |
2798 | { | |
2799 | wxPy_BEGIN_ALLOW_THREADS; | |
2800 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2801 | ||
2802 | wxPy_END_ALLOW_THREADS; | |
2803 | } _resultobj = Py_BuildValue("i",_result); | |
2804 | return _resultobj; | |
2805 | } | |
2806 | ||
2807 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2808 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2809 | PyObject * _resultobj; | |
2810 | bool _result; | |
2811 | wxWindow * _arg0; | |
2812 | wxRect * _arg1; | |
2813 | PyObject * _argo0 = 0; | |
2814 | wxRect temp; | |
2815 | PyObject * _obj1 = 0; | |
2816 | char *_kwnames[] = { "self","rect", NULL }; | |
2817 | ||
2818 | self = self; | |
2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2820 | return NULL; | |
2821 | if (_argo0) { | |
2822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2825 | return NULL; | |
2826 | } | |
2827 | } | |
2828 | { | |
2829 | _arg1 = &temp; | |
2830 | if (! wxRect_helper(_obj1, &_arg1)) | |
2831 | return NULL; | |
2832 | } | |
2833 | { | |
2834 | wxPy_BEGIN_ALLOW_THREADS; | |
2835 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2836 | ||
2837 | wxPy_END_ALLOW_THREADS; | |
2838 | } _resultobj = Py_BuildValue("i",_result); | |
2839 | return _resultobj; | |
2840 | } | |
2841 | ||
2842 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
2843 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject * _resultobj; | |
2845 | bool _result; | |
2846 | wxWindow * _arg0; | |
2847 | PyObject * _argo0 = 0; | |
2848 | char *_kwnames[] = { "self", NULL }; | |
2849 | ||
2850 | self = self; | |
2851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) | |
2852 | return NULL; | |
2853 | if (_argo0) { | |
2854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); | |
2857 | return NULL; | |
2858 | } | |
2859 | } | |
2860 | { | |
2861 | wxPy_BEGIN_ALLOW_THREADS; | |
2862 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2863 | ||
2864 | wxPy_END_ALLOW_THREADS; | |
2865 | } _resultobj = Py_BuildValue("i",_result); | |
2866 | return _resultobj; | |
2867 | } | |
2868 | ||
2869 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
2870 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2871 | PyObject * _resultobj; | |
2872 | bool _result; | |
2873 | wxWindow * _arg0; | |
2874 | PyObject * _argo0 = 0; | |
2875 | char *_kwnames[] = { "self", NULL }; | |
2876 | ||
2877 | self = self; | |
2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) | |
2879 | return NULL; | |
2880 | if (_argo0) { | |
2881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); | |
2884 | return NULL; | |
2885 | } | |
2886 | } | |
2887 | { | |
2888 | wxPy_BEGIN_ALLOW_THREADS; | |
2889 | _result = (bool )wxWindow_IsShown(_arg0); | |
2890 | ||
2891 | wxPy_END_ALLOW_THREADS; | |
2892 | } _resultobj = Py_BuildValue("i",_result); | |
2893 | return _resultobj; | |
2894 | } | |
2895 | ||
2896 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) | |
2897 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2898 | PyObject * _resultobj; | |
2899 | bool _result; | |
2900 | wxWindow * _arg0; | |
2901 | PyObject * _argo0 = 0; | |
2902 | char *_kwnames[] = { "self", NULL }; | |
2903 | ||
2904 | self = self; | |
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) | |
2906 | return NULL; | |
2907 | if (_argo0) { | |
2908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); | |
2911 | return NULL; | |
2912 | } | |
2913 | } | |
2914 | { | |
2915 | wxPy_BEGIN_ALLOW_THREADS; | |
2916 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2917 | ||
2918 | wxPy_END_ALLOW_THREADS; | |
2919 | } _resultobj = Py_BuildValue("i",_result); | |
2920 | return _resultobj; | |
2921 | } | |
2922 | ||
2923 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) | |
2924 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2925 | PyObject * _resultobj; | |
2926 | wxWindow * _arg0; | |
2927 | PyObject * _argo0 = 0; | |
2928 | char *_kwnames[] = { "self", NULL }; | |
2929 | ||
2930 | self = self; | |
2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) | |
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_Layout. Expected _wxWindow_p."); | |
2937 | return NULL; | |
2938 | } | |
2939 | } | |
2940 | { | |
2941 | wxPy_BEGIN_ALLOW_THREADS; | |
2942 | wxWindow_Layout(_arg0); | |
2943 | ||
2944 | wxPy_END_ALLOW_THREADS; | |
2945 | } Py_INCREF(Py_None); | |
2946 | _resultobj = Py_None; | |
2947 | return _resultobj; | |
2948 | } | |
2949 | ||
2950 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
2951 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2952 | PyObject * _resultobj; | |
2953 | bool _result; | |
2954 | wxWindow * _arg0; | |
2955 | wxWindow * _arg1; | |
2956 | wxString * _arg2; | |
2957 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; | |
2958 | PyObject * _argo0 = 0; | |
2959 | PyObject * _argo1 = 0; | |
2960 | PyObject * _obj2 = 0; | |
2961 | PyObject * _argo3 = 0; | |
2962 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; | |
2963 | ||
2964 | self = self; | |
2965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) | |
2966 | return NULL; | |
2967 | if (_argo0) { | |
2968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
2971 | return NULL; | |
2972 | } | |
2973 | } | |
2974 | if (_argo1) { | |
2975 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2976 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
2978 | return NULL; | |
2979 | } | |
2980 | } | |
2981 | { | |
2982 | #if PYTHON_API_VERSION >= 1009 | |
2983 | char* tmpPtr; int tmpSize; | |
2984 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
2985 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2986 | return NULL; | |
2987 | } | |
2988 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2989 | return NULL; | |
2990 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2991 | #else | |
2992 | if (!PyString_Check(_obj2)) { | |
2993 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2994 | return NULL; | |
2995 | } | |
2996 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
2997 | #endif | |
2998 | } | |
2999 | if (_argo3) { | |
3000 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3001 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
3002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); | |
3003 | return NULL; | |
3004 | } | |
3005 | } | |
3006 | { | |
3007 | wxPy_BEGIN_ALLOW_THREADS; | |
3008 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3009 | ||
3010 | wxPy_END_ALLOW_THREADS; | |
3011 | } _resultobj = Py_BuildValue("i",_result); | |
3012 | { | |
3013 | if (_obj2) | |
3014 | delete _arg2; | |
3015 | } | |
3016 | return _resultobj; | |
3017 | } | |
3018 | ||
3019 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
3020 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3021 | PyObject * _resultobj; | |
3022 | wxWindow * _arg0; | |
3023 | PyObject * _argo0 = 0; | |
3024 | char *_kwnames[] = { "self", NULL }; | |
3025 | ||
3026 | self = self; | |
3027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) | |
3028 | return NULL; | |
3029 | if (_argo0) { | |
3030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); | |
3033 | return NULL; | |
3034 | } | |
3035 | } | |
3036 | { | |
3037 | wxPy_BEGIN_ALLOW_THREADS; | |
3038 | wxWindow_Lower(_arg0); | |
3039 | ||
3040 | wxPy_END_ALLOW_THREADS; | |
3041 | } Py_INCREF(Py_None); | |
3042 | _resultobj = Py_None; | |
3043 | return _resultobj; | |
3044 | } | |
3045 | ||
3046 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
3047 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3048 | PyObject * _resultobj; | |
3049 | wxWindow * _arg0; | |
3050 | bool _arg1; | |
3051 | PyObject * _argo0 = 0; | |
3052 | int tempbool1; | |
3053 | char *_kwnames[] = { "self","flag", NULL }; | |
3054 | ||
3055 | self = self; | |
3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
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_MakeModal. Expected _wxWindow_p."); | |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
3065 | _arg1 = (bool ) tempbool1; | |
3066 | { | |
3067 | wxPy_BEGIN_ALLOW_THREADS; | |
3068 | wxWindow_MakeModal(_arg0,_arg1); | |
3069 | ||
3070 | wxPy_END_ALLOW_THREADS; | |
3071 | } Py_INCREF(Py_None); | |
3072 | _resultobj = Py_None; | |
3073 | return _resultobj; | |
3074 | } | |
3075 | ||
3076 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3077 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3078 | PyObject * _resultobj; | |
3079 | wxWindow * _arg0; | |
3080 | int _arg1; | |
3081 | int _arg2; | |
3082 | PyObject * _argo0 = 0; | |
3083 | char *_kwnames[] = { "self","x","y", NULL }; | |
3084 | ||
3085 | self = self; | |
3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3087 | return NULL; | |
3088 | if (_argo0) { | |
3089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); | |
3092 | return NULL; | |
3093 | } | |
3094 | } | |
3095 | { | |
3096 | wxPy_BEGIN_ALLOW_THREADS; | |
3097 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3098 | ||
3099 | wxPy_END_ALLOW_THREADS; | |
3100 | } Py_INCREF(Py_None); | |
3101 | _resultobj = Py_None; | |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3106 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject * _resultobj; | |
3108 | wxWindow * _arg0; | |
3109 | wxPoint * _arg1; | |
3110 | PyObject * _argo0 = 0; | |
3111 | wxPoint temp; | |
3112 | PyObject * _obj1 = 0; | |
3113 | char *_kwnames[] = { "self","point", NULL }; | |
3114 | ||
3115 | self = self; | |
3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) | |
3117 | return NULL; | |
3118 | if (_argo0) { | |
3119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); | |
3122 | return NULL; | |
3123 | } | |
3124 | } | |
3125 | { | |
3126 | _arg1 = &temp; | |
3127 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3128 | return NULL; | |
3129 | } | |
3130 | { | |
3131 | wxPy_BEGIN_ALLOW_THREADS; | |
3132 | wxWindow_Move(_arg0,*_arg1); | |
3133 | ||
3134 | wxPy_END_ALLOW_THREADS; | |
3135 | } Py_INCREF(Py_None); | |
3136 | _resultobj = Py_None; | |
3137 | return _resultobj; | |
3138 | } | |
3139 | ||
3140 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) | |
3141 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject * _resultobj; | |
3143 | wxEvtHandler * _result; | |
3144 | wxWindow * _arg0; | |
3145 | bool _arg1 = (bool ) FALSE; | |
3146 | PyObject * _argo0 = 0; | |
3147 | int tempbool1 = (int) FALSE; | |
3148 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3149 | char _ptemp[128]; | |
3150 | ||
3151 | self = self; | |
3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3153 | return NULL; | |
3154 | if (_argo0) { | |
3155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3158 | return NULL; | |
3159 | } | |
3160 | } | |
3161 | _arg1 = (bool ) tempbool1; | |
3162 | { | |
3163 | wxPy_BEGIN_ALLOW_THREADS; | |
3164 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3165 | ||
3166 | wxPy_END_ALLOW_THREADS; | |
3167 | } if (_result) { | |
3168 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3169 | _resultobj = Py_BuildValue("s",_ptemp); | |
3170 | } else { | |
3171 | Py_INCREF(Py_None); | |
3172 | _resultobj = Py_None; | |
3173 | } | |
3174 | return _resultobj; | |
3175 | } | |
3176 | ||
3177 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3178 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3179 | PyObject * _resultobj; | |
3180 | wxWindow * _arg0; | |
3181 | wxEvtHandler * _arg1; | |
3182 | PyObject * _argo0 = 0; | |
3183 | PyObject * _argo1 = 0; | |
3184 | char *_kwnames[] = { "self","handler", NULL }; | |
3185 | ||
3186 | self = self; | |
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3188 | return NULL; | |
3189 | if (_argo0) { | |
3190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3193 | return NULL; | |
3194 | } | |
3195 | } | |
3196 | if (_argo1) { | |
3197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3200 | return NULL; | |
3201 | } | |
3202 | } | |
3203 | { | |
3204 | wxPy_BEGIN_ALLOW_THREADS; | |
3205 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3206 | ||
3207 | wxPy_END_ALLOW_THREADS; | |
3208 | } Py_INCREF(Py_None); | |
3209 | _resultobj = Py_None; | |
3210 | return _resultobj; | |
3211 | } | |
3212 | ||
3213 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) | |
3214 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3215 | PyObject * _resultobj; | |
3216 | bool _result; | |
3217 | wxWindow * _arg0; | |
3218 | wxMenu * _arg1; | |
3219 | int _arg2; | |
3220 | int _arg3; | |
3221 | PyObject * _argo0 = 0; | |
3222 | PyObject * _argo1 = 0; | |
3223 | char *_kwnames[] = { "self","menu","x","y", NULL }; | |
3224 | ||
3225 | self = self; | |
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
3227 | return NULL; | |
3228 | if (_argo0) { | |
3229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); | |
3232 | return NULL; | |
3233 | } | |
3234 | } | |
3235 | if (_argo1) { | |
3236 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3237 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); | |
3239 | return NULL; | |
3240 | } | |
3241 | } | |
3242 | { | |
3243 | wxPy_BEGIN_ALLOW_THREADS; | |
3244 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3245 | ||
3246 | wxPy_END_ALLOW_THREADS; | |
3247 | } _resultobj = Py_BuildValue("i",_result); | |
3248 | return _resultobj; | |
3249 | } | |
3250 | ||
3251 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
3252 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject * _resultobj; | |
3254 | bool _result; | |
3255 | wxWindow * _arg0; | |
3256 | wxMenu * _arg1; | |
3257 | wxPoint * _arg2; | |
3258 | PyObject * _argo0 = 0; | |
3259 | PyObject * _argo1 = 0; | |
3260 | wxPoint temp; | |
3261 | PyObject * _obj2 = 0; | |
3262 | char *_kwnames[] = { "self","menu","pos", NULL }; | |
3263 | ||
3264 | self = self; | |
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3266 | return NULL; | |
3267 | if (_argo0) { | |
3268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); | |
3271 | return NULL; | |
3272 | } | |
3273 | } | |
3274 | if (_argo1) { | |
3275 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3276 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); | |
3278 | return NULL; | |
3279 | } | |
3280 | } | |
3281 | { | |
3282 | _arg2 = &temp; | |
3283 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3284 | return NULL; | |
3285 | } | |
3286 | { | |
3287 | wxPy_BEGIN_ALLOW_THREADS; | |
3288 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); | |
3289 | ||
3290 | wxPy_END_ALLOW_THREADS; | |
3291 | } _resultobj = Py_BuildValue("i",_result); | |
3292 | return _resultobj; | |
3293 | } | |
3294 | ||
3295 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
3296 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject * _resultobj; | |
3298 | wxWindow * _arg0; | |
3299 | PyObject * _argo0 = 0; | |
3300 | char *_kwnames[] = { "self", NULL }; | |
3301 | ||
3302 | self = self; | |
3303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) | |
3304 | return NULL; | |
3305 | if (_argo0) { | |
3306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); | |
3309 | return NULL; | |
3310 | } | |
3311 | } | |
3312 | { | |
3313 | wxPy_BEGIN_ALLOW_THREADS; | |
3314 | wxWindow_Raise(_arg0); | |
3315 | ||
3316 | wxPy_END_ALLOW_THREADS; | |
3317 | } Py_INCREF(Py_None); | |
3318 | _resultobj = Py_None; | |
3319 | return _resultobj; | |
3320 | } | |
3321 | ||
3322 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
3323 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3324 | PyObject * _resultobj; | |
3325 | wxWindow * _arg0; | |
3326 | bool _arg1 = (bool ) TRUE; | |
3327 | wxRect * _arg2 = (wxRect *) NULL; | |
3328 | PyObject * _argo0 = 0; | |
3329 | int tempbool1 = (int) TRUE; | |
3330 | wxRect temp; | |
3331 | PyObject * _obj2 = 0; | |
3332 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; | |
3333 | ||
3334 | self = self; | |
3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) | |
3336 | return NULL; | |
3337 | if (_argo0) { | |
3338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); | |
3341 | return NULL; | |
3342 | } | |
3343 | } | |
3344 | _arg1 = (bool ) tempbool1; | |
3345 | if (_obj2) | |
3346 | { | |
3347 | _arg2 = &temp; | |
3348 | if (! wxRect_helper(_obj2, &_arg2)) | |
3349 | return NULL; | |
3350 | } | |
3351 | { | |
3352 | wxPy_BEGIN_ALLOW_THREADS; | |
3353 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3354 | ||
3355 | wxPy_END_ALLOW_THREADS; | |
3356 | } Py_INCREF(Py_None); | |
3357 | _resultobj = Py_None; | |
3358 | return _resultobj; | |
3359 | } | |
3360 | ||
3361 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
3362 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3363 | PyObject * _resultobj; | |
3364 | wxWindow * _arg0; | |
3365 | PyObject * _argo0 = 0; | |
3366 | char *_kwnames[] = { "self", NULL }; | |
3367 | ||
3368 | self = self; | |
3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
3370 | return NULL; | |
3371 | if (_argo0) { | |
3372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
3375 | return NULL; | |
3376 | } | |
3377 | } | |
3378 | { | |
3379 | wxPy_BEGIN_ALLOW_THREADS; | |
3380 | wxWindow_ReleaseMouse(_arg0); | |
3381 | ||
3382 | wxPy_END_ALLOW_THREADS; | |
3383 | } Py_INCREF(Py_None); | |
3384 | _resultobj = Py_None; | |
3385 | return _resultobj; | |
3386 | } | |
3387 | ||
3388 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) | |
3389 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3390 | PyObject * _resultobj; | |
3391 | wxWindow * _arg0; | |
3392 | wxWindow * _arg1; | |
3393 | PyObject * _argo0 = 0; | |
3394 | PyObject * _argo1 = 0; | |
3395 | char *_kwnames[] = { "self","child", NULL }; | |
3396 | ||
3397 | self = self; | |
3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3399 | return NULL; | |
3400 | if (_argo0) { | |
3401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3404 | return NULL; | |
3405 | } | |
3406 | } | |
3407 | if (_argo1) { | |
3408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3411 | return NULL; | |
3412 | } | |
3413 | } | |
3414 | { | |
3415 | wxPy_BEGIN_ALLOW_THREADS; | |
3416 | wxWindow_RemoveChild(_arg0,_arg1); | |
3417 | ||
3418 | wxPy_END_ALLOW_THREADS; | |
3419 | } Py_INCREF(Py_None); | |
3420 | _resultobj = Py_None; | |
3421 | return _resultobj; | |
3422 | } | |
3423 | ||
3424 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) | |
3425 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject * _resultobj; | |
3427 | bool _result; | |
3428 | wxWindow * _arg0; | |
3429 | wxWindow * _arg1; | |
3430 | PyObject * _argo0 = 0; | |
3431 | PyObject * _argo1 = 0; | |
3432 | char *_kwnames[] = { "self","newParent", NULL }; | |
3433 | ||
3434 | self = self; | |
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) | |
3436 | return NULL; | |
3437 | if (_argo0) { | |
3438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3441 | return NULL; | |
3442 | } | |
3443 | } | |
3444 | if (_argo1) { | |
3445 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3446 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3448 | return NULL; | |
3449 | } | |
3450 | } | |
3451 | { | |
3452 | wxPy_BEGIN_ALLOW_THREADS; | |
3453 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3454 | ||
3455 | wxPy_END_ALLOW_THREADS; | |
3456 | } _resultobj = Py_BuildValue("i",_result); | |
3457 | return _resultobj; | |
3458 | } | |
3459 | ||
3460 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) | |
3461 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3462 | PyObject * _resultobj; | |
3463 | wxWindow * _arg0; | |
3464 | int * _arg1; | |
3465 | int * _arg2; | |
3466 | PyObject * _argo0 = 0; | |
3467 | int temp; | |
3468 | PyObject * _obj1 = 0; | |
3469 | int temp0; | |
3470 | PyObject * _obj2 = 0; | |
3471 | char *_kwnames[] = { "self","x","y", NULL }; | |
3472 | ||
3473 | self = self; | |
3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3475 | return NULL; | |
3476 | if (_argo0) { | |
3477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); | |
3480 | return NULL; | |
3481 | } | |
3482 | } | |
3483 | { | |
3484 | temp = (int) PyInt_AsLong(_obj1); | |
3485 | _arg1 = &temp; | |
3486 | } | |
3487 | { | |
3488 | temp0 = (int) PyInt_AsLong(_obj2); | |
3489 | _arg2 = &temp0; | |
3490 | } | |
3491 | { | |
3492 | wxPy_BEGIN_ALLOW_THREADS; | |
3493 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3494 | ||
3495 | wxPy_END_ALLOW_THREADS; | |
3496 | } Py_INCREF(Py_None); | |
3497 | _resultobj = Py_None; | |
3498 | { | |
3499 | PyObject *o; | |
3500 | o = PyInt_FromLong((long) (*_arg1)); | |
3501 | _resultobj = t_output_helper(_resultobj, o); | |
3502 | } | |
3503 | { | |
3504 | PyObject *o; | |
3505 | o = PyInt_FromLong((long) (*_arg2)); | |
3506 | _resultobj = t_output_helper(_resultobj, o); | |
3507 | } | |
3508 | return _resultobj; | |
3509 | } | |
3510 | ||
3511 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) | |
3512 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3513 | PyObject * _resultobj; | |
3514 | wxPoint * _result; | |
3515 | wxWindow * _arg0; | |
3516 | wxPoint * _arg1; | |
3517 | PyObject * _argo0 = 0; | |
3518 | wxPoint temp; | |
3519 | PyObject * _obj1 = 0; | |
3520 | char *_kwnames[] = { "self","pt", NULL }; | |
3521 | char _ptemp[128]; | |
3522 | ||
3523 | self = self; | |
3524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) | |
3525 | return NULL; | |
3526 | if (_argo0) { | |
3527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); | |
3530 | return NULL; | |
3531 | } | |
3532 | } | |
3533 | { | |
3534 | _arg1 = &temp; | |
3535 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3536 | return NULL; | |
3537 | } | |
3538 | { | |
3539 | wxPy_BEGIN_ALLOW_THREADS; | |
3540 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3541 | ||
3542 | wxPy_END_ALLOW_THREADS; | |
3543 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3544 | _resultobj = Py_BuildValue("s",_ptemp); | |
3545 | return _resultobj; | |
3546 | } | |
3547 | ||
3548 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) | |
3549 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3550 | PyObject * _resultobj; | |
3551 | wxWindow * _arg0; | |
3552 | int _arg1; | |
3553 | int _arg2; | |
3554 | wxRect * _arg3 = (wxRect *) NULL; | |
3555 | PyObject * _argo0 = 0; | |
3556 | wxRect temp; | |
3557 | PyObject * _obj3 = 0; | |
3558 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; | |
3559 | ||
3560 | self = self; | |
3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3562 | return NULL; | |
3563 | if (_argo0) { | |
3564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); | |
3567 | return NULL; | |
3568 | } | |
3569 | } | |
3570 | if (_obj3) | |
3571 | { | |
3572 | _arg3 = &temp; | |
3573 | if (! wxRect_helper(_obj3, &_arg3)) | |
3574 | return NULL; | |
3575 | } | |
3576 | { | |
3577 | wxPy_BEGIN_ALLOW_THREADS; | |
3578 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3579 | ||
3580 | wxPy_END_ALLOW_THREADS; | |
3581 | } Py_INCREF(Py_None); | |
3582 | _resultobj = Py_None; | |
3583 | return _resultobj; | |
3584 | } | |
3585 | ||
3586 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) | |
3587 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3588 | PyObject * _resultobj; | |
3589 | wxWindow * _arg0; | |
3590 | wxAcceleratorTable * _arg1; | |
3591 | PyObject * _argo0 = 0; | |
3592 | PyObject * _argo1 = 0; | |
3593 | char *_kwnames[] = { "self","accel", NULL }; | |
3594 | ||
3595 | self = self; | |
3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
3597 | return NULL; | |
3598 | if (_argo0) { | |
3599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
3602 | return NULL; | |
3603 | } | |
3604 | } | |
3605 | if (_argo1) { | |
3606 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
3612 | { | |
3613 | wxPy_BEGIN_ALLOW_THREADS; | |
3614 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3615 | ||
3616 | wxPy_END_ALLOW_THREADS; | |
3617 | } Py_INCREF(Py_None); | |
3618 | _resultobj = Py_None; | |
3619 | return _resultobj; | |
3620 | } | |
3621 | ||
3622 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
3623 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3624 | PyObject * _resultobj; | |
3625 | wxWindow * _arg0; | |
3626 | bool _arg1; | |
3627 | PyObject * _argo0 = 0; | |
3628 | int tempbool1; | |
3629 | char *_kwnames[] = { "self","autoLayout", NULL }; | |
3630 | ||
3631 | self = self; | |
3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) | |
3633 | return NULL; | |
3634 | if (_argo0) { | |
3635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); | |
3638 | return NULL; | |
3639 | } | |
3640 | } | |
3641 | _arg1 = (bool ) tempbool1; | |
3642 | { | |
3643 | wxPy_BEGIN_ALLOW_THREADS; | |
3644 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3645 | ||
3646 | wxPy_END_ALLOW_THREADS; | |
3647 | } Py_INCREF(Py_None); | |
3648 | _resultobj = Py_None; | |
3649 | return _resultobj; | |
3650 | } | |
3651 | ||
3652 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) | |
3653 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3654 | PyObject * _resultobj; | |
3655 | bool _result; | |
3656 | wxWindow * _arg0; | |
3657 | PyObject * _argo0 = 0; | |
3658 | char *_kwnames[] = { "self", NULL }; | |
3659 | ||
3660 | self = self; | |
3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3662 | return NULL; | |
3663 | if (_argo0) { | |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
3670 | { | |
3671 | wxPy_BEGIN_ALLOW_THREADS; | |
3672 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3673 | ||
3674 | wxPy_END_ALLOW_THREADS; | |
3675 | } _resultobj = Py_BuildValue("i",_result); | |
3676 | return _resultobj; | |
3677 | } | |
3678 | ||
3679 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3680 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3681 | PyObject * _resultobj; | |
3682 | wxWindow * _arg0; | |
3683 | wxColour * _arg1; | |
3684 | PyObject * _argo0 = 0; | |
3685 | wxColour temp; | |
3686 | PyObject * _obj1 = 0; | |
3687 | char *_kwnames[] = { "self","colour", NULL }; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3691 | return NULL; | |
3692 | if (_argo0) { | |
3693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
3699 | { | |
3700 | _arg1 = &temp; | |
3701 | if (! wxColour_helper(_obj1, &_arg1)) | |
3702 | return NULL; | |
3703 | } | |
3704 | { | |
3705 | wxPy_BEGIN_ALLOW_THREADS; | |
3706 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3707 | ||
3708 | wxPy_END_ALLOW_THREADS; | |
3709 | } Py_INCREF(Py_None); | |
3710 | _resultobj = Py_None; | |
3711 | return _resultobj; | |
3712 | } | |
3713 | ||
3714 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
3715 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3716 | PyObject * _resultobj; | |
3717 | wxWindow * _arg0; | |
3718 | wxLayoutConstraints * _arg1; | |
3719 | PyObject * _argo0 = 0; | |
3720 | PyObject * _argo1 = 0; | |
3721 | char *_kwnames[] = { "self","constraints", NULL }; | |
3722 | ||
3723 | self = self; | |
3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) | |
3725 | return NULL; | |
3726 | if (_argo0) { | |
3727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); | |
3730 | return NULL; | |
3731 | } | |
3732 | } | |
3733 | if (_argo1) { | |
3734 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3735 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); | |
3737 | return NULL; | |
3738 | } | |
3739 | } | |
3740 | { | |
3741 | wxPy_BEGIN_ALLOW_THREADS; | |
3742 | wxWindow_SetConstraints(_arg0,_arg1); | |
3743 | ||
3744 | wxPy_END_ALLOW_THREADS; | |
3745 | } Py_INCREF(Py_None); | |
3746 | _resultobj = Py_None; | |
3747 | return _resultobj; | |
3748 | } | |
3749 | ||
3750 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) | |
3751 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3752 | PyObject * _resultobj; | |
3753 | wxWindow * _arg0; | |
3754 | wxLayoutConstraints * _arg1; | |
3755 | PyObject * _argo0 = 0; | |
3756 | PyObject * _argo1 = 0; | |
3757 | char *_kwnames[] = { "self","constraints", NULL }; | |
3758 | ||
3759 | self = self; | |
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3761 | return NULL; | |
3762 | if (_argo0) { | |
3763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3766 | return NULL; | |
3767 | } | |
3768 | } | |
3769 | if (_argo1) { | |
3770 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3771 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3773 | return NULL; | |
3774 | } | |
3775 | } | |
3776 | { | |
3777 | wxPy_BEGIN_ALLOW_THREADS; | |
3778 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3779 | ||
3780 | wxPy_END_ALLOW_THREADS; | |
3781 | } Py_INCREF(Py_None); | |
3782 | _resultobj = Py_None; | |
3783 | return _resultobj; | |
3784 | } | |
3785 | ||
3786 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) | |
3787 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3788 | PyObject * _resultobj; | |
3789 | wxWindow * _arg0; | |
3790 | PyObject * _argo0 = 0; | |
3791 | char *_kwnames[] = { "self", NULL }; | |
3792 | ||
3793 | self = self; | |
3794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) | |
3795 | return NULL; | |
3796 | if (_argo0) { | |
3797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); | |
3800 | return NULL; | |
3801 | } | |
3802 | } | |
3803 | { | |
3804 | wxPy_BEGIN_ALLOW_THREADS; | |
3805 | wxWindow_SetFocus(_arg0); | |
3806 | ||
3807 | wxPy_END_ALLOW_THREADS; | |
3808 | } Py_INCREF(Py_None); | |
3809 | _resultobj = Py_None; | |
3810 | return _resultobj; | |
3811 | } | |
3812 | ||
3813 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) | |
3814 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3815 | PyObject * _resultobj; | |
3816 | bool _result; | |
3817 | wxWindow * _arg0; | |
3818 | PyObject * _argo0 = 0; | |
3819 | char *_kwnames[] = { "self", NULL }; | |
3820 | ||
3821 | self = self; | |
3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3823 | return NULL; | |
3824 | if (_argo0) { | |
3825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3828 | return NULL; | |
3829 | } | |
3830 | } | |
3831 | { | |
3832 | wxPy_BEGIN_ALLOW_THREADS; | |
3833 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3834 | ||
3835 | wxPy_END_ALLOW_THREADS; | |
3836 | } _resultobj = Py_BuildValue("i",_result); | |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
3840 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
3841 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject * _resultobj; | |
3843 | wxWindow * _arg0; | |
3844 | wxFont * _arg1; | |
3845 | PyObject * _argo0 = 0; | |
3846 | PyObject * _argo1 = 0; | |
3847 | char *_kwnames[] = { "self","font", NULL }; | |
3848 | ||
3849 | self = self; | |
3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) | |
3851 | return NULL; | |
3852 | if (_argo0) { | |
3853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); | |
3856 | return NULL; | |
3857 | } | |
3858 | } | |
3859 | if (_argo1) { | |
3860 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3861 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); | |
3863 | return NULL; | |
3864 | } | |
3865 | } | |
3866 | { | |
3867 | wxPy_BEGIN_ALLOW_THREADS; | |
3868 | wxWindow_SetFont(_arg0,*_arg1); | |
3869 | ||
3870 | wxPy_END_ALLOW_THREADS; | |
3871 | } Py_INCREF(Py_None); | |
3872 | _resultobj = Py_None; | |
3873 | return _resultobj; | |
3874 | } | |
3875 | ||
3876 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
3877 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject * _resultobj; | |
3879 | wxWindow * _arg0; | |
3880 | wxColour * _arg1; | |
3881 | PyObject * _argo0 = 0; | |
3882 | wxColour temp; | |
3883 | PyObject * _obj1 = 0; | |
3884 | char *_kwnames[] = { "self","colour", NULL }; | |
3885 | ||
3886 | self = self; | |
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
3888 | return NULL; | |
3889 | if (_argo0) { | |
3890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); | |
3893 | return NULL; | |
3894 | } | |
3895 | } | |
3896 | { | |
3897 | _arg1 = &temp; | |
3898 | if (! wxColour_helper(_obj1, &_arg1)) | |
3899 | return NULL; | |
3900 | } | |
3901 | { | |
3902 | wxPy_BEGIN_ALLOW_THREADS; | |
3903 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3904 | ||
3905 | wxPy_END_ALLOW_THREADS; | |
3906 | } Py_INCREF(Py_None); | |
3907 | _resultobj = Py_None; | |
3908 | return _resultobj; | |
3909 | } | |
3910 | ||
3911 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
3912 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3913 | PyObject * _resultobj; | |
3914 | wxWindow * _arg0; | |
3915 | int _arg1; | |
3916 | PyObject * _argo0 = 0; | |
3917 | char *_kwnames[] = { "self","id", NULL }; | |
3918 | ||
3919 | self = self; | |
3920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) | |
3921 | return NULL; | |
3922 | if (_argo0) { | |
3923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); | |
3926 | return NULL; | |
3927 | } | |
3928 | } | |
3929 | { | |
3930 | wxPy_BEGIN_ALLOW_THREADS; | |
3931 | wxWindow_SetId(_arg0,_arg1); | |
3932 | ||
3933 | wxPy_END_ALLOW_THREADS; | |
3934 | } Py_INCREF(Py_None); | |
3935 | _resultobj = Py_None; | |
3936 | return _resultobj; | |
3937 | } | |
3938 | ||
3939 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
3940 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3941 | PyObject * _resultobj; | |
3942 | wxWindow * _arg0; | |
3943 | wxString * _arg1; | |
3944 | PyObject * _argo0 = 0; | |
3945 | PyObject * _obj1 = 0; | |
3946 | char *_kwnames[] = { "self","name", NULL }; | |
3947 | ||
3948 | self = self; | |
3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) | |
3950 | return NULL; | |
3951 | if (_argo0) { | |
3952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); | |
3955 | return NULL; | |
3956 | } | |
3957 | } | |
3958 | { | |
3959 | #if PYTHON_API_VERSION >= 1009 | |
3960 | char* tmpPtr; int tmpSize; | |
3961 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3962 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3963 | return NULL; | |
3964 | } | |
3965 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3966 | return NULL; | |
3967 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3968 | #else | |
3969 | if (!PyString_Check(_obj1)) { | |
3970 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3971 | return NULL; | |
3972 | } | |
3973 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3974 | #endif | |
3975 | } | |
3976 | { | |
3977 | wxPy_BEGIN_ALLOW_THREADS; | |
3978 | wxWindow_SetName(_arg0,*_arg1); | |
3979 | ||
3980 | wxPy_END_ALLOW_THREADS; | |
3981 | } Py_INCREF(Py_None); | |
3982 | _resultobj = Py_None; | |
3983 | { | |
3984 | if (_obj1) | |
3985 | delete _arg1; | |
3986 | } | |
3987 | return _resultobj; | |
3988 | } | |
3989 | ||
3990 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3991 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3992 | PyObject * _resultobj; | |
3993 | wxWindow * _arg0; | |
3994 | int _arg1; | |
3995 | int _arg2; | |
3996 | int _arg3; | |
3997 | int _arg4; | |
3998 | int _arg5 = (int ) TRUE; | |
3999 | PyObject * _argo0 = 0; | |
4000 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; | |
4001 | ||
4002 | self = self; | |
4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4004 | return NULL; | |
4005 | if (_argo0) { | |
4006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); | |
4009 | return NULL; | |
4010 | } | |
4011 | } | |
4012 | { | |
4013 | wxPy_BEGIN_ALLOW_THREADS; | |
4014 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4015 | ||
4016 | wxPy_END_ALLOW_THREADS; | |
4017 | } Py_INCREF(Py_None); | |
4018 | _resultobj = Py_None; | |
4019 | return _resultobj; | |
4020 | } | |
4021 | ||
4022 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
4023 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject * _resultobj; | |
4025 | wxWindow * _arg0; | |
4026 | int _arg1; | |
4027 | int _arg2; | |
4028 | bool _arg3 = (bool ) TRUE; | |
4029 | PyObject * _argo0 = 0; | |
4030 | int tempbool3 = (int) TRUE; | |
4031 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; | |
4032 | ||
4033 | self = self; | |
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
4035 | return NULL; | |
4036 | if (_argo0) { | |
4037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); | |
4040 | return NULL; | |
4041 | } | |
4042 | } | |
4043 | _arg3 = (bool ) tempbool3; | |
4044 | { | |
4045 | wxPy_BEGIN_ALLOW_THREADS; | |
4046 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4047 | ||
4048 | wxPy_END_ALLOW_THREADS; | |
4049 | } Py_INCREF(Py_None); | |
4050 | _resultobj = Py_None; | |
4051 | return _resultobj; | |
4052 | } | |
4053 | ||
4054 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4055 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4056 | PyObject * _resultobj; | |
4057 | wxWindow * _arg0; | |
4058 | int _arg1; | |
4059 | int _arg2; | |
4060 | int _arg3; | |
4061 | int _arg4; | |
4062 | int _arg5 = (int ) wxSIZE_AUTO; | |
4063 | PyObject * _argo0 = 0; | |
4064 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
4065 | ||
4066 | self = self; | |
4067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4068 | return NULL; | |
4069 | if (_argo0) { | |
4070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); | |
4073 | return NULL; | |
4074 | } | |
4075 | } | |
4076 | { | |
4077 | wxPy_BEGIN_ALLOW_THREADS; | |
4078 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4079 | ||
4080 | wxPy_END_ALLOW_THREADS; | |
4081 | } Py_INCREF(Py_None); | |
4082 | _resultobj = Py_None; | |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
4086 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
4087 | self->SetSize(size); | |
4088 | } | |
4089 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4090 | PyObject * _resultobj; | |
4091 | wxWindow * _arg0; | |
4092 | wxSize * _arg1; | |
4093 | PyObject * _argo0 = 0; | |
4094 | wxSize temp; | |
4095 | PyObject * _obj1 = 0; | |
4096 | char *_kwnames[] = { "self","size", NULL }; | |
4097 | ||
4098 | self = self; | |
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) | |
4100 | return NULL; | |
4101 | if (_argo0) { | |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); | |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
4108 | { | |
4109 | _arg1 = &temp; | |
4110 | if (! wxSize_helper(_obj1, &_arg1)) | |
4111 | return NULL; | |
4112 | } | |
4113 | { | |
4114 | wxPy_BEGIN_ALLOW_THREADS; | |
4115 | wxWindow_SetSize(_arg0,*_arg1); | |
4116 | ||
4117 | wxPy_END_ALLOW_THREADS; | |
4118 | } Py_INCREF(Py_None); | |
4119 | _resultobj = Py_None; | |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
4123 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
4124 | self->Move(pos); | |
4125 | } | |
4126 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject * _resultobj; | |
4128 | wxWindow * _arg0; | |
4129 | wxPoint * _arg1; | |
4130 | PyObject * _argo0 = 0; | |
4131 | wxPoint temp; | |
4132 | PyObject * _obj1 = 0; | |
4133 | char *_kwnames[] = { "self","pos", NULL }; | |
4134 | ||
4135 | self = self; | |
4136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) | |
4137 | return NULL; | |
4138 | if (_argo0) { | |
4139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); | |
4142 | return NULL; | |
4143 | } | |
4144 | } | |
4145 | { | |
4146 | _arg1 = &temp; | |
4147 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4148 | return NULL; | |
4149 | } | |
4150 | { | |
4151 | wxPy_BEGIN_ALLOW_THREADS; | |
4152 | wxWindow_SetPosition(_arg0,*_arg1); | |
4153 | ||
4154 | wxPy_END_ALLOW_THREADS; | |
4155 | } Py_INCREF(Py_None); | |
4156 | _resultobj = Py_None; | |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
4160 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { | |
4161 | self->SetSize(rect, sizeFlags); | |
4162 | } | |
4163 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4164 | PyObject * _resultobj; | |
4165 | wxWindow * _arg0; | |
4166 | wxRect * _arg1; | |
4167 | int _arg2 = (int ) wxSIZE_AUTO; | |
4168 | PyObject * _argo0 = 0; | |
4169 | wxRect temp; | |
4170 | PyObject * _obj1 = 0; | |
4171 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4172 | ||
4173 | self = self; | |
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4175 | return NULL; | |
4176 | if (_argo0) { | |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
4183 | { | |
4184 | _arg1 = &temp; | |
4185 | if (! wxRect_helper(_obj1, &_arg1)) | |
4186 | return NULL; | |
4187 | } | |
4188 | { | |
4189 | wxPy_BEGIN_ALLOW_THREADS; | |
4190 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4191 | ||
4192 | wxPy_END_ALLOW_THREADS; | |
4193 | } Py_INCREF(Py_None); | |
4194 | _resultobj = Py_None; | |
4195 | return _resultobj; | |
4196 | } | |
4197 | ||
4198 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4199 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject * _resultobj; | |
4201 | wxWindow * _arg0; | |
4202 | int _arg1 = (int ) -1; | |
4203 | int _arg2 = (int ) -1; | |
4204 | int _arg3 = (int ) -1; | |
4205 | int _arg4 = (int ) -1; | |
4206 | int _arg5 = (int ) -1; | |
4207 | int _arg6 = (int ) -1; | |
4208 | PyObject * _argo0 = 0; | |
4209 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; | |
4210 | ||
4211 | self = self; | |
4212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4213 | return NULL; | |
4214 | if (_argo0) { | |
4215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); | |
4218 | return NULL; | |
4219 | } | |
4220 | } | |
4221 | { | |
4222 | wxPy_BEGIN_ALLOW_THREADS; | |
4223 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4224 | ||
4225 | wxPy_END_ALLOW_THREADS; | |
4226 | } Py_INCREF(Py_None); | |
4227 | _resultobj = Py_None; | |
4228 | return _resultobj; | |
4229 | } | |
4230 | ||
4231 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) | |
4232 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4233 | PyObject * _resultobj; | |
4234 | wxWindow * _arg0; | |
4235 | int _arg1; | |
4236 | int _arg2; | |
4237 | PyObject * _argo0 = 0; | |
4238 | char *_kwnames[] = { "self","width","height", NULL }; | |
4239 | ||
4240 | self = self; | |
4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4242 | return NULL; | |
4243 | if (_argo0) { | |
4244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); | |
4247 | return NULL; | |
4248 | } | |
4249 | } | |
4250 | { | |
4251 | wxPy_BEGIN_ALLOW_THREADS; | |
4252 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4253 | ||
4254 | wxPy_END_ALLOW_THREADS; | |
4255 | } Py_INCREF(Py_None); | |
4256 | _resultobj = Py_None; | |
4257 | return _resultobj; | |
4258 | } | |
4259 | ||
4260 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
4261 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4262 | PyObject * _resultobj; | |
4263 | wxWindow * _arg0; | |
4264 | wxSize * _arg1; | |
4265 | PyObject * _argo0 = 0; | |
4266 | wxSize temp; | |
4267 | PyObject * _obj1 = 0; | |
4268 | char *_kwnames[] = { "self","size", NULL }; | |
4269 | ||
4270 | self = self; | |
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) | |
4272 | return NULL; | |
4273 | if (_argo0) { | |
4274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); | |
4277 | return NULL; | |
4278 | } | |
4279 | } | |
4280 | { | |
4281 | _arg1 = &temp; | |
4282 | if (! wxSize_helper(_obj1, &_arg1)) | |
4283 | return NULL; | |
4284 | } | |
4285 | { | |
4286 | wxPy_BEGIN_ALLOW_THREADS; | |
4287 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4288 | ||
4289 | wxPy_END_ALLOW_THREADS; | |
4290 | } Py_INCREF(Py_None); | |
4291 | _resultobj = Py_None; | |
4292 | return _resultobj; | |
4293 | } | |
4294 | ||
4295 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
4296 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject * _resultobj; | |
4298 | wxWindow * _arg0; | |
4299 | wxCursor * _arg1; | |
4300 | PyObject * _argo0 = 0; | |
4301 | PyObject * _argo1 = 0; | |
4302 | char *_kwnames[] = { "self","cursor", NULL }; | |
4303 | ||
4304 | self = self; | |
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) | |
4306 | return NULL; | |
4307 | if (_argo0) { | |
4308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); | |
4311 | return NULL; | |
4312 | } | |
4313 | } | |
4314 | if (_argo1) { | |
4315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
4317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); | |
4318 | return NULL; | |
4319 | } | |
4320 | } | |
4321 | { | |
4322 | wxPy_BEGIN_ALLOW_THREADS; | |
4323 | wxWindow_SetCursor(_arg0,*_arg1); | |
4324 | ||
4325 | wxPy_END_ALLOW_THREADS; | |
4326 | } Py_INCREF(Py_None); | |
4327 | _resultobj = Py_None; | |
4328 | return _resultobj; | |
4329 | } | |
4330 | ||
4331 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
4332 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4333 | PyObject * _resultobj; | |
4334 | wxWindow * _arg0; | |
4335 | wxEvtHandler * _arg1; | |
4336 | PyObject * _argo0 = 0; | |
4337 | PyObject * _argo1 = 0; | |
4338 | char *_kwnames[] = { "self","handler", NULL }; | |
4339 | ||
4340 | self = self; | |
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4342 | return NULL; | |
4343 | if (_argo0) { | |
4344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4347 | return NULL; | |
4348 | } | |
4349 | } | |
4350 | if (_argo1) { | |
4351 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4354 | return NULL; | |
4355 | } | |
4356 | } | |
4357 | { | |
4358 | wxPy_BEGIN_ALLOW_THREADS; | |
4359 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4360 | ||
4361 | wxPy_END_ALLOW_THREADS; | |
4362 | } Py_INCREF(Py_None); | |
4363 | _resultobj = Py_None; | |
4364 | return _resultobj; | |
4365 | } | |
4366 | ||
4367 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) | |
4368 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4369 | PyObject * _resultobj; | |
4370 | wxWindow * _arg0; | |
4371 | long _arg1; | |
4372 | PyObject * _argo0 = 0; | |
4373 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4374 | ||
4375 | self = self; | |
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4377 | return NULL; | |
4378 | if (_argo0) { | |
4379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4382 | return NULL; | |
4383 | } | |
4384 | } | |
4385 | { | |
4386 | wxPy_BEGIN_ALLOW_THREADS; | |
4387 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4388 | ||
4389 | wxPy_END_ALLOW_THREADS; | |
4390 | } Py_INCREF(Py_None); | |
4391 | _resultobj = Py_None; | |
4392 | return _resultobj; | |
4393 | } | |
4394 | ||
4395 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
4396 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4397 | PyObject * _resultobj; | |
4398 | wxWindow * _arg0; | |
4399 | wxString * _arg1; | |
4400 | PyObject * _argo0 = 0; | |
4401 | PyObject * _obj1 = 0; | |
4402 | char *_kwnames[] = { "self","title", NULL }; | |
4403 | ||
4404 | self = self; | |
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) | |
4406 | return NULL; | |
4407 | if (_argo0) { | |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); | |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
4414 | { | |
4415 | #if PYTHON_API_VERSION >= 1009 | |
4416 | char* tmpPtr; int tmpSize; | |
4417 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4418 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4419 | return NULL; | |
4420 | } | |
4421 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4422 | return NULL; | |
4423 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4424 | #else | |
4425 | if (!PyString_Check(_obj1)) { | |
4426 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4427 | return NULL; | |
4428 | } | |
4429 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4430 | #endif | |
4431 | } | |
4432 | { | |
4433 | wxPy_BEGIN_ALLOW_THREADS; | |
4434 | wxWindow_SetTitle(_arg0,*_arg1); | |
4435 | ||
4436 | wxPy_END_ALLOW_THREADS; | |
4437 | } Py_INCREF(Py_None); | |
4438 | _resultobj = Py_None; | |
4439 | { | |
4440 | if (_obj1) | |
4441 | delete _arg1; | |
4442 | } | |
4443 | return _resultobj; | |
4444 | } | |
4445 | ||
4446 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
4447 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4448 | PyObject * _resultobj; | |
4449 | bool _result; | |
4450 | wxWindow * _arg0; | |
4451 | bool _arg1; | |
4452 | PyObject * _argo0 = 0; | |
4453 | int tempbool1; | |
4454 | char *_kwnames[] = { "self","show", NULL }; | |
4455 | ||
4456 | self = self; | |
4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
4458 | return NULL; | |
4459 | if (_argo0) { | |
4460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); | |
4463 | return NULL; | |
4464 | } | |
4465 | } | |
4466 | _arg1 = (bool ) tempbool1; | |
4467 | { | |
4468 | wxPy_BEGIN_ALLOW_THREADS; | |
4469 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4470 | ||
4471 | wxPy_END_ALLOW_THREADS; | |
4472 | } _resultobj = Py_BuildValue("i",_result); | |
4473 | return _resultobj; | |
4474 | } | |
4475 | ||
4476 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
4477 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4478 | PyObject * _resultobj; | |
4479 | bool _result; | |
4480 | wxWindow * _arg0; | |
4481 | PyObject * _argo0 = 0; | |
4482 | char *_kwnames[] = { "self", NULL }; | |
4483 | ||
4484 | self = self; | |
4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) | |
4486 | return NULL; | |
4487 | if (_argo0) { | |
4488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); | |
4491 | return NULL; | |
4492 | } | |
4493 | } | |
4494 | { | |
4495 | wxPy_BEGIN_ALLOW_THREADS; | |
4496 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4497 | ||
4498 | wxPy_END_ALLOW_THREADS; | |
4499 | } _resultobj = Py_BuildValue("i",_result); | |
4500 | return _resultobj; | |
4501 | } | |
4502 | ||
4503 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
4504 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject * _resultobj; | |
4506 | bool _result; | |
4507 | wxWindow * _arg0; | |
4508 | PyObject * _argo0 = 0; | |
4509 | char *_kwnames[] = { "self", NULL }; | |
4510 | ||
4511 | self = self; | |
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) | |
4513 | return NULL; | |
4514 | if (_argo0) { | |
4515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); | |
4518 | return NULL; | |
4519 | } | |
4520 | } | |
4521 | { | |
4522 | wxPy_BEGIN_ALLOW_THREADS; | |
4523 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4524 | ||
4525 | wxPy_END_ALLOW_THREADS; | |
4526 | } _resultobj = Py_BuildValue("i",_result); | |
4527 | return _resultobj; | |
4528 | } | |
4529 | ||
4530 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
4531 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject * _resultobj; | |
4533 | bool _result; | |
4534 | wxWindow * _arg0; | |
4535 | PyObject * _argo0 = 0; | |
4536 | char *_kwnames[] = { "self", NULL }; | |
4537 | ||
4538 | self = self; | |
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) | |
4540 | return NULL; | |
4541 | if (_argo0) { | |
4542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); | |
4545 | return NULL; | |
4546 | } | |
4547 | } | |
4548 | { | |
4549 | wxPy_BEGIN_ALLOW_THREADS; | |
4550 | _result = (bool )wxWindow_Validate(_arg0); | |
4551 | ||
4552 | wxPy_END_ALLOW_THREADS; | |
4553 | } _resultobj = Py_BuildValue("i",_result); | |
4554 | return _resultobj; | |
4555 | } | |
4556 | ||
4557 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
4558 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject * _resultobj; | |
4560 | wxWindow * _arg0; | |
4561 | int _arg1; | |
4562 | int _arg2; | |
4563 | PyObject * _argo0 = 0; | |
4564 | char *_kwnames[] = { "self","x","y", NULL }; | |
4565 | ||
4566 | self = self; | |
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4568 | return NULL; | |
4569 | if (_argo0) { | |
4570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
4573 | return NULL; | |
4574 | } | |
4575 | } | |
4576 | { | |
4577 | wxPy_BEGIN_ALLOW_THREADS; | |
4578 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4579 | ||
4580 | wxPy_END_ALLOW_THREADS; | |
4581 | } Py_INCREF(Py_None); | |
4582 | _resultobj = Py_None; | |
4583 | return _resultobj; | |
4584 | } | |
4585 | ||
4586 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4587 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4588 | PyObject * _resultobj; | |
4589 | wxPoint * _result; | |
4590 | wxWindow * _arg0; | |
4591 | wxPoint * _arg1; | |
4592 | PyObject * _argo0 = 0; | |
4593 | wxPoint temp; | |
4594 | PyObject * _obj1 = 0; | |
4595 | char *_kwnames[] = { "self","pt", NULL }; | |
4596 | char _ptemp[128]; | |
4597 | ||
4598 | self = self; | |
4599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) | |
4600 | return NULL; | |
4601 | if (_argo0) { | |
4602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); | |
4605 | return NULL; | |
4606 | } | |
4607 | } | |
4608 | { | |
4609 | _arg1 = &temp; | |
4610 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4611 | return NULL; | |
4612 | } | |
4613 | { | |
4614 | wxPy_BEGIN_ALLOW_THREADS; | |
4615 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4616 | ||
4617 | wxPy_END_ALLOW_THREADS; | |
4618 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4619 | _resultobj = Py_BuildValue("s",_ptemp); | |
4620 | return _resultobj; | |
4621 | } | |
4622 | ||
4623 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4624 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject * _resultobj; | |
4626 | wxSize * _result; | |
4627 | wxWindow * _arg0; | |
4628 | wxSize * _arg1; | |
4629 | PyObject * _argo0 = 0; | |
4630 | wxSize temp; | |
4631 | PyObject * _obj1 = 0; | |
4632 | char *_kwnames[] = { "self","sz", NULL }; | |
4633 | char _ptemp[128]; | |
4634 | ||
4635 | self = self; | |
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) | |
4637 | return NULL; | |
4638 | if (_argo0) { | |
4639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); | |
4642 | return NULL; | |
4643 | } | |
4644 | } | |
4645 | { | |
4646 | _arg1 = &temp; | |
4647 | if (! wxSize_helper(_obj1, &_arg1)) | |
4648 | return NULL; | |
4649 | } | |
4650 | { | |
4651 | wxPy_BEGIN_ALLOW_THREADS; | |
4652 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4653 | ||
4654 | wxPy_END_ALLOW_THREADS; | |
4655 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4656 | _resultobj = Py_BuildValue("s",_ptemp); | |
4657 | return _resultobj; | |
4658 | } | |
4659 | ||
4660 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4661 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject * _resultobj; | |
4663 | wxPoint * _result; | |
4664 | wxWindow * _arg0; | |
4665 | wxPoint * _arg1; | |
4666 | PyObject * _argo0 = 0; | |
4667 | wxPoint temp; | |
4668 | PyObject * _obj1 = 0; | |
4669 | char *_kwnames[] = { "self","pt", NULL }; | |
4670 | char _ptemp[128]; | |
4671 | ||
4672 | self = self; | |
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) | |
4674 | return NULL; | |
4675 | if (_argo0) { | |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); | |
4679 | return NULL; | |
4680 | } | |
4681 | } | |
4682 | { | |
4683 | _arg1 = &temp; | |
4684 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4685 | return NULL; | |
4686 | } | |
4687 | { | |
4688 | wxPy_BEGIN_ALLOW_THREADS; | |
4689 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4690 | ||
4691 | wxPy_END_ALLOW_THREADS; | |
4692 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4693 | _resultobj = Py_BuildValue("s",_ptemp); | |
4694 | return _resultobj; | |
4695 | } | |
4696 | ||
4697 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4698 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4699 | PyObject * _resultobj; | |
4700 | wxSize * _result; | |
4701 | wxWindow * _arg0; | |
4702 | wxSize * _arg1; | |
4703 | PyObject * _argo0 = 0; | |
4704 | wxSize temp; | |
4705 | PyObject * _obj1 = 0; | |
4706 | char *_kwnames[] = { "self","sz", NULL }; | |
4707 | char _ptemp[128]; | |
4708 | ||
4709 | self = self; | |
4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) | |
4711 | return NULL; | |
4712 | if (_argo0) { | |
4713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); | |
4716 | return NULL; | |
4717 | } | |
4718 | } | |
4719 | { | |
4720 | _arg1 = &temp; | |
4721 | if (! wxSize_helper(_obj1, &_arg1)) | |
4722 | return NULL; | |
4723 | } | |
4724 | { | |
4725 | wxPy_BEGIN_ALLOW_THREADS; | |
4726 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4727 | ||
4728 | wxPy_END_ALLOW_THREADS; | |
4729 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4730 | _resultobj = Py_BuildValue("s",_ptemp); | |
4731 | return _resultobj; | |
4732 | } | |
4733 | ||
4734 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4735 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4736 | PyObject * _resultobj; | |
4737 | wxWindow * _arg0; | |
4738 | wxString * _arg1; | |
4739 | PyObject * _argo0 = 0; | |
4740 | PyObject * _obj1 = 0; | |
4741 | char *_kwnames[] = { "self","tip", NULL }; | |
4742 | ||
4743 | self = self; | |
4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) | |
4745 | return NULL; | |
4746 | if (_argo0) { | |
4747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); | |
4750 | return NULL; | |
4751 | } | |
4752 | } | |
4753 | { | |
4754 | #if PYTHON_API_VERSION >= 1009 | |
4755 | char* tmpPtr; int tmpSize; | |
4756 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4758 | return NULL; | |
4759 | } | |
4760 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4761 | return NULL; | |
4762 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4763 | #else | |
4764 | if (!PyString_Check(_obj1)) { | |
4765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4766 | return NULL; | |
4767 | } | |
4768 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4769 | #endif | |
4770 | } | |
4771 | { | |
4772 | wxPy_BEGIN_ALLOW_THREADS; | |
4773 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4774 | ||
4775 | wxPy_END_ALLOW_THREADS; | |
4776 | } Py_INCREF(Py_None); | |
4777 | _resultobj = Py_None; | |
4778 | { | |
4779 | if (_obj1) | |
4780 | delete _arg1; | |
4781 | } | |
4782 | return _resultobj; | |
4783 | } | |
4784 | ||
4785 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4786 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4787 | PyObject * _resultobj; | |
4788 | wxWindow * _arg0; | |
4789 | wxToolTip * _arg1; | |
4790 | PyObject * _argo0 = 0; | |
4791 | PyObject * _argo1 = 0; | |
4792 | char *_kwnames[] = { "self","tooltip", NULL }; | |
4793 | ||
4794 | self = self; | |
4795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) | |
4796 | return NULL; | |
4797 | if (_argo0) { | |
4798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); | |
4801 | return NULL; | |
4802 | } | |
4803 | } | |
4804 | if (_argo1) { | |
4805 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4806 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
4807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); | |
4808 | return NULL; | |
4809 | } | |
4810 | } | |
4811 | { | |
4812 | wxPy_BEGIN_ALLOW_THREADS; | |
4813 | wxWindow_SetToolTip(_arg0,_arg1); | |
4814 | ||
4815 | wxPy_END_ALLOW_THREADS; | |
4816 | } Py_INCREF(Py_None); | |
4817 | _resultobj = Py_None; | |
4818 | return _resultobj; | |
4819 | } | |
4820 | ||
4821 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
4822 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4823 | PyObject * _resultobj; | |
4824 | wxToolTip * _result; | |
4825 | wxWindow * _arg0; | |
4826 | PyObject * _argo0 = 0; | |
4827 | char *_kwnames[] = { "self", NULL }; | |
4828 | char _ptemp[128]; | |
4829 | ||
4830 | self = self; | |
4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) | |
4832 | return NULL; | |
4833 | if (_argo0) { | |
4834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); | |
4837 | return NULL; | |
4838 | } | |
4839 | } | |
4840 | { | |
4841 | wxPy_BEGIN_ALLOW_THREADS; | |
4842 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4843 | ||
4844 | wxPy_END_ALLOW_THREADS; | |
4845 | } if (_result) { | |
4846 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4847 | _resultobj = Py_BuildValue("s",_ptemp); | |
4848 | } else { | |
4849 | Py_INCREF(Py_None); | |
4850 | _resultobj = Py_None; | |
4851 | } | |
4852 | return _resultobj; | |
4853 | } | |
4854 | ||
4855 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) | |
4856 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject * _resultobj; | |
4858 | wxWindow * _arg0; | |
4859 | wxSizer * _arg1; | |
4860 | PyObject * _argo0 = 0; | |
4861 | PyObject * _argo1 = 0; | |
4862 | char *_kwnames[] = { "self","sizer", NULL }; | |
4863 | ||
4864 | self = self; | |
4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4866 | return NULL; | |
4867 | if (_argo0) { | |
4868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4871 | return NULL; | |
4872 | } | |
4873 | } | |
4874 | if (_argo1) { | |
4875 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4876 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4878 | return NULL; | |
4879 | } | |
4880 | } | |
4881 | { | |
4882 | wxPy_BEGIN_ALLOW_THREADS; | |
4883 | wxWindow_SetSizer(_arg0,_arg1); | |
4884 | ||
4885 | wxPy_END_ALLOW_THREADS; | |
4886 | } Py_INCREF(Py_None); | |
4887 | _resultobj = Py_None; | |
4888 | return _resultobj; | |
4889 | } | |
4890 | ||
4891 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) | |
4892 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4893 | PyObject * _resultobj; | |
4894 | wxSizer * _result; | |
4895 | wxWindow * _arg0; | |
4896 | PyObject * _argo0 = 0; | |
4897 | char *_kwnames[] = { "self", NULL }; | |
4898 | char _ptemp[128]; | |
4899 | ||
4900 | self = self; | |
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4902 | return NULL; | |
4903 | if (_argo0) { | |
4904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4907 | return NULL; | |
4908 | } | |
4909 | } | |
4910 | { | |
4911 | wxPy_BEGIN_ALLOW_THREADS; | |
4912 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4913 | ||
4914 | wxPy_END_ALLOW_THREADS; | |
4915 | } if (_result) { | |
4916 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4917 | _resultobj = Py_BuildValue("s",_ptemp); | |
4918 | } else { | |
4919 | Py_INCREF(Py_None); | |
4920 | _resultobj = Py_None; | |
4921 | } | |
4922 | return _resultobj; | |
4923 | } | |
4924 | ||
4925 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
4926 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4927 | PyObject * _resultobj; | |
4928 | wxValidator * _result; | |
4929 | wxWindow * _arg0; | |
4930 | PyObject * _argo0 = 0; | |
4931 | char *_kwnames[] = { "self", NULL }; | |
4932 | char _ptemp[128]; | |
4933 | ||
4934 | self = self; | |
4935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4936 | return NULL; | |
4937 | if (_argo0) { | |
4938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4941 | return NULL; | |
4942 | } | |
4943 | } | |
4944 | { | |
4945 | wxPy_BEGIN_ALLOW_THREADS; | |
4946 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4947 | ||
4948 | wxPy_END_ALLOW_THREADS; | |
4949 | } if (_result) { | |
4950 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4951 | _resultobj = Py_BuildValue("s",_ptemp); | |
4952 | } else { | |
4953 | Py_INCREF(Py_None); | |
4954 | _resultobj = Py_None; | |
4955 | } | |
4956 | return _resultobj; | |
4957 | } | |
4958 | ||
4959 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4960 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4961 | PyObject * _resultobj; | |
4962 | wxWindow * _arg0; | |
4963 | wxValidator * _arg1; | |
4964 | PyObject * _argo0 = 0; | |
4965 | PyObject * _argo1 = 0; | |
4966 | char *_kwnames[] = { "self","validator", NULL }; | |
4967 | ||
4968 | self = self; | |
4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4970 | return NULL; | |
4971 | if (_argo0) { | |
4972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4975 | return NULL; | |
4976 | } | |
4977 | } | |
4978 | if (_argo1) { | |
4979 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4980 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4982 | return NULL; | |
4983 | } | |
4984 | } | |
4985 | { | |
4986 | wxPy_BEGIN_ALLOW_THREADS; | |
4987 | wxWindow_SetValidator(_arg0,*_arg1); | |
4988 | ||
4989 | wxPy_END_ALLOW_THREADS; | |
4990 | } Py_INCREF(Py_None); | |
4991 | _resultobj = Py_None; | |
4992 | return _resultobj; | |
4993 | } | |
4994 | ||
4995 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) | |
4996 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4997 | PyObject * _resultobj; | |
4998 | wxWindow * _arg0; | |
4999 | wxDropTarget * _arg1; | |
5000 | PyObject * _argo0 = 0; | |
5001 | PyObject * _argo1 = 0; | |
5002 | char *_kwnames[] = { "self","target", NULL }; | |
5003 | ||
5004 | self = self; | |
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5006 | return NULL; | |
5007 | if (_argo0) { | |
5008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5011 | return NULL; | |
5012 | } | |
5013 | } | |
5014 | if (_argo1) { | |
5015 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5016 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5018 | return NULL; | |
5019 | } | |
5020 | } | |
5021 | { | |
5022 | wxPy_BEGIN_ALLOW_THREADS; | |
5023 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5024 | ||
5025 | wxPy_END_ALLOW_THREADS; | |
5026 | } Py_INCREF(Py_None); | |
5027 | _resultobj = Py_None; | |
5028 | return _resultobj; | |
5029 | } | |
5030 | ||
5031 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5032 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject * _resultobj; | |
5034 | wxDropTarget * _result; | |
5035 | wxWindow * _arg0; | |
5036 | PyObject * _argo0 = 0; | |
5037 | char *_kwnames[] = { "self", NULL }; | |
5038 | char _ptemp[128]; | |
5039 | ||
5040 | self = self; | |
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5042 | return NULL; | |
5043 | if (_argo0) { | |
5044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5047 | return NULL; | |
5048 | } | |
5049 | } | |
5050 | { | |
5051 | wxPy_BEGIN_ALLOW_THREADS; | |
5052 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5053 | ||
5054 | wxPy_END_ALLOW_THREADS; | |
5055 | } if (_result) { | |
5056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5057 | _resultobj = Py_BuildValue("s",_ptemp); | |
5058 | } else { | |
5059 | Py_INCREF(Py_None); | |
5060 | _resultobj = Py_None; | |
5061 | } | |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
5065 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) | |
5066 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5067 | PyObject * _resultobj; | |
5068 | wxSize * _result; | |
5069 | wxWindow * _arg0; | |
5070 | PyObject * _argo0 = 0; | |
5071 | char *_kwnames[] = { "self", NULL }; | |
5072 | char _ptemp[128]; | |
5073 | ||
5074 | self = self; | |
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5076 | return NULL; | |
5077 | if (_argo0) { | |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | wxPy_BEGIN_ALLOW_THREADS; | |
5086 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5087 | ||
5088 | wxPy_END_ALLOW_THREADS; | |
5089 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5090 | _resultobj = Py_BuildValue("s",_ptemp); | |
5091 | return _resultobj; | |
5092 | } | |
5093 | ||
5094 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) | |
5095 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject * _resultobj; | |
5097 | wxWindow * _arg0; | |
5098 | wxCaret * _arg1; | |
5099 | PyObject * _argo0 = 0; | |
5100 | PyObject * _argo1 = 0; | |
5101 | char *_kwnames[] = { "self","caret", NULL }; | |
5102 | ||
5103 | self = self; | |
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5105 | return NULL; | |
5106 | if (_argo0) { | |
5107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5110 | return NULL; | |
5111 | } | |
5112 | } | |
5113 | if (_argo1) { | |
5114 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5115 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | { | |
5121 | wxPy_BEGIN_ALLOW_THREADS; | |
5122 | wxWindow_SetCaret(_arg0,_arg1); | |
5123 | ||
5124 | wxPy_END_ALLOW_THREADS; | |
5125 | } Py_INCREF(Py_None); | |
5126 | _resultobj = Py_None; | |
5127 | return _resultobj; | |
5128 | } | |
5129 | ||
5130 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5131 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5132 | PyObject * _resultobj; | |
5133 | wxCaret * _result; | |
5134 | wxWindow * _arg0; | |
5135 | PyObject * _argo0 = 0; | |
5136 | char *_kwnames[] = { "self", NULL }; | |
5137 | char _ptemp[128]; | |
5138 | ||
5139 | self = self; | |
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5141 | return NULL; | |
5142 | if (_argo0) { | |
5143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5146 | return NULL; | |
5147 | } | |
5148 | } | |
5149 | { | |
5150 | wxPy_BEGIN_ALLOW_THREADS; | |
5151 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5152 | ||
5153 | wxPy_END_ALLOW_THREADS; | |
5154 | } if (_result) { | |
5155 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5156 | _resultobj = Py_BuildValue("s",_ptemp); | |
5157 | } else { | |
5158 | Py_INCREF(Py_None); | |
5159 | _resultobj = Py_None; | |
5160 | } | |
5161 | return _resultobj; | |
5162 | } | |
5163 | ||
5164 | static void *SwigwxPanelTowxWindow(void *ptr) { | |
5165 | wxPanel *src; | |
5166 | wxWindow *dest; | |
5167 | src = (wxPanel *) ptr; | |
5168 | dest = (wxWindow *) src; | |
5169 | return (void *) dest; | |
5170 | } | |
5171 | ||
5172 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5173 | wxPanel *src; | |
5174 | wxEvtHandler *dest; | |
5175 | src = (wxPanel *) ptr; | |
5176 | dest = (wxEvtHandler *) src; | |
5177 | return (void *) dest; | |
5178 | } | |
5179 | ||
5180 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5181 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5182 | PyObject * _resultobj; | |
5183 | wxPanel * _result; | |
5184 | wxWindow * _arg0; | |
5185 | wxWindowID _arg1; | |
5186 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5187 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5188 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
5189 | char * _arg5 = (char *) "panel"; | |
5190 | PyObject * _argo0 = 0; | |
5191 | wxPoint temp; | |
5192 | PyObject * _obj2 = 0; | |
5193 | wxSize temp0; | |
5194 | PyObject * _obj3 = 0; | |
5195 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
5196 | char _ptemp[128]; | |
5197 | ||
5198 | self = self; | |
5199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
5200 | return NULL; | |
5201 | if (_argo0) { | |
5202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); | |
5205 | return NULL; | |
5206 | } | |
5207 | } | |
5208 | if (_obj2) | |
5209 | { | |
5210 | _arg2 = &temp; | |
5211 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5212 | return NULL; | |
5213 | } | |
5214 | if (_obj3) | |
5215 | { | |
5216 | _arg3 = &temp0; | |
5217 | if (! wxSize_helper(_obj3, &_arg3)) | |
5218 | return NULL; | |
5219 | } | |
5220 | { | |
5221 | wxPy_BEGIN_ALLOW_THREADS; | |
5222 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5223 | ||
5224 | wxPy_END_ALLOW_THREADS; | |
5225 | } if (_result) { | |
5226 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5227 | _resultobj = Py_BuildValue("s",_ptemp); | |
5228 | } else { | |
5229 | Py_INCREF(Py_None); | |
5230 | _resultobj = Py_None; | |
5231 | } | |
5232 | return _resultobj; | |
5233 | } | |
5234 | ||
5235 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
5236 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5237 | PyObject * _resultobj; | |
5238 | wxPanel * _arg0; | |
5239 | PyObject * _argo0 = 0; | |
5240 | char *_kwnames[] = { "self", NULL }; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) | |
5244 | return NULL; | |
5245 | if (_argo0) { | |
5246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | { | |
5253 | wxPy_BEGIN_ALLOW_THREADS; | |
5254 | wxPanel_InitDialog(_arg0); | |
5255 | ||
5256 | wxPy_END_ALLOW_THREADS; | |
5257 | } Py_INCREF(Py_None); | |
5258 | _resultobj = Py_None; | |
5259 | return _resultobj; | |
5260 | } | |
5261 | ||
5262 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) | |
5263 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5264 | PyObject * _resultobj; | |
5265 | wxButton * _result; | |
5266 | wxPanel * _arg0; | |
5267 | PyObject * _argo0 = 0; | |
5268 | char *_kwnames[] = { "self", NULL }; | |
5269 | char _ptemp[128]; | |
5270 | ||
5271 | self = self; | |
5272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) | |
5273 | return NULL; | |
5274 | if (_argo0) { | |
5275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); | |
5278 | return NULL; | |
5279 | } | |
5280 | } | |
5281 | { | |
5282 | wxPy_BEGIN_ALLOW_THREADS; | |
5283 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5284 | ||
5285 | wxPy_END_ALLOW_THREADS; | |
5286 | } if (_result) { | |
5287 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5288 | _resultobj = Py_BuildValue("s",_ptemp); | |
5289 | } else { | |
5290 | Py_INCREF(Py_None); | |
5291 | _resultobj = Py_None; | |
5292 | } | |
5293 | return _resultobj; | |
5294 | } | |
5295 | ||
5296 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
5297 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5298 | PyObject * _resultobj; | |
5299 | wxPanel * _arg0; | |
5300 | wxButton * _arg1; | |
5301 | PyObject * _argo0 = 0; | |
5302 | PyObject * _argo1 = 0; | |
5303 | char *_kwnames[] = { "self","btn", NULL }; | |
5304 | ||
5305 | self = self; | |
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
5307 | return NULL; | |
5308 | if (_argo0) { | |
5309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); | |
5312 | return NULL; | |
5313 | } | |
5314 | } | |
5315 | if (_argo1) { | |
5316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
5318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); | |
5319 | return NULL; | |
5320 | } | |
5321 | } | |
5322 | { | |
5323 | wxPy_BEGIN_ALLOW_THREADS; | |
5324 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5325 | ||
5326 | wxPy_END_ALLOW_THREADS; | |
5327 | } Py_INCREF(Py_None); | |
5328 | _resultobj = Py_None; | |
5329 | return _resultobj; | |
5330 | } | |
5331 | ||
5332 | static void *SwigwxDialogTowxPanel(void *ptr) { | |
5333 | wxDialog *src; | |
5334 | wxPanel *dest; | |
5335 | src = (wxDialog *) ptr; | |
5336 | dest = (wxPanel *) src; | |
5337 | return (void *) dest; | |
5338 | } | |
5339 | ||
5340 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5341 | wxDialog *src; | |
5342 | wxWindow *dest; | |
5343 | src = (wxDialog *) ptr; | |
5344 | dest = (wxWindow *) src; | |
5345 | return (void *) dest; | |
5346 | } | |
5347 | ||
5348 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5349 | wxDialog *src; | |
5350 | wxEvtHandler *dest; | |
5351 | src = (wxDialog *) ptr; | |
5352 | dest = (wxEvtHandler *) src; | |
5353 | return (void *) dest; | |
5354 | } | |
5355 | ||
5356 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5357 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5358 | PyObject * _resultobj; | |
5359 | wxDialog * _result; | |
5360 | wxWindow * _arg0; | |
5361 | wxWindowID _arg1; | |
5362 | wxString * _arg2; | |
5363 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5364 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5365 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
5366 | char * _arg6 = (char *) "dialogBox"; | |
5367 | PyObject * _argo0 = 0; | |
5368 | PyObject * _obj2 = 0; | |
5369 | wxPoint temp; | |
5370 | PyObject * _obj3 = 0; | |
5371 | wxSize temp0; | |
5372 | PyObject * _obj4 = 0; | |
5373 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
5374 | char _ptemp[128]; | |
5375 | ||
5376 | self = self; | |
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5378 | return NULL; | |
5379 | if (_argo0) { | |
5380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); | |
5383 | return NULL; | |
5384 | } | |
5385 | } | |
5386 | { | |
5387 | #if PYTHON_API_VERSION >= 1009 | |
5388 | char* tmpPtr; int tmpSize; | |
5389 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5390 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5391 | return NULL; | |
5392 | } | |
5393 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5394 | return NULL; | |
5395 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5396 | #else | |
5397 | if (!PyString_Check(_obj2)) { | |
5398 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5399 | return NULL; | |
5400 | } | |
5401 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5402 | #endif | |
5403 | } | |
5404 | if (_obj3) | |
5405 | { | |
5406 | _arg3 = &temp; | |
5407 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5408 | return NULL; | |
5409 | } | |
5410 | if (_obj4) | |
5411 | { | |
5412 | _arg4 = &temp0; | |
5413 | if (! wxSize_helper(_obj4, &_arg4)) | |
5414 | return NULL; | |
5415 | } | |
5416 | { | |
5417 | wxPy_BEGIN_ALLOW_THREADS; | |
5418 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5419 | ||
5420 | wxPy_END_ALLOW_THREADS; | |
5421 | } if (_result) { | |
5422 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5423 | _resultobj = Py_BuildValue("s",_ptemp); | |
5424 | } else { | |
5425 | Py_INCREF(Py_None); | |
5426 | _resultobj = Py_None; | |
5427 | } | |
5428 | { | |
5429 | if (_obj2) | |
5430 | delete _arg2; | |
5431 | } | |
5432 | return _resultobj; | |
5433 | } | |
5434 | ||
5435 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
5436 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject * _resultobj; | |
5438 | wxDialog * _arg0; | |
5439 | int _arg1 = (int ) wxBOTH; | |
5440 | PyObject * _argo0 = 0; | |
5441 | char *_kwnames[] = { "self","direction", NULL }; | |
5442 | ||
5443 | self = self; | |
5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) | |
5445 | return NULL; | |
5446 | if (_argo0) { | |
5447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); | |
5450 | return NULL; | |
5451 | } | |
5452 | } | |
5453 | { | |
5454 | wxPy_BEGIN_ALLOW_THREADS; | |
5455 | wxDialog_Centre(_arg0,_arg1); | |
5456 | ||
5457 | wxPy_END_ALLOW_THREADS; | |
5458 | } Py_INCREF(Py_None); | |
5459 | _resultobj = Py_None; | |
5460 | return _resultobj; | |
5461 | } | |
5462 | ||
5463 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
5464 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5465 | PyObject * _resultobj; | |
5466 | wxDialog * _arg0; | |
5467 | int _arg1; | |
5468 | PyObject * _argo0 = 0; | |
5469 | char *_kwnames[] = { "self","retCode", NULL }; | |
5470 | ||
5471 | self = self; | |
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) | |
5473 | return NULL; | |
5474 | if (_argo0) { | |
5475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); | |
5478 | return NULL; | |
5479 | } | |
5480 | } | |
5481 | { | |
5482 | wxPy_BEGIN_ALLOW_THREADS; | |
5483 | wxDialog_EndModal(_arg0,_arg1); | |
5484 | ||
5485 | wxPy_END_ALLOW_THREADS; | |
5486 | } Py_INCREF(Py_None); | |
5487 | _resultobj = Py_None; | |
5488 | return _resultobj; | |
5489 | } | |
5490 | ||
5491 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
5492 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5493 | PyObject * _resultobj; | |
5494 | wxString * _result; | |
5495 | wxDialog * _arg0; | |
5496 | PyObject * _argo0 = 0; | |
5497 | char *_kwnames[] = { "self", NULL }; | |
5498 | ||
5499 | self = self; | |
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) | |
5501 | return NULL; | |
5502 | if (_argo0) { | |
5503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); | |
5506 | return NULL; | |
5507 | } | |
5508 | } | |
5509 | { | |
5510 | wxPy_BEGIN_ALLOW_THREADS; | |
5511 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5512 | ||
5513 | wxPy_END_ALLOW_THREADS; | |
5514 | }{ | |
5515 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5516 | } | |
5517 | { | |
5518 | delete _result; | |
5519 | } | |
5520 | return _resultobj; | |
5521 | } | |
5522 | ||
5523 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
5524 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5525 | PyObject * _resultobj; | |
5526 | wxDialog * _arg0; | |
5527 | bool _arg1; | |
5528 | PyObject * _argo0 = 0; | |
5529 | int tempbool1; | |
5530 | char *_kwnames[] = { "self","iconize", NULL }; | |
5531 | ||
5532 | self = self; | |
5533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) | |
5534 | return NULL; | |
5535 | if (_argo0) { | |
5536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); | |
5539 | return NULL; | |
5540 | } | |
5541 | } | |
5542 | _arg1 = (bool ) tempbool1; | |
5543 | { | |
5544 | wxPy_BEGIN_ALLOW_THREADS; | |
5545 | wxDialog_Iconize(_arg0,_arg1); | |
5546 | ||
5547 | wxPy_END_ALLOW_THREADS; | |
5548 | } Py_INCREF(Py_None); | |
5549 | _resultobj = Py_None; | |
5550 | return _resultobj; | |
5551 | } | |
5552 | ||
5553 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
5554 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5555 | PyObject * _resultobj; | |
5556 | bool _result; | |
5557 | wxDialog * _arg0; | |
5558 | PyObject * _argo0 = 0; | |
5559 | char *_kwnames[] = { "self", NULL }; | |
5560 | ||
5561 | self = self; | |
5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) | |
5563 | return NULL; | |
5564 | if (_argo0) { | |
5565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); | |
5568 | return NULL; | |
5569 | } | |
5570 | } | |
5571 | { | |
5572 | wxPy_BEGIN_ALLOW_THREADS; | |
5573 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5574 | ||
5575 | wxPy_END_ALLOW_THREADS; | |
5576 | } _resultobj = Py_BuildValue("i",_result); | |
5577 | return _resultobj; | |
5578 | } | |
5579 | ||
5580 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
5581 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5582 | PyObject * _resultobj; | |
5583 | wxDialog * _arg0; | |
5584 | bool _arg1; | |
5585 | PyObject * _argo0 = 0; | |
5586 | int tempbool1; | |
5587 | char *_kwnames[] = { "self","flag", NULL }; | |
5588 | ||
5589 | self = self; | |
5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) | |
5591 | return NULL; | |
5592 | if (_argo0) { | |
5593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); | |
5596 | return NULL; | |
5597 | } | |
5598 | } | |
5599 | _arg1 = (bool ) tempbool1; | |
5600 | { | |
5601 | wxPy_BEGIN_ALLOW_THREADS; | |
5602 | wxDialog_SetModal(_arg0,_arg1); | |
5603 | ||
5604 | wxPy_END_ALLOW_THREADS; | |
5605 | } Py_INCREF(Py_None); | |
5606 | _resultobj = Py_None; | |
5607 | return _resultobj; | |
5608 | } | |
5609 | ||
5610 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
5611 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5612 | PyObject * _resultobj; | |
5613 | bool _result; | |
5614 | wxDialog * _arg0; | |
5615 | PyObject * _argo0 = 0; | |
5616 | char *_kwnames[] = { "self", NULL }; | |
5617 | ||
5618 | self = self; | |
5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) | |
5620 | return NULL; | |
5621 | if (_argo0) { | |
5622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); | |
5625 | return NULL; | |
5626 | } | |
5627 | } | |
5628 | { | |
5629 | wxPy_BEGIN_ALLOW_THREADS; | |
5630 | _result = (bool )wxDialog_IsModal(_arg0); | |
5631 | ||
5632 | wxPy_END_ALLOW_THREADS; | |
5633 | } _resultobj = Py_BuildValue("i",_result); | |
5634 | return _resultobj; | |
5635 | } | |
5636 | ||
5637 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
5638 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5639 | PyObject * _resultobj; | |
5640 | wxDialog * _arg0; | |
5641 | wxString * _arg1; | |
5642 | PyObject * _argo0 = 0; | |
5643 | PyObject * _obj1 = 0; | |
5644 | char *_kwnames[] = { "self","title", NULL }; | |
5645 | ||
5646 | self = self; | |
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) | |
5648 | return NULL; | |
5649 | if (_argo0) { | |
5650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); | |
5653 | return NULL; | |
5654 | } | |
5655 | } | |
5656 | { | |
5657 | #if PYTHON_API_VERSION >= 1009 | |
5658 | char* tmpPtr; int tmpSize; | |
5659 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5660 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5661 | return NULL; | |
5662 | } | |
5663 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5664 | return NULL; | |
5665 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5666 | #else | |
5667 | if (!PyString_Check(_obj1)) { | |
5668 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5669 | return NULL; | |
5670 | } | |
5671 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5672 | #endif | |
5673 | } | |
5674 | { | |
5675 | wxPy_BEGIN_ALLOW_THREADS; | |
5676 | wxDialog_SetTitle(_arg0,*_arg1); | |
5677 | ||
5678 | wxPy_END_ALLOW_THREADS; | |
5679 | } Py_INCREF(Py_None); | |
5680 | _resultobj = Py_None; | |
5681 | { | |
5682 | if (_obj1) | |
5683 | delete _arg1; | |
5684 | } | |
5685 | return _resultobj; | |
5686 | } | |
5687 | ||
5688 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
5689 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5690 | PyObject * _resultobj; | |
5691 | bool _result; | |
5692 | wxDialog * _arg0; | |
5693 | bool _arg1; | |
5694 | PyObject * _argo0 = 0; | |
5695 | int tempbool1; | |
5696 | char *_kwnames[] = { "self","show", NULL }; | |
5697 | ||
5698 | self = self; | |
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) | |
5700 | return NULL; | |
5701 | if (_argo0) { | |
5702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); | |
5705 | return NULL; | |
5706 | } | |
5707 | } | |
5708 | _arg1 = (bool ) tempbool1; | |
5709 | { | |
5710 | wxPy_BEGIN_ALLOW_THREADS; | |
5711 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5712 | ||
5713 | wxPy_END_ALLOW_THREADS; | |
5714 | } _resultobj = Py_BuildValue("i",_result); | |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
5718 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
5719 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject * _resultobj; | |
5721 | int _result; | |
5722 | wxDialog * _arg0; | |
5723 | PyObject * _argo0 = 0; | |
5724 | char *_kwnames[] = { "self", NULL }; | |
5725 | ||
5726 | self = self; | |
5727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) | |
5728 | return NULL; | |
5729 | if (_argo0) { | |
5730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); | |
5733 | return NULL; | |
5734 | } | |
5735 | } | |
5736 | { | |
5737 | wxPy_BEGIN_ALLOW_THREADS; | |
5738 | _result = (int )wxDialog_ShowModal(_arg0); | |
5739 | ||
5740 | wxPy_END_ALLOW_THREADS; | |
5741 | } _resultobj = Py_BuildValue("i",_result); | |
5742 | return _resultobj; | |
5743 | } | |
5744 | ||
5745 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) | |
5746 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject * _resultobj; | |
5748 | int _result; | |
5749 | wxDialog * _arg0; | |
5750 | PyObject * _argo0 = 0; | |
5751 | char *_kwnames[] = { "self", NULL }; | |
5752 | ||
5753 | self = self; | |
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) | |
5755 | return NULL; | |
5756 | if (_argo0) { | |
5757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); | |
5760 | return NULL; | |
5761 | } | |
5762 | } | |
5763 | { | |
5764 | wxPy_BEGIN_ALLOW_THREADS; | |
5765 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5766 | ||
5767 | wxPy_END_ALLOW_THREADS; | |
5768 | } _resultobj = Py_BuildValue("i",_result); | |
5769 | return _resultobj; | |
5770 | } | |
5771 | ||
5772 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
5773 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5774 | PyObject * _resultobj; | |
5775 | wxDialog * _arg0; | |
5776 | int _arg1; | |
5777 | PyObject * _argo0 = 0; | |
5778 | char *_kwnames[] = { "self","retCode", NULL }; | |
5779 | ||
5780 | self = self; | |
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) | |
5782 | return NULL; | |
5783 | if (_argo0) { | |
5784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); | |
5787 | return NULL; | |
5788 | } | |
5789 | } | |
5790 | { | |
5791 | wxPy_BEGIN_ALLOW_THREADS; | |
5792 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5793 | ||
5794 | wxPy_END_ALLOW_THREADS; | |
5795 | } Py_INCREF(Py_None); | |
5796 | _resultobj = Py_None; | |
5797 | return _resultobj; | |
5798 | } | |
5799 | ||
5800 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) | |
5801 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5802 | PyObject * _resultobj; | |
5803 | wxSizer * _result; | |
5804 | wxDialog * _arg0; | |
5805 | wxString * _arg1; | |
5806 | PyObject * _argo0 = 0; | |
5807 | PyObject * _obj1 = 0; | |
5808 | char *_kwnames[] = { "self","message", NULL }; | |
5809 | char _ptemp[128]; | |
5810 | ||
5811 | self = self; | |
5812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) | |
5813 | return NULL; | |
5814 | if (_argo0) { | |
5815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
5818 | return NULL; | |
5819 | } | |
5820 | } | |
5821 | { | |
5822 | #if PYTHON_API_VERSION >= 1009 | |
5823 | char* tmpPtr; int tmpSize; | |
5824 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5825 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5826 | return NULL; | |
5827 | } | |
5828 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5829 | return NULL; | |
5830 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5831 | #else | |
5832 | if (!PyString_Check(_obj1)) { | |
5833 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5834 | return NULL; | |
5835 | } | |
5836 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5837 | #endif | |
5838 | } | |
5839 | { | |
5840 | wxPy_BEGIN_ALLOW_THREADS; | |
5841 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); | |
5842 | ||
5843 | wxPy_END_ALLOW_THREADS; | |
5844 | } if (_result) { | |
5845 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
5846 | _resultobj = Py_BuildValue("s",_ptemp); | |
5847 | } else { | |
5848 | Py_INCREF(Py_None); | |
5849 | _resultobj = Py_None; | |
5850 | } | |
5851 | { | |
5852 | if (_obj1) | |
5853 | delete _arg1; | |
5854 | } | |
5855 | return _resultobj; | |
5856 | } | |
5857 | ||
5858 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) | |
5859 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5860 | PyObject * _resultobj; | |
5861 | wxSizer * _result; | |
5862 | wxDialog * _arg0; | |
5863 | long _arg1; | |
5864 | PyObject * _argo0 = 0; | |
5865 | char *_kwnames[] = { "self","flags", NULL }; | |
5866 | char _ptemp[128]; | |
5867 | ||
5868 | self = self; | |
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) | |
5870 | return NULL; | |
5871 | if (_argo0) { | |
5872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
5875 | return NULL; | |
5876 | } | |
5877 | } | |
5878 | { | |
5879 | wxPy_BEGIN_ALLOW_THREADS; | |
5880 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); | |
5881 | ||
5882 | wxPy_END_ALLOW_THREADS; | |
5883 | } if (_result) { | |
5884 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
5885 | _resultobj = Py_BuildValue("s",_ptemp); | |
5886 | } else { | |
5887 | Py_INCREF(Py_None); | |
5888 | _resultobj = Py_None; | |
5889 | } | |
5890 | return _resultobj; | |
5891 | } | |
5892 | ||
5893 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5894 | wxScrolledWindow *src; | |
5895 | wxPanel *dest; | |
5896 | src = (wxScrolledWindow *) ptr; | |
5897 | dest = (wxPanel *) src; | |
5898 | return (void *) dest; | |
5899 | } | |
5900 | ||
5901 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { | |
5902 | wxScrolledWindow *src; | |
5903 | wxWindow *dest; | |
5904 | src = (wxScrolledWindow *) ptr; | |
5905 | dest = (wxWindow *) src; | |
5906 | return (void *) dest; | |
5907 | } | |
5908 | ||
5909 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5910 | wxScrolledWindow *src; | |
5911 | wxEvtHandler *dest; | |
5912 | src = (wxScrolledWindow *) ptr; | |
5913 | dest = (wxEvtHandler *) src; | |
5914 | return (void *) dest; | |
5915 | } | |
5916 | ||
5917 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5918 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject * _resultobj; | |
5920 | wxScrolledWindow * _result; | |
5921 | wxWindow * _arg0; | |
5922 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5923 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5924 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5925 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
5926 | char * _arg5 = (char *) "scrolledWindow"; | |
5927 | PyObject * _argo0 = 0; | |
5928 | wxPoint temp; | |
5929 | PyObject * _obj2 = 0; | |
5930 | wxSize temp0; | |
5931 | PyObject * _obj3 = 0; | |
5932 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
5933 | char _ptemp[128]; | |
5934 | ||
5935 | self = self; | |
5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
5937 | return NULL; | |
5938 | if (_argo0) { | |
5939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); | |
5942 | return NULL; | |
5943 | } | |
5944 | } | |
5945 | if (_obj2) | |
5946 | { | |
5947 | _arg2 = &temp; | |
5948 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5949 | return NULL; | |
5950 | } | |
5951 | if (_obj3) | |
5952 | { | |
5953 | _arg3 = &temp0; | |
5954 | if (! wxSize_helper(_obj3, &_arg3)) | |
5955 | return NULL; | |
5956 | } | |
5957 | { | |
5958 | wxPy_BEGIN_ALLOW_THREADS; | |
5959 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5960 | ||
5961 | wxPy_END_ALLOW_THREADS; | |
5962 | } if (_result) { | |
5963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5964 | _resultobj = Py_BuildValue("s",_ptemp); | |
5965 | } else { | |
5966 | Py_INCREF(Py_None); | |
5967 | _resultobj = Py_None; | |
5968 | } | |
5969 | return _resultobj; | |
5970 | } | |
5971 | ||
5972 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
5973 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject * _resultobj; | |
5975 | wxScrolledWindow * _arg0; | |
5976 | bool _arg1; | |
5977 | bool _arg2; | |
5978 | PyObject * _argo0 = 0; | |
5979 | int tempbool1; | |
5980 | int tempbool2; | |
5981 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; | |
5982 | ||
5983 | self = self; | |
5984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
5985 | return NULL; | |
5986 | if (_argo0) { | |
5987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); | |
5990 | return NULL; | |
5991 | } | |
5992 | } | |
5993 | _arg1 = (bool ) tempbool1; | |
5994 | _arg2 = (bool ) tempbool2; | |
5995 | { | |
5996 | wxPy_BEGIN_ALLOW_THREADS; | |
5997 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5998 | ||
5999 | wxPy_END_ALLOW_THREADS; | |
6000 | } Py_INCREF(Py_None); | |
6001 | _resultobj = Py_None; | |
6002 | return _resultobj; | |
6003 | } | |
6004 | ||
6005 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) | |
6006 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6007 | PyObject * _resultobj; | |
6008 | int _result; | |
6009 | wxScrolledWindow * _arg0; | |
6010 | int _arg1; | |
6011 | PyObject * _argo0 = 0; | |
6012 | char *_kwnames[] = { "self","orient", NULL }; | |
6013 | ||
6014 | self = self; | |
6015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6016 | return NULL; | |
6017 | if (_argo0) { | |
6018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6021 | return NULL; | |
6022 | } | |
6023 | } | |
6024 | { | |
6025 | wxPy_BEGIN_ALLOW_THREADS; | |
6026 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6027 | ||
6028 | wxPy_END_ALLOW_THREADS; | |
6029 | } _resultobj = Py_BuildValue("i",_result); | |
6030 | return _resultobj; | |
6031 | } | |
6032 | ||
6033 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
6034 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject * _resultobj; | |
6036 | wxScrolledWindow * _arg0; | |
6037 | int * _arg1; | |
6038 | int temp; | |
6039 | int * _arg2; | |
6040 | int temp0; | |
6041 | PyObject * _argo0 = 0; | |
6042 | char *_kwnames[] = { "self", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | { | |
6046 | _arg1 = &temp; | |
6047 | } | |
6048 | { | |
6049 | _arg2 = &temp0; | |
6050 | } | |
6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) | |
6052 | return NULL; | |
6053 | if (_argo0) { | |
6054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); | |
6057 | return NULL; | |
6058 | } | |
6059 | } | |
6060 | { | |
6061 | wxPy_BEGIN_ALLOW_THREADS; | |
6062 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6063 | ||
6064 | wxPy_END_ALLOW_THREADS; | |
6065 | } Py_INCREF(Py_None); | |
6066 | _resultobj = Py_None; | |
6067 | { | |
6068 | PyObject *o; | |
6069 | o = PyInt_FromLong((long) (*_arg1)); | |
6070 | _resultobj = t_output_helper(_resultobj, o); | |
6071 | } | |
6072 | { | |
6073 | PyObject *o; | |
6074 | o = PyInt_FromLong((long) (*_arg2)); | |
6075 | _resultobj = t_output_helper(_resultobj, o); | |
6076 | } | |
6077 | return _resultobj; | |
6078 | } | |
6079 | ||
6080 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) | |
6081 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6082 | PyObject * _resultobj; | |
6083 | wxWindow * _result; | |
6084 | wxScrolledWindow * _arg0; | |
6085 | PyObject * _argo0 = 0; | |
6086 | char *_kwnames[] = { "self", NULL }; | |
6087 | char _ptemp[128]; | |
6088 | ||
6089 | self = self; | |
6090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6091 | return NULL; | |
6092 | if (_argo0) { | |
6093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6096 | return NULL; | |
6097 | } | |
6098 | } | |
6099 | { | |
6100 | wxPy_BEGIN_ALLOW_THREADS; | |
6101 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6102 | ||
6103 | wxPy_END_ALLOW_THREADS; | |
6104 | } if (_result) { | |
6105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6106 | _resultobj = Py_BuildValue("s",_ptemp); | |
6107 | } else { | |
6108 | Py_INCREF(Py_None); | |
6109 | _resultobj = Py_None; | |
6110 | } | |
6111 | return _resultobj; | |
6112 | } | |
6113 | ||
6114 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
6115 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6116 | PyObject * _resultobj; | |
6117 | wxScrolledWindow * _arg0; | |
6118 | int * _arg1; | |
6119 | int temp; | |
6120 | int * _arg2; | |
6121 | int temp0; | |
6122 | PyObject * _argo0 = 0; | |
6123 | char *_kwnames[] = { "self", NULL }; | |
6124 | ||
6125 | self = self; | |
6126 | { | |
6127 | _arg1 = &temp; | |
6128 | } | |
6129 | { | |
6130 | _arg2 = &temp0; | |
6131 | } | |
6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) | |
6133 | return NULL; | |
6134 | if (_argo0) { | |
6135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); | |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
6141 | { | |
6142 | wxPy_BEGIN_ALLOW_THREADS; | |
6143 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6144 | ||
6145 | wxPy_END_ALLOW_THREADS; | |
6146 | } Py_INCREF(Py_None); | |
6147 | _resultobj = Py_None; | |
6148 | { | |
6149 | PyObject *o; | |
6150 | o = PyInt_FromLong((long) (*_arg1)); | |
6151 | _resultobj = t_output_helper(_resultobj, o); | |
6152 | } | |
6153 | { | |
6154 | PyObject *o; | |
6155 | o = PyInt_FromLong((long) (*_arg2)); | |
6156 | _resultobj = t_output_helper(_resultobj, o); | |
6157 | } | |
6158 | return _resultobj; | |
6159 | } | |
6160 | ||
6161 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
6162 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6163 | PyObject * _resultobj; | |
6164 | bool _result; | |
6165 | wxScrolledWindow * _arg0; | |
6166 | PyObject * _argo0 = 0; | |
6167 | char *_kwnames[] = { "self", NULL }; | |
6168 | ||
6169 | self = self; | |
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) | |
6171 | return NULL; | |
6172 | if (_argo0) { | |
6173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); | |
6176 | return NULL; | |
6177 | } | |
6178 | } | |
6179 | { | |
6180 | wxPy_BEGIN_ALLOW_THREADS; | |
6181 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6182 | ||
6183 | wxPy_END_ALLOW_THREADS; | |
6184 | } _resultobj = Py_BuildValue("i",_result); | |
6185 | return _resultobj; | |
6186 | } | |
6187 | ||
6188 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
6189 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6190 | PyObject * _resultobj; | |
6191 | wxScrolledWindow * _arg0; | |
6192 | wxDC * _arg1; | |
6193 | PyObject * _argo0 = 0; | |
6194 | PyObject * _argo1 = 0; | |
6195 | char *_kwnames[] = { "self","dc", NULL }; | |
6196 | ||
6197 | self = self; | |
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) | |
6199 | return NULL; | |
6200 | if (_argo0) { | |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); | |
6204 | return NULL; | |
6205 | } | |
6206 | } | |
6207 | if (_argo1) { | |
6208 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6209 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); | |
6211 | return NULL; | |
6212 | } | |
6213 | } | |
6214 | { | |
6215 | wxPy_BEGIN_ALLOW_THREADS; | |
6216 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6217 | ||
6218 | wxPy_END_ALLOW_THREADS; | |
6219 | } Py_INCREF(Py_None); | |
6220 | _resultobj = Py_None; | |
6221 | return _resultobj; | |
6222 | } | |
6223 | ||
6224 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
6225 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6226 | PyObject * _resultobj; | |
6227 | wxScrolledWindow * _arg0; | |
6228 | int _arg1; | |
6229 | int _arg2; | |
6230 | PyObject * _argo0 = 0; | |
6231 | char *_kwnames[] = { "self","x","y", NULL }; | |
6232 | ||
6233 | self = self; | |
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6235 | return NULL; | |
6236 | if (_argo0) { | |
6237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); | |
6240 | return NULL; | |
6241 | } | |
6242 | } | |
6243 | { | |
6244 | wxPy_BEGIN_ALLOW_THREADS; | |
6245 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6246 | ||
6247 | wxPy_END_ALLOW_THREADS; | |
6248 | } Py_INCREF(Py_None); | |
6249 | _resultobj = Py_None; | |
6250 | return _resultobj; | |
6251 | } | |
6252 | ||
6253 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6254 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject * _resultobj; | |
6256 | wxScrolledWindow * _arg0; | |
6257 | int _arg1; | |
6258 | int _arg2; | |
6259 | int _arg3; | |
6260 | int _arg4; | |
6261 | int _arg5 = (int ) 0; | |
6262 | int _arg6 = (int ) 0; | |
6263 | int _arg7 = (int ) FALSE; | |
6264 | PyObject * _argo0 = 0; | |
6265 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; | |
6266 | ||
6267 | self = self; | |
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
6269 | return NULL; | |
6270 | if (_argo0) { | |
6271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); | |
6274 | return NULL; | |
6275 | } | |
6276 | } | |
6277 | { | |
6278 | wxPy_BEGIN_ALLOW_THREADS; | |
6279 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
6280 | ||
6281 | wxPy_END_ALLOW_THREADS; | |
6282 | } Py_INCREF(Py_None); | |
6283 | _resultobj = Py_None; | |
6284 | return _resultobj; | |
6285 | } | |
6286 | ||
6287 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) | |
6288 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6289 | PyObject * _resultobj; | |
6290 | wxScrolledWindow * _arg0; | |
6291 | int _arg1; | |
6292 | int _arg2; | |
6293 | PyObject * _argo0 = 0; | |
6294 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6295 | ||
6296 | self = self; | |
6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6298 | return NULL; | |
6299 | if (_argo0) { | |
6300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6303 | return NULL; | |
6304 | } | |
6305 | } | |
6306 | { | |
6307 | wxPy_BEGIN_ALLOW_THREADS; | |
6308 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6309 | ||
6310 | wxPy_END_ALLOW_THREADS; | |
6311 | } Py_INCREF(Py_None); | |
6312 | _resultobj = Py_None; | |
6313 | return _resultobj; | |
6314 | } | |
6315 | ||
6316 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) | |
6317 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6318 | PyObject * _resultobj; | |
6319 | wxScrolledWindow * _arg0; | |
6320 | wxWindow * _arg1; | |
6321 | PyObject * _argo0 = 0; | |
6322 | PyObject * _argo1 = 0; | |
6323 | char *_kwnames[] = { "self","window", NULL }; | |
6324 | ||
6325 | self = self; | |
6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6327 | return NULL; | |
6328 | if (_argo0) { | |
6329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6332 | return NULL; | |
6333 | } | |
6334 | } | |
6335 | if (_argo1) { | |
6336 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6337 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6339 | return NULL; | |
6340 | } | |
6341 | } | |
6342 | { | |
6343 | wxPy_BEGIN_ALLOW_THREADS; | |
6344 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6345 | ||
6346 | wxPy_END_ALLOW_THREADS; | |
6347 | } Py_INCREF(Py_None); | |
6348 | _resultobj = Py_None; | |
6349 | return _resultobj; | |
6350 | } | |
6351 | ||
6352 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) | |
6353 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6354 | PyObject * _resultobj; | |
6355 | wxScrolledWindow * _arg0; | |
6356 | int * _arg1; | |
6357 | int temp; | |
6358 | int * _arg2; | |
6359 | int temp0; | |
6360 | PyObject * _argo0 = 0; | |
6361 | char *_kwnames[] = { "self", NULL }; | |
6362 | ||
6363 | self = self; | |
6364 | { | |
6365 | _arg1 = &temp; | |
6366 | } | |
6367 | { | |
6368 | _arg2 = &temp0; | |
6369 | } | |
6370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6371 | return NULL; | |
6372 | if (_argo0) { | |
6373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6376 | return NULL; | |
6377 | } | |
6378 | } | |
6379 | { | |
6380 | wxPy_BEGIN_ALLOW_THREADS; | |
6381 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6382 | ||
6383 | wxPy_END_ALLOW_THREADS; | |
6384 | } Py_INCREF(Py_None); | |
6385 | _resultobj = Py_None; | |
6386 | { | |
6387 | PyObject *o; | |
6388 | o = PyInt_FromLong((long) (*_arg1)); | |
6389 | _resultobj = t_output_helper(_resultobj, o); | |
6390 | } | |
6391 | { | |
6392 | PyObject *o; | |
6393 | o = PyInt_FromLong((long) (*_arg2)); | |
6394 | _resultobj = t_output_helper(_resultobj, o); | |
6395 | } | |
6396 | return _resultobj; | |
6397 | } | |
6398 | ||
6399 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) | |
6400 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6401 | PyObject * _resultobj; | |
6402 | wxScrolledWindow * _arg0; | |
6403 | int * _arg1; | |
6404 | int temp; | |
6405 | int * _arg2; | |
6406 | int temp0; | |
6407 | PyObject * _argo0 = 0; | |
6408 | char *_kwnames[] = { "self", NULL }; | |
6409 | ||
6410 | self = self; | |
6411 | { | |
6412 | _arg1 = &temp; | |
6413 | } | |
6414 | { | |
6415 | _arg2 = &temp0; | |
6416 | } | |
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) | |
6418 | return NULL; | |
6419 | if (_argo0) { | |
6420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); | |
6423 | return NULL; | |
6424 | } | |
6425 | } | |
6426 | { | |
6427 | wxPy_BEGIN_ALLOW_THREADS; | |
6428 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6429 | ||
6430 | wxPy_END_ALLOW_THREADS; | |
6431 | } Py_INCREF(Py_None); | |
6432 | _resultobj = Py_None; | |
6433 | { | |
6434 | PyObject *o; | |
6435 | o = PyInt_FromLong((long) (*_arg1)); | |
6436 | _resultobj = t_output_helper(_resultobj, o); | |
6437 | } | |
6438 | { | |
6439 | PyObject *o; | |
6440 | o = PyInt_FromLong((long) (*_arg2)); | |
6441 | _resultobj = t_output_helper(_resultobj, o); | |
6442 | } | |
6443 | return _resultobj; | |
6444 | } | |
6445 | ||
6446 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6447 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject * _resultobj; | |
6449 | wxScrolledWindow * _arg0; | |
6450 | int _arg1; | |
6451 | int _arg2; | |
6452 | int * _arg3; | |
6453 | int temp; | |
6454 | int * _arg4; | |
6455 | int temp0; | |
6456 | PyObject * _argo0 = 0; | |
6457 | char *_kwnames[] = { "self","x","y", NULL }; | |
6458 | ||
6459 | self = self; | |
6460 | { | |
6461 | _arg3 = &temp; | |
6462 | } | |
6463 | { | |
6464 | _arg4 = &temp0; | |
6465 | } | |
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6467 | return NULL; | |
6468 | if (_argo0) { | |
6469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6472 | return NULL; | |
6473 | } | |
6474 | } | |
6475 | { | |
6476 | wxPy_BEGIN_ALLOW_THREADS; | |
6477 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6478 | ||
6479 | wxPy_END_ALLOW_THREADS; | |
6480 | } Py_INCREF(Py_None); | |
6481 | _resultobj = Py_None; | |
6482 | { | |
6483 | PyObject *o; | |
6484 | o = PyInt_FromLong((long) (*_arg3)); | |
6485 | _resultobj = t_output_helper(_resultobj, o); | |
6486 | } | |
6487 | { | |
6488 | PyObject *o; | |
6489 | o = PyInt_FromLong((long) (*_arg4)); | |
6490 | _resultobj = t_output_helper(_resultobj, o); | |
6491 | } | |
6492 | return _resultobj; | |
6493 | } | |
6494 | ||
6495 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6496 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6497 | PyObject * _resultobj; | |
6498 | wxScrolledWindow * _arg0; | |
6499 | int _arg1; | |
6500 | int _arg2; | |
6501 | int * _arg3; | |
6502 | int temp; | |
6503 | int * _arg4; | |
6504 | int temp0; | |
6505 | PyObject * _argo0 = 0; | |
6506 | char *_kwnames[] = { "self","x","y", NULL }; | |
6507 | ||
6508 | self = self; | |
6509 | { | |
6510 | _arg3 = &temp; | |
6511 | } | |
6512 | { | |
6513 | _arg4 = &temp0; | |
6514 | } | |
6515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6516 | return NULL; | |
6517 | if (_argo0) { | |
6518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6521 | return NULL; | |
6522 | } | |
6523 | } | |
6524 | { | |
6525 | wxPy_BEGIN_ALLOW_THREADS; | |
6526 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6527 | ||
6528 | wxPy_END_ALLOW_THREADS; | |
6529 | } Py_INCREF(Py_None); | |
6530 | _resultobj = Py_None; | |
6531 | { | |
6532 | PyObject *o; | |
6533 | o = PyInt_FromLong((long) (*_arg3)); | |
6534 | _resultobj = t_output_helper(_resultobj, o); | |
6535 | } | |
6536 | { | |
6537 | PyObject *o; | |
6538 | o = PyInt_FromLong((long) (*_arg4)); | |
6539 | _resultobj = t_output_helper(_resultobj, o); | |
6540 | } | |
6541 | return _resultobj; | |
6542 | } | |
6543 | ||
6544 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) | |
6545 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6546 | PyObject * _resultobj; | |
6547 | wxScrolledWindow * _arg0; | |
6548 | double _arg1; | |
6549 | double _arg2; | |
6550 | PyObject * _argo0 = 0; | |
6551 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6552 | ||
6553 | self = self; | |
6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6555 | return NULL; | |
6556 | if (_argo0) { | |
6557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6560 | return NULL; | |
6561 | } | |
6562 | } | |
6563 | { | |
6564 | wxPy_BEGIN_ALLOW_THREADS; | |
6565 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6566 | ||
6567 | wxPy_END_ALLOW_THREADS; | |
6568 | } Py_INCREF(Py_None); | |
6569 | _resultobj = Py_None; | |
6570 | return _resultobj; | |
6571 | } | |
6572 | ||
6573 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6574 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject * _resultobj; | |
6576 | double _result; | |
6577 | wxScrolledWindow * _arg0; | |
6578 | PyObject * _argo0 = 0; | |
6579 | char *_kwnames[] = { "self", NULL }; | |
6580 | ||
6581 | self = self; | |
6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6583 | return NULL; | |
6584 | if (_argo0) { | |
6585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6588 | return NULL; | |
6589 | } | |
6590 | } | |
6591 | { | |
6592 | wxPy_BEGIN_ALLOW_THREADS; | |
6593 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6594 | ||
6595 | wxPy_END_ALLOW_THREADS; | |
6596 | } _resultobj = Py_BuildValue("d",_result); | |
6597 | return _resultobj; | |
6598 | } | |
6599 | ||
6600 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6601 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6602 | PyObject * _resultobj; | |
6603 | double _result; | |
6604 | wxScrolledWindow * _arg0; | |
6605 | PyObject * _argo0 = 0; | |
6606 | char *_kwnames[] = { "self", NULL }; | |
6607 | ||
6608 | self = self; | |
6609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6610 | return NULL; | |
6611 | if (_argo0) { | |
6612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6615 | return NULL; | |
6616 | } | |
6617 | } | |
6618 | { | |
6619 | wxPy_BEGIN_ALLOW_THREADS; | |
6620 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6621 | ||
6622 | wxPy_END_ALLOW_THREADS; | |
6623 | } _resultobj = Py_BuildValue("d",_result); | |
6624 | return _resultobj; | |
6625 | } | |
6626 | ||
6627 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6628 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6629 | PyObject * _resultobj; | |
6630 | wxScrolledWindow * _arg0; | |
6631 | PyObject * _argo0 = 0; | |
6632 | char *_kwnames[] = { "self", NULL }; | |
6633 | ||
6634 | self = self; | |
6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6636 | return NULL; | |
6637 | if (_argo0) { | |
6638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6641 | return NULL; | |
6642 | } | |
6643 | } | |
6644 | { | |
6645 | wxPy_BEGIN_ALLOW_THREADS; | |
6646 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6647 | ||
6648 | wxPy_END_ALLOW_THREADS; | |
6649 | } Py_INCREF(Py_None); | |
6650 | _resultobj = Py_None; | |
6651 | return _resultobj; | |
6652 | } | |
6653 | ||
6654 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
6655 | wxMenu *src; | |
6656 | wxEvtHandler *dest; | |
6657 | src = (wxMenu *) ptr; | |
6658 | dest = (wxEvtHandler *) src; | |
6659 | return (void *) dest; | |
6660 | } | |
6661 | ||
6662 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
6663 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6664 | PyObject * _resultobj; | |
6665 | wxMenu * _result; | |
6666 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
6667 | long _arg1 = (long ) 0; | |
6668 | PyObject * _obj0 = 0; | |
6669 | char *_kwnames[] = { "title","style", NULL }; | |
6670 | char _ptemp[128]; | |
6671 | ||
6672 | self = self; | |
6673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
6674 | return NULL; | |
6675 | if (_obj0) | |
6676 | { | |
6677 | #if PYTHON_API_VERSION >= 1009 | |
6678 | char* tmpPtr; int tmpSize; | |
6679 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
6680 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6681 | return NULL; | |
6682 | } | |
6683 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6684 | return NULL; | |
6685 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6686 | #else | |
6687 | if (!PyString_Check(_obj0)) { | |
6688 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6689 | return NULL; | |
6690 | } | |
6691 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
6692 | #endif | |
6693 | } | |
6694 | { | |
6695 | wxPy_BEGIN_ALLOW_THREADS; | |
6696 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
6697 | ||
6698 | wxPy_END_ALLOW_THREADS; | |
6699 | } if (_result) { | |
6700 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6701 | _resultobj = Py_BuildValue("s",_ptemp); | |
6702 | } else { | |
6703 | Py_INCREF(Py_None); | |
6704 | _resultobj = Py_None; | |
6705 | } | |
6706 | { | |
6707 | if (_obj0) | |
6708 | delete _arg0; | |
6709 | } | |
6710 | return _resultobj; | |
6711 | } | |
6712 | ||
6713 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6714 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6715 | PyObject * _resultobj; | |
6716 | wxMenu * _arg0; | |
6717 | int _arg1; | |
6718 | wxString * _arg2; | |
6719 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
6720 | int _arg4 = (int ) FALSE; | |
6721 | PyObject * _argo0 = 0; | |
6722 | PyObject * _obj2 = 0; | |
6723 | PyObject * _obj3 = 0; | |
6724 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; | |
6725 | ||
6726 | self = self; | |
6727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
6728 | return NULL; | |
6729 | if (_argo0) { | |
6730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
6733 | return NULL; | |
6734 | } | |
6735 | } | |
6736 | { | |
6737 | #if PYTHON_API_VERSION >= 1009 | |
6738 | char* tmpPtr; int tmpSize; | |
6739 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6740 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6741 | return NULL; | |
6742 | } | |
6743 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6744 | return NULL; | |
6745 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6746 | #else | |
6747 | if (!PyString_Check(_obj2)) { | |
6748 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6749 | return NULL; | |
6750 | } | |
6751 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
6752 | #endif | |
6753 | } | |
6754 | if (_obj3) | |
6755 | { | |
6756 | #if PYTHON_API_VERSION >= 1009 | |
6757 | char* tmpPtr; int tmpSize; | |
6758 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6759 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6760 | return NULL; | |
6761 | } | |
6762 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6763 | return NULL; | |
6764 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6765 | #else | |
6766 | if (!PyString_Check(_obj3)) { | |
6767 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6768 | return NULL; | |
6769 | } | |
6770 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
6771 | #endif | |
6772 | } | |
6773 | { | |
6774 | wxPy_BEGIN_ALLOW_THREADS; | |
6775 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6776 | ||
6777 | wxPy_END_ALLOW_THREADS; | |
6778 | } Py_INCREF(Py_None); | |
6779 | _resultobj = Py_None; | |
6780 | { | |
6781 | if (_obj2) | |
6782 | delete _arg2; | |
6783 | } | |
6784 | { | |
6785 | if (_obj3) | |
6786 | delete _arg3; | |
6787 | } | |
6788 | return _resultobj; | |
6789 | } | |
6790 | ||
6791 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6792 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6793 | PyObject * _resultobj; | |
6794 | wxMenu * _arg0; | |
6795 | int _arg1; | |
6796 | wxString * _arg2; | |
6797 | wxMenu * _arg3; | |
6798 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; | |
6799 | PyObject * _argo0 = 0; | |
6800 | PyObject * _obj2 = 0; | |
6801 | PyObject * _argo3 = 0; | |
6802 | PyObject * _obj4 = 0; | |
6803 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
6804 | ||
6805 | self = self; | |
6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
6807 | return NULL; | |
6808 | if (_argo0) { | |
6809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
6812 | return NULL; | |
6813 | } | |
6814 | } | |
6815 | { | |
6816 | #if PYTHON_API_VERSION >= 1009 | |
6817 | char* tmpPtr; int tmpSize; | |
6818 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6819 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6820 | return NULL; | |
6821 | } | |
6822 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6823 | return NULL; | |
6824 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6825 | #else | |
6826 | if (!PyString_Check(_obj2)) { | |
6827 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6828 | return NULL; | |
6829 | } | |
6830 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
6831 | #endif | |
6832 | } | |
6833 | if (_argo3) { | |
6834 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6835 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
6836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
6837 | return NULL; | |
6838 | } | |
6839 | } | |
6840 | if (_obj4) | |
6841 | { | |
6842 | #if PYTHON_API_VERSION >= 1009 | |
6843 | char* tmpPtr; int tmpSize; | |
6844 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
6845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6846 | return NULL; | |
6847 | } | |
6848 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
6849 | return NULL; | |
6850 | _arg4 = new wxString(tmpPtr, tmpSize); | |
6851 | #else | |
6852 | if (!PyString_Check(_obj4)) { | |
6853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6854 | return NULL; | |
6855 | } | |
6856 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); | |
6857 | #endif | |
6858 | } | |
6859 | { | |
6860 | wxPy_BEGIN_ALLOW_THREADS; | |
6861 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6862 | ||
6863 | wxPy_END_ALLOW_THREADS; | |
6864 | } Py_INCREF(Py_None); | |
6865 | _resultobj = Py_None; | |
6866 | { | |
6867 | if (_obj2) | |
6868 | delete _arg2; | |
6869 | } | |
6870 | { | |
6871 | if (_obj4) | |
6872 | delete _arg4; | |
6873 | } | |
6874 | return _resultobj; | |
6875 | } | |
6876 | ||
6877 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
6878 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6879 | PyObject * _resultobj; | |
6880 | wxMenu * _arg0; | |
6881 | wxMenuItem * _arg1; | |
6882 | PyObject * _argo0 = 0; | |
6883 | PyObject * _argo1 = 0; | |
6884 | char *_kwnames[] = { "self","item", NULL }; | |
6885 | ||
6886 | self = self; | |
6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
6888 | return NULL; | |
6889 | if (_argo0) { | |
6890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
6893 | return NULL; | |
6894 | } | |
6895 | } | |
6896 | if (_argo1) { | |
6897 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6898 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
6900 | return NULL; | |
6901 | } | |
6902 | } | |
6903 | { | |
6904 | wxPy_BEGIN_ALLOW_THREADS; | |
6905 | wxMenu_AppendItem(_arg0,_arg1); | |
6906 | ||
6907 | wxPy_END_ALLOW_THREADS; | |
6908 | } Py_INCREF(Py_None); | |
6909 | _resultobj = Py_None; | |
6910 | return _resultobj; | |
6911 | } | |
6912 | ||
6913 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
6914 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject * _resultobj; | |
6916 | wxMenu * _arg0; | |
6917 | PyObject * _argo0 = 0; | |
6918 | char *_kwnames[] = { "self", NULL }; | |
6919 | ||
6920 | self = self; | |
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
6922 | return NULL; | |
6923 | if (_argo0) { | |
6924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
6927 | return NULL; | |
6928 | } | |
6929 | } | |
6930 | { | |
6931 | wxPy_BEGIN_ALLOW_THREADS; | |
6932 | wxMenu_AppendSeparator(_arg0); | |
6933 | ||
6934 | wxPy_END_ALLOW_THREADS; | |
6935 | } Py_INCREF(Py_None); | |
6936 | _resultobj = Py_None; | |
6937 | return _resultobj; | |
6938 | } | |
6939 | ||
6940 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
6941 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6942 | PyObject * _resultobj; | |
6943 | wxMenu * _arg0; | |
6944 | PyObject * _argo0 = 0; | |
6945 | char *_kwnames[] = { "self", NULL }; | |
6946 | ||
6947 | self = self; | |
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) | |
6949 | return NULL; | |
6950 | if (_argo0) { | |
6951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); | |
6954 | return NULL; | |
6955 | } | |
6956 | } | |
6957 | { | |
6958 | wxPy_BEGIN_ALLOW_THREADS; | |
6959 | wxMenu_Break(_arg0); | |
6960 | ||
6961 | wxPy_END_ALLOW_THREADS; | |
6962 | } Py_INCREF(Py_None); | |
6963 | _resultobj = Py_None; | |
6964 | return _resultobj; | |
6965 | } | |
6966 | ||
6967 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
6968 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6969 | PyObject * _resultobj; | |
6970 | wxMenu * _arg0; | |
6971 | int _arg1; | |
6972 | bool _arg2; | |
6973 | PyObject * _argo0 = 0; | |
6974 | int tempbool2; | |
6975 | char *_kwnames[] = { "self","id","flag", NULL }; | |
6976 | ||
6977 | self = self; | |
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
6979 | return NULL; | |
6980 | if (_argo0) { | |
6981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); | |
6984 | return NULL; | |
6985 | } | |
6986 | } | |
6987 | _arg2 = (bool ) tempbool2; | |
6988 | { | |
6989 | wxPy_BEGIN_ALLOW_THREADS; | |
6990 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6991 | ||
6992 | wxPy_END_ALLOW_THREADS; | |
6993 | } Py_INCREF(Py_None); | |
6994 | _resultobj = Py_None; | |
6995 | return _resultobj; | |
6996 | } | |
6997 | ||
6998 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
6999 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7000 | PyObject * _resultobj; | |
7001 | bool _result; | |
7002 | wxMenu * _arg0; | |
7003 | int _arg1; | |
7004 | PyObject * _argo0 = 0; | |
7005 | char *_kwnames[] = { "self","id", NULL }; | |
7006 | ||
7007 | self = self; | |
7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7009 | return NULL; | |
7010 | if (_argo0) { | |
7011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7014 | return NULL; | |
7015 | } | |
7016 | } | |
7017 | { | |
7018 | wxPy_BEGIN_ALLOW_THREADS; | |
7019 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7020 | ||
7021 | wxPy_END_ALLOW_THREADS; | |
7022 | } _resultobj = Py_BuildValue("i",_result); | |
7023 | return _resultobj; | |
7024 | } | |
7025 | ||
7026 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
7027 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7028 | PyObject * _resultobj; | |
7029 | wxMenu * _arg0; | |
7030 | int _arg1; | |
7031 | bool _arg2; | |
7032 | PyObject * _argo0 = 0; | |
7033 | int tempbool2; | |
7034 | char *_kwnames[] = { "self","id","enable", NULL }; | |
7035 | ||
7036 | self = self; | |
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7038 | return NULL; | |
7039 | if (_argo0) { | |
7040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); | |
7043 | return NULL; | |
7044 | } | |
7045 | } | |
7046 | _arg2 = (bool ) tempbool2; | |
7047 | { | |
7048 | wxPy_BEGIN_ALLOW_THREADS; | |
7049 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7050 | ||
7051 | wxPy_END_ALLOW_THREADS; | |
7052 | } Py_INCREF(Py_None); | |
7053 | _resultobj = Py_None; | |
7054 | return _resultobj; | |
7055 | } | |
7056 | ||
7057 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
7058 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject * _resultobj; | |
7060 | bool _result; | |
7061 | wxMenu * _arg0; | |
7062 | int _arg1; | |
7063 | PyObject * _argo0 = 0; | |
7064 | char *_kwnames[] = { "self","id", NULL }; | |
7065 | ||
7066 | self = self; | |
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7068 | return NULL; | |
7069 | if (_argo0) { | |
7070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7073 | return NULL; | |
7074 | } | |
7075 | } | |
7076 | { | |
7077 | wxPy_BEGIN_ALLOW_THREADS; | |
7078 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7079 | ||
7080 | wxPy_END_ALLOW_THREADS; | |
7081 | } _resultobj = Py_BuildValue("i",_result); | |
7082 | return _resultobj; | |
7083 | } | |
7084 | ||
7085 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7086 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject * _resultobj; | |
7088 | int _result; | |
7089 | wxMenu * _arg0; | |
7090 | wxString * _arg1; | |
7091 | PyObject * _argo0 = 0; | |
7092 | PyObject * _obj1 = 0; | |
7093 | char *_kwnames[] = { "self","itemString", NULL }; | |
7094 | ||
7095 | self = self; | |
7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) | |
7097 | return NULL; | |
7098 | if (_argo0) { | |
7099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); | |
7102 | return NULL; | |
7103 | } | |
7104 | } | |
7105 | { | |
7106 | #if PYTHON_API_VERSION >= 1009 | |
7107 | char* tmpPtr; int tmpSize; | |
7108 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7109 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7110 | return NULL; | |
7111 | } | |
7112 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7113 | return NULL; | |
7114 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7115 | #else | |
7116 | if (!PyString_Check(_obj1)) { | |
7117 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7118 | return NULL; | |
7119 | } | |
7120 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7121 | #endif | |
7122 | } | |
7123 | { | |
7124 | wxPy_BEGIN_ALLOW_THREADS; | |
7125 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7126 | ||
7127 | wxPy_END_ALLOW_THREADS; | |
7128 | } _resultobj = Py_BuildValue("i",_result); | |
7129 | { | |
7130 | if (_obj1) | |
7131 | delete _arg1; | |
7132 | } | |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
7136 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7137 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7138 | PyObject * _resultobj; | |
7139 | wxMenuItem * _result; | |
7140 | wxMenu * _arg0; | |
7141 | int _arg1; | |
7142 | PyObject * _argo0 = 0; | |
7143 | char *_kwnames[] = { "self","id", NULL }; | |
7144 | char _ptemp[128]; | |
7145 | ||
7146 | self = self; | |
7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7148 | return NULL; | |
7149 | if (_argo0) { | |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7153 | return NULL; | |
7154 | } | |
7155 | } | |
7156 | { | |
7157 | wxPy_BEGIN_ALLOW_THREADS; | |
7158 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7159 | ||
7160 | wxPy_END_ALLOW_THREADS; | |
7161 | } if (_result) { | |
7162 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7163 | _resultobj = Py_BuildValue("s",_ptemp); | |
7164 | } else { | |
7165 | Py_INCREF(Py_None); | |
7166 | _resultobj = Py_None; | |
7167 | } | |
7168 | return _resultobj; | |
7169 | } | |
7170 | ||
7171 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
7172 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject * _resultobj; | |
7174 | wxString * _result; | |
7175 | wxMenu * _arg0; | |
7176 | PyObject * _argo0 = 0; | |
7177 | char *_kwnames[] = { "self", NULL }; | |
7178 | ||
7179 | self = self; | |
7180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) | |
7181 | return NULL; | |
7182 | if (_argo0) { | |
7183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); | |
7186 | return NULL; | |
7187 | } | |
7188 | } | |
7189 | { | |
7190 | wxPy_BEGIN_ALLOW_THREADS; | |
7191 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7192 | ||
7193 | wxPy_END_ALLOW_THREADS; | |
7194 | }{ | |
7195 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7196 | } | |
7197 | { | |
7198 | delete _result; | |
7199 | } | |
7200 | return _resultobj; | |
7201 | } | |
7202 | ||
7203 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
7204 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7205 | PyObject * _resultobj; | |
7206 | wxMenu * _arg0; | |
7207 | wxString * _arg1; | |
7208 | PyObject * _argo0 = 0; | |
7209 | PyObject * _obj1 = 0; | |
7210 | char *_kwnames[] = { "self","title", NULL }; | |
7211 | ||
7212 | self = self; | |
7213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) | |
7214 | return NULL; | |
7215 | if (_argo0) { | |
7216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); | |
7219 | return NULL; | |
7220 | } | |
7221 | } | |
7222 | { | |
7223 | #if PYTHON_API_VERSION >= 1009 | |
7224 | char* tmpPtr; int tmpSize; | |
7225 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7226 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7227 | return NULL; | |
7228 | } | |
7229 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7230 | return NULL; | |
7231 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7232 | #else | |
7233 | if (!PyString_Check(_obj1)) { | |
7234 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7235 | return NULL; | |
7236 | } | |
7237 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7238 | #endif | |
7239 | } | |
7240 | { | |
7241 | wxPy_BEGIN_ALLOW_THREADS; | |
7242 | wxMenu_SetTitle(_arg0,*_arg1); | |
7243 | ||
7244 | wxPy_END_ALLOW_THREADS; | |
7245 | } Py_INCREF(Py_None); | |
7246 | _resultobj = Py_None; | |
7247 | { | |
7248 | if (_obj1) | |
7249 | delete _arg1; | |
7250 | } | |
7251 | return _resultobj; | |
7252 | } | |
7253 | ||
7254 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
7255 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7256 | PyObject * _resultobj; | |
7257 | wxString * _result; | |
7258 | wxMenu * _arg0; | |
7259 | int _arg1; | |
7260 | PyObject * _argo0 = 0; | |
7261 | char *_kwnames[] = { "self","id", NULL }; | |
7262 | ||
7263 | self = self; | |
7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) | |
7265 | return NULL; | |
7266 | if (_argo0) { | |
7267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); | |
7270 | return NULL; | |
7271 | } | |
7272 | } | |
7273 | { | |
7274 | wxPy_BEGIN_ALLOW_THREADS; | |
7275 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); | |
7276 | ||
7277 | wxPy_END_ALLOW_THREADS; | |
7278 | }{ | |
7279 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7280 | } | |
7281 | { | |
7282 | delete _result; | |
7283 | } | |
7284 | return _resultobj; | |
7285 | } | |
7286 | ||
7287 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
7288 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7289 | PyObject * _resultobj; | |
7290 | wxMenu * _arg0; | |
7291 | int _arg1; | |
7292 | wxString * _arg2; | |
7293 | PyObject * _argo0 = 0; | |
7294 | PyObject * _obj2 = 0; | |
7295 | char *_kwnames[] = { "self","id","label", NULL }; | |
7296 | ||
7297 | self = self; | |
7298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7299 | return NULL; | |
7300 | if (_argo0) { | |
7301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); | |
7304 | return NULL; | |
7305 | } | |
7306 | } | |
7307 | { | |
7308 | #if PYTHON_API_VERSION >= 1009 | |
7309 | char* tmpPtr; int tmpSize; | |
7310 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7311 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7312 | return NULL; | |
7313 | } | |
7314 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7315 | return NULL; | |
7316 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7317 | #else | |
7318 | if (!PyString_Check(_obj2)) { | |
7319 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7320 | return NULL; | |
7321 | } | |
7322 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7323 | #endif | |
7324 | } | |
7325 | { | |
7326 | wxPy_BEGIN_ALLOW_THREADS; | |
7327 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); | |
7328 | ||
7329 | wxPy_END_ALLOW_THREADS; | |
7330 | } Py_INCREF(Py_None); | |
7331 | _resultobj = Py_None; | |
7332 | { | |
7333 | if (_obj2) | |
7334 | delete _arg2; | |
7335 | } | |
7336 | return _resultobj; | |
7337 | } | |
7338 | ||
7339 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
7340 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject * _resultobj; | |
7342 | wxString * _result; | |
7343 | wxMenu * _arg0; | |
7344 | int _arg1; | |
7345 | PyObject * _argo0 = 0; | |
7346 | char *_kwnames[] = { "self","id", NULL }; | |
7347 | ||
7348 | self = self; | |
7349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
7350 | return NULL; | |
7351 | if (_argo0) { | |
7352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); | |
7355 | return NULL; | |
7356 | } | |
7357 | } | |
7358 | { | |
7359 | wxPy_BEGIN_ALLOW_THREADS; | |
7360 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); | |
7361 | ||
7362 | wxPy_END_ALLOW_THREADS; | |
7363 | }{ | |
7364 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7365 | } | |
7366 | { | |
7367 | delete _result; | |
7368 | } | |
7369 | return _resultobj; | |
7370 | } | |
7371 | ||
7372 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
7373 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7374 | PyObject * _resultobj; | |
7375 | wxMenu * _arg0; | |
7376 | int _arg1; | |
7377 | wxString * _arg2; | |
7378 | PyObject * _argo0 = 0; | |
7379 | PyObject * _obj2 = 0; | |
7380 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
7381 | ||
7382 | self = self; | |
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7384 | return NULL; | |
7385 | if (_argo0) { | |
7386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); | |
7389 | return NULL; | |
7390 | } | |
7391 | } | |
7392 | { | |
7393 | #if PYTHON_API_VERSION >= 1009 | |
7394 | char* tmpPtr; int tmpSize; | |
7395 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7397 | return NULL; | |
7398 | } | |
7399 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7400 | return NULL; | |
7401 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7402 | #else | |
7403 | if (!PyString_Check(_obj2)) { | |
7404 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7405 | return NULL; | |
7406 | } | |
7407 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7408 | #endif | |
7409 | } | |
7410 | { | |
7411 | wxPy_BEGIN_ALLOW_THREADS; | |
7412 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7413 | ||
7414 | wxPy_END_ALLOW_THREADS; | |
7415 | } Py_INCREF(Py_None); | |
7416 | _resultobj = Py_None; | |
7417 | { | |
7418 | if (_obj2) | |
7419 | delete _arg2; | |
7420 | } | |
7421 | return _resultobj; | |
7422 | } | |
7423 | ||
7424 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) | |
7425 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7426 | PyObject * _resultobj; | |
7427 | wxMenu * _arg0; | |
7428 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; | |
7429 | PyObject * _argo0 = 0; | |
7430 | PyObject * _argo1 = 0; | |
7431 | char *_kwnames[] = { "self","source", NULL }; | |
7432 | ||
7433 | self = self; | |
7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) | |
7435 | return NULL; | |
7436 | if (_argo0) { | |
7437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); | |
7440 | return NULL; | |
7441 | } | |
7442 | } | |
7443 | if (_argo1) { | |
7444 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7445 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
7447 | return NULL; | |
7448 | } | |
7449 | } | |
7450 | { | |
7451 | wxPy_BEGIN_ALLOW_THREADS; | |
7452 | wxMenu_UpdateUI(_arg0,_arg1); | |
7453 | ||
7454 | wxPy_END_ALLOW_THREADS; | |
7455 | } Py_INCREF(Py_None); | |
7456 | _resultobj = Py_None; | |
7457 | return _resultobj; | |
7458 | } | |
7459 | ||
7460 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
7461 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject * _resultobj; | |
7463 | bool _result; | |
7464 | wxMenu * _arg0; | |
7465 | int _arg1; | |
7466 | PyObject * _argo0 = 0; | |
7467 | char *_kwnames[] = { "self","id", NULL }; | |
7468 | ||
7469 | self = self; | |
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) | |
7471 | return NULL; | |
7472 | if (_argo0) { | |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | { | |
7480 | wxPy_BEGIN_ALLOW_THREADS; | |
7481 | _result = (bool )wxMenu_Delete(_arg0,_arg1); | |
7482 | ||
7483 | wxPy_END_ALLOW_THREADS; | |
7484 | } _resultobj = Py_BuildValue("i",_result); | |
7485 | return _resultobj; | |
7486 | } | |
7487 | ||
7488 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
7489 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7490 | PyObject * _resultobj; | |
7491 | bool _result; | |
7492 | wxMenu * _arg0; | |
7493 | wxMenuItem * _arg1; | |
7494 | PyObject * _argo0 = 0; | |
7495 | PyObject * _argo1 = 0; | |
7496 | char *_kwnames[] = { "self","item", NULL }; | |
7497 | ||
7498 | self = self; | |
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) | |
7500 | return NULL; | |
7501 | if (_argo0) { | |
7502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); | |
7505 | return NULL; | |
7506 | } | |
7507 | } | |
7508 | if (_argo1) { | |
7509 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7510 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
7512 | return NULL; | |
7513 | } | |
7514 | } | |
7515 | { | |
7516 | wxPy_BEGIN_ALLOW_THREADS; | |
7517 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); | |
7518 | ||
7519 | wxPy_END_ALLOW_THREADS; | |
7520 | } _resultobj = Py_BuildValue("i",_result); | |
7521 | return _resultobj; | |
7522 | } | |
7523 | ||
7524 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) | |
7525 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7526 | PyObject * _resultobj; | |
7527 | bool _result; | |
7528 | wxMenu * _arg0; | |
7529 | size_t _arg1; | |
7530 | wxMenuItem * _arg2; | |
7531 | PyObject * _argo0 = 0; | |
7532 | PyObject * _argo2 = 0; | |
7533 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7534 | ||
7535 | self = self; | |
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) | |
7537 | return NULL; | |
7538 | if (_argo0) { | |
7539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7542 | return NULL; | |
7543 | } | |
7544 | } | |
7545 | if (_argo2) { | |
7546 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7547 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
7549 | return NULL; | |
7550 | } | |
7551 | } | |
7552 | { | |
7553 | wxPy_BEGIN_ALLOW_THREADS; | |
7554 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); | |
7555 | ||
7556 | wxPy_END_ALLOW_THREADS; | |
7557 | } _resultobj = Py_BuildValue("i",_result); | |
7558 | return _resultobj; | |
7559 | } | |
7560 | ||
7561 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7562 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject * _resultobj; | |
7564 | wxMenuItem * _result; | |
7565 | wxMenu * _arg0; | |
7566 | int _arg1; | |
7567 | PyObject * _argo0 = 0; | |
7568 | char *_kwnames[] = { "self","id", NULL }; | |
7569 | char _ptemp[128]; | |
7570 | ||
7571 | self = self; | |
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) | |
7573 | return NULL; | |
7574 | if (_argo0) { | |
7575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); | |
7578 | return NULL; | |
7579 | } | |
7580 | } | |
7581 | { | |
7582 | wxPy_BEGIN_ALLOW_THREADS; | |
7583 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); | |
7584 | ||
7585 | wxPy_END_ALLOW_THREADS; | |
7586 | } if (_result) { | |
7587 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7588 | _resultobj = Py_BuildValue("s",_ptemp); | |
7589 | } else { | |
7590 | Py_INCREF(Py_None); | |
7591 | _resultobj = Py_None; | |
7592 | } | |
7593 | return _resultobj; | |
7594 | } | |
7595 | ||
7596 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7597 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7598 | PyObject * _resultobj; | |
7599 | wxMenuItem * _result; | |
7600 | wxMenu * _arg0; | |
7601 | wxMenuItem * _arg1; | |
7602 | PyObject * _argo0 = 0; | |
7603 | PyObject * _argo1 = 0; | |
7604 | char *_kwnames[] = { "self","item", NULL }; | |
7605 | char _ptemp[128]; | |
7606 | ||
7607 | self = self; | |
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) | |
7609 | return NULL; | |
7610 | if (_argo0) { | |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7614 | return NULL; | |
7615 | } | |
7616 | } | |
7617 | if (_argo1) { | |
7618 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7619 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
7621 | return NULL; | |
7622 | } | |
7623 | } | |
7624 | { | |
7625 | wxPy_BEGIN_ALLOW_THREADS; | |
7626 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); | |
7627 | ||
7628 | wxPy_END_ALLOW_THREADS; | |
7629 | } if (_result) { | |
7630 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7631 | _resultobj = Py_BuildValue("s",_ptemp); | |
7632 | } else { | |
7633 | Py_INCREF(Py_None); | |
7634 | _resultobj = Py_None; | |
7635 | } | |
7636 | return _resultobj; | |
7637 | } | |
7638 | ||
7639 | static void wxMenu_Destroy(wxMenu *self) { delete self; } | |
7640 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject * _resultobj; | |
7642 | wxMenu * _arg0; | |
7643 | PyObject * _argo0 = 0; | |
7644 | char *_kwnames[] = { "self", NULL }; | |
7645 | ||
7646 | self = self; | |
7647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
7648 | return NULL; | |
7649 | if (_argo0) { | |
7650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
7653 | return NULL; | |
7654 | } | |
7655 | } | |
7656 | { | |
7657 | wxPy_BEGIN_ALLOW_THREADS; | |
7658 | wxMenu_Destroy(_arg0); | |
7659 | ||
7660 | wxPy_END_ALLOW_THREADS; | |
7661 | } Py_INCREF(Py_None); | |
7662 | _resultobj = Py_None; | |
7663 | return _resultobj; | |
7664 | } | |
7665 | ||
7666 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
7667 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7668 | PyObject * _resultobj; | |
7669 | bool _result; | |
7670 | wxMenu * _arg0; | |
7671 | int _arg1; | |
7672 | PyObject * _argo0 = 0; | |
7673 | char *_kwnames[] = { "self","id", NULL }; | |
7674 | ||
7675 | self = self; | |
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) | |
7677 | return NULL; | |
7678 | if (_argo0) { | |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
7682 | return NULL; | |
7683 | } | |
7684 | } | |
7685 | { | |
7686 | wxPy_BEGIN_ALLOW_THREADS; | |
7687 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); | |
7688 | ||
7689 | wxPy_END_ALLOW_THREADS; | |
7690 | } _resultobj = Py_BuildValue("i",_result); | |
7691 | return _resultobj; | |
7692 | } | |
7693 | ||
7694 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
7695 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject * _resultobj; | |
7697 | bool _result; | |
7698 | wxMenu * _arg0; | |
7699 | wxMenuItem * _arg1; | |
7700 | PyObject * _argo0 = 0; | |
7701 | PyObject * _argo1 = 0; | |
7702 | char *_kwnames[] = { "self","item", NULL }; | |
7703 | ||
7704 | self = self; | |
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) | |
7706 | return NULL; | |
7707 | if (_argo0) { | |
7708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7711 | return NULL; | |
7712 | } | |
7713 | } | |
7714 | if (_argo1) { | |
7715 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7716 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
7718 | return NULL; | |
7719 | } | |
7720 | } | |
7721 | { | |
7722 | wxPy_BEGIN_ALLOW_THREADS; | |
7723 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); | |
7724 | ||
7725 | wxPy_END_ALLOW_THREADS; | |
7726 | } _resultobj = Py_BuildValue("i",_result); | |
7727 | return _resultobj; | |
7728 | } | |
7729 | ||
7730 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) | |
7731 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7732 | PyObject * _resultobj; | |
7733 | size_t _result; | |
7734 | wxMenu * _arg0; | |
7735 | PyObject * _argo0 = 0; | |
7736 | char *_kwnames[] = { "self", NULL }; | |
7737 | ||
7738 | self = self; | |
7739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) | |
7740 | return NULL; | |
7741 | if (_argo0) { | |
7742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
7745 | return NULL; | |
7746 | } | |
7747 | } | |
7748 | { | |
7749 | wxPy_BEGIN_ALLOW_THREADS; | |
7750 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); | |
7751 | ||
7752 | wxPy_END_ALLOW_THREADS; | |
7753 | } _resultobj = Py_BuildValue("i",_result); | |
7754 | return _resultobj; | |
7755 | } | |
7756 | ||
7757 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { | |
7758 | wxMenuItemList& list = self->GetMenuItems(); | |
7759 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7760 | } | |
7761 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7762 | PyObject * _resultobj; | |
7763 | PyObject * _result; | |
7764 | wxMenu * _arg0; | |
7765 | PyObject * _argo0 = 0; | |
7766 | char *_kwnames[] = { "self", NULL }; | |
7767 | ||
7768 | self = self; | |
7769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) | |
7770 | return NULL; | |
7771 | if (_argo0) { | |
7772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
7775 | return NULL; | |
7776 | } | |
7777 | } | |
7778 | { | |
7779 | wxPy_BEGIN_ALLOW_THREADS; | |
7780 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); | |
7781 | ||
7782 | wxPy_END_ALLOW_THREADS; | |
7783 | }{ | |
7784 | _resultobj = _result; | |
7785 | } | |
7786 | return _resultobj; | |
7787 | } | |
7788 | ||
7789 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
7790 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7791 | PyObject * _resultobj; | |
7792 | wxMenu * _arg0; | |
7793 | wxEvtHandler * _arg1; | |
7794 | PyObject * _argo0 = 0; | |
7795 | PyObject * _argo1 = 0; | |
7796 | char *_kwnames[] = { "self","handler", NULL }; | |
7797 | ||
7798 | self = self; | |
7799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
7800 | return NULL; | |
7801 | if (_argo0) { | |
7802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
7805 | return NULL; | |
7806 | } | |
7807 | } | |
7808 | if (_argo1) { | |
7809 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7810 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
7812 | return NULL; | |
7813 | } | |
7814 | } | |
7815 | { | |
7816 | wxPy_BEGIN_ALLOW_THREADS; | |
7817 | wxMenu_SetEventHandler(_arg0,_arg1); | |
7818 | ||
7819 | wxPy_END_ALLOW_THREADS; | |
7820 | } Py_INCREF(Py_None); | |
7821 | _resultobj = Py_None; | |
7822 | return _resultobj; | |
7823 | } | |
7824 | ||
7825 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
7826 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject * _resultobj; | |
7828 | wxEvtHandler * _result; | |
7829 | wxMenu * _arg0; | |
7830 | PyObject * _argo0 = 0; | |
7831 | char *_kwnames[] = { "self", NULL }; | |
7832 | char _ptemp[128]; | |
7833 | ||
7834 | self = self; | |
7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) | |
7836 | return NULL; | |
7837 | if (_argo0) { | |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
7841 | return NULL; | |
7842 | } | |
7843 | } | |
7844 | { | |
7845 | wxPy_BEGIN_ALLOW_THREADS; | |
7846 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); | |
7847 | ||
7848 | wxPy_END_ALLOW_THREADS; | |
7849 | } if (_result) { | |
7850 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
7851 | _resultobj = Py_BuildValue("s",_ptemp); | |
7852 | } else { | |
7853 | Py_INCREF(Py_None); | |
7854 | _resultobj = Py_None; | |
7855 | } | |
7856 | return _resultobj; | |
7857 | } | |
7858 | ||
7859 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) | |
7860 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7861 | PyObject * _resultobj; | |
7862 | wxMenu * _arg0; | |
7863 | wxWindow * _arg1; | |
7864 | PyObject * _argo0 = 0; | |
7865 | PyObject * _argo1 = 0; | |
7866 | char *_kwnames[] = { "self","win", NULL }; | |
7867 | ||
7868 | self = self; | |
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) | |
7870 | return NULL; | |
7871 | if (_argo0) { | |
7872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
7875 | return NULL; | |
7876 | } | |
7877 | } | |
7878 | if (_argo1) { | |
7879 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7880 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
7882 | return NULL; | |
7883 | } | |
7884 | } | |
7885 | { | |
7886 | wxPy_BEGIN_ALLOW_THREADS; | |
7887 | wxMenu_SetInvokingWindow(_arg0,_arg1); | |
7888 | ||
7889 | wxPy_END_ALLOW_THREADS; | |
7890 | } Py_INCREF(Py_None); | |
7891 | _resultobj = Py_None; | |
7892 | return _resultobj; | |
7893 | } | |
7894 | ||
7895 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) | |
7896 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7897 | PyObject * _resultobj; | |
7898 | wxWindow * _result; | |
7899 | wxMenu * _arg0; | |
7900 | PyObject * _argo0 = 0; | |
7901 | char *_kwnames[] = { "self", NULL }; | |
7902 | char _ptemp[128]; | |
7903 | ||
7904 | self = self; | |
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) | |
7906 | return NULL; | |
7907 | if (_argo0) { | |
7908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
7911 | return NULL; | |
7912 | } | |
7913 | } | |
7914 | { | |
7915 | wxPy_BEGIN_ALLOW_THREADS; | |
7916 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); | |
7917 | ||
7918 | wxPy_END_ALLOW_THREADS; | |
7919 | } if (_result) { | |
7920 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7921 | _resultobj = Py_BuildValue("s",_ptemp); | |
7922 | } else { | |
7923 | Py_INCREF(Py_None); | |
7924 | _resultobj = Py_None; | |
7925 | } | |
7926 | return _resultobj; | |
7927 | } | |
7928 | ||
7929 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
7930 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7931 | PyObject * _resultobj; | |
7932 | long _result; | |
7933 | wxMenu * _arg0; | |
7934 | PyObject * _argo0 = 0; | |
7935 | char *_kwnames[] = { "self", NULL }; | |
7936 | ||
7937 | self = self; | |
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) | |
7939 | return NULL; | |
7940 | if (_argo0) { | |
7941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
7944 | return NULL; | |
7945 | } | |
7946 | } | |
7947 | { | |
7948 | wxPy_BEGIN_ALLOW_THREADS; | |
7949 | _result = (long )wxMenu_GetStyle(_arg0); | |
7950 | ||
7951 | wxPy_END_ALLOW_THREADS; | |
7952 | } _resultobj = Py_BuildValue("l",_result); | |
7953 | return _resultobj; | |
7954 | } | |
7955 | ||
7956 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) | |
7957 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject * _resultobj; | |
7959 | bool _result; | |
7960 | wxMenu * _arg0; | |
7961 | PyObject * _argo0 = 0; | |
7962 | char *_kwnames[] = { "self", NULL }; | |
7963 | ||
7964 | self = self; | |
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) | |
7966 | return NULL; | |
7967 | if (_argo0) { | |
7968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
7971 | return NULL; | |
7972 | } | |
7973 | } | |
7974 | { | |
7975 | wxPy_BEGIN_ALLOW_THREADS; | |
7976 | _result = (bool )wxMenu_IsAttached(_arg0); | |
7977 | ||
7978 | wxPy_END_ALLOW_THREADS; | |
7979 | } _resultobj = Py_BuildValue("i",_result); | |
7980 | return _resultobj; | |
7981 | } | |
7982 | ||
7983 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
7984 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject * _resultobj; | |
7986 | wxMenu * _arg0; | |
7987 | wxMenu * _arg1; | |
7988 | PyObject * _argo0 = 0; | |
7989 | PyObject * _argo1 = 0; | |
7990 | char *_kwnames[] = { "self","parent", NULL }; | |
7991 | ||
7992 | self = self; | |
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) | |
7994 | return NULL; | |
7995 | if (_argo0) { | |
7996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
7999 | return NULL; | |
8000 | } | |
8001 | } | |
8002 | if (_argo1) { | |
8003 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8004 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8006 | return NULL; | |
8007 | } | |
8008 | } | |
8009 | { | |
8010 | wxPy_BEGIN_ALLOW_THREADS; | |
8011 | wxMenu_SetParent(_arg0,_arg1); | |
8012 | ||
8013 | wxPy_END_ALLOW_THREADS; | |
8014 | } Py_INCREF(Py_None); | |
8015 | _resultobj = Py_None; | |
8016 | return _resultobj; | |
8017 | } | |
8018 | ||
8019 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) | |
8020 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8021 | PyObject * _resultobj; | |
8022 | wxMenu * _result; | |
8023 | wxMenu * _arg0; | |
8024 | PyObject * _argo0 = 0; | |
8025 | char *_kwnames[] = { "self", NULL }; | |
8026 | char _ptemp[128]; | |
8027 | ||
8028 | self = self; | |
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) | |
8030 | return NULL; | |
8031 | if (_argo0) { | |
8032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8035 | return NULL; | |
8036 | } | |
8037 | } | |
8038 | { | |
8039 | wxPy_BEGIN_ALLOW_THREADS; | |
8040 | _result = (wxMenu *)wxMenu_GetParent(_arg0); | |
8041 | ||
8042 | wxPy_END_ALLOW_THREADS; | |
8043 | } if (_result) { | |
8044 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8045 | _resultobj = Py_BuildValue("s",_ptemp); | |
8046 | } else { | |
8047 | Py_INCREF(Py_None); | |
8048 | _resultobj = Py_None; | |
8049 | } | |
8050 | return _resultobj; | |
8051 | } | |
8052 | ||
8053 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8054 | wxMenuBar *src; | |
8055 | wxWindow *dest; | |
8056 | src = (wxMenuBar *) ptr; | |
8057 | dest = (wxWindow *) src; | |
8058 | return (void *) dest; | |
8059 | } | |
8060 | ||
8061 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8062 | wxMenuBar *src; | |
8063 | wxEvtHandler *dest; | |
8064 | src = (wxMenuBar *) ptr; | |
8065 | dest = (wxEvtHandler *) src; | |
8066 | return (void *) dest; | |
8067 | } | |
8068 | ||
8069 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) | |
8070 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8071 | PyObject * _resultobj; | |
8072 | wxMenuBar * _result; | |
8073 | long _arg0 = (long ) 0; | |
8074 | char *_kwnames[] = { "style", NULL }; | |
8075 | char _ptemp[128]; | |
8076 | ||
8077 | self = self; | |
8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) | |
8079 | return NULL; | |
8080 | { | |
8081 | wxPy_BEGIN_ALLOW_THREADS; | |
8082 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); | |
8083 | ||
8084 | wxPy_END_ALLOW_THREADS; | |
8085 | } if (_result) { | |
8086 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8087 | _resultobj = Py_BuildValue("s",_ptemp); | |
8088 | } else { | |
8089 | Py_INCREF(Py_None); | |
8090 | _resultobj = Py_None; | |
8091 | } | |
8092 | return _resultobj; | |
8093 | } | |
8094 | ||
8095 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
8096 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8097 | PyObject * _resultobj; | |
8098 | bool _result; | |
8099 | wxMenuBar * _arg0; | |
8100 | wxMenu * _arg1; | |
8101 | wxString * _arg2; | |
8102 | PyObject * _argo0 = 0; | |
8103 | PyObject * _argo1 = 0; | |
8104 | PyObject * _obj2 = 0; | |
8105 | char *_kwnames[] = { "self","menu","title", NULL }; | |
8106 | ||
8107 | self = self; | |
8108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) | |
8109 | return NULL; | |
8110 | if (_argo0) { | |
8111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); | |
8114 | return NULL; | |
8115 | } | |
8116 | } | |
8117 | if (_argo1) { | |
8118 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8119 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8121 | return NULL; | |
8122 | } | |
8123 | } | |
8124 | { | |
8125 | #if PYTHON_API_VERSION >= 1009 | |
8126 | char* tmpPtr; int tmpSize; | |
8127 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8128 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8129 | return NULL; | |
8130 | } | |
8131 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8132 | return NULL; | |
8133 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8134 | #else | |
8135 | if (!PyString_Check(_obj2)) { | |
8136 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8137 | return NULL; | |
8138 | } | |
8139 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8140 | #endif | |
8141 | } | |
8142 | { | |
8143 | wxPy_BEGIN_ALLOW_THREADS; | |
8144 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); | |
8145 | ||
8146 | wxPy_END_ALLOW_THREADS; | |
8147 | } _resultobj = Py_BuildValue("i",_result); | |
8148 | { | |
8149 | if (_obj2) | |
8150 | delete _arg2; | |
8151 | } | |
8152 | return _resultobj; | |
8153 | } | |
8154 | ||
8155 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) | |
8156 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8157 | PyObject * _resultobj; | |
8158 | bool _result; | |
8159 | wxMenuBar * _arg0; | |
8160 | size_t _arg1; | |
8161 | wxMenu * _arg2; | |
8162 | wxString * _arg3; | |
8163 | PyObject * _argo0 = 0; | |
8164 | PyObject * _argo2 = 0; | |
8165 | PyObject * _obj3 = 0; | |
8166 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8167 | ||
8168 | self = self; | |
8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8170 | return NULL; | |
8171 | if (_argo0) { | |
8172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); | |
8175 | return NULL; | |
8176 | } | |
8177 | } | |
8178 | if (_argo2) { | |
8179 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8180 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8182 | return NULL; | |
8183 | } | |
8184 | } | |
8185 | { | |
8186 | #if PYTHON_API_VERSION >= 1009 | |
8187 | char* tmpPtr; int tmpSize; | |
8188 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8189 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8190 | return NULL; | |
8191 | } | |
8192 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8193 | return NULL; | |
8194 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8195 | #else | |
8196 | if (!PyString_Check(_obj3)) { | |
8197 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8198 | return NULL; | |
8199 | } | |
8200 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8201 | #endif | |
8202 | } | |
8203 | { | |
8204 | wxPy_BEGIN_ALLOW_THREADS; | |
8205 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); | |
8206 | ||
8207 | wxPy_END_ALLOW_THREADS; | |
8208 | } _resultobj = Py_BuildValue("i",_result); | |
8209 | { | |
8210 | if (_obj3) | |
8211 | delete _arg3; | |
8212 | } | |
8213 | return _resultobj; | |
8214 | } | |
8215 | ||
8216 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) | |
8217 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8218 | PyObject * _resultobj; | |
8219 | size_t _result; | |
8220 | wxMenuBar * _arg0; | |
8221 | PyObject * _argo0 = 0; | |
8222 | char *_kwnames[] = { "self", NULL }; | |
8223 | ||
8224 | self = self; | |
8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) | |
8226 | return NULL; | |
8227 | if (_argo0) { | |
8228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); | |
8231 | return NULL; | |
8232 | } | |
8233 | } | |
8234 | { | |
8235 | wxPy_BEGIN_ALLOW_THREADS; | |
8236 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); | |
8237 | ||
8238 | wxPy_END_ALLOW_THREADS; | |
8239 | } _resultobj = Py_BuildValue("i",_result); | |
8240 | return _resultobj; | |
8241 | } | |
8242 | ||
8243 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
8244 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8245 | PyObject * _resultobj; | |
8246 | wxMenu * _result; | |
8247 | wxMenuBar * _arg0; | |
8248 | size_t _arg1; | |
8249 | PyObject * _argo0 = 0; | |
8250 | char *_kwnames[] = { "self","pos", NULL }; | |
8251 | char _ptemp[128]; | |
8252 | ||
8253 | self = self; | |
8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) | |
8255 | return NULL; | |
8256 | if (_argo0) { | |
8257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); | |
8260 | return NULL; | |
8261 | } | |
8262 | } | |
8263 | { | |
8264 | wxPy_BEGIN_ALLOW_THREADS; | |
8265 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); | |
8266 | ||
8267 | wxPy_END_ALLOW_THREADS; | |
8268 | } if (_result) { | |
8269 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8270 | _resultobj = Py_BuildValue("s",_ptemp); | |
8271 | } else { | |
8272 | Py_INCREF(Py_None); | |
8273 | _resultobj = Py_None; | |
8274 | } | |
8275 | return _resultobj; | |
8276 | } | |
8277 | ||
8278 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
8279 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject * _resultobj; | |
8281 | wxMenu * _result; | |
8282 | wxMenuBar * _arg0; | |
8283 | size_t _arg1; | |
8284 | wxMenu * _arg2; | |
8285 | wxString * _arg3; | |
8286 | PyObject * _argo0 = 0; | |
8287 | PyObject * _argo2 = 0; | |
8288 | PyObject * _obj3 = 0; | |
8289 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8290 | char _ptemp[128]; | |
8291 | ||
8292 | self = self; | |
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8294 | return NULL; | |
8295 | if (_argo0) { | |
8296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8299 | return NULL; | |
8300 | } | |
8301 | } | |
8302 | if (_argo2) { | |
8303 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8304 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8306 | return NULL; | |
8307 | } | |
8308 | } | |
8309 | { | |
8310 | #if PYTHON_API_VERSION >= 1009 | |
8311 | char* tmpPtr; int tmpSize; | |
8312 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8313 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8314 | return NULL; | |
8315 | } | |
8316 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8317 | return NULL; | |
8318 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8319 | #else | |
8320 | if (!PyString_Check(_obj3)) { | |
8321 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8322 | return NULL; | |
8323 | } | |
8324 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8325 | #endif | |
8326 | } | |
8327 | { | |
8328 | wxPy_BEGIN_ALLOW_THREADS; | |
8329 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8330 | ||
8331 | wxPy_END_ALLOW_THREADS; | |
8332 | } if (_result) { | |
8333 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8334 | _resultobj = Py_BuildValue("s",_ptemp); | |
8335 | } else { | |
8336 | Py_INCREF(Py_None); | |
8337 | _resultobj = Py_None; | |
8338 | } | |
8339 | { | |
8340 | if (_obj3) | |
8341 | delete _arg3; | |
8342 | } | |
8343 | return _resultobj; | |
8344 | } | |
8345 | ||
8346 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8347 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8348 | PyObject * _resultobj; | |
8349 | wxMenu * _result; | |
8350 | wxMenuBar * _arg0; | |
8351 | size_t _arg1; | |
8352 | PyObject * _argo0 = 0; | |
8353 | char *_kwnames[] = { "self","pos", NULL }; | |
8354 | char _ptemp[128]; | |
8355 | ||
8356 | self = self; | |
8357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8358 | return NULL; | |
8359 | if (_argo0) { | |
8360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8363 | return NULL; | |
8364 | } | |
8365 | } | |
8366 | { | |
8367 | wxPy_BEGIN_ALLOW_THREADS; | |
8368 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8369 | ||
8370 | wxPy_END_ALLOW_THREADS; | |
8371 | } if (_result) { | |
8372 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8373 | _resultobj = Py_BuildValue("s",_ptemp); | |
8374 | } else { | |
8375 | Py_INCREF(Py_None); | |
8376 | _resultobj = Py_None; | |
8377 | } | |
8378 | return _resultobj; | |
8379 | } | |
8380 | ||
8381 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
8382 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8383 | PyObject * _resultobj; | |
8384 | wxMenuBar * _arg0; | |
8385 | size_t _arg1; | |
8386 | bool _arg2; | |
8387 | PyObject * _argo0 = 0; | |
8388 | int tempbool2; | |
8389 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8390 | ||
8391 | self = self; | |
8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8393 | return NULL; | |
8394 | if (_argo0) { | |
8395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8398 | return NULL; | |
8399 | } | |
8400 | } | |
8401 | _arg2 = (bool ) tempbool2; | |
8402 | { | |
8403 | wxPy_BEGIN_ALLOW_THREADS; | |
8404 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8405 | ||
8406 | wxPy_END_ALLOW_THREADS; | |
8407 | } Py_INCREF(Py_None); | |
8408 | _resultobj = Py_None; | |
8409 | return _resultobj; | |
8410 | } | |
8411 | ||
8412 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8413 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8414 | PyObject * _resultobj; | |
8415 | wxMenuBar * _arg0; | |
8416 | size_t _arg1; | |
8417 | wxString * _arg2; | |
8418 | PyObject * _argo0 = 0; | |
8419 | PyObject * _obj2 = 0; | |
8420 | char *_kwnames[] = { "self","pos","label", NULL }; | |
8421 | ||
8422 | self = self; | |
8423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8424 | return NULL; | |
8425 | if (_argo0) { | |
8426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
8429 | return NULL; | |
8430 | } | |
8431 | } | |
8432 | { | |
8433 | #if PYTHON_API_VERSION >= 1009 | |
8434 | char* tmpPtr; int tmpSize; | |
8435 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8436 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8437 | return NULL; | |
8438 | } | |
8439 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8440 | return NULL; | |
8441 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8442 | #else | |
8443 | if (!PyString_Check(_obj2)) { | |
8444 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8445 | return NULL; | |
8446 | } | |
8447 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8448 | #endif | |
8449 | } | |
8450 | { | |
8451 | wxPy_BEGIN_ALLOW_THREADS; | |
8452 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8453 | ||
8454 | wxPy_END_ALLOW_THREADS; | |
8455 | } Py_INCREF(Py_None); | |
8456 | _resultobj = Py_None; | |
8457 | { | |
8458 | if (_obj2) | |
8459 | delete _arg2; | |
8460 | } | |
8461 | return _resultobj; | |
8462 | } | |
8463 | ||
8464 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8465 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8466 | PyObject * _resultobj; | |
8467 | wxString * _result; | |
8468 | wxMenuBar * _arg0; | |
8469 | size_t _arg1; | |
8470 | PyObject * _argo0 = 0; | |
8471 | char *_kwnames[] = { "self","pos", NULL }; | |
8472 | ||
8473 | self = self; | |
8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8475 | return NULL; | |
8476 | if (_argo0) { | |
8477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8480 | return NULL; | |
8481 | } | |
8482 | } | |
8483 | { | |
8484 | wxPy_BEGIN_ALLOW_THREADS; | |
8485 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8486 | ||
8487 | wxPy_END_ALLOW_THREADS; | |
8488 | }{ | |
8489 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8490 | } | |
8491 | { | |
8492 | delete _result; | |
8493 | } | |
8494 | return _resultobj; | |
8495 | } | |
8496 | ||
8497 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8498 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8499 | PyObject * _resultobj; | |
8500 | int _result; | |
8501 | wxMenuBar * _arg0; | |
8502 | wxString * _arg1; | |
8503 | wxString * _arg2; | |
8504 | PyObject * _argo0 = 0; | |
8505 | PyObject * _obj1 = 0; | |
8506 | PyObject * _obj2 = 0; | |
8507 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8508 | ||
8509 | self = self; | |
8510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8511 | return NULL; | |
8512 | if (_argo0) { | |
8513 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8514 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8515 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8516 | return NULL; | |
8517 | } | |
8518 | } | |
8519 | { | |
8520 | #if PYTHON_API_VERSION >= 1009 | |
8521 | char* tmpPtr; int tmpSize; | |
8522 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8523 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8524 | return NULL; | |
8525 | } | |
8526 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8527 | return NULL; | |
8528 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8529 | #else | |
8530 | if (!PyString_Check(_obj1)) { | |
8531 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8532 | return NULL; | |
8533 | } | |
8534 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8535 | #endif | |
8536 | } | |
8537 | { | |
8538 | #if PYTHON_API_VERSION >= 1009 | |
8539 | char* tmpPtr; int tmpSize; | |
8540 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8541 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8542 | return NULL; | |
8543 | } | |
8544 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8545 | return NULL; | |
8546 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8547 | #else | |
8548 | if (!PyString_Check(_obj2)) { | |
8549 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8550 | return NULL; | |
8551 | } | |
8552 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8553 | #endif | |
8554 | } | |
8555 | { | |
8556 | wxPy_BEGIN_ALLOW_THREADS; | |
8557 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8558 | ||
8559 | wxPy_END_ALLOW_THREADS; | |
8560 | } _resultobj = Py_BuildValue("i",_result); | |
8561 | { | |
8562 | if (_obj1) | |
8563 | delete _arg1; | |
8564 | } | |
8565 | { | |
8566 | if (_obj2) | |
8567 | delete _arg2; | |
8568 | } | |
8569 | return _resultobj; | |
8570 | } | |
8571 | ||
8572 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8573 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8574 | PyObject * _resultobj; | |
8575 | wxMenuItem * _result; | |
8576 | wxMenuBar * _arg0; | |
8577 | int _arg1; | |
8578 | PyObject * _argo0 = 0; | |
8579 | char *_kwnames[] = { "self","id", NULL }; | |
8580 | char _ptemp[128]; | |
8581 | ||
8582 | self = self; | |
8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8584 | return NULL; | |
8585 | if (_argo0) { | |
8586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
8589 | return NULL; | |
8590 | } | |
8591 | } | |
8592 | { | |
8593 | wxPy_BEGIN_ALLOW_THREADS; | |
8594 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); | |
8595 | ||
8596 | wxPy_END_ALLOW_THREADS; | |
8597 | } if (_result) { | |
8598 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8599 | _resultobj = Py_BuildValue("s",_ptemp); | |
8600 | } else { | |
8601 | Py_INCREF(Py_None); | |
8602 | _resultobj = Py_None; | |
8603 | } | |
8604 | return _resultobj; | |
8605 | } | |
8606 | ||
8607 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8608 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8609 | PyObject * _resultobj; | |
8610 | wxMenuBar * _arg0; | |
8611 | int _arg1; | |
8612 | bool _arg2; | |
8613 | PyObject * _argo0 = 0; | |
8614 | int tempbool2; | |
8615 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8616 | ||
8617 | self = self; | |
8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8619 | return NULL; | |
8620 | if (_argo0) { | |
8621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8624 | return NULL; | |
8625 | } | |
8626 | } | |
8627 | _arg2 = (bool ) tempbool2; | |
8628 | { | |
8629 | wxPy_BEGIN_ALLOW_THREADS; | |
8630 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8631 | ||
8632 | wxPy_END_ALLOW_THREADS; | |
8633 | } Py_INCREF(Py_None); | |
8634 | _resultobj = Py_None; | |
8635 | return _resultobj; | |
8636 | } | |
8637 | ||
8638 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8639 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8640 | PyObject * _resultobj; | |
8641 | wxMenuBar * _arg0; | |
8642 | int _arg1; | |
8643 | bool _arg2; | |
8644 | PyObject * _argo0 = 0; | |
8645 | int tempbool2; | |
8646 | char *_kwnames[] = { "self","id","check", NULL }; | |
8647 | ||
8648 | self = self; | |
8649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8650 | return NULL; | |
8651 | if (_argo0) { | |
8652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8655 | return NULL; | |
8656 | } | |
8657 | } | |
8658 | _arg2 = (bool ) tempbool2; | |
8659 | { | |
8660 | wxPy_BEGIN_ALLOW_THREADS; | |
8661 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8662 | ||
8663 | wxPy_END_ALLOW_THREADS; | |
8664 | } Py_INCREF(Py_None); | |
8665 | _resultobj = Py_None; | |
8666 | return _resultobj; | |
8667 | } | |
8668 | ||
8669 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
8670 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject * _resultobj; | |
8672 | bool _result; | |
8673 | wxMenuBar * _arg0; | |
8674 | int _arg1; | |
8675 | PyObject * _argo0 = 0; | |
8676 | char *_kwnames[] = { "self","id", NULL }; | |
8677 | ||
8678 | self = self; | |
8679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8680 | return NULL; | |
8681 | if (_argo0) { | |
8682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8685 | return NULL; | |
8686 | } | |
8687 | } | |
8688 | { | |
8689 | wxPy_BEGIN_ALLOW_THREADS; | |
8690 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); | |
8691 | ||
8692 | wxPy_END_ALLOW_THREADS; | |
8693 | } _resultobj = Py_BuildValue("i",_result); | |
8694 | return _resultobj; | |
8695 | } | |
8696 | ||
8697 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
8698 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8699 | PyObject * _resultobj; | |
8700 | bool _result; | |
8701 | wxMenuBar * _arg0; | |
8702 | int _arg1; | |
8703 | PyObject * _argo0 = 0; | |
8704 | char *_kwnames[] = { "self","id", NULL }; | |
8705 | ||
8706 | self = self; | |
8707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8708 | return NULL; | |
8709 | if (_argo0) { | |
8710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8713 | return NULL; | |
8714 | } | |
8715 | } | |
8716 | { | |
8717 | wxPy_BEGIN_ALLOW_THREADS; | |
8718 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); | |
8719 | ||
8720 | wxPy_END_ALLOW_THREADS; | |
8721 | } _resultobj = Py_BuildValue("i",_result); | |
8722 | return _resultobj; | |
8723 | } | |
8724 | ||
8725 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
8726 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8727 | PyObject * _resultobj; | |
8728 | wxMenuBar * _arg0; | |
8729 | int _arg1; | |
8730 | wxString * _arg2; | |
8731 | PyObject * _argo0 = 0; | |
8732 | PyObject * _obj2 = 0; | |
8733 | char *_kwnames[] = { "self","id","label", NULL }; | |
8734 | ||
8735 | self = self; | |
8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8737 | return NULL; | |
8738 | if (_argo0) { | |
8739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8742 | return NULL; | |
8743 | } | |
8744 | } | |
8745 | { | |
8746 | #if PYTHON_API_VERSION >= 1009 | |
8747 | char* tmpPtr; int tmpSize; | |
8748 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8749 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8750 | return NULL; | |
8751 | } | |
8752 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8753 | return NULL; | |
8754 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8755 | #else | |
8756 | if (!PyString_Check(_obj2)) { | |
8757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8758 | return NULL; | |
8759 | } | |
8760 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8761 | #endif | |
8762 | } | |
8763 | { | |
8764 | wxPy_BEGIN_ALLOW_THREADS; | |
8765 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | |
8766 | ||
8767 | wxPy_END_ALLOW_THREADS; | |
8768 | } Py_INCREF(Py_None); | |
8769 | _resultobj = Py_None; | |
8770 | { | |
8771 | if (_obj2) | |
8772 | delete _arg2; | |
8773 | } | |
8774 | return _resultobj; | |
8775 | } | |
8776 | ||
8777 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
8778 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8779 | PyObject * _resultobj; | |
8780 | wxString * _result; | |
8781 | wxMenuBar * _arg0; | |
8782 | int _arg1; | |
8783 | PyObject * _argo0 = 0; | |
8784 | char *_kwnames[] = { "self","id", NULL }; | |
8785 | ||
8786 | self = self; | |
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
8788 | return NULL; | |
8789 | if (_argo0) { | |
8790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8793 | return NULL; | |
8794 | } | |
8795 | } | |
8796 | { | |
8797 | wxPy_BEGIN_ALLOW_THREADS; | |
8798 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8799 | ||
8800 | wxPy_END_ALLOW_THREADS; | |
8801 | }{ | |
8802 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8803 | } | |
8804 | { | |
8805 | delete _result; | |
8806 | } | |
8807 | return _resultobj; | |
8808 | } | |
8809 | ||
8810 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8811 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8812 | PyObject * _resultobj; | |
8813 | wxMenuBar * _arg0; | |
8814 | int _arg1; | |
8815 | wxString * _arg2; | |
8816 | PyObject * _argo0 = 0; | |
8817 | PyObject * _obj2 = 0; | |
8818 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8819 | ||
8820 | self = self; | |
8821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8822 | return NULL; | |
8823 | if (_argo0) { | |
8824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8827 | return NULL; | |
8828 | } | |
8829 | } | |
8830 | { | |
8831 | #if PYTHON_API_VERSION >= 1009 | |
8832 | char* tmpPtr; int tmpSize; | |
8833 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8834 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8835 | return NULL; | |
8836 | } | |
8837 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8838 | return NULL; | |
8839 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8840 | #else | |
8841 | if (!PyString_Check(_obj2)) { | |
8842 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8843 | return NULL; | |
8844 | } | |
8845 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8846 | #endif | |
8847 | } | |
8848 | { | |
8849 | wxPy_BEGIN_ALLOW_THREADS; | |
8850 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8851 | ||
8852 | wxPy_END_ALLOW_THREADS; | |
8853 | } Py_INCREF(Py_None); | |
8854 | _resultobj = Py_None; | |
8855 | { | |
8856 | if (_obj2) | |
8857 | delete _arg2; | |
8858 | } | |
8859 | return _resultobj; | |
8860 | } | |
8861 | ||
8862 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8863 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8864 | PyObject * _resultobj; | |
8865 | wxString * _result; | |
8866 | wxMenuBar * _arg0; | |
8867 | int _arg1; | |
8868 | PyObject * _argo0 = 0; | |
8869 | char *_kwnames[] = { "self","id", NULL }; | |
8870 | ||
8871 | self = self; | |
8872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8873 | return NULL; | |
8874 | if (_argo0) { | |
8875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8878 | return NULL; | |
8879 | } | |
8880 | } | |
8881 | { | |
8882 | wxPy_BEGIN_ALLOW_THREADS; | |
8883 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | |
8884 | ||
8885 | wxPy_END_ALLOW_THREADS; | |
8886 | }{ | |
8887 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8888 | } | |
8889 | { | |
8890 | delete _result; | |
8891 | } | |
8892 | return _resultobj; | |
8893 | } | |
8894 | ||
8895 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8896 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8897 | PyObject * _resultobj; | |
8898 | wxMenuItem * _result; | |
8899 | wxMenu * _arg0 = (wxMenu *) NULL; | |
8900 | int _arg1 = (int ) wxID_SEPARATOR; | |
8901 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8902 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8903 | bool _arg4 = (bool ) FALSE; | |
8904 | wxMenu * _arg5 = (wxMenu *) NULL; | |
8905 | PyObject * _argo0 = 0; | |
8906 | PyObject * _obj2 = 0; | |
8907 | PyObject * _obj3 = 0; | |
8908 | int tempbool4 = (int) FALSE; | |
8909 | PyObject * _argo5 = 0; | |
8910 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8911 | char _ptemp[128]; | |
8912 | ||
8913 | self = self; | |
8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) | |
8915 | return NULL; | |
8916 | if (_argo0) { | |
8917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8920 | return NULL; | |
8921 | } | |
8922 | } | |
8923 | if (_obj2) | |
8924 | { | |
8925 | #if PYTHON_API_VERSION >= 1009 | |
8926 | char* tmpPtr; int tmpSize; | |
8927 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8928 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8929 | return NULL; | |
8930 | } | |
8931 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8932 | return NULL; | |
8933 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8934 | #else | |
8935 | if (!PyString_Check(_obj2)) { | |
8936 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8937 | return NULL; | |
8938 | } | |
8939 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8940 | #endif | |
8941 | } | |
8942 | if (_obj3) | |
8943 | { | |
8944 | #if PYTHON_API_VERSION >= 1009 | |
8945 | char* tmpPtr; int tmpSize; | |
8946 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8947 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8948 | return NULL; | |
8949 | } | |
8950 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8951 | return NULL; | |
8952 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8953 | #else | |
8954 | if (!PyString_Check(_obj3)) { | |
8955 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8956 | return NULL; | |
8957 | } | |
8958 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8959 | #endif | |
8960 | } | |
8961 | _arg4 = (bool ) tempbool4; | |
8962 | if (_argo5) { | |
8963 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8964 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
8965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8966 | return NULL; | |
8967 | } | |
8968 | } | |
8969 | { | |
8970 | wxPy_BEGIN_ALLOW_THREADS; | |
8971 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
8972 | ||
8973 | wxPy_END_ALLOW_THREADS; | |
8974 | } if (_result) { | |
8975 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8976 | _resultobj = Py_BuildValue("s",_ptemp); | |
8977 | } else { | |
8978 | Py_INCREF(Py_None); | |
8979 | _resultobj = Py_None; | |
8980 | } | |
8981 | { | |
8982 | if (_obj2) | |
8983 | delete _arg2; | |
8984 | } | |
8985 | { | |
8986 | if (_obj3) | |
8987 | delete _arg3; | |
8988 | } | |
8989 | return _resultobj; | |
8990 | } | |
8991 | ||
8992 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) | |
8993 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8994 | PyObject * _resultobj; | |
8995 | wxMenu * _result; | |
8996 | wxMenuItem * _arg0; | |
8997 | PyObject * _argo0 = 0; | |
8998 | char *_kwnames[] = { "self", NULL }; | |
8999 | char _ptemp[128]; | |
9000 | ||
9001 | self = self; | |
9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) | |
9003 | return NULL; | |
9004 | if (_argo0) { | |
9005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); | |
9008 | return NULL; | |
9009 | } | |
9010 | } | |
9011 | { | |
9012 | wxPy_BEGIN_ALLOW_THREADS; | |
9013 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); | |
9014 | ||
9015 | wxPy_END_ALLOW_THREADS; | |
9016 | } if (_result) { | |
9017 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9018 | _resultobj = Py_BuildValue("s",_ptemp); | |
9019 | } else { | |
9020 | Py_INCREF(Py_None); | |
9021 | _resultobj = Py_None; | |
9022 | } | |
9023 | return _resultobj; | |
9024 | } | |
9025 | ||
9026 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
9027 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject * _resultobj; | |
9029 | wxMenuItem * _arg0; | |
9030 | int _arg1; | |
9031 | PyObject * _argo0 = 0; | |
9032 | char *_kwnames[] = { "self","id", NULL }; | |
9033 | ||
9034 | self = self; | |
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) | |
9036 | return NULL; | |
9037 | if (_argo0) { | |
9038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); | |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
9044 | { | |
9045 | wxPy_BEGIN_ALLOW_THREADS; | |
9046 | wxMenuItem_SetId(_arg0,_arg1); | |
9047 | ||
9048 | wxPy_END_ALLOW_THREADS; | |
9049 | } Py_INCREF(Py_None); | |
9050 | _resultobj = Py_None; | |
9051 | return _resultobj; | |
9052 | } | |
9053 | ||
9054 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
9055 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject * _resultobj; | |
9057 | int _result; | |
9058 | wxMenuItem * _arg0; | |
9059 | PyObject * _argo0 = 0; | |
9060 | char *_kwnames[] = { "self", NULL }; | |
9061 | ||
9062 | self = self; | |
9063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) | |
9064 | return NULL; | |
9065 | if (_argo0) { | |
9066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); | |
9069 | return NULL; | |
9070 | } | |
9071 | } | |
9072 | { | |
9073 | wxPy_BEGIN_ALLOW_THREADS; | |
9074 | _result = (int )wxMenuItem_GetId(_arg0); | |
9075 | ||
9076 | wxPy_END_ALLOW_THREADS; | |
9077 | } _resultobj = Py_BuildValue("i",_result); | |
9078 | return _resultobj; | |
9079 | } | |
9080 | ||
9081 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
9082 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9083 | PyObject * _resultobj; | |
9084 | bool _result; | |
9085 | wxMenuItem * _arg0; | |
9086 | PyObject * _argo0 = 0; | |
9087 | char *_kwnames[] = { "self", NULL }; | |
9088 | ||
9089 | self = self; | |
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) | |
9091 | return NULL; | |
9092 | if (_argo0) { | |
9093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); | |
9096 | return NULL; | |
9097 | } | |
9098 | } | |
9099 | { | |
9100 | wxPy_BEGIN_ALLOW_THREADS; | |
9101 | _result = (bool )wxMenuItem_IsSeparator(_arg0); | |
9102 | ||
9103 | wxPy_END_ALLOW_THREADS; | |
9104 | } _resultobj = Py_BuildValue("i",_result); | |
9105 | return _resultobj; | |
9106 | } | |
9107 | ||
9108 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
9109 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9110 | PyObject * _resultobj; | |
9111 | wxMenuItem * _arg0; | |
9112 | wxString * _arg1; | |
9113 | PyObject * _argo0 = 0; | |
9114 | PyObject * _obj1 = 0; | |
9115 | char *_kwnames[] = { "self","str", NULL }; | |
9116 | ||
9117 | self = self; | |
9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) | |
9119 | return NULL; | |
9120 | if (_argo0) { | |
9121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); | |
9124 | return NULL; | |
9125 | } | |
9126 | } | |
9127 | { | |
9128 | #if PYTHON_API_VERSION >= 1009 | |
9129 | char* tmpPtr; int tmpSize; | |
9130 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9131 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9132 | return NULL; | |
9133 | } | |
9134 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9135 | return NULL; | |
9136 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9137 | #else | |
9138 | if (!PyString_Check(_obj1)) { | |
9139 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9140 | return NULL; | |
9141 | } | |
9142 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9143 | #endif | |
9144 | } | |
9145 | { | |
9146 | wxPy_BEGIN_ALLOW_THREADS; | |
9147 | wxMenuItem_SetText(_arg0,*_arg1); | |
9148 | ||
9149 | wxPy_END_ALLOW_THREADS; | |
9150 | } Py_INCREF(Py_None); | |
9151 | _resultobj = Py_None; | |
9152 | { | |
9153 | if (_obj1) | |
9154 | delete _arg1; | |
9155 | } | |
9156 | return _resultobj; | |
9157 | } | |
9158 | ||
9159 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
9160 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9161 | PyObject * _resultobj; | |
9162 | wxString * _result; | |
9163 | wxMenuItem * _arg0; | |
9164 | PyObject * _argo0 = 0; | |
9165 | char *_kwnames[] = { "self", NULL }; | |
9166 | ||
9167 | self = self; | |
9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) | |
9169 | return NULL; | |
9170 | if (_argo0) { | |
9171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); | |
9174 | return NULL; | |
9175 | } | |
9176 | } | |
9177 | { | |
9178 | wxPy_BEGIN_ALLOW_THREADS; | |
9179 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); | |
9180 | ||
9181 | wxPy_END_ALLOW_THREADS; | |
9182 | }{ | |
9183 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9184 | } | |
9185 | { | |
9186 | delete _result; | |
9187 | } | |
9188 | return _resultobj; | |
9189 | } | |
9190 | ||
9191 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) | |
9192 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9193 | PyObject * _resultobj; | |
9194 | wxString * _result; | |
9195 | wxMenuItem * _arg0; | |
9196 | PyObject * _argo0 = 0; | |
9197 | char *_kwnames[] = { "self", NULL }; | |
9198 | ||
9199 | self = self; | |
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) | |
9201 | return NULL; | |
9202 | if (_argo0) { | |
9203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); | |
9206 | return NULL; | |
9207 | } | |
9208 | } | |
9209 | { | |
9210 | wxPy_BEGIN_ALLOW_THREADS; | |
9211 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); | |
9212 | _result = (wxString *) &_result_ref; | |
9213 | ||
9214 | wxPy_END_ALLOW_THREADS; | |
9215 | }{ | |
9216 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9217 | } | |
9218 | return _resultobj; | |
9219 | } | |
9220 | ||
9221 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) | |
9222 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9223 | PyObject * _resultobj; | |
9224 | wxMenuItem * _arg0; | |
9225 | bool _arg1; | |
9226 | PyObject * _argo0 = 0; | |
9227 | int tempbool1; | |
9228 | char *_kwnames[] = { "self","checkable", NULL }; | |
9229 | ||
9230 | self = self; | |
9231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) | |
9232 | return NULL; | |
9233 | if (_argo0) { | |
9234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); | |
9237 | return NULL; | |
9238 | } | |
9239 | } | |
9240 | _arg1 = (bool ) tempbool1; | |
9241 | { | |
9242 | wxPy_BEGIN_ALLOW_THREADS; | |
9243 | wxMenuItem_SetCheckable(_arg0,_arg1); | |
9244 | ||
9245 | wxPy_END_ALLOW_THREADS; | |
9246 | } Py_INCREF(Py_None); | |
9247 | _resultobj = Py_None; | |
9248 | return _resultobj; | |
9249 | } | |
9250 | ||
9251 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
9252 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9253 | PyObject * _resultobj; | |
9254 | bool _result; | |
9255 | wxMenuItem * _arg0; | |
9256 | PyObject * _argo0 = 0; | |
9257 | char *_kwnames[] = { "self", NULL }; | |
9258 | ||
9259 | self = self; | |
9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) | |
9261 | return NULL; | |
9262 | if (_argo0) { | |
9263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); | |
9266 | return NULL; | |
9267 | } | |
9268 | } | |
9269 | { | |
9270 | wxPy_BEGIN_ALLOW_THREADS; | |
9271 | _result = (bool )wxMenuItem_IsCheckable(_arg0); | |
9272 | ||
9273 | wxPy_END_ALLOW_THREADS; | |
9274 | } _resultobj = Py_BuildValue("i",_result); | |
9275 | return _resultobj; | |
9276 | } | |
9277 | ||
9278 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) | |
9279 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9280 | PyObject * _resultobj; | |
9281 | bool _result; | |
9282 | wxMenuItem * _arg0; | |
9283 | PyObject * _argo0 = 0; | |
9284 | char *_kwnames[] = { "self", NULL }; | |
9285 | ||
9286 | self = self; | |
9287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) | |
9288 | return NULL; | |
9289 | if (_argo0) { | |
9290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); | |
9293 | return NULL; | |
9294 | } | |
9295 | } | |
9296 | { | |
9297 | wxPy_BEGIN_ALLOW_THREADS; | |
9298 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); | |
9299 | ||
9300 | wxPy_END_ALLOW_THREADS; | |
9301 | } _resultobj = Py_BuildValue("i",_result); | |
9302 | return _resultobj; | |
9303 | } | |
9304 | ||
9305 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) | |
9306 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9307 | PyObject * _resultobj; | |
9308 | wxMenuItem * _arg0; | |
9309 | wxMenu * _arg1; | |
9310 | PyObject * _argo0 = 0; | |
9311 | PyObject * _argo1 = 0; | |
9312 | char *_kwnames[] = { "self","menu", NULL }; | |
9313 | ||
9314 | self = self; | |
9315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) | |
9316 | return NULL; | |
9317 | if (_argo0) { | |
9318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); | |
9321 | return NULL; | |
9322 | } | |
9323 | } | |
9324 | if (_argo1) { | |
9325 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
9328 | return NULL; | |
9329 | } | |
9330 | } | |
9331 | { | |
9332 | wxPy_BEGIN_ALLOW_THREADS; | |
9333 | wxMenuItem_SetSubMenu(_arg0,_arg1); | |
9334 | ||
9335 | wxPy_END_ALLOW_THREADS; | |
9336 | } Py_INCREF(Py_None); | |
9337 | _resultobj = Py_None; | |
9338 | return _resultobj; | |
9339 | } | |
9340 | ||
9341 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
9342 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9343 | PyObject * _resultobj; | |
9344 | wxMenu * _result; | |
9345 | wxMenuItem * _arg0; | |
9346 | PyObject * _argo0 = 0; | |
9347 | char *_kwnames[] = { "self", NULL }; | |
9348 | char _ptemp[128]; | |
9349 | ||
9350 | self = self; | |
9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) | |
9352 | return NULL; | |
9353 | if (_argo0) { | |
9354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); | |
9357 | return NULL; | |
9358 | } | |
9359 | } | |
9360 | { | |
9361 | wxPy_BEGIN_ALLOW_THREADS; | |
9362 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9363 | ||
9364 | wxPy_END_ALLOW_THREADS; | |
9365 | } if (_result) { | |
9366 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
9367 | _resultobj = Py_BuildValue("s",_ptemp); | |
9368 | } else { | |
9369 | Py_INCREF(Py_None); | |
9370 | _resultobj = Py_None; | |
9371 | } | |
9372 | return _resultobj; | |
9373 | } | |
9374 | ||
9375 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9376 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9377 | PyObject * _resultobj; | |
9378 | wxMenuItem * _arg0; | |
9379 | bool _arg1 = (bool ) TRUE; | |
9380 | PyObject * _argo0 = 0; | |
9381 | int tempbool1 = (int) TRUE; | |
9382 | char *_kwnames[] = { "self","enable", NULL }; | |
9383 | ||
9384 | self = self; | |
9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9386 | return NULL; | |
9387 | if (_argo0) { | |
9388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
9391 | return NULL; | |
9392 | } | |
9393 | } | |
9394 | _arg1 = (bool ) tempbool1; | |
9395 | { | |
9396 | wxPy_BEGIN_ALLOW_THREADS; | |
9397 | wxMenuItem_Enable(_arg0,_arg1); | |
9398 | ||
9399 | wxPy_END_ALLOW_THREADS; | |
9400 | } Py_INCREF(Py_None); | |
9401 | _resultobj = Py_None; | |
9402 | return _resultobj; | |
9403 | } | |
9404 | ||
9405 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
9406 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9407 | PyObject * _resultobj; | |
9408 | bool _result; | |
9409 | wxMenuItem * _arg0; | |
9410 | PyObject * _argo0 = 0; | |
9411 | char *_kwnames[] = { "self", NULL }; | |
9412 | ||
9413 | self = self; | |
9414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) | |
9415 | return NULL; | |
9416 | if (_argo0) { | |
9417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); | |
9420 | return NULL; | |
9421 | } | |
9422 | } | |
9423 | { | |
9424 | wxPy_BEGIN_ALLOW_THREADS; | |
9425 | _result = (bool )wxMenuItem_IsEnabled(_arg0); | |
9426 | ||
9427 | wxPy_END_ALLOW_THREADS; | |
9428 | } _resultobj = Py_BuildValue("i",_result); | |
9429 | return _resultobj; | |
9430 | } | |
9431 | ||
9432 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
9433 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9434 | PyObject * _resultobj; | |
9435 | wxMenuItem * _arg0; | |
9436 | bool _arg1 = (bool ) TRUE; | |
9437 | PyObject * _argo0 = 0; | |
9438 | int tempbool1 = (int) TRUE; | |
9439 | char *_kwnames[] = { "self","check", NULL }; | |
9440 | ||
9441 | self = self; | |
9442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) | |
9443 | return NULL; | |
9444 | if (_argo0) { | |
9445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); | |
9448 | return NULL; | |
9449 | } | |
9450 | } | |
9451 | _arg1 = (bool ) tempbool1; | |
9452 | { | |
9453 | wxPy_BEGIN_ALLOW_THREADS; | |
9454 | wxMenuItem_Check(_arg0,_arg1); | |
9455 | ||
9456 | wxPy_END_ALLOW_THREADS; | |
9457 | } Py_INCREF(Py_None); | |
9458 | _resultobj = Py_None; | |
9459 | return _resultobj; | |
9460 | } | |
9461 | ||
9462 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
9463 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9464 | PyObject * _resultobj; | |
9465 | bool _result; | |
9466 | wxMenuItem * _arg0; | |
9467 | PyObject * _argo0 = 0; | |
9468 | char *_kwnames[] = { "self", NULL }; | |
9469 | ||
9470 | self = self; | |
9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) | |
9472 | return NULL; | |
9473 | if (_argo0) { | |
9474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); | |
9477 | return NULL; | |
9478 | } | |
9479 | } | |
9480 | { | |
9481 | wxPy_BEGIN_ALLOW_THREADS; | |
9482 | _result = (bool )wxMenuItem_IsChecked(_arg0); | |
9483 | ||
9484 | wxPy_END_ALLOW_THREADS; | |
9485 | } _resultobj = Py_BuildValue("i",_result); | |
9486 | return _resultobj; | |
9487 | } | |
9488 | ||
9489 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) | |
9490 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9491 | PyObject * _resultobj; | |
9492 | wxMenuItem * _arg0; | |
9493 | PyObject * _argo0 = 0; | |
9494 | char *_kwnames[] = { "self", NULL }; | |
9495 | ||
9496 | self = self; | |
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) | |
9498 | return NULL; | |
9499 | if (_argo0) { | |
9500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); | |
9503 | return NULL; | |
9504 | } | |
9505 | } | |
9506 | { | |
9507 | wxPy_BEGIN_ALLOW_THREADS; | |
9508 | wxMenuItem_Toggle(_arg0); | |
9509 | ||
9510 | wxPy_END_ALLOW_THREADS; | |
9511 | } Py_INCREF(Py_None); | |
9512 | _resultobj = Py_None; | |
9513 | return _resultobj; | |
9514 | } | |
9515 | ||
9516 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
9517 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9518 | PyObject * _resultobj; | |
9519 | wxMenuItem * _arg0; | |
9520 | wxString * _arg1; | |
9521 | PyObject * _argo0 = 0; | |
9522 | PyObject * _obj1 = 0; | |
9523 | char *_kwnames[] = { "self","str", NULL }; | |
9524 | ||
9525 | self = self; | |
9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) | |
9527 | return NULL; | |
9528 | if (_argo0) { | |
9529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); | |
9532 | return NULL; | |
9533 | } | |
9534 | } | |
9535 | { | |
9536 | #if PYTHON_API_VERSION >= 1009 | |
9537 | char* tmpPtr; int tmpSize; | |
9538 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9539 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9540 | return NULL; | |
9541 | } | |
9542 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9543 | return NULL; | |
9544 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9545 | #else | |
9546 | if (!PyString_Check(_obj1)) { | |
9547 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9548 | return NULL; | |
9549 | } | |
9550 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9551 | #endif | |
9552 | } | |
9553 | { | |
9554 | wxPy_BEGIN_ALLOW_THREADS; | |
9555 | wxMenuItem_SetHelp(_arg0,*_arg1); | |
9556 | ||
9557 | wxPy_END_ALLOW_THREADS; | |
9558 | } Py_INCREF(Py_None); | |
9559 | _resultobj = Py_None; | |
9560 | { | |
9561 | if (_obj1) | |
9562 | delete _arg1; | |
9563 | } | |
9564 | return _resultobj; | |
9565 | } | |
9566 | ||
9567 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) | |
9568 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9569 | PyObject * _resultobj; | |
9570 | wxString * _result; | |
9571 | wxMenuItem * _arg0; | |
9572 | PyObject * _argo0 = 0; | |
9573 | char *_kwnames[] = { "self", NULL }; | |
9574 | ||
9575 | self = self; | |
9576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) | |
9577 | return NULL; | |
9578 | if (_argo0) { | |
9579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); | |
9582 | return NULL; | |
9583 | } | |
9584 | } | |
9585 | { | |
9586 | wxPy_BEGIN_ALLOW_THREADS; | |
9587 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); | |
9588 | _result = (wxString *) &_result_ref; | |
9589 | ||
9590 | wxPy_END_ALLOW_THREADS; | |
9591 | }{ | |
9592 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9593 | } | |
9594 | return _resultobj; | |
9595 | } | |
9596 | ||
9597 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) | |
9598 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject * _resultobj; | |
9600 | wxAcceleratorEntry * _result; | |
9601 | wxMenuItem * _arg0; | |
9602 | PyObject * _argo0 = 0; | |
9603 | char *_kwnames[] = { "self", NULL }; | |
9604 | char _ptemp[128]; | |
9605 | ||
9606 | self = self; | |
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) | |
9608 | return NULL; | |
9609 | if (_argo0) { | |
9610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); | |
9613 | return NULL; | |
9614 | } | |
9615 | } | |
9616 | { | |
9617 | wxPy_BEGIN_ALLOW_THREADS; | |
9618 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); | |
9619 | ||
9620 | wxPy_END_ALLOW_THREADS; | |
9621 | } if (_result) { | |
9622 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9623 | _resultobj = Py_BuildValue("s",_ptemp); | |
9624 | } else { | |
9625 | Py_INCREF(Py_None); | |
9626 | _resultobj = Py_None; | |
9627 | } | |
9628 | return _resultobj; | |
9629 | } | |
9630 | ||
9631 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) | |
9632 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9633 | PyObject * _resultobj; | |
9634 | wxMenuItem * _arg0; | |
9635 | wxAcceleratorEntry * _arg1; | |
9636 | PyObject * _argo0 = 0; | |
9637 | PyObject * _argo1 = 0; | |
9638 | char *_kwnames[] = { "self","accel", NULL }; | |
9639 | ||
9640 | self = self; | |
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) | |
9642 | return NULL; | |
9643 | if (_argo0) { | |
9644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); | |
9647 | return NULL; | |
9648 | } | |
9649 | } | |
9650 | if (_argo1) { | |
9651 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9652 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { | |
9653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
9654 | return NULL; | |
9655 | } | |
9656 | } | |
9657 | { | |
9658 | wxPy_BEGIN_ALLOW_THREADS; | |
9659 | wxMenuItem_SetAccel(_arg0,_arg1); | |
9660 | ||
9661 | wxPy_END_ALLOW_THREADS; | |
9662 | } Py_INCREF(Py_None); | |
9663 | _resultobj = Py_None; | |
9664 | return _resultobj; | |
9665 | } | |
9666 | ||
9667 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9668 | PyObject * _resultobj; | |
9669 | wxString * _result; | |
9670 | wxString * _arg0; | |
9671 | PyObject * _obj0 = 0; | |
9672 | char *_kwnames[] = { "text", NULL }; | |
9673 | ||
9674 | self = self; | |
9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9676 | return NULL; | |
9677 | { | |
9678 | #if PYTHON_API_VERSION >= 1009 | |
9679 | char* tmpPtr; int tmpSize; | |
9680 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9681 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9682 | return NULL; | |
9683 | } | |
9684 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9685 | return NULL; | |
9686 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9687 | #else | |
9688 | if (!PyString_Check(_obj0)) { | |
9689 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9690 | return NULL; | |
9691 | } | |
9692 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9693 | #endif | |
9694 | } | |
9695 | { | |
9696 | wxPy_BEGIN_ALLOW_THREADS; | |
9697 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
9698 | ||
9699 | wxPy_END_ALLOW_THREADS; | |
9700 | }{ | |
9701 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9702 | } | |
9703 | { | |
9704 | if (_obj0) | |
9705 | delete _arg0; | |
9706 | } | |
9707 | { | |
9708 | delete _result; | |
9709 | } | |
9710 | return _resultobj; | |
9711 | } | |
9712 | ||
9713 | static PyMethodDef windowscMethods[] = { | |
9714 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
9715 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9716 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9717 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9718 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9719 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9720 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
9721 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
9722 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9723 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9724 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
9725 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
9726 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
9727 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
9728 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
9729 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9730 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9731 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9732 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9733 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9734 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9735 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9736 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9737 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9738 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9739 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9740 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9741 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9742 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
9743 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
9744 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9745 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9746 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9747 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9748 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9749 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9750 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9751 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9752 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9753 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9754 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9755 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
9756 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
9757 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9758 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9759 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9760 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9761 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9762 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9763 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9764 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9765 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9766 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9767 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9768 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
9769 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9770 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
9771 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9772 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9773 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9774 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9775 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
9776 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9777 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9778 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9779 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9780 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9781 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9782 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9783 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
9784 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9785 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9786 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
9787 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
9788 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9789 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9790 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9791 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9792 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9793 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9794 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
9795 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
9796 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
9797 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
9798 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
9799 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
9800 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, | |
9801 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
9802 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9803 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
9804 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
9805 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9806 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9807 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9808 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
9809 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9810 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
9811 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
9812 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
9813 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
9814 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
9815 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
9816 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9817 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9818 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9819 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9820 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9821 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9822 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9823 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9824 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9825 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9826 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9827 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9828 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9829 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9830 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9831 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9832 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
9833 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
9834 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
9835 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
9836 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
9837 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
9838 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
9839 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
9840 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
9841 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
9842 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9843 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9844 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
9845 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9846 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9847 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9848 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9849 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9850 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9851 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
9852 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
9853 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
9854 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
9855 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9856 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9857 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
9858 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9859 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
9860 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9861 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
9862 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
9863 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
9864 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9865 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9866 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
9867 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9868 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
9869 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
9870 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9871 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9872 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9873 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
9874 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
9875 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
9876 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
9877 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9878 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
9879 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
9880 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
9881 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
9882 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
9883 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
9888 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
9889 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
9890 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
9891 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9892 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9893 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | |
9894 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9895 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
9896 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
9897 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
9898 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
9899 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
9900 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
9901 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
9903 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
9904 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
9905 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9907 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
9908 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
9909 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9914 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9915 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9916 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9917 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
9918 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9923 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
9925 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9926 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9936 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
9937 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
9938 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
9939 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
9943 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9944 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
9945 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9946 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
9947 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
9948 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9949 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
9956 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9959 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
9960 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxEvtHandler_GetClassName", (PyCFunction) _wrap_wxEvtHandler_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
9965 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
9966 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
9967 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9968 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9969 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9970 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9971 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9972 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
9976 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
9977 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
9978 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
9980 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
9981 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
9982 | { NULL, NULL } | |
9983 | }; | |
9984 | #ifdef __cplusplus | |
9985 | } | |
9986 | #endif | |
9987 | /* | |
9988 | * This table is used by the pointer type-checker | |
9989 | */ | |
9990 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9991 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9992 | { "_signed_long","_long",0}, | |
9993 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, | |
9994 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
9995 | { "_wxPrintQuality","_wxCoord",0}, | |
9996 | { "_wxPrintQuality","_int",0}, | |
9997 | { "_wxPrintQuality","_signed_int",0}, | |
9998 | { "_wxPrintQuality","_unsigned_int",0}, | |
9999 | { "_wxPrintQuality","_wxWindowID",0}, | |
10000 | { "_wxPrintQuality","_uint",0}, | |
10001 | { "_wxPrintQuality","_EBool",0}, | |
10002 | { "_wxPrintQuality","_size_t",0}, | |
10003 | { "_wxPrintQuality","_time_t",0}, | |
10004 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, | |
10005 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
10006 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, | |
10007 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
10008 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10009 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10010 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10011 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10012 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10013 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10014 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10015 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10016 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10017 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10018 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10019 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10020 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10021 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10022 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10023 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10024 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
10025 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
10026 | { "_wxCursor","_class_wxCursor",0}, | |
10027 | { "_wxMask","_class_wxMask",0}, | |
10028 | { "_wxPen","_class_wxPen",0}, | |
10029 | { "_byte","_unsigned_char",0}, | |
10030 | { "_wxDataObject","_class_wxDataObject",0}, | |
10031 | { "_wxColourDatabase","_class_wxColourDatabase",0}, | |
10032 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, | |
10033 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
10034 | { "_long","_unsigned_long",0}, | |
10035 | { "_long","_signed_long",0}, | |
10036 | { "_wxImageList","_class_wxImageList",0}, | |
10037 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, | |
10038 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
10039 | { "_class_wxClipboard","_wxClipboard",0}, | |
10040 | { "_wxDC","_class_wxDC",0}, | |
10041 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, | |
10042 | { "_size_t","_wxCoord",0}, | |
10043 | { "_size_t","_wxPrintQuality",0}, | |
10044 | { "_size_t","_time_t",0}, | |
10045 | { "_size_t","_unsigned_int",0}, | |
10046 | { "_size_t","_int",0}, | |
10047 | { "_size_t","_wxWindowID",0}, | |
10048 | { "_size_t","_uint",0}, | |
10049 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
10050 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
10051 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
10052 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10053 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10054 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10055 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
10056 | { "_wxPanel","_class_wxPanel",0}, | |
10057 | { "_class_wxMask","_wxMask",0}, | |
10058 | { "_wxTextDataObject","_class_wxTextDataObject",0}, | |
10059 | { "_wxColour","_class_wxColour",0}, | |
10060 | { "_class_wxDialog","_wxDialog",0}, | |
10061 | { "_class_wxFileDataObject","_wxFileDataObject",0}, | |
10062 | { "_class_wxDataObject","_wxDataObject",0}, | |
10063 | { "_wxBrush","_class_wxBrush",0}, | |
10064 | { "_wxDataFormat","_class_wxDataFormat",0}, | |
10065 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
10066 | { "_uint","_wxCoord",0}, | |
10067 | { "_uint","_wxPrintQuality",0}, | |
10068 | { "_uint","_time_t",0}, | |
10069 | { "_uint","_size_t",0}, | |
10070 | { "_uint","_unsigned_int",0}, | |
10071 | { "_uint","_int",0}, | |
10072 | { "_uint","_wxWindowID",0}, | |
10073 | { "_wxChar","_char",0}, | |
10074 | { "_wxPyValidator","_class_wxPyValidator",0}, | |
10075 | { "_wxRect","_class_wxRect",0}, | |
10076 | { "_wxPoint","_class_wxPoint",0}, | |
10077 | { "_char","_wxChar",0}, | |
10078 | { "_wxBitmap","_class_wxBitmap",0}, | |
10079 | { "_wxPenList","_class_wxPenList",0}, | |
10080 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
10081 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
10082 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10083 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10084 | { "_class_wxValidator","_wxValidator",0}, | |
10085 | { "_wxDropTarget","_class_wxDropTarget",0}, | |
10086 | { "_class_wxColourDatabase","_wxColourDatabase",0}, | |
10087 | { "_EBool","_wxCoord",0}, | |
10088 | { "_EBool","_wxPrintQuality",0}, | |
10089 | { "_EBool","_signed_int",0}, | |
10090 | { "_EBool","_int",0}, | |
10091 | { "_EBool","_wxWindowID",0}, | |
10092 | { "_class_wxRegion","_wxRegion",0}, | |
10093 | { "_class_wxDataFormat","_wxDataFormat",0}, | |
10094 | { "_wxFont","_class_wxFont",0}, | |
10095 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, | |
10096 | { "_unsigned_long","_long",0}, | |
10097 | { "_class_wxRect","_wxRect",0}, | |
10098 | { "_class_wxDC","_wxDC",0}, | |
10099 | { "_class_wxBrushList","_wxBrushList",0}, | |
10100 | { "_class_wxPenList","_wxPenList",0}, | |
10101 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
10102 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10103 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10104 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
10105 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
10106 | { "_class_wxPanel","_wxPanel",0}, | |
10107 | { "_signed_int","_wxCoord",0}, | |
10108 | { "_signed_int","_wxPrintQuality",0}, | |
10109 | { "_signed_int","_EBool",0}, | |
10110 | { "_signed_int","_wxWindowID",0}, | |
10111 | { "_signed_int","_int",0}, | |
10112 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
10113 | { "_class_wxTextDataObject","_wxTextDataObject",0}, | |
10114 | { "_wxMenu","_class_wxMenu",0}, | |
10115 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
10116 | { "_WXTYPE","_short",0}, | |
10117 | { "_WXTYPE","_signed_short",0}, | |
10118 | { "_WXTYPE","_unsigned_short",0}, | |
10119 | { "_class_wxDropTarget","_wxDropTarget",0}, | |
10120 | { "_class_wxBrush","_wxBrush",0}, | |
10121 | { "_unsigned_short","_WXTYPE",0}, | |
10122 | { "_unsigned_short","_short",0}, | |
10123 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10124 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10125 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10126 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10127 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10128 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10129 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10130 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10131 | { "_class_wxWindow","_wxWindow",0}, | |
10132 | { "_class_wxFont","_wxFont",0}, | |
10133 | { "_wxClipboard","_class_wxClipboard",0}, | |
10134 | { "_class_wxPyValidator","_wxPyValidator",0}, | |
10135 | { "_wxBusyInfo","_class_wxBusyInfo",0}, | |
10136 | { "_wxFontList","_class_wxFontList",0}, | |
10137 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
10138 | { "_wxClientDC","_class_wxClientDC",0}, | |
10139 | { "_class_wxPoint","_wxPoint",0}, | |
10140 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
10141 | { "_signed_short","_WXTYPE",0}, | |
10142 | { "_signed_short","_short",0}, | |
10143 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
10144 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, | |
10145 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
10146 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
10147 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
10148 | { "_class_wxCursor","_wxCursor",0}, | |
10149 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
10150 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, | |
10151 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
10152 | { "_unsigned_char","_byte",0}, | |
10153 | { "_class_wxMenu","_wxMenu",0}, | |
10154 | { "_unsigned_int","_wxCoord",0}, | |
10155 | { "_unsigned_int","_wxPrintQuality",0}, | |
10156 | { "_unsigned_int","_time_t",0}, | |
10157 | { "_unsigned_int","_size_t",0}, | |
10158 | { "_unsigned_int","_uint",0}, | |
10159 | { "_unsigned_int","_wxWindowID",0}, | |
10160 | { "_unsigned_int","_int",0}, | |
10161 | { "_wxIcon","_class_wxIcon",0}, | |
10162 | { "_wxDialog","_class_wxDialog",0}, | |
10163 | { "_class_wxPen","_wxPen",0}, | |
10164 | { "_short","_WXTYPE",0}, | |
10165 | { "_short","_unsigned_short",0}, | |
10166 | { "_short","_signed_short",0}, | |
10167 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, | |
10168 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
10169 | { "_class_wxImageList","_wxImageList",0}, | |
10170 | { "_wxWindowID","_wxCoord",0}, | |
10171 | { "_wxWindowID","_wxPrintQuality",0}, | |
10172 | { "_wxWindowID","_time_t",0}, | |
10173 | { "_wxWindowID","_size_t",0}, | |
10174 | { "_wxWindowID","_EBool",0}, | |
10175 | { "_wxWindowID","_uint",0}, | |
10176 | { "_wxWindowID","_int",0}, | |
10177 | { "_wxWindowID","_signed_int",0}, | |
10178 | { "_wxWindowID","_unsigned_int",0}, | |
10179 | { "_int","_wxCoord",0}, | |
10180 | { "_int","_wxPrintQuality",0}, | |
10181 | { "_int","_time_t",0}, | |
10182 | { "_int","_size_t",0}, | |
10183 | { "_int","_EBool",0}, | |
10184 | { "_int","_uint",0}, | |
10185 | { "_int","_wxWindowID",0}, | |
10186 | { "_int","_unsigned_int",0}, | |
10187 | { "_int","_signed_int",0}, | |
10188 | { "_time_t","_wxCoord",0}, | |
10189 | { "_time_t","_wxPrintQuality",0}, | |
10190 | { "_time_t","_unsigned_int",0}, | |
10191 | { "_time_t","_int",0}, | |
10192 | { "_time_t","_wxWindowID",0}, | |
10193 | { "_time_t","_uint",0}, | |
10194 | { "_time_t","_size_t",0}, | |
10195 | { "_wxSize","_class_wxSize",0}, | |
10196 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
10197 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, | |
10198 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
10199 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
10200 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10201 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10202 | { "_wxValidator","_class_wxValidator",0}, | |
10203 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
10204 | { "_class_wxIcon","_wxIcon",0}, | |
10205 | { "_class_wxColour","_wxColour",0}, | |
10206 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
10207 | { "_wxPalette","_class_wxPalette",0}, | |
10208 | { "_wxCoord","_int",0}, | |
10209 | { "_wxCoord","_signed_int",0}, | |
10210 | { "_wxCoord","_unsigned_int",0}, | |
10211 | { "_wxCoord","_wxWindowID",0}, | |
10212 | { "_wxCoord","_uint",0}, | |
10213 | { "_wxCoord","_EBool",0}, | |
10214 | { "_wxCoord","_size_t",0}, | |
10215 | { "_wxCoord","_time_t",0}, | |
10216 | { "_wxCoord","_wxPrintQuality",0}, | |
10217 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
10218 | { "_wxRegion","_class_wxRegion",0}, | |
10219 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, | |
10220 | { "_class_wxBusyInfo","_wxBusyInfo",0}, | |
10221 | { "_class_wxFontList","_wxFontList",0}, | |
10222 | { "_class_wxClientDC","_wxClientDC",0}, | |
10223 | { "_wxBrushList","_class_wxBrushList",0}, | |
10224 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, | |
10225 | { "_class_wxSize","_wxSize",0}, | |
10226 | { "_class_wxBitmap","_wxBitmap",0}, | |
10227 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
10228 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, | |
10229 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
10230 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10231 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10232 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10233 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10234 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10235 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10236 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10237 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
10238 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10239 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10240 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10241 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10242 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10243 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10244 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10245 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10246 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
10247 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
10248 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
10249 | { "_class_wxPalette","_wxPalette",0}, | |
10250 | { "_wxFileDataObject","_class_wxFileDataObject",0}, | |
10251 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
10252 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10253 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10254 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10255 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10256 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
10257 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
10258 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
10259 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10260 | { "_wxWindow","_class_wxWindow",0}, | |
10261 | {0,0,0}}; | |
10262 | ||
10263 | static PyObject *SWIG_globals; | |
10264 | #ifdef __cplusplus | |
10265 | extern "C" | |
10266 | #endif | |
10267 | SWIGEXPORT(void) initwindowsc() { | |
10268 | PyObject *m, *d; | |
10269 | SWIG_globals = SWIG_newvarlink(); | |
10270 | m = Py_InitModule("windowsc", windowscMethods); | |
10271 | d = PyModule_GetDict(m); | |
10272 | { | |
10273 | int i; | |
10274 | for (i = 0; _swig_mapping[i].n1; i++) | |
10275 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10276 | } | |
10277 | } |