]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : msw/windows.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 810) | |
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 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
52 | #define SWIG_init initwindowsc | |
53 | ||
54 | #define SWIG_name "windowsc" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/menuitem.h> | |
58 | ||
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
61 | PyObject* o3; | |
62 | if (!target) { | |
63 | target = o; | |
64 | } else if (target == Py_None) { | |
65 | Py_DECREF(Py_None); | |
66 | target = o; | |
67 | } else { | |
68 | if (!PyList_Check(target)) { | |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
84 | if (!target) { | |
85 | target = o; | |
86 | } else if (target == Py_None) { | |
87 | Py_DECREF(Py_None); | |
88 | target = o; | |
89 | } else { | |
90 | if (!PyTuple_Check(target)) { | |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
95 | o3 = PyTuple_New(1); | |
96 | PyTuple_SetItem(o3, 0, o); | |
97 | ||
98 | o2 = target; | |
99 | target = PySequence_Concat(o2, o3); | |
100 | Py_DECREF(o2); | |
101 | Py_DECREF(o3); | |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
106 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
107 | ||
108 | bool wxValidator_IsSilent() { | |
109 | return wxValidator::IsSilent(); | |
110 | } | |
111 | ||
112 | void wxValidator_SetBellOnError(int doIt = TRUE) { | |
113 | wxValidator::SetBellOnError(doIt); | |
114 | } | |
115 | ||
116 | class wxPyValidator : public wxValidator { | |
117 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
118 | public: | |
119 | wxPyValidator() { | |
120 | } | |
121 | // wxPyValidator(const wxPyValidator& other); | |
122 | ||
123 | ~wxPyValidator() { | |
124 | } | |
125 | ||
126 | wxObject* wxPyValidator::Clone() const { | |
127 | wxPyValidator* ptr = NULL; | |
128 | wxPyValidator* self = (wxPyValidator*)this; | |
129 | ||
130 | bool doSave = wxPyRestoreThread(); | |
131 | if (self->m_myInst.findCallback("Clone")) { | |
132 | PyObject* ro; | |
133 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
134 | if (ro) { | |
135 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
136 | Py_DECREF(ro); | |
137 | } | |
138 | } | |
139 | // This is very dangerous!!! But is the only way I could find | |
140 | // to squash a memory leak. Currently it is okay, but if the | |
141 | // validator architecture in wxWindows ever changes, problems | |
142 | // could arise. | |
143 | delete self; | |
144 | ||
145 | wxPySaveThread(doSave); | |
146 | return ptr; | |
147 | } | |
148 | ||
149 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
150 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
151 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
152 | ||
153 | PYPRIVATE; | |
154 | // PyObject* m_data; | |
155 | }; | |
156 | ||
157 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
158 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
159 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
160 | ||
161 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
162 | ||
163 | ||
164 | wxWindow* wxWindow_FindFocus() { | |
165 | return wxWindow::FindFocus(); | |
166 | } | |
167 | ||
168 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
169 | wxWindow* win = new wxWindow; | |
170 | win->SetHWND(hWnd); | |
171 | win->SubclassWin(hWnd); | |
172 | return win; | |
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_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
247 | PyObject * _resultobj; | |
248 | wxWindow * _result; | |
249 | unsigned long _arg0; | |
250 | char *_kwnames[] = { "hWnd", NULL }; | |
251 | char _ptemp[128]; | |
252 | ||
253 | self = self; | |
254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
255 | return NULL; | |
256 | { | |
257 | wxPy_BEGIN_ALLOW_THREADS; | |
258 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
259 | ||
260 | wxPy_END_ALLOW_THREADS; | |
261 | } if (_result) { | |
262 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
263 | _resultobj = Py_BuildValue("s",_ptemp); | |
264 | } else { | |
265 | Py_INCREF(Py_None); | |
266 | _resultobj = Py_None; | |
267 | } | |
268 | return _resultobj; | |
269 | } | |
270 | ||
271 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
272 | PyObject * _resultobj; | |
273 | int _result; | |
274 | char *_kwnames[] = { NULL }; | |
275 | ||
276 | self = self; | |
277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
278 | return NULL; | |
279 | { | |
280 | wxPy_BEGIN_ALLOW_THREADS; | |
281 | _result = (int )wxWindow_NewControlId(); | |
282 | ||
283 | wxPy_END_ALLOW_THREADS; | |
284 | } _resultobj = Py_BuildValue("i",_result); | |
285 | return _resultobj; | |
286 | } | |
287 | ||
288 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
289 | PyObject * _resultobj; | |
290 | int _result; | |
291 | int _arg0; | |
292 | char *_kwnames[] = { "id", NULL }; | |
293 | ||
294 | self = self; | |
295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
296 | return NULL; | |
297 | { | |
298 | wxPy_BEGIN_ALLOW_THREADS; | |
299 | _result = (int )wxWindow_NextControlId(_arg0); | |
300 | ||
301 | wxPy_END_ALLOW_THREADS; | |
302 | } _resultobj = Py_BuildValue("i",_result); | |
303 | return _resultobj; | |
304 | } | |
305 | ||
306 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
307 | PyObject * _resultobj; | |
308 | int _result; | |
309 | int _arg0; | |
310 | char *_kwnames[] = { "id", NULL }; | |
311 | ||
312 | self = self; | |
313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
314 | return NULL; | |
315 | { | |
316 | wxPy_BEGIN_ALLOW_THREADS; | |
317 | _result = (int )wxWindow_PrevControlId(_arg0); | |
318 | ||
319 | wxPy_END_ALLOW_THREADS; | |
320 | } _resultobj = Py_BuildValue("i",_result); | |
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 void *SwigwxValidatorTowxEvtHandler(void *ptr) { | |
669 | wxValidator *src; | |
670 | wxEvtHandler *dest; | |
671 | src = (wxValidator *) ptr; | |
672 | dest = (wxEvtHandler *) src; | |
673 | return (void *) dest; | |
674 | } | |
675 | ||
676 | #define new_wxValidator() (new wxValidator()) | |
677 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
678 | PyObject * _resultobj; | |
679 | wxValidator * _result; | |
680 | char *_kwnames[] = { NULL }; | |
681 | char _ptemp[128]; | |
682 | ||
683 | self = self; | |
684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
685 | return NULL; | |
686 | { | |
687 | wxPy_BEGIN_ALLOW_THREADS; | |
688 | _result = (wxValidator *)new_wxValidator(); | |
689 | ||
690 | wxPy_END_ALLOW_THREADS; | |
691 | } if (_result) { | |
692 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
693 | _resultobj = Py_BuildValue("s",_ptemp); | |
694 | } else { | |
695 | Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | } | |
698 | return _resultobj; | |
699 | } | |
700 | ||
701 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
702 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
703 | PyObject * _resultobj; | |
704 | wxValidator * _result; | |
705 | wxValidator * _arg0; | |
706 | PyObject * _argo0 = 0; | |
707 | char *_kwnames[] = { "self", NULL }; | |
708 | char _ptemp[128]; | |
709 | ||
710 | self = self; | |
711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
712 | return NULL; | |
713 | if (_argo0) { | |
714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
717 | return NULL; | |
718 | } | |
719 | } | |
720 | { | |
721 | wxPy_BEGIN_ALLOW_THREADS; | |
722 | _result = (wxValidator *)wxValidator_Clone(_arg0); | |
723 | ||
724 | wxPy_END_ALLOW_THREADS; | |
725 | } if (_result) { | |
726 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
727 | _resultobj = Py_BuildValue("s",_ptemp); | |
728 | } else { | |
729 | Py_INCREF(Py_None); | |
730 | _resultobj = Py_None; | |
731 | } | |
732 | return _resultobj; | |
733 | } | |
734 | ||
735 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
736 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
737 | PyObject * _resultobj; | |
738 | wxWindow * _result; | |
739 | wxValidator * _arg0; | |
740 | PyObject * _argo0 = 0; | |
741 | char *_kwnames[] = { "self", NULL }; | |
742 | char _ptemp[128]; | |
743 | ||
744 | self = self; | |
745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
746 | return NULL; | |
747 | if (_argo0) { | |
748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
751 | return NULL; | |
752 | } | |
753 | } | |
754 | { | |
755 | wxPy_BEGIN_ALLOW_THREADS; | |
756 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); | |
757 | ||
758 | wxPy_END_ALLOW_THREADS; | |
759 | } if (_result) { | |
760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
761 | _resultobj = Py_BuildValue("s",_ptemp); | |
762 | } else { | |
763 | Py_INCREF(Py_None); | |
764 | _resultobj = Py_None; | |
765 | } | |
766 | return _resultobj; | |
767 | } | |
768 | ||
769 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
770 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
771 | PyObject * _resultobj; | |
772 | wxValidator * _arg0; | |
773 | wxWindow * _arg1; | |
774 | PyObject * _argo0 = 0; | |
775 | PyObject * _argo1 = 0; | |
776 | char *_kwnames[] = { "self","window", NULL }; | |
777 | ||
778 | self = self; | |
779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
780 | return NULL; | |
781 | if (_argo0) { | |
782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
785 | return NULL; | |
786 | } | |
787 | } | |
788 | if (_argo1) { | |
789 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
790 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
792 | return NULL; | |
793 | } | |
794 | } | |
795 | { | |
796 | wxPy_BEGIN_ALLOW_THREADS; | |
797 | wxValidator_SetWindow(_arg0,_arg1); | |
798 | ||
799 | wxPy_END_ALLOW_THREADS; | |
800 | } Py_INCREF(Py_None); | |
801 | _resultobj = Py_None; | |
802 | return _resultobj; | |
803 | } | |
804 | ||
805 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
806 | wxPyValidator *src; | |
807 | wxValidator *dest; | |
808 | src = (wxPyValidator *) ptr; | |
809 | dest = (wxValidator *) src; | |
810 | return (void *) dest; | |
811 | } | |
812 | ||
813 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
814 | wxPyValidator *src; | |
815 | wxEvtHandler *dest; | |
816 | src = (wxPyValidator *) ptr; | |
817 | dest = (wxEvtHandler *) src; | |
818 | return (void *) dest; | |
819 | } | |
820 | ||
821 | #define new_wxPyValidator() (new wxPyValidator()) | |
822 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
823 | PyObject * _resultobj; | |
824 | wxPyValidator * _result; | |
825 | char *_kwnames[] = { NULL }; | |
826 | char _ptemp[128]; | |
827 | ||
828 | self = self; | |
829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
830 | return NULL; | |
831 | { | |
832 | wxPy_BEGIN_ALLOW_THREADS; | |
833 | _result = (wxPyValidator *)new_wxPyValidator(); | |
834 | ||
835 | wxPy_END_ALLOW_THREADS; | |
836 | } if (_result) { | |
837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
838 | _resultobj = Py_BuildValue("s",_ptemp); | |
839 | } else { | |
840 | Py_INCREF(Py_None); | |
841 | _resultobj = Py_None; | |
842 | } | |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
847 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
848 | PyObject * _resultobj; | |
849 | wxPyValidator * _arg0; | |
850 | PyObject * _argo0 = 0; | |
851 | char *_kwnames[] = { "self", NULL }; | |
852 | ||
853 | self = self; | |
854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
855 | return NULL; | |
856 | if (_argo0) { | |
857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
860 | return NULL; | |
861 | } | |
862 | } | |
863 | { | |
864 | wxPy_BEGIN_ALLOW_THREADS; | |
865 | wxPyValidator_Destroy(_arg0); | |
866 | ||
867 | wxPy_END_ALLOW_THREADS; | |
868 | } Py_INCREF(Py_None); | |
869 | _resultobj = Py_None; | |
870 | return _resultobj; | |
871 | } | |
872 | ||
873 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) | |
874 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
875 | PyObject * _resultobj; | |
876 | wxPyValidator * _arg0; | |
877 | PyObject * _arg1; | |
878 | PyObject * _arg2; | |
879 | int _arg3 = (int ) TRUE; | |
880 | PyObject * _argo0 = 0; | |
881 | PyObject * _obj1 = 0; | |
882 | PyObject * _obj2 = 0; | |
883 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
884 | ||
885 | self = self; | |
886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) | |
887 | return NULL; | |
888 | if (_argo0) { | |
889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
892 | return NULL; | |
893 | } | |
894 | } | |
895 | { | |
896 | _arg1 = _obj1; | |
897 | } | |
898 | { | |
899 | _arg2 = _obj2; | |
900 | } | |
901 | { | |
902 | wxPy_BEGIN_ALLOW_THREADS; | |
903 | wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3); | |
904 | ||
905 | wxPy_END_ALLOW_THREADS; | |
906 | } Py_INCREF(Py_None); | |
907 | _resultobj = Py_None; | |
908 | return _resultobj; | |
909 | } | |
910 | ||
911 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
912 | wxWindow *src; | |
913 | wxEvtHandler *dest; | |
914 | src = (wxWindow *) ptr; | |
915 | dest = (wxEvtHandler *) src; | |
916 | return (void *) dest; | |
917 | } | |
918 | ||
919 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
920 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
921 | PyObject * _resultobj; | |
922 | wxWindow * _result; | |
923 | wxWindow * _arg0; | |
924 | wxWindowID _arg1; | |
925 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
926 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
927 | long _arg4 = (long ) 0; | |
928 | char * _arg5 = (char *) "panel"; | |
929 | PyObject * _argo0 = 0; | |
930 | wxPoint temp; | |
931 | PyObject * _obj2 = 0; | |
932 | wxSize temp0; | |
933 | PyObject * _obj3 = 0; | |
934 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
935 | char _ptemp[128]; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
939 | return NULL; | |
940 | if (_argo0) { | |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | if (_obj2) | |
948 | { | |
949 | _arg2 = &temp; | |
950 | if (! wxPoint_helper(_obj2, &_arg2)) | |
951 | return NULL; | |
952 | } | |
953 | if (_obj3) | |
954 | { | |
955 | _arg3 = &temp0; | |
956 | if (! wxSize_helper(_obj3, &_arg3)) | |
957 | return NULL; | |
958 | } | |
959 | { | |
960 | wxPy_BEGIN_ALLOW_THREADS; | |
961 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
962 | ||
963 | wxPy_END_ALLOW_THREADS; | |
964 | } if (_result) { | |
965 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
966 | _resultobj = Py_BuildValue("s",_ptemp); | |
967 | } else { | |
968 | Py_INCREF(Py_None); | |
969 | _resultobj = Py_None; | |
970 | } | |
971 | return _resultobj; | |
972 | } | |
973 | ||
974 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
975 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
976 | PyObject * _resultobj; | |
977 | wxWindow * _arg0; | |
978 | PyObject * _argo0 = 0; | |
979 | char *_kwnames[] = { "self", NULL }; | |
980 | ||
981 | self = self; | |
982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
983 | return NULL; | |
984 | if (_argo0) { | |
985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
988 | return NULL; | |
989 | } | |
990 | } | |
991 | { | |
992 | wxPy_BEGIN_ALLOW_THREADS; | |
993 | wxWindow_CaptureMouse(_arg0); | |
994 | ||
995 | wxPy_END_ALLOW_THREADS; | |
996 | } Py_INCREF(Py_None); | |
997 | _resultobj = Py_None; | |
998 | return _resultobj; | |
999 | } | |
1000 | ||
1001 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
1002 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1003 | PyObject * _resultobj; | |
1004 | wxWindow * _arg0; | |
1005 | int _arg1 = (int ) wxBOTH; | |
1006 | PyObject * _argo0 = 0; | |
1007 | char *_kwnames[] = { "self","direction", NULL }; | |
1008 | ||
1009 | self = self; | |
1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) | |
1011 | return NULL; | |
1012 | if (_argo0) { | |
1013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); | |
1016 | return NULL; | |
1017 | } | |
1018 | } | |
1019 | { | |
1020 | wxPy_BEGIN_ALLOW_THREADS; | |
1021 | wxWindow_Center(_arg0,_arg1); | |
1022 | ||
1023 | wxPy_END_ALLOW_THREADS; | |
1024 | } Py_INCREF(Py_None); | |
1025 | _resultobj = Py_None; | |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
1029 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
1030 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1031 | PyObject * _resultobj; | |
1032 | wxWindow * _arg0; | |
1033 | int _arg1 = (int ) wxBOTH; | |
1034 | PyObject * _argo0 = 0; | |
1035 | char *_kwnames[] = { "self","direction", NULL }; | |
1036 | ||
1037 | self = self; | |
1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) | |
1039 | return NULL; | |
1040 | if (_argo0) { | |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); | |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
1047 | { | |
1048 | wxPy_BEGIN_ALLOW_THREADS; | |
1049 | wxWindow_Centre(_arg0,_arg1); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
1052 | } Py_INCREF(Py_None); | |
1053 | _resultobj = Py_None; | |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
1057 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) | |
1058 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1059 | PyObject * _resultobj; | |
1060 | wxWindow * _arg0; | |
1061 | int _arg1 = (int ) wxBOTH; | |
1062 | PyObject * _argo0 = 0; | |
1063 | char *_kwnames[] = { "self","direction", NULL }; | |
1064 | ||
1065 | self = self; | |
1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) | |
1067 | return NULL; | |
1068 | if (_argo0) { | |
1069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); | |
1072 | return NULL; | |
1073 | } | |
1074 | } | |
1075 | { | |
1076 | wxPy_BEGIN_ALLOW_THREADS; | |
1077 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1078 | ||
1079 | wxPy_END_ALLOW_THREADS; | |
1080 | } Py_INCREF(Py_None); | |
1081 | _resultobj = Py_None; | |
1082 | return _resultobj; | |
1083 | } | |
1084 | ||
1085 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
1086 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1087 | PyObject * _resultobj; | |
1088 | wxWindow * _arg0; | |
1089 | int _arg1 = (int ) wxBOTH; | |
1090 | PyObject * _argo0 = 0; | |
1091 | char *_kwnames[] = { "self","direction", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | { | |
1104 | wxPy_BEGIN_ALLOW_THREADS; | |
1105 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1106 | ||
1107 | wxPy_END_ALLOW_THREADS; | |
1108 | } Py_INCREF(Py_None); | |
1109 | _resultobj = Py_None; | |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
1113 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) | |
1114 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1115 | PyObject * _resultobj; | |
1116 | wxWindow * _arg0; | |
1117 | int * _arg1; | |
1118 | int * _arg2; | |
1119 | PyObject * _argo0 = 0; | |
1120 | int temp; | |
1121 | PyObject * _obj1 = 0; | |
1122 | int temp0; | |
1123 | PyObject * _obj2 = 0; | |
1124 | char *_kwnames[] = { "self","x","y", NULL }; | |
1125 | ||
1126 | self = self; | |
1127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1128 | return NULL; | |
1129 | if (_argo0) { | |
1130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); | |
1133 | return NULL; | |
1134 | } | |
1135 | } | |
1136 | { | |
1137 | temp = (int) PyInt_AsLong(_obj1); | |
1138 | _arg1 = &temp; | |
1139 | } | |
1140 | { | |
1141 | temp0 = (int) PyInt_AsLong(_obj2); | |
1142 | _arg2 = &temp0; | |
1143 | } | |
1144 | { | |
1145 | wxPy_BEGIN_ALLOW_THREADS; | |
1146 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1147 | ||
1148 | wxPy_END_ALLOW_THREADS; | |
1149 | } Py_INCREF(Py_None); | |
1150 | _resultobj = Py_None; | |
1151 | { | |
1152 | PyObject *o; | |
1153 | o = PyInt_FromLong((long) (*_arg1)); | |
1154 | _resultobj = t_output_helper(_resultobj, o); | |
1155 | } | |
1156 | { | |
1157 | PyObject *o; | |
1158 | o = PyInt_FromLong((long) (*_arg2)); | |
1159 | _resultobj = t_output_helper(_resultobj, o); | |
1160 | } | |
1161 | return _resultobj; | |
1162 | } | |
1163 | ||
1164 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) | |
1165 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1166 | PyObject * _resultobj; | |
1167 | wxPoint * _result; | |
1168 | wxWindow * _arg0; | |
1169 | wxPoint * _arg1; | |
1170 | PyObject * _argo0 = 0; | |
1171 | wxPoint temp; | |
1172 | PyObject * _obj1 = 0; | |
1173 | char *_kwnames[] = { "self","pt", NULL }; | |
1174 | char _ptemp[128]; | |
1175 | ||
1176 | self = self; | |
1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) | |
1178 | return NULL; | |
1179 | if (_argo0) { | |
1180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); | |
1183 | return NULL; | |
1184 | } | |
1185 | } | |
1186 | { | |
1187 | _arg1 = &temp; | |
1188 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1189 | return NULL; | |
1190 | } | |
1191 | { | |
1192 | wxPy_BEGIN_ALLOW_THREADS; | |
1193 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1194 | ||
1195 | wxPy_END_ALLOW_THREADS; | |
1196 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1197 | _resultobj = Py_BuildValue("s",_ptemp); | |
1198 | return _resultobj; | |
1199 | } | |
1200 | ||
1201 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) | |
1202 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1203 | PyObject * _resultobj; | |
1204 | bool _result; | |
1205 | wxWindow * _arg0; | |
1206 | int _arg1 = (int ) FALSE; | |
1207 | PyObject * _argo0 = 0; | |
1208 | char *_kwnames[] = { "self","force", NULL }; | |
1209 | ||
1210 | self = self; | |
1211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) | |
1212 | return NULL; | |
1213 | if (_argo0) { | |
1214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); | |
1217 | return NULL; | |
1218 | } | |
1219 | } | |
1220 | { | |
1221 | wxPy_BEGIN_ALLOW_THREADS; | |
1222 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1223 | ||
1224 | wxPy_END_ALLOW_THREADS; | |
1225 | } _resultobj = Py_BuildValue("i",_result); | |
1226 | return _resultobj; | |
1227 | } | |
1228 | ||
1229 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
1230 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1231 | PyObject * _resultobj; | |
1232 | bool _result; | |
1233 | wxWindow * _arg0; | |
1234 | PyObject * _argo0 = 0; | |
1235 | char *_kwnames[] = { "self", NULL }; | |
1236 | ||
1237 | self = self; | |
1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) | |
1239 | return NULL; | |
1240 | if (_argo0) { | |
1241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); | |
1244 | return NULL; | |
1245 | } | |
1246 | } | |
1247 | { | |
1248 | wxPy_BEGIN_ALLOW_THREADS; | |
1249 | _result = (bool )wxWindow_Destroy(_arg0); | |
1250 | ||
1251 | wxPy_END_ALLOW_THREADS; | |
1252 | } _resultobj = Py_BuildValue("i",_result); | |
1253 | return _resultobj; | |
1254 | } | |
1255 | ||
1256 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
1257 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1258 | PyObject * _resultobj; | |
1259 | wxWindow * _arg0; | |
1260 | PyObject * _argo0 = 0; | |
1261 | char *_kwnames[] = { "self", NULL }; | |
1262 | ||
1263 | self = self; | |
1264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) | |
1265 | return NULL; | |
1266 | if (_argo0) { | |
1267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); | |
1270 | return NULL; | |
1271 | } | |
1272 | } | |
1273 | { | |
1274 | wxPy_BEGIN_ALLOW_THREADS; | |
1275 | wxWindow_DestroyChildren(_arg0); | |
1276 | ||
1277 | wxPy_END_ALLOW_THREADS; | |
1278 | } Py_INCREF(Py_None); | |
1279 | _resultobj = Py_None; | |
1280 | return _resultobj; | |
1281 | } | |
1282 | ||
1283 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
1284 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1285 | PyObject * _resultobj; | |
1286 | wxWindow * _arg0; | |
1287 | bool _arg1; | |
1288 | PyObject * _argo0 = 0; | |
1289 | int tempbool1; | |
1290 | char *_kwnames[] = { "self","accept", NULL }; | |
1291 | ||
1292 | self = self; | |
1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) | |
1294 | return NULL; | |
1295 | if (_argo0) { | |
1296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); | |
1299 | return NULL; | |
1300 | } | |
1301 | } | |
1302 | _arg1 = (bool ) tempbool1; | |
1303 | { | |
1304 | wxPy_BEGIN_ALLOW_THREADS; | |
1305 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1306 | ||
1307 | wxPy_END_ALLOW_THREADS; | |
1308 | } Py_INCREF(Py_None); | |
1309 | _resultobj = Py_None; | |
1310 | return _resultobj; | |
1311 | } | |
1312 | ||
1313 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1314 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject * _resultobj; | |
1316 | wxWindow * _arg0; | |
1317 | bool _arg1; | |
1318 | PyObject * _argo0 = 0; | |
1319 | int tempbool1; | |
1320 | char *_kwnames[] = { "self","enable", NULL }; | |
1321 | ||
1322 | self = self; | |
1323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) | |
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_Enable. Expected _wxWindow_p."); | |
1329 | return NULL; | |
1330 | } | |
1331 | } | |
1332 | _arg1 = (bool ) tempbool1; | |
1333 | { | |
1334 | wxPy_BEGIN_ALLOW_THREADS; | |
1335 | wxWindow_Enable(_arg0,_arg1); | |
1336 | ||
1337 | wxPy_END_ALLOW_THREADS; | |
1338 | } Py_INCREF(Py_None); | |
1339 | _resultobj = Py_None; | |
1340 | return _resultobj; | |
1341 | } | |
1342 | ||
1343 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1344 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1345 | PyObject * _resultobj; | |
1346 | wxWindow * _result; | |
1347 | wxWindow * _arg0; | |
1348 | long _arg1; | |
1349 | PyObject * _argo0 = 0; | |
1350 | char *_kwnames[] = { "self","id", NULL }; | |
1351 | char _ptemp[128]; | |
1352 | ||
1353 | self = self; | |
1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) | |
1355 | return NULL; | |
1356 | if (_argo0) { | |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); | |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
1363 | { | |
1364 | wxPy_BEGIN_ALLOW_THREADS; | |
1365 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1366 | ||
1367 | wxPy_END_ALLOW_THREADS; | |
1368 | } if (_result) { | |
1369 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1370 | _resultobj = Py_BuildValue("s",_ptemp); | |
1371 | } else { | |
1372 | Py_INCREF(Py_None); | |
1373 | _resultobj = Py_None; | |
1374 | } | |
1375 | return _resultobj; | |
1376 | } | |
1377 | ||
1378 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1379 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1380 | PyObject * _resultobj; | |
1381 | wxWindow * _result; | |
1382 | wxWindow * _arg0; | |
1383 | wxString * _arg1; | |
1384 | PyObject * _argo0 = 0; | |
1385 | PyObject * _obj1 = 0; | |
1386 | char *_kwnames[] = { "self","name", NULL }; | |
1387 | char _ptemp[128]; | |
1388 | ||
1389 | self = self; | |
1390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) | |
1391 | return NULL; | |
1392 | if (_argo0) { | |
1393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); | |
1396 | return NULL; | |
1397 | } | |
1398 | } | |
1399 | { | |
1400 | if (!PyString_Check(_obj1)) { | |
1401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1402 | return NULL; | |
1403 | } | |
1404 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1405 | } | |
1406 | { | |
1407 | wxPy_BEGIN_ALLOW_THREADS; | |
1408 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1409 | ||
1410 | wxPy_END_ALLOW_THREADS; | |
1411 | } if (_result) { | |
1412 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1413 | _resultobj = Py_BuildValue("s",_ptemp); | |
1414 | } else { | |
1415 | Py_INCREF(Py_None); | |
1416 | _resultobj = Py_None; | |
1417 | } | |
1418 | { | |
1419 | if (_obj1) | |
1420 | delete _arg1; | |
1421 | } | |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
1425 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
1426 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1427 | PyObject * _resultobj; | |
1428 | wxWindow * _arg0; | |
1429 | PyObject * _argo0 = 0; | |
1430 | char *_kwnames[] = { "self", NULL }; | |
1431 | ||
1432 | self = self; | |
1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) | |
1434 | return NULL; | |
1435 | if (_argo0) { | |
1436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); | |
1439 | return NULL; | |
1440 | } | |
1441 | } | |
1442 | { | |
1443 | wxPy_BEGIN_ALLOW_THREADS; | |
1444 | wxWindow_Fit(_arg0); | |
1445 | ||
1446 | wxPy_END_ALLOW_THREADS; | |
1447 | } Py_INCREF(Py_None); | |
1448 | _resultobj = Py_None; | |
1449 | return _resultobj; | |
1450 | } | |
1451 | ||
1452 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1453 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject * _resultobj; | |
1455 | wxColour * _result; | |
1456 | wxWindow * _arg0; | |
1457 | PyObject * _argo0 = 0; | |
1458 | char *_kwnames[] = { "self", NULL }; | |
1459 | char _ptemp[128]; | |
1460 | ||
1461 | self = self; | |
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) | |
1463 | return NULL; | |
1464 | if (_argo0) { | |
1465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); | |
1468 | return NULL; | |
1469 | } | |
1470 | } | |
1471 | { | |
1472 | wxPy_BEGIN_ALLOW_THREADS; | |
1473 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1474 | ||
1475 | wxPy_END_ALLOW_THREADS; | |
1476 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1477 | _resultobj = Py_BuildValue("s",_ptemp); | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | static PyObject * wxWindow_GetChildren(wxWindow *self) { | |
1482 | wxWindowList& list = self->GetChildren(); | |
1483 | return wxPy_ConvertList(&list, "wxWindow"); | |
1484 | } | |
1485 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject * _resultobj; | |
1487 | PyObject * _result; | |
1488 | wxWindow * _arg0; | |
1489 | PyObject * _argo0 = 0; | |
1490 | char *_kwnames[] = { "self", NULL }; | |
1491 | ||
1492 | self = self; | |
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1494 | return NULL; | |
1495 | if (_argo0) { | |
1496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1499 | return NULL; | |
1500 | } | |
1501 | } | |
1502 | { | |
1503 | wxPy_BEGIN_ALLOW_THREADS; | |
1504 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1505 | ||
1506 | wxPy_END_ALLOW_THREADS; | |
1507 | }{ | |
1508 | _resultobj = _result; | |
1509 | } | |
1510 | return _resultobj; | |
1511 | } | |
1512 | ||
1513 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1514 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1515 | PyObject * _resultobj; | |
1516 | int _result; | |
1517 | wxWindow * _arg0; | |
1518 | PyObject * _argo0 = 0; | |
1519 | char *_kwnames[] = { "self", NULL }; | |
1520 | ||
1521 | self = self; | |
1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) | |
1523 | return NULL; | |
1524 | if (_argo0) { | |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); | |
1528 | return NULL; | |
1529 | } | |
1530 | } | |
1531 | { | |
1532 | wxPy_BEGIN_ALLOW_THREADS; | |
1533 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1534 | ||
1535 | wxPy_END_ALLOW_THREADS; | |
1536 | } _resultobj = Py_BuildValue("i",_result); | |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1541 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | int _result; | |
1544 | wxWindow * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
1559 | wxPy_BEGIN_ALLOW_THREADS; | |
1560 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1561 | ||
1562 | wxPy_END_ALLOW_THREADS; | |
1563 | } _resultobj = Py_BuildValue("i",_result); | |
1564 | return _resultobj; | |
1565 | } | |
1566 | ||
1567 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) | |
1568 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject * _resultobj; | |
1570 | wxWindow * _arg0; | |
1571 | int * _arg1; | |
1572 | int temp; | |
1573 | int * _arg2; | |
1574 | int temp0; | |
1575 | PyObject * _argo0 = 0; | |
1576 | char *_kwnames[] = { "self", NULL }; | |
1577 | ||
1578 | self = self; | |
1579 | { | |
1580 | _arg1 = &temp; | |
1581 | } | |
1582 | { | |
1583 | _arg2 = &temp0; | |
1584 | } | |
1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) | |
1586 | return NULL; | |
1587 | if (_argo0) { | |
1588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); | |
1591 | return NULL; | |
1592 | } | |
1593 | } | |
1594 | { | |
1595 | wxPy_BEGIN_ALLOW_THREADS; | |
1596 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1597 | ||
1598 | wxPy_END_ALLOW_THREADS; | |
1599 | } Py_INCREF(Py_None); | |
1600 | _resultobj = Py_None; | |
1601 | { | |
1602 | PyObject *o; | |
1603 | o = PyInt_FromLong((long) (*_arg1)); | |
1604 | _resultobj = t_output_helper(_resultobj, o); | |
1605 | } | |
1606 | { | |
1607 | PyObject *o; | |
1608 | o = PyInt_FromLong((long) (*_arg2)); | |
1609 | _resultobj = t_output_helper(_resultobj, o); | |
1610 | } | |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) | |
1615 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject * _resultobj; | |
1617 | wxSize * _result; | |
1618 | wxWindow * _arg0; | |
1619 | PyObject * _argo0 = 0; | |
1620 | char *_kwnames[] = { "self", NULL }; | |
1621 | char _ptemp[128]; | |
1622 | ||
1623 | self = self; | |
1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) | |
1625 | return NULL; | |
1626 | if (_argo0) { | |
1627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); | |
1630 | return NULL; | |
1631 | } | |
1632 | } | |
1633 | { | |
1634 | wxPy_BEGIN_ALLOW_THREADS; | |
1635 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1636 | ||
1637 | wxPy_END_ALLOW_THREADS; | |
1638 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1639 | _resultobj = Py_BuildValue("s",_ptemp); | |
1640 | return _resultobj; | |
1641 | } | |
1642 | ||
1643 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) | |
1644 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | wxLayoutConstraints * _result; | |
1647 | wxWindow * _arg0; | |
1648 | PyObject * _argo0 = 0; | |
1649 | char *_kwnames[] = { "self", NULL }; | |
1650 | char _ptemp[128]; | |
1651 | ||
1652 | self = self; | |
1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) | |
1654 | return NULL; | |
1655 | if (_argo0) { | |
1656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); | |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
1662 | { | |
1663 | wxPy_BEGIN_ALLOW_THREADS; | |
1664 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1665 | ||
1666 | wxPy_END_ALLOW_THREADS; | |
1667 | } if (_result) { | |
1668 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1669 | _resultobj = Py_BuildValue("s",_ptemp); | |
1670 | } else { | |
1671 | Py_INCREF(Py_None); | |
1672 | _resultobj = Py_None; | |
1673 | } | |
1674 | return _resultobj; | |
1675 | } | |
1676 | ||
1677 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
1678 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1679 | PyObject * _resultobj; | |
1680 | wxEvtHandler * _result; | |
1681 | wxWindow * _arg0; | |
1682 | PyObject * _argo0 = 0; | |
1683 | char *_kwnames[] = { "self", NULL }; | |
1684 | char _ptemp[128]; | |
1685 | ||
1686 | self = self; | |
1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1688 | return NULL; | |
1689 | if (_argo0) { | |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
1696 | { | |
1697 | wxPy_BEGIN_ALLOW_THREADS; | |
1698 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1699 | ||
1700 | wxPy_END_ALLOW_THREADS; | |
1701 | } if (_result) { | |
1702 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1703 | _resultobj = Py_BuildValue("s",_ptemp); | |
1704 | } else { | |
1705 | Py_INCREF(Py_None); | |
1706 | _resultobj = Py_None; | |
1707 | } | |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) | |
1712 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | wxFont * _result; | |
1715 | wxWindow * _arg0; | |
1716 | PyObject * _argo0 = 0; | |
1717 | char *_kwnames[] = { "self", NULL }; | |
1718 | char _ptemp[128]; | |
1719 | ||
1720 | self = self; | |
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) | |
1722 | return NULL; | |
1723 | if (_argo0) { | |
1724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); | |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
1730 | { | |
1731 | wxPy_BEGIN_ALLOW_THREADS; | |
1732 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
1733 | _result = (wxFont *) &_result_ref; | |
1734 | ||
1735 | wxPy_END_ALLOW_THREADS; | |
1736 | } if (_result) { | |
1737 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1738 | _resultobj = Py_BuildValue("s",_ptemp); | |
1739 | } else { | |
1740 | Py_INCREF(Py_None); | |
1741 | _resultobj = Py_None; | |
1742 | } | |
1743 | return _resultobj; | |
1744 | } | |
1745 | ||
1746 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
1747 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1748 | PyObject * _resultobj; | |
1749 | wxColour * _result; | |
1750 | wxWindow * _arg0; | |
1751 | PyObject * _argo0 = 0; | |
1752 | char *_kwnames[] = { "self", NULL }; | |
1753 | char _ptemp[128]; | |
1754 | ||
1755 | self = self; | |
1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) | |
1757 | return NULL; | |
1758 | if (_argo0) { | |
1759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); | |
1762 | return NULL; | |
1763 | } | |
1764 | } | |
1765 | { | |
1766 | wxPy_BEGIN_ALLOW_THREADS; | |
1767 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1768 | ||
1769 | wxPy_END_ALLOW_THREADS; | |
1770 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1771 | _resultobj = Py_BuildValue("s",_ptemp); | |
1772 | return _resultobj; | |
1773 | } | |
1774 | ||
1775 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
1776 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1777 | PyObject * _resultobj; | |
1778 | wxWindow * _result; | |
1779 | wxWindow * _arg0; | |
1780 | PyObject * _argo0 = 0; | |
1781 | char *_kwnames[] = { "self", NULL }; | |
1782 | char _ptemp[128]; | |
1783 | ||
1784 | self = self; | |
1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) | |
1786 | return NULL; | |
1787 | if (_argo0) { | |
1788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); | |
1791 | return NULL; | |
1792 | } | |
1793 | } | |
1794 | { | |
1795 | wxPy_BEGIN_ALLOW_THREADS; | |
1796 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1797 | ||
1798 | wxPy_END_ALLOW_THREADS; | |
1799 | } if (_result) { | |
1800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1801 | _resultobj = Py_BuildValue("s",_ptemp); | |
1802 | } else { | |
1803 | Py_INCREF(Py_None); | |
1804 | _resultobj = Py_None; | |
1805 | } | |
1806 | return _resultobj; | |
1807 | } | |
1808 | ||
1809 | static long wxWindow_GetHandle(wxWindow *self) { | |
1810 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); | |
1811 | } | |
1812 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1813 | PyObject * _resultobj; | |
1814 | long _result; | |
1815 | wxWindow * _arg0; | |
1816 | PyObject * _argo0 = 0; | |
1817 | char *_kwnames[] = { "self", NULL }; | |
1818 | ||
1819 | self = self; | |
1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1821 | return NULL; | |
1822 | if (_argo0) { | |
1823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1826 | return NULL; | |
1827 | } | |
1828 | } | |
1829 | { | |
1830 | wxPy_BEGIN_ALLOW_THREADS; | |
1831 | _result = (long )wxWindow_GetHandle(_arg0); | |
1832 | ||
1833 | wxPy_END_ALLOW_THREADS; | |
1834 | } _resultobj = Py_BuildValue("l",_result); | |
1835 | return _resultobj; | |
1836 | } | |
1837 | ||
1838 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
1839 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject * _resultobj; | |
1841 | int _result; | |
1842 | wxWindow * _arg0; | |
1843 | PyObject * _argo0 = 0; | |
1844 | char *_kwnames[] = { "self", NULL }; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) | |
1848 | return NULL; | |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | { | |
1857 | wxPy_BEGIN_ALLOW_THREADS; | |
1858 | _result = (int )wxWindow_GetId(_arg0); | |
1859 | ||
1860 | wxPy_END_ALLOW_THREADS; | |
1861 | } _resultobj = Py_BuildValue("i",_result); | |
1862 | return _resultobj; | |
1863 | } | |
1864 | ||
1865 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
1866 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject * _resultobj; | |
1868 | wxString * _result; | |
1869 | wxWindow * _arg0; | |
1870 | PyObject * _argo0 = 0; | |
1871 | char *_kwnames[] = { "self", NULL }; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) | |
1875 | return NULL; | |
1876 | if (_argo0) { | |
1877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); | |
1880 | return NULL; | |
1881 | } | |
1882 | } | |
1883 | { | |
1884 | wxPy_BEGIN_ALLOW_THREADS; | |
1885 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1886 | ||
1887 | wxPy_END_ALLOW_THREADS; | |
1888 | }{ | |
1889 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1890 | } | |
1891 | { | |
1892 | delete _result; | |
1893 | } | |
1894 | return _resultobj; | |
1895 | } | |
1896 | ||
1897 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
1898 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1899 | PyObject * _resultobj; | |
1900 | wxWindow * _arg0; | |
1901 | wxString * _arg1; | |
1902 | PyObject * _argo0 = 0; | |
1903 | PyObject * _obj1 = 0; | |
1904 | char *_kwnames[] = { "self","label", NULL }; | |
1905 | ||
1906 | self = self; | |
1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) | |
1908 | return NULL; | |
1909 | if (_argo0) { | |
1910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); | |
1913 | return NULL; | |
1914 | } | |
1915 | } | |
1916 | { | |
1917 | if (!PyString_Check(_obj1)) { | |
1918 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1919 | return NULL; | |
1920 | } | |
1921 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1922 | } | |
1923 | { | |
1924 | wxPy_BEGIN_ALLOW_THREADS; | |
1925 | wxWindow_SetLabel(_arg0,*_arg1); | |
1926 | ||
1927 | wxPy_END_ALLOW_THREADS; | |
1928 | } Py_INCREF(Py_None); | |
1929 | _resultobj = Py_None; | |
1930 | { | |
1931 | if (_obj1) | |
1932 | delete _arg1; | |
1933 | } | |
1934 | return _resultobj; | |
1935 | } | |
1936 | ||
1937 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) | |
1938 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1939 | PyObject * _resultobj; | |
1940 | wxString * _result; | |
1941 | wxWindow * _arg0; | |
1942 | PyObject * _argo0 = 0; | |
1943 | char *_kwnames[] = { "self", NULL }; | |
1944 | ||
1945 | self = self; | |
1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) | |
1947 | return NULL; | |
1948 | if (_argo0) { | |
1949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); | |
1952 | return NULL; | |
1953 | } | |
1954 | } | |
1955 | { | |
1956 | wxPy_BEGIN_ALLOW_THREADS; | |
1957 | _result = new wxString (wxWindow_GetName(_arg0)); | |
1958 | ||
1959 | wxPy_END_ALLOW_THREADS; | |
1960 | }{ | |
1961 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1962 | } | |
1963 | { | |
1964 | delete _result; | |
1965 | } | |
1966 | return _resultobj; | |
1967 | } | |
1968 | ||
1969 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
1970 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1971 | PyObject * _resultobj; | |
1972 | wxWindow * _result; | |
1973 | wxWindow * _arg0; | |
1974 | PyObject * _argo0 = 0; | |
1975 | char *_kwnames[] = { "self", NULL }; | |
1976 | char _ptemp[128]; | |
1977 | ||
1978 | self = self; | |
1979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) | |
1980 | return NULL; | |
1981 | if (_argo0) { | |
1982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); | |
1985 | return NULL; | |
1986 | } | |
1987 | } | |
1988 | { | |
1989 | wxPy_BEGIN_ALLOW_THREADS; | |
1990 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
1991 | ||
1992 | wxPy_END_ALLOW_THREADS; | |
1993 | } if (_result) { | |
1994 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1995 | _resultobj = Py_BuildValue("s",_ptemp); | |
1996 | } else { | |
1997 | Py_INCREF(Py_None); | |
1998 | _resultobj = Py_None; | |
1999 | } | |
2000 | return _resultobj; | |
2001 | } | |
2002 | ||
2003 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2004 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2005 | PyObject * _resultobj; | |
2006 | wxWindow * _arg0; | |
2007 | int * _arg1; | |
2008 | int temp; | |
2009 | int * _arg2; | |
2010 | int temp0; | |
2011 | PyObject * _argo0 = 0; | |
2012 | char *_kwnames[] = { "self", NULL }; | |
2013 | ||
2014 | self = self; | |
2015 | { | |
2016 | _arg1 = &temp; | |
2017 | } | |
2018 | { | |
2019 | _arg2 = &temp0; | |
2020 | } | |
2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) | |
2022 | return NULL; | |
2023 | if (_argo0) { | |
2024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); | |
2027 | return NULL; | |
2028 | } | |
2029 | } | |
2030 | { | |
2031 | wxPy_BEGIN_ALLOW_THREADS; | |
2032 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2033 | ||
2034 | wxPy_END_ALLOW_THREADS; | |
2035 | } Py_INCREF(Py_None); | |
2036 | _resultobj = Py_None; | |
2037 | { | |
2038 | PyObject *o; | |
2039 | o = PyInt_FromLong((long) (*_arg1)); | |
2040 | _resultobj = t_output_helper(_resultobj, o); | |
2041 | } | |
2042 | { | |
2043 | PyObject *o; | |
2044 | o = PyInt_FromLong((long) (*_arg2)); | |
2045 | _resultobj = t_output_helper(_resultobj, o); | |
2046 | } | |
2047 | return _resultobj; | |
2048 | } | |
2049 | ||
2050 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2051 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject * _resultobj; | |
2053 | wxPoint * _result; | |
2054 | wxWindow * _arg0; | |
2055 | PyObject * _argo0 = 0; | |
2056 | char *_kwnames[] = { "self", NULL }; | |
2057 | char _ptemp[128]; | |
2058 | ||
2059 | self = self; | |
2060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) | |
2061 | return NULL; | |
2062 | if (_argo0) { | |
2063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); | |
2066 | return NULL; | |
2067 | } | |
2068 | } | |
2069 | { | |
2070 | wxPy_BEGIN_ALLOW_THREADS; | |
2071 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2072 | ||
2073 | wxPy_END_ALLOW_THREADS; | |
2074 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2075 | _resultobj = Py_BuildValue("s",_ptemp); | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
2080 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject * _resultobj; | |
2082 | wxRect * _result; | |
2083 | wxWindow * _arg0; | |
2084 | PyObject * _argo0 = 0; | |
2085 | char *_kwnames[] = { "self", NULL }; | |
2086 | char _ptemp[128]; | |
2087 | ||
2088 | self = self; | |
2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) | |
2090 | return NULL; | |
2091 | if (_argo0) { | |
2092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); | |
2095 | return NULL; | |
2096 | } | |
2097 | } | |
2098 | { | |
2099 | wxPy_BEGIN_ALLOW_THREADS; | |
2100 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2101 | ||
2102 | wxPy_END_ALLOW_THREADS; | |
2103 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2104 | _resultobj = Py_BuildValue("s",_ptemp); | |
2105 | return _resultobj; | |
2106 | } | |
2107 | ||
2108 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) | |
2109 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2110 | PyObject * _resultobj; | |
2111 | int _result; | |
2112 | wxWindow * _arg0; | |
2113 | int _arg1; | |
2114 | PyObject * _argo0 = 0; | |
2115 | char *_kwnames[] = { "self","orientation", NULL }; | |
2116 | ||
2117 | self = self; | |
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) | |
2119 | return NULL; | |
2120 | if (_argo0) { | |
2121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); | |
2124 | return NULL; | |
2125 | } | |
2126 | } | |
2127 | { | |
2128 | wxPy_BEGIN_ALLOW_THREADS; | |
2129 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2130 | ||
2131 | wxPy_END_ALLOW_THREADS; | |
2132 | } _resultobj = Py_BuildValue("i",_result); | |
2133 | return _resultobj; | |
2134 | } | |
2135 | ||
2136 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
2137 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2138 | PyObject * _resultobj; | |
2139 | int _result; | |
2140 | wxWindow * _arg0; | |
2141 | int _arg1; | |
2142 | PyObject * _argo0 = 0; | |
2143 | char *_kwnames[] = { "self","orientation", NULL }; | |
2144 | ||
2145 | self = self; | |
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) | |
2147 | return NULL; | |
2148 | if (_argo0) { | |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); | |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
2155 | { | |
2156 | wxPy_BEGIN_ALLOW_THREADS; | |
2157 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2158 | ||
2159 | wxPy_END_ALLOW_THREADS; | |
2160 | } _resultobj = Py_BuildValue("i",_result); | |
2161 | return _resultobj; | |
2162 | } | |
2163 | ||
2164 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
2165 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2166 | PyObject * _resultobj; | |
2167 | int _result; | |
2168 | wxWindow * _arg0; | |
2169 | int _arg1; | |
2170 | PyObject * _argo0 = 0; | |
2171 | char *_kwnames[] = { "self","orientation", NULL }; | |
2172 | ||
2173 | self = self; | |
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) | |
2175 | return NULL; | |
2176 | if (_argo0) { | |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); | |
2180 | return NULL; | |
2181 | } | |
2182 | } | |
2183 | { | |
2184 | wxPy_BEGIN_ALLOW_THREADS; | |
2185 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2186 | ||
2187 | wxPy_END_ALLOW_THREADS; | |
2188 | } _resultobj = Py_BuildValue("i",_result); | |
2189 | return _resultobj; | |
2190 | } | |
2191 | ||
2192 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2193 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2194 | PyObject * _resultobj; | |
2195 | wxWindow * _arg0; | |
2196 | int * _arg1; | |
2197 | int temp; | |
2198 | int * _arg2; | |
2199 | int temp0; | |
2200 | PyObject * _argo0 = 0; | |
2201 | char *_kwnames[] = { "self", NULL }; | |
2202 | ||
2203 | self = self; | |
2204 | { | |
2205 | _arg1 = &temp; | |
2206 | } | |
2207 | { | |
2208 | _arg2 = &temp0; | |
2209 | } | |
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) | |
2211 | return NULL; | |
2212 | if (_argo0) { | |
2213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); | |
2216 | return NULL; | |
2217 | } | |
2218 | } | |
2219 | { | |
2220 | wxPy_BEGIN_ALLOW_THREADS; | |
2221 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2222 | ||
2223 | wxPy_END_ALLOW_THREADS; | |
2224 | } Py_INCREF(Py_None); | |
2225 | _resultobj = Py_None; | |
2226 | { | |
2227 | PyObject *o; | |
2228 | o = PyInt_FromLong((long) (*_arg1)); | |
2229 | _resultobj = t_output_helper(_resultobj, o); | |
2230 | } | |
2231 | { | |
2232 | PyObject *o; | |
2233 | o = PyInt_FromLong((long) (*_arg2)); | |
2234 | _resultobj = t_output_helper(_resultobj, o); | |
2235 | } | |
2236 | return _resultobj; | |
2237 | } | |
2238 | ||
2239 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) | |
2240 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2241 | PyObject * _resultobj; | |
2242 | wxSize * _result; | |
2243 | wxWindow * _arg0; | |
2244 | PyObject * _argo0 = 0; | |
2245 | char *_kwnames[] = { "self", NULL }; | |
2246 | char _ptemp[128]; | |
2247 | ||
2248 | self = self; | |
2249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) | |
2250 | return NULL; | |
2251 | if (_argo0) { | |
2252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); | |
2255 | return NULL; | |
2256 | } | |
2257 | } | |
2258 | { | |
2259 | wxPy_BEGIN_ALLOW_THREADS; | |
2260 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2261 | ||
2262 | wxPy_END_ALLOW_THREADS; | |
2263 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2264 | _resultobj = Py_BuildValue("s",_ptemp); | |
2265 | return _resultobj; | |
2266 | } | |
2267 | ||
2268 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
2269 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2270 | PyObject * _resultobj; | |
2271 | wxWindow * _arg0; | |
2272 | wxString * _arg1; | |
2273 | int * _arg2; | |
2274 | int temp; | |
2275 | int * _arg3; | |
2276 | int temp0; | |
2277 | PyObject * _argo0 = 0; | |
2278 | PyObject * _obj1 = 0; | |
2279 | char *_kwnames[] = { "self","string", NULL }; | |
2280 | ||
2281 | self = self; | |
2282 | { | |
2283 | _arg2 = &temp; | |
2284 | } | |
2285 | { | |
2286 | _arg3 = &temp0; | |
2287 | } | |
2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
2289 | return NULL; | |
2290 | if (_argo0) { | |
2291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); | |
2294 | return NULL; | |
2295 | } | |
2296 | } | |
2297 | { | |
2298 | if (!PyString_Check(_obj1)) { | |
2299 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2300 | return NULL; | |
2301 | } | |
2302 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
2303 | } | |
2304 | { | |
2305 | wxPy_BEGIN_ALLOW_THREADS; | |
2306 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2307 | ||
2308 | wxPy_END_ALLOW_THREADS; | |
2309 | } Py_INCREF(Py_None); | |
2310 | _resultobj = Py_None; | |
2311 | { | |
2312 | PyObject *o; | |
2313 | o = PyInt_FromLong((long) (*_arg2)); | |
2314 | _resultobj = t_output_helper(_resultobj, o); | |
2315 | } | |
2316 | { | |
2317 | PyObject *o; | |
2318 | o = PyInt_FromLong((long) (*_arg3)); | |
2319 | _resultobj = t_output_helper(_resultobj, o); | |
2320 | } | |
2321 | { | |
2322 | if (_obj1) | |
2323 | delete _arg1; | |
2324 | } | |
2325 | return _resultobj; | |
2326 | } | |
2327 | ||
2328 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2329 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2330 | PyObject * _resultobj; | |
2331 | wxWindow * _arg0; | |
2332 | wxString * _arg1; | |
2333 | int * _arg2; | |
2334 | int temp; | |
2335 | int * _arg3; | |
2336 | int temp0; | |
2337 | int * _arg4; | |
2338 | int temp1; | |
2339 | int * _arg5; | |
2340 | int temp2; | |
2341 | wxFont * _arg6 = (wxFont *) NULL; | |
2342 | PyObject * _argo0 = 0; | |
2343 | PyObject * _obj1 = 0; | |
2344 | PyObject * _argo6 = 0; | |
2345 | char *_kwnames[] = { "self","string","font", NULL }; | |
2346 | ||
2347 | self = self; | |
2348 | { | |
2349 | _arg2 = &temp; | |
2350 | } | |
2351 | { | |
2352 | _arg3 = &temp0; | |
2353 | } | |
2354 | { | |
2355 | _arg4 = &temp1; | |
2356 | } | |
2357 | { | |
2358 | _arg5 = &temp2; | |
2359 | } | |
2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
2361 | return NULL; | |
2362 | if (_argo0) { | |
2363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); | |
2366 | return NULL; | |
2367 | } | |
2368 | } | |
2369 | { | |
2370 | if (!PyString_Check(_obj1)) { | |
2371 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2372 | return NULL; | |
2373 | } | |
2374 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
2375 | } | |
2376 | if (_argo6) { | |
2377 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2378 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
2379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); | |
2380 | return NULL; | |
2381 | } | |
2382 | } | |
2383 | { | |
2384 | wxPy_BEGIN_ALLOW_THREADS; | |
2385 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2386 | ||
2387 | wxPy_END_ALLOW_THREADS; | |
2388 | } Py_INCREF(Py_None); | |
2389 | _resultobj = Py_None; | |
2390 | { | |
2391 | PyObject *o; | |
2392 | o = PyInt_FromLong((long) (*_arg2)); | |
2393 | _resultobj = t_output_helper(_resultobj, o); | |
2394 | } | |
2395 | { | |
2396 | PyObject *o; | |
2397 | o = PyInt_FromLong((long) (*_arg3)); | |
2398 | _resultobj = t_output_helper(_resultobj, o); | |
2399 | } | |
2400 | { | |
2401 | PyObject *o; | |
2402 | o = PyInt_FromLong((long) (*_arg4)); | |
2403 | _resultobj = t_output_helper(_resultobj, o); | |
2404 | } | |
2405 | { | |
2406 | PyObject *o; | |
2407 | o = PyInt_FromLong((long) (*_arg5)); | |
2408 | _resultobj = t_output_helper(_resultobj, o); | |
2409 | } | |
2410 | { | |
2411 | if (_obj1) | |
2412 | delete _arg1; | |
2413 | } | |
2414 | return _resultobj; | |
2415 | } | |
2416 | ||
2417 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
2418 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2419 | PyObject * _resultobj; | |
2420 | wxString * _result; | |
2421 | wxWindow * _arg0; | |
2422 | PyObject * _argo0 = 0; | |
2423 | char *_kwnames[] = { "self", NULL }; | |
2424 | ||
2425 | self = self; | |
2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) | |
2427 | return NULL; | |
2428 | if (_argo0) { | |
2429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); | |
2432 | return NULL; | |
2433 | } | |
2434 | } | |
2435 | { | |
2436 | wxPy_BEGIN_ALLOW_THREADS; | |
2437 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2438 | ||
2439 | wxPy_END_ALLOW_THREADS; | |
2440 | }{ | |
2441 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2442 | } | |
2443 | { | |
2444 | delete _result; | |
2445 | } | |
2446 | return _resultobj; | |
2447 | } | |
2448 | ||
2449 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) | |
2450 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject * _resultobj; | |
2452 | wxRegion * _result; | |
2453 | wxWindow * _arg0; | |
2454 | PyObject * _argo0 = 0; | |
2455 | char *_kwnames[] = { "self", NULL }; | |
2456 | char _ptemp[128]; | |
2457 | ||
2458 | self = self; | |
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) | |
2460 | return NULL; | |
2461 | if (_argo0) { | |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); | |
2465 | return NULL; | |
2466 | } | |
2467 | } | |
2468 | { | |
2469 | wxPy_BEGIN_ALLOW_THREADS; | |
2470 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2471 | ||
2472 | wxPy_END_ALLOW_THREADS; | |
2473 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2474 | _resultobj = Py_BuildValue("s",_ptemp); | |
2475 | return _resultobj; | |
2476 | } | |
2477 | ||
2478 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) | |
2479 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2480 | PyObject * _resultobj; | |
2481 | long _result; | |
2482 | wxWindow * _arg0; | |
2483 | PyObject * _argo0 = 0; | |
2484 | char *_kwnames[] = { "self", NULL }; | |
2485 | ||
2486 | self = self; | |
2487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) | |
2488 | return NULL; | |
2489 | if (_argo0) { | |
2490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); | |
2493 | return NULL; | |
2494 | } | |
2495 | } | |
2496 | { | |
2497 | wxPy_BEGIN_ALLOW_THREADS; | |
2498 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2499 | ||
2500 | wxPy_END_ALLOW_THREADS; | |
2501 | } _resultobj = Py_BuildValue("l",_result); | |
2502 | return _resultobj; | |
2503 | } | |
2504 | ||
2505 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
2506 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2507 | PyObject * _resultobj; | |
2508 | wxWindow * _arg0; | |
2509 | long _arg1; | |
2510 | PyObject * _argo0 = 0; | |
2511 | char *_kwnames[] = { "self","style", NULL }; | |
2512 | ||
2513 | self = self; | |
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2515 | return NULL; | |
2516 | if (_argo0) { | |
2517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2520 | return NULL; | |
2521 | } | |
2522 | } | |
2523 | { | |
2524 | wxPy_BEGIN_ALLOW_THREADS; | |
2525 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2526 | ||
2527 | wxPy_END_ALLOW_THREADS; | |
2528 | } Py_INCREF(Py_None); | |
2529 | _resultobj = Py_None; | |
2530 | return _resultobj; | |
2531 | } | |
2532 | ||
2533 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2534 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject * _resultobj; | |
2536 | wxWindow * _arg0; | |
2537 | long _arg1; | |
2538 | PyObject * _argo0 = 0; | |
2539 | char *_kwnames[] = { "self","style", NULL }; | |
2540 | ||
2541 | self = self; | |
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2543 | return NULL; | |
2544 | if (_argo0) { | |
2545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2548 | return NULL; | |
2549 | } | |
2550 | } | |
2551 | { | |
2552 | wxPy_BEGIN_ALLOW_THREADS; | |
2553 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2554 | ||
2555 | wxPy_END_ALLOW_THREADS; | |
2556 | } Py_INCREF(Py_None); | |
2557 | _resultobj = Py_None; | |
2558 | return _resultobj; | |
2559 | } | |
2560 | ||
2561 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) | |
2562 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2563 | PyObject * _resultobj; | |
2564 | bool _result; | |
2565 | wxWindow * _arg0; | |
2566 | PyObject * _argo0 = 0; | |
2567 | char *_kwnames[] = { "self", NULL }; | |
2568 | ||
2569 | self = self; | |
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) | |
2571 | return NULL; | |
2572 | if (_argo0) { | |
2573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); | |
2576 | return NULL; | |
2577 | } | |
2578 | } | |
2579 | { | |
2580 | wxPy_BEGIN_ALLOW_THREADS; | |
2581 | _result = (bool )wxWindow_Hide(_arg0); | |
2582 | ||
2583 | wxPy_END_ALLOW_THREADS; | |
2584 | } _resultobj = Py_BuildValue("i",_result); | |
2585 | return _resultobj; | |
2586 | } | |
2587 | ||
2588 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
2589 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2590 | PyObject * _resultobj; | |
2591 | wxWindow * _arg0; | |
2592 | PyObject * _argo0 = 0; | |
2593 | char *_kwnames[] = { "self", NULL }; | |
2594 | ||
2595 | self = self; | |
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) | |
2597 | return NULL; | |
2598 | if (_argo0) { | |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); | |
2602 | return NULL; | |
2603 | } | |
2604 | } | |
2605 | { | |
2606 | wxPy_BEGIN_ALLOW_THREADS; | |
2607 | wxWindow_InitDialog(_arg0); | |
2608 | ||
2609 | wxPy_END_ALLOW_THREADS; | |
2610 | } Py_INCREF(Py_None); | |
2611 | _resultobj = Py_None; | |
2612 | return _resultobj; | |
2613 | } | |
2614 | ||
2615 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
2616 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2617 | PyObject * _resultobj; | |
2618 | bool _result; | |
2619 | wxWindow * _arg0; | |
2620 | PyObject * _argo0 = 0; | |
2621 | char *_kwnames[] = { "self", NULL }; | |
2622 | ||
2623 | self = self; | |
2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) | |
2625 | return NULL; | |
2626 | if (_argo0) { | |
2627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); | |
2630 | return NULL; | |
2631 | } | |
2632 | } | |
2633 | { | |
2634 | wxPy_BEGIN_ALLOW_THREADS; | |
2635 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2636 | ||
2637 | wxPy_END_ALLOW_THREADS; | |
2638 | } _resultobj = Py_BuildValue("i",_result); | |
2639 | return _resultobj; | |
2640 | } | |
2641 | ||
2642 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2643 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2644 | PyObject * _resultobj; | |
2645 | bool _result; | |
2646 | wxWindow * _arg0; | |
2647 | int _arg1; | |
2648 | int _arg2; | |
2649 | int _arg3 = (int ) 0; | |
2650 | int _arg4 = (int ) 0; | |
2651 | PyObject * _argo0 = 0; | |
2652 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2653 | ||
2654 | self = self; | |
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2656 | return NULL; | |
2657 | if (_argo0) { | |
2658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2661 | return NULL; | |
2662 | } | |
2663 | } | |
2664 | { | |
2665 | wxPy_BEGIN_ALLOW_THREADS; | |
2666 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2667 | ||
2668 | wxPy_END_ALLOW_THREADS; | |
2669 | } _resultobj = Py_BuildValue("i",_result); | |
2670 | return _resultobj; | |
2671 | } | |
2672 | ||
2673 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2674 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2675 | PyObject * _resultobj; | |
2676 | bool _result; | |
2677 | wxWindow * _arg0; | |
2678 | wxPoint * _arg1; | |
2679 | PyObject * _argo0 = 0; | |
2680 | wxPoint temp; | |
2681 | PyObject * _obj1 = 0; | |
2682 | char *_kwnames[] = { "self","pt", NULL }; | |
2683 | ||
2684 | self = self; | |
2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2686 | return NULL; | |
2687 | if (_argo0) { | |
2688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2691 | return NULL; | |
2692 | } | |
2693 | } | |
2694 | { | |
2695 | _arg1 = &temp; | |
2696 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2697 | return NULL; | |
2698 | } | |
2699 | { | |
2700 | wxPy_BEGIN_ALLOW_THREADS; | |
2701 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2702 | ||
2703 | wxPy_END_ALLOW_THREADS; | |
2704 | } _resultobj = Py_BuildValue("i",_result); | |
2705 | return _resultobj; | |
2706 | } | |
2707 | ||
2708 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2709 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | bool _result; | |
2712 | wxWindow * _arg0; | |
2713 | wxRect * _arg1; | |
2714 | PyObject * _argo0 = 0; | |
2715 | wxRect temp; | |
2716 | PyObject * _obj1 = 0; | |
2717 | char *_kwnames[] = { "self","rect", NULL }; | |
2718 | ||
2719 | self = self; | |
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2721 | return NULL; | |
2722 | if (_argo0) { | |
2723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2726 | return NULL; | |
2727 | } | |
2728 | } | |
2729 | { | |
2730 | _arg1 = &temp; | |
2731 | if (! wxRect_helper(_obj1, &_arg1)) | |
2732 | return NULL; | |
2733 | } | |
2734 | { | |
2735 | wxPy_BEGIN_ALLOW_THREADS; | |
2736 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2737 | ||
2738 | wxPy_END_ALLOW_THREADS; | |
2739 | } _resultobj = Py_BuildValue("i",_result); | |
2740 | return _resultobj; | |
2741 | } | |
2742 | ||
2743 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
2744 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2745 | PyObject * _resultobj; | |
2746 | bool _result; | |
2747 | wxWindow * _arg0; | |
2748 | PyObject * _argo0 = 0; | |
2749 | char *_kwnames[] = { "self", NULL }; | |
2750 | ||
2751 | self = self; | |
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) | |
2753 | return NULL; | |
2754 | if (_argo0) { | |
2755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); | |
2758 | return NULL; | |
2759 | } | |
2760 | } | |
2761 | { | |
2762 | wxPy_BEGIN_ALLOW_THREADS; | |
2763 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2764 | ||
2765 | wxPy_END_ALLOW_THREADS; | |
2766 | } _resultobj = Py_BuildValue("i",_result); | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
2770 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
2771 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | bool _result; | |
2774 | wxWindow * _arg0; | |
2775 | PyObject * _argo0 = 0; | |
2776 | char *_kwnames[] = { "self", NULL }; | |
2777 | ||
2778 | self = self; | |
2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) | |
2780 | return NULL; | |
2781 | if (_argo0) { | |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); | |
2785 | return NULL; | |
2786 | } | |
2787 | } | |
2788 | { | |
2789 | wxPy_BEGIN_ALLOW_THREADS; | |
2790 | _result = (bool )wxWindow_IsShown(_arg0); | |
2791 | ||
2792 | wxPy_END_ALLOW_THREADS; | |
2793 | } _resultobj = Py_BuildValue("i",_result); | |
2794 | return _resultobj; | |
2795 | } | |
2796 | ||
2797 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) | |
2798 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | bool _result; | |
2801 | wxWindow * _arg0; | |
2802 | PyObject * _argo0 = 0; | |
2803 | char *_kwnames[] = { "self", NULL }; | |
2804 | ||
2805 | self = self; | |
2806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) | |
2807 | return NULL; | |
2808 | if (_argo0) { | |
2809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); | |
2812 | return NULL; | |
2813 | } | |
2814 | } | |
2815 | { | |
2816 | wxPy_BEGIN_ALLOW_THREADS; | |
2817 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2818 | ||
2819 | wxPy_END_ALLOW_THREADS; | |
2820 | } _resultobj = Py_BuildValue("i",_result); | |
2821 | return _resultobj; | |
2822 | } | |
2823 | ||
2824 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) | |
2825 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2826 | PyObject * _resultobj; | |
2827 | wxWindow * _arg0; | |
2828 | PyObject * _argo0 = 0; | |
2829 | char *_kwnames[] = { "self", NULL }; | |
2830 | ||
2831 | self = self; | |
2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) | |
2833 | return NULL; | |
2834 | if (_argo0) { | |
2835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); | |
2838 | return NULL; | |
2839 | } | |
2840 | } | |
2841 | { | |
2842 | wxPy_BEGIN_ALLOW_THREADS; | |
2843 | wxWindow_Layout(_arg0); | |
2844 | ||
2845 | wxPy_END_ALLOW_THREADS; | |
2846 | } Py_INCREF(Py_None); | |
2847 | _resultobj = Py_None; | |
2848 | return _resultobj; | |
2849 | } | |
2850 | ||
2851 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
2852 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2853 | PyObject * _resultobj; | |
2854 | bool _result; | |
2855 | wxWindow * _arg0; | |
2856 | wxWindow * _arg1; | |
2857 | wxString * _arg2; | |
2858 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; | |
2859 | PyObject * _argo0 = 0; | |
2860 | PyObject * _argo1 = 0; | |
2861 | PyObject * _obj2 = 0; | |
2862 | PyObject * _argo3 = 0; | |
2863 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; | |
2864 | ||
2865 | self = self; | |
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) | |
2867 | return NULL; | |
2868 | if (_argo0) { | |
2869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
2872 | return NULL; | |
2873 | } | |
2874 | } | |
2875 | if (_argo1) { | |
2876 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2882 | { | |
2883 | if (!PyString_Check(_obj2)) { | |
2884 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2885 | return NULL; | |
2886 | } | |
2887 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
2888 | } | |
2889 | if (_argo3) { | |
2890 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2891 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
2892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); | |
2893 | return NULL; | |
2894 | } | |
2895 | } | |
2896 | { | |
2897 | wxPy_BEGIN_ALLOW_THREADS; | |
2898 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
2899 | ||
2900 | wxPy_END_ALLOW_THREADS; | |
2901 | } _resultobj = Py_BuildValue("i",_result); | |
2902 | { | |
2903 | if (_obj2) | |
2904 | delete _arg2; | |
2905 | } | |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
2909 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
2910 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | wxWindow * _arg0; | |
2913 | PyObject * _argo0 = 0; | |
2914 | char *_kwnames[] = { "self", NULL }; | |
2915 | ||
2916 | self = self; | |
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) | |
2918 | return NULL; | |
2919 | if (_argo0) { | |
2920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); | |
2923 | return NULL; | |
2924 | } | |
2925 | } | |
2926 | { | |
2927 | wxPy_BEGIN_ALLOW_THREADS; | |
2928 | wxWindow_Lower(_arg0); | |
2929 | ||
2930 | wxPy_END_ALLOW_THREADS; | |
2931 | } Py_INCREF(Py_None); | |
2932 | _resultobj = Py_None; | |
2933 | return _resultobj; | |
2934 | } | |
2935 | ||
2936 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
2937 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject * _resultobj; | |
2939 | wxWindow * _arg0; | |
2940 | bool _arg1; | |
2941 | PyObject * _argo0 = 0; | |
2942 | int tempbool1; | |
2943 | char *_kwnames[] = { "self","flag", NULL }; | |
2944 | ||
2945 | self = self; | |
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
2947 | return NULL; | |
2948 | if (_argo0) { | |
2949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); | |
2952 | return NULL; | |
2953 | } | |
2954 | } | |
2955 | _arg1 = (bool ) tempbool1; | |
2956 | { | |
2957 | wxPy_BEGIN_ALLOW_THREADS; | |
2958 | wxWindow_MakeModal(_arg0,_arg1); | |
2959 | ||
2960 | wxPy_END_ALLOW_THREADS; | |
2961 | } Py_INCREF(Py_None); | |
2962 | _resultobj = Py_None; | |
2963 | return _resultobj; | |
2964 | } | |
2965 | ||
2966 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2967 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject * _resultobj; | |
2969 | wxWindow * _arg0; | |
2970 | int _arg1; | |
2971 | int _arg2; | |
2972 | PyObject * _argo0 = 0; | |
2973 | char *_kwnames[] = { "self","x","y", NULL }; | |
2974 | ||
2975 | self = self; | |
2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2977 | return NULL; | |
2978 | if (_argo0) { | |
2979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); | |
2982 | return NULL; | |
2983 | } | |
2984 | } | |
2985 | { | |
2986 | wxPy_BEGIN_ALLOW_THREADS; | |
2987 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
2988 | ||
2989 | wxPy_END_ALLOW_THREADS; | |
2990 | } Py_INCREF(Py_None); | |
2991 | _resultobj = Py_None; | |
2992 | return _resultobj; | |
2993 | } | |
2994 | ||
2995 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2996 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2997 | PyObject * _resultobj; | |
2998 | wxWindow * _arg0; | |
2999 | wxPoint * _arg1; | |
3000 | PyObject * _argo0 = 0; | |
3001 | wxPoint temp; | |
3002 | PyObject * _obj1 = 0; | |
3003 | char *_kwnames[] = { "self","point", NULL }; | |
3004 | ||
3005 | self = self; | |
3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) | |
3007 | return NULL; | |
3008 | if (_argo0) { | |
3009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); | |
3012 | return NULL; | |
3013 | } | |
3014 | } | |
3015 | { | |
3016 | _arg1 = &temp; | |
3017 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3018 | return NULL; | |
3019 | } | |
3020 | { | |
3021 | wxPy_BEGIN_ALLOW_THREADS; | |
3022 | wxWindow_Move(_arg0,*_arg1); | |
3023 | ||
3024 | wxPy_END_ALLOW_THREADS; | |
3025 | } Py_INCREF(Py_None); | |
3026 | _resultobj = Py_None; | |
3027 | return _resultobj; | |
3028 | } | |
3029 | ||
3030 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) | |
3031 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3032 | PyObject * _resultobj; | |
3033 | wxEvtHandler * _result; | |
3034 | wxWindow * _arg0; | |
3035 | bool _arg1 = (bool ) FALSE; | |
3036 | PyObject * _argo0 = 0; | |
3037 | int tempbool1 = (int) FALSE; | |
3038 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3039 | char _ptemp[128]; | |
3040 | ||
3041 | self = self; | |
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3043 | return NULL; | |
3044 | if (_argo0) { | |
3045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3048 | return NULL; | |
3049 | } | |
3050 | } | |
3051 | _arg1 = (bool ) tempbool1; | |
3052 | { | |
3053 | wxPy_BEGIN_ALLOW_THREADS; | |
3054 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3055 | ||
3056 | wxPy_END_ALLOW_THREADS; | |
3057 | } if (_result) { | |
3058 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
3059 | _resultobj = Py_BuildValue("s",_ptemp); | |
3060 | } else { | |
3061 | Py_INCREF(Py_None); | |
3062 | _resultobj = Py_None; | |
3063 | } | |
3064 | return _resultobj; | |
3065 | } | |
3066 | ||
3067 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3068 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3069 | PyObject * _resultobj; | |
3070 | wxWindow * _arg0; | |
3071 | wxEvtHandler * _arg1; | |
3072 | PyObject * _argo0 = 0; | |
3073 | PyObject * _argo1 = 0; | |
3074 | char *_kwnames[] = { "self","handler", NULL }; | |
3075 | ||
3076 | self = self; | |
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3078 | return NULL; | |
3079 | if (_argo0) { | |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3083 | return NULL; | |
3084 | } | |
3085 | } | |
3086 | if (_argo1) { | |
3087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3090 | return NULL; | |
3091 | } | |
3092 | } | |
3093 | { | |
3094 | wxPy_BEGIN_ALLOW_THREADS; | |
3095 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3096 | ||
3097 | wxPy_END_ALLOW_THREADS; | |
3098 | } Py_INCREF(Py_None); | |
3099 | _resultobj = Py_None; | |
3100 | return _resultobj; | |
3101 | } | |
3102 | ||
3103 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) | |
3104 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3105 | PyObject * _resultobj; | |
3106 | bool _result; | |
3107 | wxWindow * _arg0; | |
3108 | wxMenu * _arg1; | |
3109 | int _arg2; | |
3110 | int _arg3; | |
3111 | PyObject * _argo0 = 0; | |
3112 | PyObject * _argo1 = 0; | |
3113 | char *_kwnames[] = { "self","menu","x","y", NULL }; | |
3114 | ||
3115 | self = self; | |
3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
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_PopupMenuXY. Expected _wxWindow_p."); | |
3122 | return NULL; | |
3123 | } | |
3124 | } | |
3125 | if (_argo1) { | |
3126 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3127 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); | |
3129 | return NULL; | |
3130 | } | |
3131 | } | |
3132 | { | |
3133 | wxPy_BEGIN_ALLOW_THREADS; | |
3134 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3135 | ||
3136 | wxPy_END_ALLOW_THREADS; | |
3137 | } _resultobj = Py_BuildValue("i",_result); | |
3138 | return _resultobj; | |
3139 | } | |
3140 | ||
3141 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
3142 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject * _resultobj; | |
3144 | bool _result; | |
3145 | wxWindow * _arg0; | |
3146 | wxMenu * _arg1; | |
3147 | wxPoint * _arg2; | |
3148 | PyObject * _argo0 = 0; | |
3149 | PyObject * _argo1 = 0; | |
3150 | wxPoint temp; | |
3151 | PyObject * _obj2 = 0; | |
3152 | char *_kwnames[] = { "self","menu","pos", NULL }; | |
3153 | ||
3154 | self = self; | |
3155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3156 | return NULL; | |
3157 | if (_argo0) { | |
3158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); | |
3161 | return NULL; | |
3162 | } | |
3163 | } | |
3164 | if (_argo1) { | |
3165 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3166 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); | |
3168 | return NULL; | |
3169 | } | |
3170 | } | |
3171 | { | |
3172 | _arg2 = &temp; | |
3173 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3174 | return NULL; | |
3175 | } | |
3176 | { | |
3177 | wxPy_BEGIN_ALLOW_THREADS; | |
3178 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); | |
3179 | ||
3180 | wxPy_END_ALLOW_THREADS; | |
3181 | } _resultobj = Py_BuildValue("i",_result); | |
3182 | return _resultobj; | |
3183 | } | |
3184 | ||
3185 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
3186 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3187 | PyObject * _resultobj; | |
3188 | wxWindow * _arg0; | |
3189 | PyObject * _argo0 = 0; | |
3190 | char *_kwnames[] = { "self", NULL }; | |
3191 | ||
3192 | self = self; | |
3193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) | |
3194 | return NULL; | |
3195 | if (_argo0) { | |
3196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); | |
3199 | return NULL; | |
3200 | } | |
3201 | } | |
3202 | { | |
3203 | wxPy_BEGIN_ALLOW_THREADS; | |
3204 | wxWindow_Raise(_arg0); | |
3205 | ||
3206 | wxPy_END_ALLOW_THREADS; | |
3207 | } Py_INCREF(Py_None); | |
3208 | _resultobj = Py_None; | |
3209 | return _resultobj; | |
3210 | } | |
3211 | ||
3212 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
3213 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject * _resultobj; | |
3215 | wxWindow * _arg0; | |
3216 | bool _arg1 = (bool ) TRUE; | |
3217 | wxRect * _arg2 = (wxRect *) NULL; | |
3218 | PyObject * _argo0 = 0; | |
3219 | int tempbool1 = (int) TRUE; | |
3220 | wxRect temp; | |
3221 | PyObject * _obj2 = 0; | |
3222 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; | |
3223 | ||
3224 | self = self; | |
3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) | |
3226 | return NULL; | |
3227 | if (_argo0) { | |
3228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); | |
3231 | return NULL; | |
3232 | } | |
3233 | } | |
3234 | _arg1 = (bool ) tempbool1; | |
3235 | if (_obj2) | |
3236 | { | |
3237 | _arg2 = &temp; | |
3238 | if (! wxRect_helper(_obj2, &_arg2)) | |
3239 | return NULL; | |
3240 | } | |
3241 | { | |
3242 | wxPy_BEGIN_ALLOW_THREADS; | |
3243 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3244 | ||
3245 | wxPy_END_ALLOW_THREADS; | |
3246 | } Py_INCREF(Py_None); | |
3247 | _resultobj = Py_None; | |
3248 | return _resultobj; | |
3249 | } | |
3250 | ||
3251 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
3252 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject * _resultobj; | |
3254 | wxWindow * _arg0; | |
3255 | PyObject * _argo0 = 0; | |
3256 | char *_kwnames[] = { "self", NULL }; | |
3257 | ||
3258 | self = self; | |
3259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
3260 | return NULL; | |
3261 | if (_argo0) { | |
3262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
3265 | return NULL; | |
3266 | } | |
3267 | } | |
3268 | { | |
3269 | wxPy_BEGIN_ALLOW_THREADS; | |
3270 | wxWindow_ReleaseMouse(_arg0); | |
3271 | ||
3272 | wxPy_END_ALLOW_THREADS; | |
3273 | } Py_INCREF(Py_None); | |
3274 | _resultobj = Py_None; | |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
3278 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) | |
3279 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3280 | PyObject * _resultobj; | |
3281 | wxWindow * _arg0; | |
3282 | wxWindow * _arg1; | |
3283 | PyObject * _argo0 = 0; | |
3284 | PyObject * _argo1 = 0; | |
3285 | char *_kwnames[] = { "self","child", NULL }; | |
3286 | ||
3287 | self = self; | |
3288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3289 | return NULL; | |
3290 | if (_argo0) { | |
3291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3294 | return NULL; | |
3295 | } | |
3296 | } | |
3297 | if (_argo1) { | |
3298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3301 | return NULL; | |
3302 | } | |
3303 | } | |
3304 | { | |
3305 | wxPy_BEGIN_ALLOW_THREADS; | |
3306 | wxWindow_RemoveChild(_arg0,_arg1); | |
3307 | ||
3308 | wxPy_END_ALLOW_THREADS; | |
3309 | } Py_INCREF(Py_None); | |
3310 | _resultobj = Py_None; | |
3311 | return _resultobj; | |
3312 | } | |
3313 | ||
3314 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) | |
3315 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3316 | PyObject * _resultobj; | |
3317 | bool _result; | |
3318 | wxWindow * _arg0; | |
3319 | wxWindow * _arg1; | |
3320 | PyObject * _argo0 = 0; | |
3321 | PyObject * _argo1 = 0; | |
3322 | char *_kwnames[] = { "self","newParent", NULL }; | |
3323 | ||
3324 | self = self; | |
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) | |
3326 | return NULL; | |
3327 | if (_argo0) { | |
3328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3331 | return NULL; | |
3332 | } | |
3333 | } | |
3334 | if (_argo1) { | |
3335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3338 | return NULL; | |
3339 | } | |
3340 | } | |
3341 | { | |
3342 | wxPy_BEGIN_ALLOW_THREADS; | |
3343 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3344 | ||
3345 | wxPy_END_ALLOW_THREADS; | |
3346 | } _resultobj = Py_BuildValue("i",_result); | |
3347 | return _resultobj; | |
3348 | } | |
3349 | ||
3350 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) | |
3351 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject * _resultobj; | |
3353 | wxWindow * _arg0; | |
3354 | int * _arg1; | |
3355 | int * _arg2; | |
3356 | PyObject * _argo0 = 0; | |
3357 | int temp; | |
3358 | PyObject * _obj1 = 0; | |
3359 | int temp0; | |
3360 | PyObject * _obj2 = 0; | |
3361 | char *_kwnames[] = { "self","x","y", NULL }; | |
3362 | ||
3363 | self = self; | |
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3365 | return NULL; | |
3366 | if (_argo0) { | |
3367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); | |
3370 | return NULL; | |
3371 | } | |
3372 | } | |
3373 | { | |
3374 | temp = (int) PyInt_AsLong(_obj1); | |
3375 | _arg1 = &temp; | |
3376 | } | |
3377 | { | |
3378 | temp0 = (int) PyInt_AsLong(_obj2); | |
3379 | _arg2 = &temp0; | |
3380 | } | |
3381 | { | |
3382 | wxPy_BEGIN_ALLOW_THREADS; | |
3383 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3384 | ||
3385 | wxPy_END_ALLOW_THREADS; | |
3386 | } Py_INCREF(Py_None); | |
3387 | _resultobj = Py_None; | |
3388 | { | |
3389 | PyObject *o; | |
3390 | o = PyInt_FromLong((long) (*_arg1)); | |
3391 | _resultobj = t_output_helper(_resultobj, o); | |
3392 | } | |
3393 | { | |
3394 | PyObject *o; | |
3395 | o = PyInt_FromLong((long) (*_arg2)); | |
3396 | _resultobj = t_output_helper(_resultobj, o); | |
3397 | } | |
3398 | return _resultobj; | |
3399 | } | |
3400 | ||
3401 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) | |
3402 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject * _resultobj; | |
3404 | wxPoint * _result; | |
3405 | wxWindow * _arg0; | |
3406 | wxPoint * _arg1; | |
3407 | PyObject * _argo0 = 0; | |
3408 | wxPoint temp; | |
3409 | PyObject * _obj1 = 0; | |
3410 | char *_kwnames[] = { "self","pt", NULL }; | |
3411 | char _ptemp[128]; | |
3412 | ||
3413 | self = self; | |
3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) | |
3415 | return NULL; | |
3416 | if (_argo0) { | |
3417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); | |
3420 | return NULL; | |
3421 | } | |
3422 | } | |
3423 | { | |
3424 | _arg1 = &temp; | |
3425 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3426 | return NULL; | |
3427 | } | |
3428 | { | |
3429 | wxPy_BEGIN_ALLOW_THREADS; | |
3430 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3431 | ||
3432 | wxPy_END_ALLOW_THREADS; | |
3433 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3434 | _resultobj = Py_BuildValue("s",_ptemp); | |
3435 | return _resultobj; | |
3436 | } | |
3437 | ||
3438 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) | |
3439 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3440 | PyObject * _resultobj; | |
3441 | wxWindow * _arg0; | |
3442 | int _arg1; | |
3443 | int _arg2; | |
3444 | wxRect * _arg3 = (wxRect *) NULL; | |
3445 | PyObject * _argo0 = 0; | |
3446 | wxRect temp; | |
3447 | PyObject * _obj3 = 0; | |
3448 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; | |
3449 | ||
3450 | self = self; | |
3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3452 | return NULL; | |
3453 | if (_argo0) { | |
3454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); | |
3457 | return NULL; | |
3458 | } | |
3459 | } | |
3460 | if (_obj3) | |
3461 | { | |
3462 | _arg3 = &temp; | |
3463 | if (! wxRect_helper(_obj3, &_arg3)) | |
3464 | return NULL; | |
3465 | } | |
3466 | { | |
3467 | wxPy_BEGIN_ALLOW_THREADS; | |
3468 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3469 | ||
3470 | wxPy_END_ALLOW_THREADS; | |
3471 | } Py_INCREF(Py_None); | |
3472 | _resultobj = Py_None; | |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
3476 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) | |
3477 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject * _resultobj; | |
3479 | wxWindow * _arg0; | |
3480 | wxAcceleratorTable * _arg1; | |
3481 | PyObject * _argo0 = 0; | |
3482 | PyObject * _argo1 = 0; | |
3483 | char *_kwnames[] = { "self","accel", NULL }; | |
3484 | ||
3485 | self = self; | |
3486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
3487 | return NULL; | |
3488 | if (_argo0) { | |
3489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
3492 | return NULL; | |
3493 | } | |
3494 | } | |
3495 | if (_argo1) { | |
3496 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3497 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
3498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
3499 | return NULL; | |
3500 | } | |
3501 | } | |
3502 | { | |
3503 | wxPy_BEGIN_ALLOW_THREADS; | |
3504 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3505 | ||
3506 | wxPy_END_ALLOW_THREADS; | |
3507 | } Py_INCREF(Py_None); | |
3508 | _resultobj = Py_None; | |
3509 | return _resultobj; | |
3510 | } | |
3511 | ||
3512 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
3513 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject * _resultobj; | |
3515 | wxWindow * _arg0; | |
3516 | bool _arg1; | |
3517 | PyObject * _argo0 = 0; | |
3518 | int tempbool1; | |
3519 | char *_kwnames[] = { "self","autoLayout", NULL }; | |
3520 | ||
3521 | self = self; | |
3522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) | |
3523 | return NULL; | |
3524 | if (_argo0) { | |
3525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); | |
3528 | return NULL; | |
3529 | } | |
3530 | } | |
3531 | _arg1 = (bool ) tempbool1; | |
3532 | { | |
3533 | wxPy_BEGIN_ALLOW_THREADS; | |
3534 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3535 | ||
3536 | wxPy_END_ALLOW_THREADS; | |
3537 | } Py_INCREF(Py_None); | |
3538 | _resultobj = Py_None; | |
3539 | return _resultobj; | |
3540 | } | |
3541 | ||
3542 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) | |
3543 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject * _resultobj; | |
3545 | bool _result; | |
3546 | wxWindow * _arg0; | |
3547 | PyObject * _argo0 = 0; | |
3548 | char *_kwnames[] = { "self", NULL }; | |
3549 | ||
3550 | self = self; | |
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3552 | return NULL; | |
3553 | if (_argo0) { | |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3557 | return NULL; | |
3558 | } | |
3559 | } | |
3560 | { | |
3561 | wxPy_BEGIN_ALLOW_THREADS; | |
3562 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3563 | ||
3564 | wxPy_END_ALLOW_THREADS; | |
3565 | } _resultobj = Py_BuildValue("i",_result); | |
3566 | return _resultobj; | |
3567 | } | |
3568 | ||
3569 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3570 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3571 | PyObject * _resultobj; | |
3572 | wxWindow * _arg0; | |
3573 | wxColour * _arg1; | |
3574 | PyObject * _argo0 = 0; | |
3575 | wxColour temp; | |
3576 | PyObject * _obj1 = 0; | |
3577 | char *_kwnames[] = { "self","colour", NULL }; | |
3578 | ||
3579 | self = self; | |
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3581 | return NULL; | |
3582 | if (_argo0) { | |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); | |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
3589 | { | |
3590 | _arg1 = &temp; | |
3591 | if (! wxColour_helper(_obj1, &_arg1)) | |
3592 | return NULL; | |
3593 | } | |
3594 | { | |
3595 | wxPy_BEGIN_ALLOW_THREADS; | |
3596 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3597 | ||
3598 | wxPy_END_ALLOW_THREADS; | |
3599 | } Py_INCREF(Py_None); | |
3600 | _resultobj = Py_None; | |
3601 | return _resultobj; | |
3602 | } | |
3603 | ||
3604 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
3605 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject * _resultobj; | |
3607 | wxWindow * _arg0; | |
3608 | wxLayoutConstraints * _arg1; | |
3609 | PyObject * _argo0 = 0; | |
3610 | PyObject * _argo1 = 0; | |
3611 | char *_kwnames[] = { "self","constraints", NULL }; | |
3612 | ||
3613 | self = self; | |
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) | |
3615 | return NULL; | |
3616 | if (_argo0) { | |
3617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); | |
3620 | return NULL; | |
3621 | } | |
3622 | } | |
3623 | if (_argo1) { | |
3624 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); | |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
3630 | { | |
3631 | wxPy_BEGIN_ALLOW_THREADS; | |
3632 | wxWindow_SetConstraints(_arg0,_arg1); | |
3633 | ||
3634 | wxPy_END_ALLOW_THREADS; | |
3635 | } Py_INCREF(Py_None); | |
3636 | _resultobj = Py_None; | |
3637 | return _resultobj; | |
3638 | } | |
3639 | ||
3640 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) | |
3641 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3642 | PyObject * _resultobj; | |
3643 | wxWindow * _arg0; | |
3644 | wxLayoutConstraints * _arg1; | |
3645 | PyObject * _argo0 = 0; | |
3646 | PyObject * _argo1 = 0; | |
3647 | char *_kwnames[] = { "self","constraints", NULL }; | |
3648 | ||
3649 | self = self; | |
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3651 | return NULL; | |
3652 | if (_argo0) { | |
3653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3656 | return NULL; | |
3657 | } | |
3658 | } | |
3659 | if (_argo1) { | |
3660 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3661 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3663 | return NULL; | |
3664 | } | |
3665 | } | |
3666 | { | |
3667 | wxPy_BEGIN_ALLOW_THREADS; | |
3668 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3669 | ||
3670 | wxPy_END_ALLOW_THREADS; | |
3671 | } Py_INCREF(Py_None); | |
3672 | _resultobj = Py_None; | |
3673 | return _resultobj; | |
3674 | } | |
3675 | ||
3676 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) | |
3677 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3678 | PyObject * _resultobj; | |
3679 | wxWindow * _arg0; | |
3680 | PyObject * _argo0 = 0; | |
3681 | char *_kwnames[] = { "self", NULL }; | |
3682 | ||
3683 | self = self; | |
3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) | |
3685 | return NULL; | |
3686 | if (_argo0) { | |
3687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); | |
3690 | return NULL; | |
3691 | } | |
3692 | } | |
3693 | { | |
3694 | wxPy_BEGIN_ALLOW_THREADS; | |
3695 | wxWindow_SetFocus(_arg0); | |
3696 | ||
3697 | wxPy_END_ALLOW_THREADS; | |
3698 | } Py_INCREF(Py_None); | |
3699 | _resultobj = Py_None; | |
3700 | return _resultobj; | |
3701 | } | |
3702 | ||
3703 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) | |
3704 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject * _resultobj; | |
3706 | bool _result; | |
3707 | wxWindow * _arg0; | |
3708 | PyObject * _argo0 = 0; | |
3709 | char *_kwnames[] = { "self", NULL }; | |
3710 | ||
3711 | self = self; | |
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3713 | return NULL; | |
3714 | if (_argo0) { | |
3715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3718 | return NULL; | |
3719 | } | |
3720 | } | |
3721 | { | |
3722 | wxPy_BEGIN_ALLOW_THREADS; | |
3723 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3724 | ||
3725 | wxPy_END_ALLOW_THREADS; | |
3726 | } _resultobj = Py_BuildValue("i",_result); | |
3727 | return _resultobj; | |
3728 | } | |
3729 | ||
3730 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
3731 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject * _resultobj; | |
3733 | wxWindow * _arg0; | |
3734 | wxFont * _arg1; | |
3735 | PyObject * _argo0 = 0; | |
3736 | PyObject * _argo1 = 0; | |
3737 | char *_kwnames[] = { "self","font", NULL }; | |
3738 | ||
3739 | self = self; | |
3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) | |
3741 | return NULL; | |
3742 | if (_argo0) { | |
3743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); | |
3746 | return NULL; | |
3747 | } | |
3748 | } | |
3749 | if (_argo1) { | |
3750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); | |
3753 | return NULL; | |
3754 | } | |
3755 | } | |
3756 | { | |
3757 | wxPy_BEGIN_ALLOW_THREADS; | |
3758 | wxWindow_SetFont(_arg0,*_arg1); | |
3759 | ||
3760 | wxPy_END_ALLOW_THREADS; | |
3761 | } Py_INCREF(Py_None); | |
3762 | _resultobj = Py_None; | |
3763 | return _resultobj; | |
3764 | } | |
3765 | ||
3766 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
3767 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3768 | PyObject * _resultobj; | |
3769 | wxWindow * _arg0; | |
3770 | wxColour * _arg1; | |
3771 | PyObject * _argo0 = 0; | |
3772 | wxColour temp; | |
3773 | PyObject * _obj1 = 0; | |
3774 | char *_kwnames[] = { "self","colour", NULL }; | |
3775 | ||
3776 | self = self; | |
3777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
3778 | return NULL; | |
3779 | if (_argo0) { | |
3780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); | |
3783 | return NULL; | |
3784 | } | |
3785 | } | |
3786 | { | |
3787 | _arg1 = &temp; | |
3788 | if (! wxColour_helper(_obj1, &_arg1)) | |
3789 | return NULL; | |
3790 | } | |
3791 | { | |
3792 | wxPy_BEGIN_ALLOW_THREADS; | |
3793 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3794 | ||
3795 | wxPy_END_ALLOW_THREADS; | |
3796 | } Py_INCREF(Py_None); | |
3797 | _resultobj = Py_None; | |
3798 | return _resultobj; | |
3799 | } | |
3800 | ||
3801 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
3802 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3803 | PyObject * _resultobj; | |
3804 | wxWindow * _arg0; | |
3805 | int _arg1; | |
3806 | PyObject * _argo0 = 0; | |
3807 | char *_kwnames[] = { "self","id", NULL }; | |
3808 | ||
3809 | self = self; | |
3810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) | |
3811 | return NULL; | |
3812 | if (_argo0) { | |
3813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); | |
3816 | return NULL; | |
3817 | } | |
3818 | } | |
3819 | { | |
3820 | wxPy_BEGIN_ALLOW_THREADS; | |
3821 | wxWindow_SetId(_arg0,_arg1); | |
3822 | ||
3823 | wxPy_END_ALLOW_THREADS; | |
3824 | } Py_INCREF(Py_None); | |
3825 | _resultobj = Py_None; | |
3826 | return _resultobj; | |
3827 | } | |
3828 | ||
3829 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
3830 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3831 | PyObject * _resultobj; | |
3832 | wxWindow * _arg0; | |
3833 | wxString * _arg1; | |
3834 | PyObject * _argo0 = 0; | |
3835 | PyObject * _obj1 = 0; | |
3836 | char *_kwnames[] = { "self","name", NULL }; | |
3837 | ||
3838 | self = self; | |
3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) | |
3840 | return NULL; | |
3841 | if (_argo0) { | |
3842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); | |
3845 | return NULL; | |
3846 | } | |
3847 | } | |
3848 | { | |
3849 | if (!PyString_Check(_obj1)) { | |
3850 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3851 | return NULL; | |
3852 | } | |
3853 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
3854 | } | |
3855 | { | |
3856 | wxPy_BEGIN_ALLOW_THREADS; | |
3857 | wxWindow_SetName(_arg0,*_arg1); | |
3858 | ||
3859 | wxPy_END_ALLOW_THREADS; | |
3860 | } Py_INCREF(Py_None); | |
3861 | _resultobj = Py_None; | |
3862 | { | |
3863 | if (_obj1) | |
3864 | delete _arg1; | |
3865 | } | |
3866 | return _resultobj; | |
3867 | } | |
3868 | ||
3869 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3870 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3871 | PyObject * _resultobj; | |
3872 | wxWindow * _arg0; | |
3873 | int _arg1; | |
3874 | int _arg2; | |
3875 | int _arg3; | |
3876 | int _arg4; | |
3877 | int _arg5 = (int ) TRUE; | |
3878 | PyObject * _argo0 = 0; | |
3879 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; | |
3880 | ||
3881 | self = self; | |
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
3883 | return NULL; | |
3884 | if (_argo0) { | |
3885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); | |
3888 | return NULL; | |
3889 | } | |
3890 | } | |
3891 | { | |
3892 | wxPy_BEGIN_ALLOW_THREADS; | |
3893 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3894 | ||
3895 | wxPy_END_ALLOW_THREADS; | |
3896 | } Py_INCREF(Py_None); | |
3897 | _resultobj = Py_None; | |
3898 | return _resultobj; | |
3899 | } | |
3900 | ||
3901 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
3902 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3903 | PyObject * _resultobj; | |
3904 | wxWindow * _arg0; | |
3905 | int _arg1; | |
3906 | int _arg2; | |
3907 | bool _arg3 = (bool ) TRUE; | |
3908 | PyObject * _argo0 = 0; | |
3909 | int tempbool3 = (int) TRUE; | |
3910 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; | |
3911 | ||
3912 | self = self; | |
3913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
3914 | return NULL; | |
3915 | if (_argo0) { | |
3916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); | |
3919 | return NULL; | |
3920 | } | |
3921 | } | |
3922 | _arg3 = (bool ) tempbool3; | |
3923 | { | |
3924 | wxPy_BEGIN_ALLOW_THREADS; | |
3925 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
3926 | ||
3927 | wxPy_END_ALLOW_THREADS; | |
3928 | } Py_INCREF(Py_None); | |
3929 | _resultobj = Py_None; | |
3930 | return _resultobj; | |
3931 | } | |
3932 | ||
3933 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3934 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3935 | PyObject * _resultobj; | |
3936 | wxWindow * _arg0; | |
3937 | int _arg1; | |
3938 | int _arg2; | |
3939 | int _arg3; | |
3940 | int _arg4; | |
3941 | int _arg5 = (int ) wxSIZE_AUTO; | |
3942 | PyObject * _argo0 = 0; | |
3943 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
3944 | ||
3945 | self = self; | |
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
3947 | return NULL; | |
3948 | if (_argo0) { | |
3949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); | |
3952 | return NULL; | |
3953 | } | |
3954 | } | |
3955 | { | |
3956 | wxPy_BEGIN_ALLOW_THREADS; | |
3957 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3958 | ||
3959 | wxPy_END_ALLOW_THREADS; | |
3960 | } Py_INCREF(Py_None); | |
3961 | _resultobj = Py_None; | |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
3965 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
3966 | self->SetSize(size); | |
3967 | } | |
3968 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3969 | PyObject * _resultobj; | |
3970 | wxWindow * _arg0; | |
3971 | wxSize * _arg1; | |
3972 | PyObject * _argo0 = 0; | |
3973 | wxSize temp; | |
3974 | PyObject * _obj1 = 0; | |
3975 | char *_kwnames[] = { "self","size", NULL }; | |
3976 | ||
3977 | self = self; | |
3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) | |
3979 | return NULL; | |
3980 | if (_argo0) { | |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); | |
3984 | return NULL; | |
3985 | } | |
3986 | } | |
3987 | { | |
3988 | _arg1 = &temp; | |
3989 | if (! wxSize_helper(_obj1, &_arg1)) | |
3990 | return NULL; | |
3991 | } | |
3992 | { | |
3993 | wxPy_BEGIN_ALLOW_THREADS; | |
3994 | wxWindow_SetSize(_arg0,*_arg1); | |
3995 | ||
3996 | wxPy_END_ALLOW_THREADS; | |
3997 | } Py_INCREF(Py_None); | |
3998 | _resultobj = Py_None; | |
3999 | return _resultobj; | |
4000 | } | |
4001 | ||
4002 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
4003 | self->Move(pos); | |
4004 | } | |
4005 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject * _resultobj; | |
4007 | wxWindow * _arg0; | |
4008 | wxPoint * _arg1; | |
4009 | PyObject * _argo0 = 0; | |
4010 | wxPoint temp; | |
4011 | PyObject * _obj1 = 0; | |
4012 | char *_kwnames[] = { "self","pos", NULL }; | |
4013 | ||
4014 | self = self; | |
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) | |
4016 | return NULL; | |
4017 | if (_argo0) { | |
4018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); | |
4021 | return NULL; | |
4022 | } | |
4023 | } | |
4024 | { | |
4025 | _arg1 = &temp; | |
4026 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4027 | return NULL; | |
4028 | } | |
4029 | { | |
4030 | wxPy_BEGIN_ALLOW_THREADS; | |
4031 | wxWindow_SetPosition(_arg0,*_arg1); | |
4032 | ||
4033 | wxPy_END_ALLOW_THREADS; | |
4034 | } Py_INCREF(Py_None); | |
4035 | _resultobj = Py_None; | |
4036 | return _resultobj; | |
4037 | } | |
4038 | ||
4039 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4040 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4041 | PyObject * _resultobj; | |
4042 | wxWindow * _arg0; | |
4043 | int _arg1 = (int ) -1; | |
4044 | int _arg2 = (int ) -1; | |
4045 | int _arg3 = (int ) -1; | |
4046 | int _arg4 = (int ) -1; | |
4047 | int _arg5 = (int ) -1; | |
4048 | int _arg6 = (int ) -1; | |
4049 | PyObject * _argo0 = 0; | |
4050 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; | |
4051 | ||
4052 | self = self; | |
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4054 | return NULL; | |
4055 | if (_argo0) { | |
4056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); | |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
4062 | { | |
4063 | wxPy_BEGIN_ALLOW_THREADS; | |
4064 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4065 | ||
4066 | wxPy_END_ALLOW_THREADS; | |
4067 | } Py_INCREF(Py_None); | |
4068 | _resultobj = Py_None; | |
4069 | return _resultobj; | |
4070 | } | |
4071 | ||
4072 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) | |
4073 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4074 | PyObject * _resultobj; | |
4075 | wxWindow * _arg0; | |
4076 | int _arg1; | |
4077 | int _arg2; | |
4078 | PyObject * _argo0 = 0; | |
4079 | char *_kwnames[] = { "self","width","height", NULL }; | |
4080 | ||
4081 | self = self; | |
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4083 | return NULL; | |
4084 | if (_argo0) { | |
4085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); | |
4088 | return NULL; | |
4089 | } | |
4090 | } | |
4091 | { | |
4092 | wxPy_BEGIN_ALLOW_THREADS; | |
4093 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4094 | ||
4095 | wxPy_END_ALLOW_THREADS; | |
4096 | } Py_INCREF(Py_None); | |
4097 | _resultobj = Py_None; | |
4098 | return _resultobj; | |
4099 | } | |
4100 | ||
4101 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
4102 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject * _resultobj; | |
4104 | wxWindow * _arg0; | |
4105 | wxSize * _arg1; | |
4106 | PyObject * _argo0 = 0; | |
4107 | wxSize temp; | |
4108 | PyObject * _obj1 = 0; | |
4109 | char *_kwnames[] = { "self","size", NULL }; | |
4110 | ||
4111 | self = self; | |
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) | |
4113 | return NULL; | |
4114 | if (_argo0) { | |
4115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); | |
4118 | return NULL; | |
4119 | } | |
4120 | } | |
4121 | { | |
4122 | _arg1 = &temp; | |
4123 | if (! wxSize_helper(_obj1, &_arg1)) | |
4124 | return NULL; | |
4125 | } | |
4126 | { | |
4127 | wxPy_BEGIN_ALLOW_THREADS; | |
4128 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4129 | ||
4130 | wxPy_END_ALLOW_THREADS; | |
4131 | } Py_INCREF(Py_None); | |
4132 | _resultobj = Py_None; | |
4133 | return _resultobj; | |
4134 | } | |
4135 | ||
4136 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
4137 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4138 | PyObject * _resultobj; | |
4139 | wxWindow * _arg0; | |
4140 | wxCursor * _arg1; | |
4141 | PyObject * _argo0 = 0; | |
4142 | PyObject * _argo1 = 0; | |
4143 | char *_kwnames[] = { "self","cursor", NULL }; | |
4144 | ||
4145 | self = self; | |
4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) | |
4147 | return NULL; | |
4148 | if (_argo0) { | |
4149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); | |
4152 | return NULL; | |
4153 | } | |
4154 | } | |
4155 | if (_argo1) { | |
4156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
4158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); | |
4159 | return NULL; | |
4160 | } | |
4161 | } | |
4162 | { | |
4163 | wxPy_BEGIN_ALLOW_THREADS; | |
4164 | wxWindow_SetCursor(_arg0,*_arg1); | |
4165 | ||
4166 | wxPy_END_ALLOW_THREADS; | |
4167 | } Py_INCREF(Py_None); | |
4168 | _resultobj = Py_None; | |
4169 | return _resultobj; | |
4170 | } | |
4171 | ||
4172 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
4173 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4174 | PyObject * _resultobj; | |
4175 | wxWindow * _arg0; | |
4176 | wxEvtHandler * _arg1; | |
4177 | PyObject * _argo0 = 0; | |
4178 | PyObject * _argo1 = 0; | |
4179 | char *_kwnames[] = { "self","handler", NULL }; | |
4180 | ||
4181 | self = self; | |
4182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4183 | return NULL; | |
4184 | if (_argo0) { | |
4185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4188 | return NULL; | |
4189 | } | |
4190 | } | |
4191 | if (_argo1) { | |
4192 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4193 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4195 | return NULL; | |
4196 | } | |
4197 | } | |
4198 | { | |
4199 | wxPy_BEGIN_ALLOW_THREADS; | |
4200 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4201 | ||
4202 | wxPy_END_ALLOW_THREADS; | |
4203 | } Py_INCREF(Py_None); | |
4204 | _resultobj = Py_None; | |
4205 | return _resultobj; | |
4206 | } | |
4207 | ||
4208 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
4209 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject * _resultobj; | |
4211 | wxWindow * _arg0; | |
4212 | wxString * _arg1; | |
4213 | PyObject * _argo0 = 0; | |
4214 | PyObject * _obj1 = 0; | |
4215 | char *_kwnames[] = { "self","title", NULL }; | |
4216 | ||
4217 | self = self; | |
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) | |
4219 | return NULL; | |
4220 | if (_argo0) { | |
4221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); | |
4224 | return NULL; | |
4225 | } | |
4226 | } | |
4227 | { | |
4228 | if (!PyString_Check(_obj1)) { | |
4229 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4230 | return NULL; | |
4231 | } | |
4232 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
4233 | } | |
4234 | { | |
4235 | wxPy_BEGIN_ALLOW_THREADS; | |
4236 | wxWindow_SetTitle(_arg0,*_arg1); | |
4237 | ||
4238 | wxPy_END_ALLOW_THREADS; | |
4239 | } Py_INCREF(Py_None); | |
4240 | _resultobj = Py_None; | |
4241 | { | |
4242 | if (_obj1) | |
4243 | delete _arg1; | |
4244 | } | |
4245 | return _resultobj; | |
4246 | } | |
4247 | ||
4248 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
4249 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4250 | PyObject * _resultobj; | |
4251 | bool _result; | |
4252 | wxWindow * _arg0; | |
4253 | bool _arg1; | |
4254 | PyObject * _argo0 = 0; | |
4255 | int tempbool1; | |
4256 | char *_kwnames[] = { "self","show", NULL }; | |
4257 | ||
4258 | self = self; | |
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
4260 | return NULL; | |
4261 | if (_argo0) { | |
4262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); | |
4265 | return NULL; | |
4266 | } | |
4267 | } | |
4268 | _arg1 = (bool ) tempbool1; | |
4269 | { | |
4270 | wxPy_BEGIN_ALLOW_THREADS; | |
4271 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4272 | ||
4273 | wxPy_END_ALLOW_THREADS; | |
4274 | } _resultobj = Py_BuildValue("i",_result); | |
4275 | return _resultobj; | |
4276 | } | |
4277 | ||
4278 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
4279 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4280 | PyObject * _resultobj; | |
4281 | bool _result; | |
4282 | wxWindow * _arg0; | |
4283 | PyObject * _argo0 = 0; | |
4284 | char *_kwnames[] = { "self", NULL }; | |
4285 | ||
4286 | self = self; | |
4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) | |
4288 | return NULL; | |
4289 | if (_argo0) { | |
4290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); | |
4293 | return NULL; | |
4294 | } | |
4295 | } | |
4296 | { | |
4297 | wxPy_BEGIN_ALLOW_THREADS; | |
4298 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4299 | ||
4300 | wxPy_END_ALLOW_THREADS; | |
4301 | } _resultobj = Py_BuildValue("i",_result); | |
4302 | return _resultobj; | |
4303 | } | |
4304 | ||
4305 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
4306 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4307 | PyObject * _resultobj; | |
4308 | bool _result; | |
4309 | wxWindow * _arg0; | |
4310 | PyObject * _argo0 = 0; | |
4311 | char *_kwnames[] = { "self", NULL }; | |
4312 | ||
4313 | self = self; | |
4314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) | |
4315 | return NULL; | |
4316 | if (_argo0) { | |
4317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); | |
4320 | return NULL; | |
4321 | } | |
4322 | } | |
4323 | { | |
4324 | wxPy_BEGIN_ALLOW_THREADS; | |
4325 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4326 | ||
4327 | wxPy_END_ALLOW_THREADS; | |
4328 | } _resultobj = Py_BuildValue("i",_result); | |
4329 | return _resultobj; | |
4330 | } | |
4331 | ||
4332 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
4333 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4334 | PyObject * _resultobj; | |
4335 | bool _result; | |
4336 | wxWindow * _arg0; | |
4337 | PyObject * _argo0 = 0; | |
4338 | char *_kwnames[] = { "self", NULL }; | |
4339 | ||
4340 | self = self; | |
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) | |
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_Validate. Expected _wxWindow_p."); | |
4347 | return NULL; | |
4348 | } | |
4349 | } | |
4350 | { | |
4351 | wxPy_BEGIN_ALLOW_THREADS; | |
4352 | _result = (bool )wxWindow_Validate(_arg0); | |
4353 | ||
4354 | wxPy_END_ALLOW_THREADS; | |
4355 | } _resultobj = Py_BuildValue("i",_result); | |
4356 | return _resultobj; | |
4357 | } | |
4358 | ||
4359 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
4360 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4361 | PyObject * _resultobj; | |
4362 | wxWindow * _arg0; | |
4363 | int _arg1; | |
4364 | int _arg2; | |
4365 | PyObject * _argo0 = 0; | |
4366 | char *_kwnames[] = { "self","x","y", NULL }; | |
4367 | ||
4368 | self = self; | |
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4370 | return NULL; | |
4371 | if (_argo0) { | |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
4375 | return NULL; | |
4376 | } | |
4377 | } | |
4378 | { | |
4379 | wxPy_BEGIN_ALLOW_THREADS; | |
4380 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4381 | ||
4382 | wxPy_END_ALLOW_THREADS; | |
4383 | } Py_INCREF(Py_None); | |
4384 | _resultobj = Py_None; | |
4385 | return _resultobj; | |
4386 | } | |
4387 | ||
4388 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4389 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4390 | PyObject * _resultobj; | |
4391 | wxPoint * _result; | |
4392 | wxWindow * _arg0; | |
4393 | wxPoint * _arg1; | |
4394 | PyObject * _argo0 = 0; | |
4395 | wxPoint temp; | |
4396 | PyObject * _obj1 = 0; | |
4397 | char *_kwnames[] = { "self","pt", NULL }; | |
4398 | char _ptemp[128]; | |
4399 | ||
4400 | self = self; | |
4401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) | |
4402 | return NULL; | |
4403 | if (_argo0) { | |
4404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); | |
4407 | return NULL; | |
4408 | } | |
4409 | } | |
4410 | { | |
4411 | _arg1 = &temp; | |
4412 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4413 | return NULL; | |
4414 | } | |
4415 | { | |
4416 | wxPy_BEGIN_ALLOW_THREADS; | |
4417 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4418 | ||
4419 | wxPy_END_ALLOW_THREADS; | |
4420 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4421 | _resultobj = Py_BuildValue("s",_ptemp); | |
4422 | return _resultobj; | |
4423 | } | |
4424 | ||
4425 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4426 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4427 | PyObject * _resultobj; | |
4428 | wxSize * _result; | |
4429 | wxWindow * _arg0; | |
4430 | wxSize * _arg1; | |
4431 | PyObject * _argo0 = 0; | |
4432 | wxSize temp; | |
4433 | PyObject * _obj1 = 0; | |
4434 | char *_kwnames[] = { "self","sz", NULL }; | |
4435 | char _ptemp[128]; | |
4436 | ||
4437 | self = self; | |
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) | |
4439 | return NULL; | |
4440 | if (_argo0) { | |
4441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); | |
4444 | return NULL; | |
4445 | } | |
4446 | } | |
4447 | { | |
4448 | _arg1 = &temp; | |
4449 | if (! wxSize_helper(_obj1, &_arg1)) | |
4450 | return NULL; | |
4451 | } | |
4452 | { | |
4453 | wxPy_BEGIN_ALLOW_THREADS; | |
4454 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4455 | ||
4456 | wxPy_END_ALLOW_THREADS; | |
4457 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4458 | _resultobj = Py_BuildValue("s",_ptemp); | |
4459 | return _resultobj; | |
4460 | } | |
4461 | ||
4462 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4463 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject * _resultobj; | |
4465 | wxPoint * _result; | |
4466 | wxWindow * _arg0; | |
4467 | wxPoint * _arg1; | |
4468 | PyObject * _argo0 = 0; | |
4469 | wxPoint temp; | |
4470 | PyObject * _obj1 = 0; | |
4471 | char *_kwnames[] = { "self","pt", NULL }; | |
4472 | char _ptemp[128]; | |
4473 | ||
4474 | self = self; | |
4475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) | |
4476 | return NULL; | |
4477 | if (_argo0) { | |
4478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); | |
4481 | return NULL; | |
4482 | } | |
4483 | } | |
4484 | { | |
4485 | _arg1 = &temp; | |
4486 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4487 | return NULL; | |
4488 | } | |
4489 | { | |
4490 | wxPy_BEGIN_ALLOW_THREADS; | |
4491 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4492 | ||
4493 | wxPy_END_ALLOW_THREADS; | |
4494 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4495 | _resultobj = Py_BuildValue("s",_ptemp); | |
4496 | return _resultobj; | |
4497 | } | |
4498 | ||
4499 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4500 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4501 | PyObject * _resultobj; | |
4502 | wxSize * _result; | |
4503 | wxWindow * _arg0; | |
4504 | wxSize * _arg1; | |
4505 | PyObject * _argo0 = 0; | |
4506 | wxSize temp; | |
4507 | PyObject * _obj1 = 0; | |
4508 | char *_kwnames[] = { "self","sz", NULL }; | |
4509 | char _ptemp[128]; | |
4510 | ||
4511 | self = self; | |
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) | |
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_ConvertPixelSizeToDialog. Expected _wxWindow_p."); | |
4518 | return NULL; | |
4519 | } | |
4520 | } | |
4521 | { | |
4522 | _arg1 = &temp; | |
4523 | if (! wxSize_helper(_obj1, &_arg1)) | |
4524 | return NULL; | |
4525 | } | |
4526 | { | |
4527 | wxPy_BEGIN_ALLOW_THREADS; | |
4528 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4529 | ||
4530 | wxPy_END_ALLOW_THREADS; | |
4531 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4532 | _resultobj = Py_BuildValue("s",_ptemp); | |
4533 | return _resultobj; | |
4534 | } | |
4535 | ||
4536 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4537 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4538 | PyObject * _resultobj; | |
4539 | wxWindow * _arg0; | |
4540 | wxString * _arg1; | |
4541 | PyObject * _argo0 = 0; | |
4542 | PyObject * _obj1 = 0; | |
4543 | char *_kwnames[] = { "self","tip", NULL }; | |
4544 | ||
4545 | self = self; | |
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) | |
4547 | return NULL; | |
4548 | if (_argo0) { | |
4549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); | |
4552 | return NULL; | |
4553 | } | |
4554 | } | |
4555 | { | |
4556 | if (!PyString_Check(_obj1)) { | |
4557 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4558 | return NULL; | |
4559 | } | |
4560 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
4561 | } | |
4562 | { | |
4563 | wxPy_BEGIN_ALLOW_THREADS; | |
4564 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4565 | ||
4566 | wxPy_END_ALLOW_THREADS; | |
4567 | } Py_INCREF(Py_None); | |
4568 | _resultobj = Py_None; | |
4569 | { | |
4570 | if (_obj1) | |
4571 | delete _arg1; | |
4572 | } | |
4573 | return _resultobj; | |
4574 | } | |
4575 | ||
4576 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4577 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject * _resultobj; | |
4579 | wxWindow * _arg0; | |
4580 | wxToolTip * _arg1; | |
4581 | PyObject * _argo0 = 0; | |
4582 | PyObject * _argo1 = 0; | |
4583 | char *_kwnames[] = { "self","tooltip", NULL }; | |
4584 | ||
4585 | self = self; | |
4586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) | |
4587 | return NULL; | |
4588 | if (_argo0) { | |
4589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); | |
4592 | return NULL; | |
4593 | } | |
4594 | } | |
4595 | if (_argo1) { | |
4596 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4597 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
4598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); | |
4599 | return NULL; | |
4600 | } | |
4601 | } | |
4602 | { | |
4603 | wxPy_BEGIN_ALLOW_THREADS; | |
4604 | wxWindow_SetToolTip(_arg0,_arg1); | |
4605 | ||
4606 | wxPy_END_ALLOW_THREADS; | |
4607 | } Py_INCREF(Py_None); | |
4608 | _resultobj = Py_None; | |
4609 | return _resultobj; | |
4610 | } | |
4611 | ||
4612 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
4613 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4614 | PyObject * _resultobj; | |
4615 | wxToolTip * _result; | |
4616 | wxWindow * _arg0; | |
4617 | PyObject * _argo0 = 0; | |
4618 | char *_kwnames[] = { "self", NULL }; | |
4619 | char _ptemp[128]; | |
4620 | ||
4621 | self = self; | |
4622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) | |
4623 | return NULL; | |
4624 | if (_argo0) { | |
4625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); | |
4628 | return NULL; | |
4629 | } | |
4630 | } | |
4631 | { | |
4632 | wxPy_BEGIN_ALLOW_THREADS; | |
4633 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4634 | ||
4635 | wxPy_END_ALLOW_THREADS; | |
4636 | } if (_result) { | |
4637 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4638 | _resultobj = Py_BuildValue("s",_ptemp); | |
4639 | } else { | |
4640 | Py_INCREF(Py_None); | |
4641 | _resultobj = Py_None; | |
4642 | } | |
4643 | return _resultobj; | |
4644 | } | |
4645 | ||
4646 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) | |
4647 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4648 | PyObject * _resultobj; | |
4649 | wxWindow * _arg0; | |
4650 | wxSizer * _arg1; | |
4651 | PyObject * _argo0 = 0; | |
4652 | PyObject * _argo1 = 0; | |
4653 | char *_kwnames[] = { "self","sizer", NULL }; | |
4654 | ||
4655 | self = self; | |
4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4657 | return NULL; | |
4658 | if (_argo0) { | |
4659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4662 | return NULL; | |
4663 | } | |
4664 | } | |
4665 | if (_argo1) { | |
4666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4669 | return NULL; | |
4670 | } | |
4671 | } | |
4672 | { | |
4673 | wxPy_BEGIN_ALLOW_THREADS; | |
4674 | wxWindow_SetSizer(_arg0,_arg1); | |
4675 | ||
4676 | wxPy_END_ALLOW_THREADS; | |
4677 | } Py_INCREF(Py_None); | |
4678 | _resultobj = Py_None; | |
4679 | return _resultobj; | |
4680 | } | |
4681 | ||
4682 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) | |
4683 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4684 | PyObject * _resultobj; | |
4685 | wxSizer * _result; | |
4686 | wxWindow * _arg0; | |
4687 | PyObject * _argo0 = 0; | |
4688 | char *_kwnames[] = { "self", NULL }; | |
4689 | char _ptemp[128]; | |
4690 | ||
4691 | self = self; | |
4692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
4693 | return NULL; | |
4694 | if (_argo0) { | |
4695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
4698 | return NULL; | |
4699 | } | |
4700 | } | |
4701 | { | |
4702 | wxPy_BEGIN_ALLOW_THREADS; | |
4703 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
4704 | ||
4705 | wxPy_END_ALLOW_THREADS; | |
4706 | } if (_result) { | |
4707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p"); | |
4708 | _resultobj = Py_BuildValue("s",_ptemp); | |
4709 | } else { | |
4710 | Py_INCREF(Py_None); | |
4711 | _resultobj = Py_None; | |
4712 | } | |
4713 | return _resultobj; | |
4714 | } | |
4715 | ||
4716 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
4717 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4718 | PyObject * _resultobj; | |
4719 | wxValidator * _result; | |
4720 | wxWindow * _arg0; | |
4721 | PyObject * _argo0 = 0; | |
4722 | char *_kwnames[] = { "self", NULL }; | |
4723 | char _ptemp[128]; | |
4724 | ||
4725 | self = self; | |
4726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4727 | return NULL; | |
4728 | if (_argo0) { | |
4729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4732 | return NULL; | |
4733 | } | |
4734 | } | |
4735 | { | |
4736 | wxPy_BEGIN_ALLOW_THREADS; | |
4737 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4738 | ||
4739 | wxPy_END_ALLOW_THREADS; | |
4740 | } if (_result) { | |
4741 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4742 | _resultobj = Py_BuildValue("s",_ptemp); | |
4743 | } else { | |
4744 | Py_INCREF(Py_None); | |
4745 | _resultobj = Py_None; | |
4746 | } | |
4747 | return _resultobj; | |
4748 | } | |
4749 | ||
4750 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4751 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject * _resultobj; | |
4753 | wxWindow * _arg0; | |
4754 | wxValidator * _arg1; | |
4755 | PyObject * _argo0 = 0; | |
4756 | PyObject * _argo1 = 0; | |
4757 | char *_kwnames[] = { "self","validator", NULL }; | |
4758 | ||
4759 | self = self; | |
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4761 | return NULL; | |
4762 | if (_argo0) { | |
4763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4766 | return NULL; | |
4767 | } | |
4768 | } | |
4769 | if (_argo1) { | |
4770 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4771 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4773 | return NULL; | |
4774 | } | |
4775 | } | |
4776 | { | |
4777 | wxPy_BEGIN_ALLOW_THREADS; | |
4778 | wxWindow_SetValidator(_arg0,*_arg1); | |
4779 | ||
4780 | wxPy_END_ALLOW_THREADS; | |
4781 | } Py_INCREF(Py_None); | |
4782 | _resultobj = Py_None; | |
4783 | return _resultobj; | |
4784 | } | |
4785 | ||
4786 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) | |
4787 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4788 | PyObject * _resultobj; | |
4789 | wxWindow * _arg0; | |
4790 | wxDropTarget * _arg1; | |
4791 | PyObject * _argo0 = 0; | |
4792 | PyObject * _argo1 = 0; | |
4793 | char *_kwnames[] = { "self","target", NULL }; | |
4794 | ||
4795 | self = self; | |
4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
4797 | return NULL; | |
4798 | if (_argo0) { | |
4799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
4802 | return NULL; | |
4803 | } | |
4804 | } | |
4805 | if (_argo1) { | |
4806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
4808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
4809 | return NULL; | |
4810 | } | |
4811 | } | |
4812 | { | |
4813 | wxPy_BEGIN_ALLOW_THREADS; | |
4814 | wxWindow_SetDropTarget(_arg0,_arg1); | |
4815 | ||
4816 | wxPy_END_ALLOW_THREADS; | |
4817 | } Py_INCREF(Py_None); | |
4818 | _resultobj = Py_None; | |
4819 | return _resultobj; | |
4820 | } | |
4821 | ||
4822 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
4823 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4824 | PyObject * _resultobj; | |
4825 | wxDropTarget * _result; | |
4826 | wxWindow * _arg0; | |
4827 | PyObject * _argo0 = 0; | |
4828 | char *_kwnames[] = { "self", NULL }; | |
4829 | char _ptemp[128]; | |
4830 | ||
4831 | self = self; | |
4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
4833 | return NULL; | |
4834 | if (_argo0) { | |
4835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
4838 | return NULL; | |
4839 | } | |
4840 | } | |
4841 | { | |
4842 | wxPy_BEGIN_ALLOW_THREADS; | |
4843 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
4844 | ||
4845 | wxPy_END_ALLOW_THREADS; | |
4846 | } if (_result) { | |
4847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
4848 | _resultobj = Py_BuildValue("s",_ptemp); | |
4849 | } else { | |
4850 | Py_INCREF(Py_None); | |
4851 | _resultobj = Py_None; | |
4852 | } | |
4853 | return _resultobj; | |
4854 | } | |
4855 | ||
4856 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) | |
4857 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4858 | PyObject * _resultobj; | |
4859 | wxSize * _result; | |
4860 | wxWindow * _arg0; | |
4861 | PyObject * _argo0 = 0; | |
4862 | char *_kwnames[] = { "self", NULL }; | |
4863 | char _ptemp[128]; | |
4864 | ||
4865 | self = self; | |
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
4867 | return NULL; | |
4868 | if (_argo0) { | |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
4872 | return NULL; | |
4873 | } | |
4874 | } | |
4875 | { | |
4876 | wxPy_BEGIN_ALLOW_THREADS; | |
4877 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
4878 | ||
4879 | wxPy_END_ALLOW_THREADS; | |
4880 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4881 | _resultobj = Py_BuildValue("s",_ptemp); | |
4882 | return _resultobj; | |
4883 | } | |
4884 | ||
4885 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) | |
4886 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4887 | PyObject * _resultobj; | |
4888 | wxWindow * _arg0; | |
4889 | wxCaret * _arg1; | |
4890 | PyObject * _argo0 = 0; | |
4891 | PyObject * _argo1 = 0; | |
4892 | char *_kwnames[] = { "self","caret", NULL }; | |
4893 | ||
4894 | self = self; | |
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
4896 | return NULL; | |
4897 | if (_argo0) { | |
4898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
4901 | return NULL; | |
4902 | } | |
4903 | } | |
4904 | if (_argo1) { | |
4905 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4906 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
4907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
4908 | return NULL; | |
4909 | } | |
4910 | } | |
4911 | { | |
4912 | wxPy_BEGIN_ALLOW_THREADS; | |
4913 | wxWindow_SetCaret(_arg0,_arg1); | |
4914 | ||
4915 | wxPy_END_ALLOW_THREADS; | |
4916 | } Py_INCREF(Py_None); | |
4917 | _resultobj = Py_None; | |
4918 | return _resultobj; | |
4919 | } | |
4920 | ||
4921 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
4922 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4923 | PyObject * _resultobj; | |
4924 | wxCaret * _result; | |
4925 | wxWindow * _arg0; | |
4926 | PyObject * _argo0 = 0; | |
4927 | char *_kwnames[] = { "self", NULL }; | |
4928 | char _ptemp[128]; | |
4929 | ||
4930 | self = self; | |
4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
4932 | return NULL; | |
4933 | if (_argo0) { | |
4934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
4937 | return NULL; | |
4938 | } | |
4939 | } | |
4940 | { | |
4941 | wxPy_BEGIN_ALLOW_THREADS; | |
4942 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
4943 | ||
4944 | wxPy_END_ALLOW_THREADS; | |
4945 | } if (_result) { | |
4946 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
4947 | _resultobj = Py_BuildValue("s",_ptemp); | |
4948 | } else { | |
4949 | Py_INCREF(Py_None); | |
4950 | _resultobj = Py_None; | |
4951 | } | |
4952 | return _resultobj; | |
4953 | } | |
4954 | ||
4955 | static void *SwigwxPanelTowxWindow(void *ptr) { | |
4956 | wxPanel *src; | |
4957 | wxWindow *dest; | |
4958 | src = (wxPanel *) ptr; | |
4959 | dest = (wxWindow *) src; | |
4960 | return (void *) dest; | |
4961 | } | |
4962 | ||
4963 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
4964 | wxPanel *src; | |
4965 | wxEvtHandler *dest; | |
4966 | src = (wxPanel *) ptr; | |
4967 | dest = (wxEvtHandler *) src; | |
4968 | return (void *) dest; | |
4969 | } | |
4970 | ||
4971 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4972 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4973 | PyObject * _resultobj; | |
4974 | wxPanel * _result; | |
4975 | wxWindow * _arg0; | |
4976 | wxWindowID _arg1; | |
4977 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
4978 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
4979 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
4980 | char * _arg5 = (char *) "panel"; | |
4981 | PyObject * _argo0 = 0; | |
4982 | wxPoint temp; | |
4983 | PyObject * _obj2 = 0; | |
4984 | wxSize temp0; | |
4985 | PyObject * _obj3 = 0; | |
4986 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
4987 | char _ptemp[128]; | |
4988 | ||
4989 | self = self; | |
4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
4991 | return NULL; | |
4992 | if (_argo0) { | |
4993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); | |
4996 | return NULL; | |
4997 | } | |
4998 | } | |
4999 | if (_obj2) | |
5000 | { | |
5001 | _arg2 = &temp; | |
5002 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5003 | return NULL; | |
5004 | } | |
5005 | if (_obj3) | |
5006 | { | |
5007 | _arg3 = &temp0; | |
5008 | if (! wxSize_helper(_obj3, &_arg3)) | |
5009 | return NULL; | |
5010 | } | |
5011 | { | |
5012 | wxPy_BEGIN_ALLOW_THREADS; | |
5013 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5014 | ||
5015 | wxPy_END_ALLOW_THREADS; | |
5016 | } if (_result) { | |
5017 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5018 | _resultobj = Py_BuildValue("s",_ptemp); | |
5019 | } else { | |
5020 | Py_INCREF(Py_None); | |
5021 | _resultobj = Py_None; | |
5022 | } | |
5023 | return _resultobj; | |
5024 | } | |
5025 | ||
5026 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
5027 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5028 | PyObject * _resultobj; | |
5029 | wxPanel * _arg0; | |
5030 | PyObject * _argo0 = 0; | |
5031 | char *_kwnames[] = { "self", NULL }; | |
5032 | ||
5033 | self = self; | |
5034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) | |
5035 | return NULL; | |
5036 | if (_argo0) { | |
5037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); | |
5040 | return NULL; | |
5041 | } | |
5042 | } | |
5043 | { | |
5044 | wxPy_BEGIN_ALLOW_THREADS; | |
5045 | wxPanel_InitDialog(_arg0); | |
5046 | ||
5047 | wxPy_END_ALLOW_THREADS; | |
5048 | } Py_INCREF(Py_None); | |
5049 | _resultobj = Py_None; | |
5050 | return _resultobj; | |
5051 | } | |
5052 | ||
5053 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) | |
5054 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject * _resultobj; | |
5056 | wxButton * _result; | |
5057 | wxPanel * _arg0; | |
5058 | PyObject * _argo0 = 0; | |
5059 | char *_kwnames[] = { "self", NULL }; | |
5060 | char _ptemp[128]; | |
5061 | ||
5062 | self = self; | |
5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) | |
5064 | return NULL; | |
5065 | if (_argo0) { | |
5066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); | |
5069 | return NULL; | |
5070 | } | |
5071 | } | |
5072 | { | |
5073 | wxPy_BEGIN_ALLOW_THREADS; | |
5074 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
5075 | ||
5076 | wxPy_END_ALLOW_THREADS; | |
5077 | } if (_result) { | |
5078 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
5079 | _resultobj = Py_BuildValue("s",_ptemp); | |
5080 | } else { | |
5081 | Py_INCREF(Py_None); | |
5082 | _resultobj = Py_None; | |
5083 | } | |
5084 | return _resultobj; | |
5085 | } | |
5086 | ||
5087 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
5088 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5089 | PyObject * _resultobj; | |
5090 | wxPanel * _arg0; | |
5091 | wxButton * _arg1; | |
5092 | PyObject * _argo0 = 0; | |
5093 | PyObject * _argo1 = 0; | |
5094 | char *_kwnames[] = { "self","btn", NULL }; | |
5095 | ||
5096 | self = self; | |
5097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
5098 | return NULL; | |
5099 | if (_argo0) { | |
5100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); | |
5103 | return NULL; | |
5104 | } | |
5105 | } | |
5106 | if (_argo1) { | |
5107 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5108 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
5109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); | |
5110 | return NULL; | |
5111 | } | |
5112 | } | |
5113 | { | |
5114 | wxPy_BEGIN_ALLOW_THREADS; | |
5115 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
5116 | ||
5117 | wxPy_END_ALLOW_THREADS; | |
5118 | } Py_INCREF(Py_None); | |
5119 | _resultobj = Py_None; | |
5120 | return _resultobj; | |
5121 | } | |
5122 | ||
5123 | static void *SwigwxDialogTowxPanel(void *ptr) { | |
5124 | wxDialog *src; | |
5125 | wxPanel *dest; | |
5126 | src = (wxDialog *) ptr; | |
5127 | dest = (wxPanel *) src; | |
5128 | return (void *) dest; | |
5129 | } | |
5130 | ||
5131 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
5132 | wxDialog *src; | |
5133 | wxWindow *dest; | |
5134 | src = (wxDialog *) ptr; | |
5135 | dest = (wxWindow *) src; | |
5136 | return (void *) dest; | |
5137 | } | |
5138 | ||
5139 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
5140 | wxDialog *src; | |
5141 | wxEvtHandler *dest; | |
5142 | src = (wxDialog *) ptr; | |
5143 | dest = (wxEvtHandler *) src; | |
5144 | return (void *) dest; | |
5145 | } | |
5146 | ||
5147 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5148 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject * _resultobj; | |
5150 | wxDialog * _result; | |
5151 | wxWindow * _arg0; | |
5152 | wxWindowID _arg1; | |
5153 | wxString * _arg2; | |
5154 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; | |
5155 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
5156 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
5157 | char * _arg6 = (char *) "dialogBox"; | |
5158 | PyObject * _argo0 = 0; | |
5159 | PyObject * _obj2 = 0; | |
5160 | wxPoint temp; | |
5161 | PyObject * _obj3 = 0; | |
5162 | wxSize temp0; | |
5163 | PyObject * _obj4 = 0; | |
5164 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
5165 | char _ptemp[128]; | |
5166 | ||
5167 | self = self; | |
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5169 | return NULL; | |
5170 | if (_argo0) { | |
5171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); | |
5174 | return NULL; | |
5175 | } | |
5176 | } | |
5177 | { | |
5178 | if (!PyString_Check(_obj2)) { | |
5179 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5180 | return NULL; | |
5181 | } | |
5182 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
5183 | } | |
5184 | if (_obj3) | |
5185 | { | |
5186 | _arg3 = &temp; | |
5187 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5188 | return NULL; | |
5189 | } | |
5190 | if (_obj4) | |
5191 | { | |
5192 | _arg4 = &temp0; | |
5193 | if (! wxSize_helper(_obj4, &_arg4)) | |
5194 | return NULL; | |
5195 | } | |
5196 | { | |
5197 | wxPy_BEGIN_ALLOW_THREADS; | |
5198 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5199 | ||
5200 | wxPy_END_ALLOW_THREADS; | |
5201 | } if (_result) { | |
5202 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
5203 | _resultobj = Py_BuildValue("s",_ptemp); | |
5204 | } else { | |
5205 | Py_INCREF(Py_None); | |
5206 | _resultobj = Py_None; | |
5207 | } | |
5208 | { | |
5209 | if (_obj2) | |
5210 | delete _arg2; | |
5211 | } | |
5212 | return _resultobj; | |
5213 | } | |
5214 | ||
5215 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
5216 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5217 | PyObject * _resultobj; | |
5218 | wxDialog * _arg0; | |
5219 | int _arg1 = (int ) wxBOTH; | |
5220 | PyObject * _argo0 = 0; | |
5221 | char *_kwnames[] = { "self","direction", NULL }; | |
5222 | ||
5223 | self = self; | |
5224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) | |
5225 | return NULL; | |
5226 | if (_argo0) { | |
5227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); | |
5230 | return NULL; | |
5231 | } | |
5232 | } | |
5233 | { | |
5234 | wxPy_BEGIN_ALLOW_THREADS; | |
5235 | wxDialog_Centre(_arg0,_arg1); | |
5236 | ||
5237 | wxPy_END_ALLOW_THREADS; | |
5238 | } Py_INCREF(Py_None); | |
5239 | _resultobj = Py_None; | |
5240 | return _resultobj; | |
5241 | } | |
5242 | ||
5243 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
5244 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5245 | PyObject * _resultobj; | |
5246 | wxDialog * _arg0; | |
5247 | int _arg1; | |
5248 | PyObject * _argo0 = 0; | |
5249 | char *_kwnames[] = { "self","retCode", NULL }; | |
5250 | ||
5251 | self = self; | |
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) | |
5253 | return NULL; | |
5254 | if (_argo0) { | |
5255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); | |
5258 | return NULL; | |
5259 | } | |
5260 | } | |
5261 | { | |
5262 | wxPy_BEGIN_ALLOW_THREADS; | |
5263 | wxDialog_EndModal(_arg0,_arg1); | |
5264 | ||
5265 | wxPy_END_ALLOW_THREADS; | |
5266 | } Py_INCREF(Py_None); | |
5267 | _resultobj = Py_None; | |
5268 | return _resultobj; | |
5269 | } | |
5270 | ||
5271 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
5272 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5273 | PyObject * _resultobj; | |
5274 | wxString * _result; | |
5275 | wxDialog * _arg0; | |
5276 | PyObject * _argo0 = 0; | |
5277 | char *_kwnames[] = { "self", NULL }; | |
5278 | ||
5279 | self = self; | |
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) | |
5281 | return NULL; | |
5282 | if (_argo0) { | |
5283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); | |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | { | |
5290 | wxPy_BEGIN_ALLOW_THREADS; | |
5291 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
5292 | ||
5293 | wxPy_END_ALLOW_THREADS; | |
5294 | }{ | |
5295 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5296 | } | |
5297 | { | |
5298 | delete _result; | |
5299 | } | |
5300 | return _resultobj; | |
5301 | } | |
5302 | ||
5303 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
5304 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject * _resultobj; | |
5306 | wxDialog * _arg0; | |
5307 | bool _arg1; | |
5308 | PyObject * _argo0 = 0; | |
5309 | int tempbool1; | |
5310 | char *_kwnames[] = { "self","iconize", NULL }; | |
5311 | ||
5312 | self = self; | |
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) | |
5314 | return NULL; | |
5315 | if (_argo0) { | |
5316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); | |
5319 | return NULL; | |
5320 | } | |
5321 | } | |
5322 | _arg1 = (bool ) tempbool1; | |
5323 | { | |
5324 | wxPy_BEGIN_ALLOW_THREADS; | |
5325 | wxDialog_Iconize(_arg0,_arg1); | |
5326 | ||
5327 | wxPy_END_ALLOW_THREADS; | |
5328 | } Py_INCREF(Py_None); | |
5329 | _resultobj = Py_None; | |
5330 | return _resultobj; | |
5331 | } | |
5332 | ||
5333 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
5334 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5335 | PyObject * _resultobj; | |
5336 | bool _result; | |
5337 | wxDialog * _arg0; | |
5338 | PyObject * _argo0 = 0; | |
5339 | char *_kwnames[] = { "self", NULL }; | |
5340 | ||
5341 | self = self; | |
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) | |
5343 | return NULL; | |
5344 | if (_argo0) { | |
5345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); | |
5348 | return NULL; | |
5349 | } | |
5350 | } | |
5351 | { | |
5352 | wxPy_BEGIN_ALLOW_THREADS; | |
5353 | _result = (bool )wxDialog_IsIconized(_arg0); | |
5354 | ||
5355 | wxPy_END_ALLOW_THREADS; | |
5356 | } _resultobj = Py_BuildValue("i",_result); | |
5357 | return _resultobj; | |
5358 | } | |
5359 | ||
5360 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
5361 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5362 | PyObject * _resultobj; | |
5363 | wxDialog * _arg0; | |
5364 | bool _arg1; | |
5365 | PyObject * _argo0 = 0; | |
5366 | int tempbool1; | |
5367 | char *_kwnames[] = { "self","flag", NULL }; | |
5368 | ||
5369 | self = self; | |
5370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) | |
5371 | return NULL; | |
5372 | if (_argo0) { | |
5373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); | |
5376 | return NULL; | |
5377 | } | |
5378 | } | |
5379 | _arg1 = (bool ) tempbool1; | |
5380 | { | |
5381 | wxPy_BEGIN_ALLOW_THREADS; | |
5382 | wxDialog_SetModal(_arg0,_arg1); | |
5383 | ||
5384 | wxPy_END_ALLOW_THREADS; | |
5385 | } Py_INCREF(Py_None); | |
5386 | _resultobj = Py_None; | |
5387 | return _resultobj; | |
5388 | } | |
5389 | ||
5390 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
5391 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5392 | PyObject * _resultobj; | |
5393 | bool _result; | |
5394 | wxDialog * _arg0; | |
5395 | PyObject * _argo0 = 0; | |
5396 | char *_kwnames[] = { "self", NULL }; | |
5397 | ||
5398 | self = self; | |
5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) | |
5400 | return NULL; | |
5401 | if (_argo0) { | |
5402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); | |
5405 | return NULL; | |
5406 | } | |
5407 | } | |
5408 | { | |
5409 | wxPy_BEGIN_ALLOW_THREADS; | |
5410 | _result = (bool )wxDialog_IsModal(_arg0); | |
5411 | ||
5412 | wxPy_END_ALLOW_THREADS; | |
5413 | } _resultobj = Py_BuildValue("i",_result); | |
5414 | return _resultobj; | |
5415 | } | |
5416 | ||
5417 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
5418 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject * _resultobj; | |
5420 | wxDialog * _arg0; | |
5421 | wxString * _arg1; | |
5422 | PyObject * _argo0 = 0; | |
5423 | PyObject * _obj1 = 0; | |
5424 | char *_kwnames[] = { "self","title", NULL }; | |
5425 | ||
5426 | self = self; | |
5427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) | |
5428 | return NULL; | |
5429 | if (_argo0) { | |
5430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); | |
5433 | return NULL; | |
5434 | } | |
5435 | } | |
5436 | { | |
5437 | if (!PyString_Check(_obj1)) { | |
5438 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5439 | return NULL; | |
5440 | } | |
5441 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
5442 | } | |
5443 | { | |
5444 | wxPy_BEGIN_ALLOW_THREADS; | |
5445 | wxDialog_SetTitle(_arg0,*_arg1); | |
5446 | ||
5447 | wxPy_END_ALLOW_THREADS; | |
5448 | } Py_INCREF(Py_None); | |
5449 | _resultobj = Py_None; | |
5450 | { | |
5451 | if (_obj1) | |
5452 | delete _arg1; | |
5453 | } | |
5454 | return _resultobj; | |
5455 | } | |
5456 | ||
5457 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
5458 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject * _resultobj; | |
5460 | bool _result; | |
5461 | wxDialog * _arg0; | |
5462 | bool _arg1; | |
5463 | PyObject * _argo0 = 0; | |
5464 | int tempbool1; | |
5465 | char *_kwnames[] = { "self","show", NULL }; | |
5466 | ||
5467 | self = self; | |
5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) | |
5469 | return NULL; | |
5470 | if (_argo0) { | |
5471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); | |
5474 | return NULL; | |
5475 | } | |
5476 | } | |
5477 | _arg1 = (bool ) tempbool1; | |
5478 | { | |
5479 | wxPy_BEGIN_ALLOW_THREADS; | |
5480 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5481 | ||
5482 | wxPy_END_ALLOW_THREADS; | |
5483 | } _resultobj = Py_BuildValue("i",_result); | |
5484 | return _resultobj; | |
5485 | } | |
5486 | ||
5487 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
5488 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject * _resultobj; | |
5490 | int _result; | |
5491 | wxDialog * _arg0; | |
5492 | PyObject * _argo0 = 0; | |
5493 | char *_kwnames[] = { "self", NULL }; | |
5494 | ||
5495 | self = self; | |
5496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) | |
5497 | return NULL; | |
5498 | if (_argo0) { | |
5499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); | |
5502 | return NULL; | |
5503 | } | |
5504 | } | |
5505 | { | |
5506 | wxPy_BEGIN_ALLOW_THREADS; | |
5507 | _result = (int )wxDialog_ShowModal(_arg0); | |
5508 | ||
5509 | wxPy_END_ALLOW_THREADS; | |
5510 | } _resultobj = Py_BuildValue("i",_result); | |
5511 | return _resultobj; | |
5512 | } | |
5513 | ||
5514 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) | |
5515 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5516 | PyObject * _resultobj; | |
5517 | int _result; | |
5518 | wxDialog * _arg0; | |
5519 | PyObject * _argo0 = 0; | |
5520 | char *_kwnames[] = { "self", NULL }; | |
5521 | ||
5522 | self = self; | |
5523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) | |
5524 | return NULL; | |
5525 | if (_argo0) { | |
5526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); | |
5529 | return NULL; | |
5530 | } | |
5531 | } | |
5532 | { | |
5533 | wxPy_BEGIN_ALLOW_THREADS; | |
5534 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5535 | ||
5536 | wxPy_END_ALLOW_THREADS; | |
5537 | } _resultobj = Py_BuildValue("i",_result); | |
5538 | return _resultobj; | |
5539 | } | |
5540 | ||
5541 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
5542 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5543 | PyObject * _resultobj; | |
5544 | wxDialog * _arg0; | |
5545 | int _arg1; | |
5546 | PyObject * _argo0 = 0; | |
5547 | char *_kwnames[] = { "self","retCode", NULL }; | |
5548 | ||
5549 | self = self; | |
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) | |
5551 | return NULL; | |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); | |
5556 | return NULL; | |
5557 | } | |
5558 | } | |
5559 | { | |
5560 | wxPy_BEGIN_ALLOW_THREADS; | |
5561 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5562 | ||
5563 | wxPy_END_ALLOW_THREADS; | |
5564 | } Py_INCREF(Py_None); | |
5565 | _resultobj = Py_None; | |
5566 | return _resultobj; | |
5567 | } | |
5568 | ||
5569 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5570 | wxScrolledWindow *src; | |
5571 | wxPanel *dest; | |
5572 | src = (wxScrolledWindow *) ptr; | |
5573 | dest = (wxPanel *) src; | |
5574 | return (void *) dest; | |
5575 | } | |
5576 | ||
5577 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { | |
5578 | wxScrolledWindow *src; | |
5579 | wxWindow *dest; | |
5580 | src = (wxScrolledWindow *) ptr; | |
5581 | dest = (wxWindow *) src; | |
5582 | return (void *) dest; | |
5583 | } | |
5584 | ||
5585 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5586 | wxScrolledWindow *src; | |
5587 | wxEvtHandler *dest; | |
5588 | src = (wxScrolledWindow *) ptr; | |
5589 | dest = (wxEvtHandler *) src; | |
5590 | return (void *) dest; | |
5591 | } | |
5592 | ||
5593 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5594 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject * _resultobj; | |
5596 | wxScrolledWindow * _result; | |
5597 | wxWindow * _arg0; | |
5598 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5599 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
5600 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5601 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
5602 | char * _arg5 = (char *) "scrolledWindow"; | |
5603 | PyObject * _argo0 = 0; | |
5604 | wxPoint temp; | |
5605 | PyObject * _obj2 = 0; | |
5606 | wxSize temp0; | |
5607 | PyObject * _obj3 = 0; | |
5608 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
5609 | char _ptemp[128]; | |
5610 | ||
5611 | self = self; | |
5612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
5613 | return NULL; | |
5614 | if (_argo0) { | |
5615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); | |
5618 | return NULL; | |
5619 | } | |
5620 | } | |
5621 | if (_obj2) | |
5622 | { | |
5623 | _arg2 = &temp; | |
5624 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5625 | return NULL; | |
5626 | } | |
5627 | if (_obj3) | |
5628 | { | |
5629 | _arg3 = &temp0; | |
5630 | if (! wxSize_helper(_obj3, &_arg3)) | |
5631 | return NULL; | |
5632 | } | |
5633 | { | |
5634 | wxPy_BEGIN_ALLOW_THREADS; | |
5635 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5636 | ||
5637 | wxPy_END_ALLOW_THREADS; | |
5638 | } if (_result) { | |
5639 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5640 | _resultobj = Py_BuildValue("s",_ptemp); | |
5641 | } else { | |
5642 | Py_INCREF(Py_None); | |
5643 | _resultobj = Py_None; | |
5644 | } | |
5645 | return _resultobj; | |
5646 | } | |
5647 | ||
5648 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
5649 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject * _resultobj; | |
5651 | wxScrolledWindow * _arg0; | |
5652 | bool _arg1; | |
5653 | bool _arg2; | |
5654 | PyObject * _argo0 = 0; | |
5655 | int tempbool1; | |
5656 | int tempbool2; | |
5657 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; | |
5658 | ||
5659 | self = self; | |
5660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
5661 | return NULL; | |
5662 | if (_argo0) { | |
5663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); | |
5666 | return NULL; | |
5667 | } | |
5668 | } | |
5669 | _arg1 = (bool ) tempbool1; | |
5670 | _arg2 = (bool ) tempbool2; | |
5671 | { | |
5672 | wxPy_BEGIN_ALLOW_THREADS; | |
5673 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5674 | ||
5675 | wxPy_END_ALLOW_THREADS; | |
5676 | } Py_INCREF(Py_None); | |
5677 | _resultobj = Py_None; | |
5678 | return _resultobj; | |
5679 | } | |
5680 | ||
5681 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) | |
5682 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5683 | PyObject * _resultobj; | |
5684 | int _result; | |
5685 | wxScrolledWindow * _arg0; | |
5686 | int _arg1; | |
5687 | PyObject * _argo0 = 0; | |
5688 | char *_kwnames[] = { "self","orient", NULL }; | |
5689 | ||
5690 | self = self; | |
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
5692 | return NULL; | |
5693 | if (_argo0) { | |
5694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
5697 | return NULL; | |
5698 | } | |
5699 | } | |
5700 | { | |
5701 | wxPy_BEGIN_ALLOW_THREADS; | |
5702 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
5703 | ||
5704 | wxPy_END_ALLOW_THREADS; | |
5705 | } _resultobj = Py_BuildValue("i",_result); | |
5706 | return _resultobj; | |
5707 | } | |
5708 | ||
5709 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
5710 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5711 | PyObject * _resultobj; | |
5712 | wxScrolledWindow * _arg0; | |
5713 | int * _arg1; | |
5714 | int temp; | |
5715 | int * _arg2; | |
5716 | int temp0; | |
5717 | PyObject * _argo0 = 0; | |
5718 | char *_kwnames[] = { "self", NULL }; | |
5719 | ||
5720 | self = self; | |
5721 | { | |
5722 | _arg1 = &temp; | |
5723 | } | |
5724 | { | |
5725 | _arg2 = &temp0; | |
5726 | } | |
5727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) | |
5728 | return NULL; | |
5729 | if (_argo0) { | |
5730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); | |
5733 | return NULL; | |
5734 | } | |
5735 | } | |
5736 | { | |
5737 | wxPy_BEGIN_ALLOW_THREADS; | |
5738 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5739 | ||
5740 | wxPy_END_ALLOW_THREADS; | |
5741 | } Py_INCREF(Py_None); | |
5742 | _resultobj = Py_None; | |
5743 | { | |
5744 | PyObject *o; | |
5745 | o = PyInt_FromLong((long) (*_arg1)); | |
5746 | _resultobj = t_output_helper(_resultobj, o); | |
5747 | } | |
5748 | { | |
5749 | PyObject *o; | |
5750 | o = PyInt_FromLong((long) (*_arg2)); | |
5751 | _resultobj = t_output_helper(_resultobj, o); | |
5752 | } | |
5753 | return _resultobj; | |
5754 | } | |
5755 | ||
5756 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) | |
5757 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5758 | PyObject * _resultobj; | |
5759 | wxWindow * _result; | |
5760 | wxScrolledWindow * _arg0; | |
5761 | PyObject * _argo0 = 0; | |
5762 | char *_kwnames[] = { "self", NULL }; | |
5763 | char _ptemp[128]; | |
5764 | ||
5765 | self = self; | |
5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
5767 | return NULL; | |
5768 | if (_argo0) { | |
5769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
5772 | return NULL; | |
5773 | } | |
5774 | } | |
5775 | { | |
5776 | wxPy_BEGIN_ALLOW_THREADS; | |
5777 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
5778 | ||
5779 | wxPy_END_ALLOW_THREADS; | |
5780 | } if (_result) { | |
5781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
5782 | _resultobj = Py_BuildValue("s",_ptemp); | |
5783 | } else { | |
5784 | Py_INCREF(Py_None); | |
5785 | _resultobj = Py_None; | |
5786 | } | |
5787 | return _resultobj; | |
5788 | } | |
5789 | ||
5790 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
5791 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject * _resultobj; | |
5793 | wxScrolledWindow * _arg0; | |
5794 | int * _arg1; | |
5795 | int temp; | |
5796 | int * _arg2; | |
5797 | int temp0; | |
5798 | PyObject * _argo0 = 0; | |
5799 | char *_kwnames[] = { "self", NULL }; | |
5800 | ||
5801 | self = self; | |
5802 | { | |
5803 | _arg1 = &temp; | |
5804 | } | |
5805 | { | |
5806 | _arg2 = &temp0; | |
5807 | } | |
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) | |
5809 | return NULL; | |
5810 | if (_argo0) { | |
5811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); | |
5814 | return NULL; | |
5815 | } | |
5816 | } | |
5817 | { | |
5818 | wxPy_BEGIN_ALLOW_THREADS; | |
5819 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
5820 | ||
5821 | wxPy_END_ALLOW_THREADS; | |
5822 | } Py_INCREF(Py_None); | |
5823 | _resultobj = Py_None; | |
5824 | { | |
5825 | PyObject *o; | |
5826 | o = PyInt_FromLong((long) (*_arg1)); | |
5827 | _resultobj = t_output_helper(_resultobj, o); | |
5828 | } | |
5829 | { | |
5830 | PyObject *o; | |
5831 | o = PyInt_FromLong((long) (*_arg2)); | |
5832 | _resultobj = t_output_helper(_resultobj, o); | |
5833 | } | |
5834 | return _resultobj; | |
5835 | } | |
5836 | ||
5837 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
5838 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject * _resultobj; | |
5840 | bool _result; | |
5841 | wxScrolledWindow * _arg0; | |
5842 | PyObject * _argo0 = 0; | |
5843 | char *_kwnames[] = { "self", NULL }; | |
5844 | ||
5845 | self = self; | |
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) | |
5847 | return NULL; | |
5848 | if (_argo0) { | |
5849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); | |
5852 | return NULL; | |
5853 | } | |
5854 | } | |
5855 | { | |
5856 | wxPy_BEGIN_ALLOW_THREADS; | |
5857 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
5858 | ||
5859 | wxPy_END_ALLOW_THREADS; | |
5860 | } _resultobj = Py_BuildValue("i",_result); | |
5861 | return _resultobj; | |
5862 | } | |
5863 | ||
5864 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
5865 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5866 | PyObject * _resultobj; | |
5867 | wxScrolledWindow * _arg0; | |
5868 | wxDC * _arg1; | |
5869 | PyObject * _argo0 = 0; | |
5870 | PyObject * _argo1 = 0; | |
5871 | char *_kwnames[] = { "self","dc", NULL }; | |
5872 | ||
5873 | self = self; | |
5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) | |
5875 | return NULL; | |
5876 | if (_argo0) { | |
5877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); | |
5880 | return NULL; | |
5881 | } | |
5882 | } | |
5883 | if (_argo1) { | |
5884 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5885 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
5886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); | |
5887 | return NULL; | |
5888 | } | |
5889 | } | |
5890 | { | |
5891 | wxPy_BEGIN_ALLOW_THREADS; | |
5892 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
5893 | ||
5894 | wxPy_END_ALLOW_THREADS; | |
5895 | } Py_INCREF(Py_None); | |
5896 | _resultobj = Py_None; | |
5897 | return _resultobj; | |
5898 | } | |
5899 | ||
5900 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
5901 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject * _resultobj; | |
5903 | wxScrolledWindow * _arg0; | |
5904 | int _arg1; | |
5905 | int _arg2; | |
5906 | PyObject * _argo0 = 0; | |
5907 | char *_kwnames[] = { "self","x","y", NULL }; | |
5908 | ||
5909 | self = self; | |
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5911 | return NULL; | |
5912 | if (_argo0) { | |
5913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); | |
5916 | return NULL; | |
5917 | } | |
5918 | } | |
5919 | { | |
5920 | wxPy_BEGIN_ALLOW_THREADS; | |
5921 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
5922 | ||
5923 | wxPy_END_ALLOW_THREADS; | |
5924 | } Py_INCREF(Py_None); | |
5925 | _resultobj = Py_None; | |
5926 | return _resultobj; | |
5927 | } | |
5928 | ||
5929 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5930 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject * _resultobj; | |
5932 | wxScrolledWindow * _arg0; | |
5933 | int _arg1; | |
5934 | int _arg2; | |
5935 | int _arg3; | |
5936 | int _arg4; | |
5937 | int _arg5 = (int ) 0; | |
5938 | int _arg6 = (int ) 0; | |
5939 | int _arg7 = (int ) FALSE; | |
5940 | PyObject * _argo0 = 0; | |
5941 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; | |
5942 | ||
5943 | self = self; | |
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
5945 | return NULL; | |
5946 | if (_argo0) { | |
5947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); | |
5950 | return NULL; | |
5951 | } | |
5952 | } | |
5953 | { | |
5954 | wxPy_BEGIN_ALLOW_THREADS; | |
5955 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
5956 | ||
5957 | wxPy_END_ALLOW_THREADS; | |
5958 | } Py_INCREF(Py_None); | |
5959 | _resultobj = Py_None; | |
5960 | return _resultobj; | |
5961 | } | |
5962 | ||
5963 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) | |
5964 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject * _resultobj; | |
5966 | wxScrolledWindow * _arg0; | |
5967 | int _arg1; | |
5968 | int _arg2; | |
5969 | PyObject * _argo0 = 0; | |
5970 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
5971 | ||
5972 | self = self; | |
5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5974 | return NULL; | |
5975 | if (_argo0) { | |
5976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
5979 | return NULL; | |
5980 | } | |
5981 | } | |
5982 | { | |
5983 | wxPy_BEGIN_ALLOW_THREADS; | |
5984 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
5985 | ||
5986 | wxPy_END_ALLOW_THREADS; | |
5987 | } Py_INCREF(Py_None); | |
5988 | _resultobj = Py_None; | |
5989 | return _resultobj; | |
5990 | } | |
5991 | ||
5992 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) | |
5993 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5994 | PyObject * _resultobj; | |
5995 | wxScrolledWindow * _arg0; | |
5996 | wxWindow * _arg1; | |
5997 | PyObject * _argo0 = 0; | |
5998 | PyObject * _argo1 = 0; | |
5999 | char *_kwnames[] = { "self","window", NULL }; | |
6000 | ||
6001 | self = self; | |
6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6003 | return NULL; | |
6004 | if (_argo0) { | |
6005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6008 | return NULL; | |
6009 | } | |
6010 | } | |
6011 | if (_argo1) { | |
6012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6015 | return NULL; | |
6016 | } | |
6017 | } | |
6018 | { | |
6019 | wxPy_BEGIN_ALLOW_THREADS; | |
6020 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6021 | ||
6022 | wxPy_END_ALLOW_THREADS; | |
6023 | } Py_INCREF(Py_None); | |
6024 | _resultobj = Py_None; | |
6025 | return _resultobj; | |
6026 | } | |
6027 | ||
6028 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) | |
6029 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6030 | PyObject * _resultobj; | |
6031 | wxScrolledWindow * _arg0; | |
6032 | int * _arg1; | |
6033 | int temp; | |
6034 | int * _arg2; | |
6035 | int temp0; | |
6036 | PyObject * _argo0 = 0; | |
6037 | char *_kwnames[] = { "self", NULL }; | |
6038 | ||
6039 | self = self; | |
6040 | { | |
6041 | _arg1 = &temp; | |
6042 | } | |
6043 | { | |
6044 | _arg2 = &temp0; | |
6045 | } | |
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6047 | return NULL; | |
6048 | if (_argo0) { | |
6049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6052 | return NULL; | |
6053 | } | |
6054 | } | |
6055 | { | |
6056 | wxPy_BEGIN_ALLOW_THREADS; | |
6057 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6058 | ||
6059 | wxPy_END_ALLOW_THREADS; | |
6060 | } Py_INCREF(Py_None); | |
6061 | _resultobj = Py_None; | |
6062 | { | |
6063 | PyObject *o; | |
6064 | o = PyInt_FromLong((long) (*_arg1)); | |
6065 | _resultobj = t_output_helper(_resultobj, o); | |
6066 | } | |
6067 | { | |
6068 | PyObject *o; | |
6069 | o = PyInt_FromLong((long) (*_arg2)); | |
6070 | _resultobj = t_output_helper(_resultobj, o); | |
6071 | } | |
6072 | return _resultobj; | |
6073 | } | |
6074 | ||
6075 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) | |
6076 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6077 | PyObject * _resultobj; | |
6078 | wxScrolledWindow * _arg0; | |
6079 | int * _arg1; | |
6080 | int temp; | |
6081 | int * _arg2; | |
6082 | int temp0; | |
6083 | PyObject * _argo0 = 0; | |
6084 | char *_kwnames[] = { "self", NULL }; | |
6085 | ||
6086 | self = self; | |
6087 | { | |
6088 | _arg1 = &temp; | |
6089 | } | |
6090 | { | |
6091 | _arg2 = &temp0; | |
6092 | } | |
6093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) | |
6094 | return NULL; | |
6095 | if (_argo0) { | |
6096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); | |
6099 | return NULL; | |
6100 | } | |
6101 | } | |
6102 | { | |
6103 | wxPy_BEGIN_ALLOW_THREADS; | |
6104 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
6105 | ||
6106 | wxPy_END_ALLOW_THREADS; | |
6107 | } Py_INCREF(Py_None); | |
6108 | _resultobj = Py_None; | |
6109 | { | |
6110 | PyObject *o; | |
6111 | o = PyInt_FromLong((long) (*_arg1)); | |
6112 | _resultobj = t_output_helper(_resultobj, o); | |
6113 | } | |
6114 | { | |
6115 | PyObject *o; | |
6116 | o = PyInt_FromLong((long) (*_arg2)); | |
6117 | _resultobj = t_output_helper(_resultobj, o); | |
6118 | } | |
6119 | return _resultobj; | |
6120 | } | |
6121 | ||
6122 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6123 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6124 | PyObject * _resultobj; | |
6125 | wxScrolledWindow * _arg0; | |
6126 | int _arg1; | |
6127 | int _arg2; | |
6128 | int * _arg3; | |
6129 | int temp; | |
6130 | int * _arg4; | |
6131 | int temp0; | |
6132 | PyObject * _argo0 = 0; | |
6133 | char *_kwnames[] = { "self","x","y", NULL }; | |
6134 | ||
6135 | self = self; | |
6136 | { | |
6137 | _arg3 = &temp; | |
6138 | } | |
6139 | { | |
6140 | _arg4 = &temp0; | |
6141 | } | |
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6143 | return NULL; | |
6144 | if (_argo0) { | |
6145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6148 | return NULL; | |
6149 | } | |
6150 | } | |
6151 | { | |
6152 | wxPy_BEGIN_ALLOW_THREADS; | |
6153 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6154 | ||
6155 | wxPy_END_ALLOW_THREADS; | |
6156 | } Py_INCREF(Py_None); | |
6157 | _resultobj = Py_None; | |
6158 | { | |
6159 | PyObject *o; | |
6160 | o = PyInt_FromLong((long) (*_arg3)); | |
6161 | _resultobj = t_output_helper(_resultobj, o); | |
6162 | } | |
6163 | { | |
6164 | PyObject *o; | |
6165 | o = PyInt_FromLong((long) (*_arg4)); | |
6166 | _resultobj = t_output_helper(_resultobj, o); | |
6167 | } | |
6168 | return _resultobj; | |
6169 | } | |
6170 | ||
6171 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6172 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject * _resultobj; | |
6174 | wxScrolledWindow * _arg0; | |
6175 | int _arg1; | |
6176 | int _arg2; | |
6177 | int * _arg3; | |
6178 | int temp; | |
6179 | int * _arg4; | |
6180 | int temp0; | |
6181 | PyObject * _argo0 = 0; | |
6182 | char *_kwnames[] = { "self","x","y", NULL }; | |
6183 | ||
6184 | self = self; | |
6185 | { | |
6186 | _arg3 = &temp; | |
6187 | } | |
6188 | { | |
6189 | _arg4 = &temp0; | |
6190 | } | |
6191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6192 | return NULL; | |
6193 | if (_argo0) { | |
6194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6197 | return NULL; | |
6198 | } | |
6199 | } | |
6200 | { | |
6201 | wxPy_BEGIN_ALLOW_THREADS; | |
6202 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6203 | ||
6204 | wxPy_END_ALLOW_THREADS; | |
6205 | } Py_INCREF(Py_None); | |
6206 | _resultobj = Py_None; | |
6207 | { | |
6208 | PyObject *o; | |
6209 | o = PyInt_FromLong((long) (*_arg3)); | |
6210 | _resultobj = t_output_helper(_resultobj, o); | |
6211 | } | |
6212 | { | |
6213 | PyObject *o; | |
6214 | o = PyInt_FromLong((long) (*_arg4)); | |
6215 | _resultobj = t_output_helper(_resultobj, o); | |
6216 | } | |
6217 | return _resultobj; | |
6218 | } | |
6219 | ||
6220 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
6221 | wxMenu *src; | |
6222 | wxEvtHandler *dest; | |
6223 | src = (wxMenu *) ptr; | |
6224 | dest = (wxEvtHandler *) src; | |
6225 | return (void *) dest; | |
6226 | } | |
6227 | ||
6228 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
6229 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6230 | PyObject * _resultobj; | |
6231 | wxMenu * _result; | |
6232 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
6233 | long _arg1 = (long ) 0; | |
6234 | PyObject * _obj0 = 0; | |
6235 | char *_kwnames[] = { "title","style", NULL }; | |
6236 | char _ptemp[128]; | |
6237 | ||
6238 | self = self; | |
6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
6240 | return NULL; | |
6241 | if (_obj0) | |
6242 | { | |
6243 | if (!PyString_Check(_obj0)) { | |
6244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6245 | return NULL; | |
6246 | } | |
6247 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
6248 | } | |
6249 | { | |
6250 | wxPy_BEGIN_ALLOW_THREADS; | |
6251 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
6252 | ||
6253 | wxPy_END_ALLOW_THREADS; | |
6254 | } if (_result) { | |
6255 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6256 | _resultobj = Py_BuildValue("s",_ptemp); | |
6257 | } else { | |
6258 | Py_INCREF(Py_None); | |
6259 | _resultobj = Py_None; | |
6260 | } | |
6261 | { | |
6262 | if (_obj0) | |
6263 | delete _arg0; | |
6264 | } | |
6265 | return _resultobj; | |
6266 | } | |
6267 | ||
6268 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6269 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject * _resultobj; | |
6271 | wxMenu * _arg0; | |
6272 | int _arg1; | |
6273 | wxString * _arg2; | |
6274 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
6275 | int _arg4 = (int ) FALSE; | |
6276 | PyObject * _argo0 = 0; | |
6277 | PyObject * _obj2 = 0; | |
6278 | PyObject * _obj3 = 0; | |
6279 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; | |
6280 | ||
6281 | self = self; | |
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
6283 | return NULL; | |
6284 | if (_argo0) { | |
6285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
6288 | return NULL; | |
6289 | } | |
6290 | } | |
6291 | { | |
6292 | if (!PyString_Check(_obj2)) { | |
6293 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6294 | return NULL; | |
6295 | } | |
6296 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6297 | } | |
6298 | if (_obj3) | |
6299 | { | |
6300 | if (!PyString_Check(_obj3)) { | |
6301 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6302 | return NULL; | |
6303 | } | |
6304 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
6305 | } | |
6306 | { | |
6307 | wxPy_BEGIN_ALLOW_THREADS; | |
6308 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
6309 | ||
6310 | wxPy_END_ALLOW_THREADS; | |
6311 | } Py_INCREF(Py_None); | |
6312 | _resultobj = Py_None; | |
6313 | { | |
6314 | if (_obj2) | |
6315 | delete _arg2; | |
6316 | } | |
6317 | { | |
6318 | if (_obj3) | |
6319 | delete _arg3; | |
6320 | } | |
6321 | return _resultobj; | |
6322 | } | |
6323 | ||
6324 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6325 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6326 | PyObject * _resultobj; | |
6327 | wxMenu * _arg0; | |
6328 | int _arg1; | |
6329 | wxString * _arg2; | |
6330 | wxMenu * _arg3; | |
6331 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; | |
6332 | PyObject * _argo0 = 0; | |
6333 | PyObject * _obj2 = 0; | |
6334 | PyObject * _argo3 = 0; | |
6335 | PyObject * _obj4 = 0; | |
6336 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
6337 | ||
6338 | self = self; | |
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
6340 | return NULL; | |
6341 | if (_argo0) { | |
6342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
6345 | return NULL; | |
6346 | } | |
6347 | } | |
6348 | { | |
6349 | if (!PyString_Check(_obj2)) { | |
6350 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6351 | return NULL; | |
6352 | } | |
6353 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6354 | } | |
6355 | if (_argo3) { | |
6356 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
6357 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
6358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
6359 | return NULL; | |
6360 | } | |
6361 | } | |
6362 | if (_obj4) | |
6363 | { | |
6364 | if (!PyString_Check(_obj4)) { | |
6365 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6366 | return NULL; | |
6367 | } | |
6368 | _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); | |
6369 | } | |
6370 | { | |
6371 | wxPy_BEGIN_ALLOW_THREADS; | |
6372 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
6373 | ||
6374 | wxPy_END_ALLOW_THREADS; | |
6375 | } Py_INCREF(Py_None); | |
6376 | _resultobj = Py_None; | |
6377 | { | |
6378 | if (_obj2) | |
6379 | delete _arg2; | |
6380 | } | |
6381 | { | |
6382 | if (_obj4) | |
6383 | delete _arg4; | |
6384 | } | |
6385 | return _resultobj; | |
6386 | } | |
6387 | ||
6388 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
6389 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject * _resultobj; | |
6391 | wxMenu * _arg0; | |
6392 | wxMenuItem * _arg1; | |
6393 | PyObject * _argo0 = 0; | |
6394 | PyObject * _argo1 = 0; | |
6395 | char *_kwnames[] = { "self","item", NULL }; | |
6396 | ||
6397 | self = self; | |
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
6399 | return NULL; | |
6400 | if (_argo0) { | |
6401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
6404 | return NULL; | |
6405 | } | |
6406 | } | |
6407 | if (_argo1) { | |
6408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
6411 | return NULL; | |
6412 | } | |
6413 | } | |
6414 | { | |
6415 | wxPy_BEGIN_ALLOW_THREADS; | |
6416 | wxMenu_AppendItem(_arg0,_arg1); | |
6417 | ||
6418 | wxPy_END_ALLOW_THREADS; | |
6419 | } Py_INCREF(Py_None); | |
6420 | _resultobj = Py_None; | |
6421 | return _resultobj; | |
6422 | } | |
6423 | ||
6424 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
6425 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6426 | PyObject * _resultobj; | |
6427 | wxMenu * _arg0; | |
6428 | PyObject * _argo0 = 0; | |
6429 | char *_kwnames[] = { "self", NULL }; | |
6430 | ||
6431 | self = self; | |
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
6433 | return NULL; | |
6434 | if (_argo0) { | |
6435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
6438 | return NULL; | |
6439 | } | |
6440 | } | |
6441 | { | |
6442 | wxPy_BEGIN_ALLOW_THREADS; | |
6443 | wxMenu_AppendSeparator(_arg0); | |
6444 | ||
6445 | wxPy_END_ALLOW_THREADS; | |
6446 | } Py_INCREF(Py_None); | |
6447 | _resultobj = Py_None; | |
6448 | return _resultobj; | |
6449 | } | |
6450 | ||
6451 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
6452 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject * _resultobj; | |
6454 | wxMenu * _arg0; | |
6455 | PyObject * _argo0 = 0; | |
6456 | char *_kwnames[] = { "self", NULL }; | |
6457 | ||
6458 | self = self; | |
6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) | |
6460 | return NULL; | |
6461 | if (_argo0) { | |
6462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); | |
6465 | return NULL; | |
6466 | } | |
6467 | } | |
6468 | { | |
6469 | wxPy_BEGIN_ALLOW_THREADS; | |
6470 | wxMenu_Break(_arg0); | |
6471 | ||
6472 | wxPy_END_ALLOW_THREADS; | |
6473 | } Py_INCREF(Py_None); | |
6474 | _resultobj = Py_None; | |
6475 | return _resultobj; | |
6476 | } | |
6477 | ||
6478 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
6479 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6480 | PyObject * _resultobj; | |
6481 | wxMenu * _arg0; | |
6482 | int _arg1; | |
6483 | bool _arg2; | |
6484 | PyObject * _argo0 = 0; | |
6485 | int tempbool2; | |
6486 | char *_kwnames[] = { "self","id","flag", NULL }; | |
6487 | ||
6488 | self = self; | |
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
6490 | return NULL; | |
6491 | if (_argo0) { | |
6492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); | |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
6498 | _arg2 = (bool ) tempbool2; | |
6499 | { | |
6500 | wxPy_BEGIN_ALLOW_THREADS; | |
6501 | wxMenu_Check(_arg0,_arg1,_arg2); | |
6502 | ||
6503 | wxPy_END_ALLOW_THREADS; | |
6504 | } Py_INCREF(Py_None); | |
6505 | _resultobj = Py_None; | |
6506 | return _resultobj; | |
6507 | } | |
6508 | ||
6509 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
6510 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject * _resultobj; | |
6512 | bool _result; | |
6513 | wxMenu * _arg0; | |
6514 | int _arg1; | |
6515 | PyObject * _argo0 = 0; | |
6516 | char *_kwnames[] = { "self","id", NULL }; | |
6517 | ||
6518 | self = self; | |
6519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
6520 | return NULL; | |
6521 | if (_argo0) { | |
6522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
6525 | return NULL; | |
6526 | } | |
6527 | } | |
6528 | { | |
6529 | wxPy_BEGIN_ALLOW_THREADS; | |
6530 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6531 | ||
6532 | wxPy_END_ALLOW_THREADS; | |
6533 | } _resultobj = Py_BuildValue("i",_result); | |
6534 | return _resultobj; | |
6535 | } | |
6536 | ||
6537 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
6538 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6539 | PyObject * _resultobj; | |
6540 | wxMenu * _arg0; | |
6541 | int _arg1; | |
6542 | bool _arg2; | |
6543 | PyObject * _argo0 = 0; | |
6544 | int tempbool2; | |
6545 | char *_kwnames[] = { "self","id","enable", NULL }; | |
6546 | ||
6547 | self = self; | |
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
6549 | return NULL; | |
6550 | if (_argo0) { | |
6551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); | |
6554 | return NULL; | |
6555 | } | |
6556 | } | |
6557 | _arg2 = (bool ) tempbool2; | |
6558 | { | |
6559 | wxPy_BEGIN_ALLOW_THREADS; | |
6560 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6561 | ||
6562 | wxPy_END_ALLOW_THREADS; | |
6563 | } Py_INCREF(Py_None); | |
6564 | _resultobj = Py_None; | |
6565 | return _resultobj; | |
6566 | } | |
6567 | ||
6568 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
6569 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6570 | PyObject * _resultobj; | |
6571 | bool _result; | |
6572 | wxMenu * _arg0; | |
6573 | int _arg1; | |
6574 | PyObject * _argo0 = 0; | |
6575 | char *_kwnames[] = { "self","id", NULL }; | |
6576 | ||
6577 | self = self; | |
6578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6579 | return NULL; | |
6580 | if (_argo0) { | |
6581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6584 | return NULL; | |
6585 | } | |
6586 | } | |
6587 | { | |
6588 | wxPy_BEGIN_ALLOW_THREADS; | |
6589 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6590 | ||
6591 | wxPy_END_ALLOW_THREADS; | |
6592 | } _resultobj = Py_BuildValue("i",_result); | |
6593 | return _resultobj; | |
6594 | } | |
6595 | ||
6596 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
6597 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6598 | PyObject * _resultobj; | |
6599 | int _result; | |
6600 | wxMenu * _arg0; | |
6601 | wxString * _arg1; | |
6602 | PyObject * _argo0 = 0; | |
6603 | PyObject * _obj1 = 0; | |
6604 | char *_kwnames[] = { "self","itemString", NULL }; | |
6605 | ||
6606 | self = self; | |
6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) | |
6608 | return NULL; | |
6609 | if (_argo0) { | |
6610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); | |
6613 | return NULL; | |
6614 | } | |
6615 | } | |
6616 | { | |
6617 | if (!PyString_Check(_obj1)) { | |
6618 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6619 | return NULL; | |
6620 | } | |
6621 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
6622 | } | |
6623 | { | |
6624 | wxPy_BEGIN_ALLOW_THREADS; | |
6625 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6626 | ||
6627 | wxPy_END_ALLOW_THREADS; | |
6628 | } _resultobj = Py_BuildValue("i",_result); | |
6629 | { | |
6630 | if (_obj1) | |
6631 | delete _arg1; | |
6632 | } | |
6633 | return _resultobj; | |
6634 | } | |
6635 | ||
6636 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
6637 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6638 | PyObject * _resultobj; | |
6639 | wxMenuItem * _result; | |
6640 | wxMenu * _arg0; | |
6641 | int _arg1; | |
6642 | PyObject * _argo0 = 0; | |
6643 | char *_kwnames[] = { "self","id", NULL }; | |
6644 | char _ptemp[128]; | |
6645 | ||
6646 | self = self; | |
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6648 | return NULL; | |
6649 | if (_argo0) { | |
6650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
6656 | { | |
6657 | wxPy_BEGIN_ALLOW_THREADS; | |
6658 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6659 | ||
6660 | wxPy_END_ALLOW_THREADS; | |
6661 | } if (_result) { | |
6662 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6663 | _resultobj = Py_BuildValue("s",_ptemp); | |
6664 | } else { | |
6665 | Py_INCREF(Py_None); | |
6666 | _resultobj = Py_None; | |
6667 | } | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
6671 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
6672 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject * _resultobj; | |
6674 | wxString * _result; | |
6675 | wxMenu * _arg0; | |
6676 | PyObject * _argo0 = 0; | |
6677 | char *_kwnames[] = { "self", NULL }; | |
6678 | ||
6679 | self = self; | |
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) | |
6681 | return NULL; | |
6682 | if (_argo0) { | |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); | |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | { | |
6690 | wxPy_BEGIN_ALLOW_THREADS; | |
6691 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
6692 | ||
6693 | wxPy_END_ALLOW_THREADS; | |
6694 | }{ | |
6695 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6696 | } | |
6697 | { | |
6698 | delete _result; | |
6699 | } | |
6700 | return _resultobj; | |
6701 | } | |
6702 | ||
6703 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
6704 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject * _resultobj; | |
6706 | wxMenu * _arg0; | |
6707 | wxString * _arg1; | |
6708 | PyObject * _argo0 = 0; | |
6709 | PyObject * _obj1 = 0; | |
6710 | char *_kwnames[] = { "self","title", NULL }; | |
6711 | ||
6712 | self = self; | |
6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) | |
6714 | return NULL; | |
6715 | if (_argo0) { | |
6716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); | |
6719 | return NULL; | |
6720 | } | |
6721 | } | |
6722 | { | |
6723 | if (!PyString_Check(_obj1)) { | |
6724 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6725 | return NULL; | |
6726 | } | |
6727 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
6728 | } | |
6729 | { | |
6730 | wxPy_BEGIN_ALLOW_THREADS; | |
6731 | wxMenu_SetTitle(_arg0,*_arg1); | |
6732 | ||
6733 | wxPy_END_ALLOW_THREADS; | |
6734 | } Py_INCREF(Py_None); | |
6735 | _resultobj = Py_None; | |
6736 | { | |
6737 | if (_obj1) | |
6738 | delete _arg1; | |
6739 | } | |
6740 | return _resultobj; | |
6741 | } | |
6742 | ||
6743 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
6744 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6745 | PyObject * _resultobj; | |
6746 | wxString * _result; | |
6747 | wxMenu * _arg0; | |
6748 | int _arg1; | |
6749 | PyObject * _argo0 = 0; | |
6750 | char *_kwnames[] = { "self","id", NULL }; | |
6751 | ||
6752 | self = self; | |
6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) | |
6754 | return NULL; | |
6755 | if (_argo0) { | |
6756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); | |
6759 | return NULL; | |
6760 | } | |
6761 | } | |
6762 | { | |
6763 | wxPy_BEGIN_ALLOW_THREADS; | |
6764 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); | |
6765 | ||
6766 | wxPy_END_ALLOW_THREADS; | |
6767 | }{ | |
6768 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6769 | } | |
6770 | { | |
6771 | delete _result; | |
6772 | } | |
6773 | return _resultobj; | |
6774 | } | |
6775 | ||
6776 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
6777 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6778 | PyObject * _resultobj; | |
6779 | wxMenu * _arg0; | |
6780 | int _arg1; | |
6781 | wxString * _arg2; | |
6782 | PyObject * _argo0 = 0; | |
6783 | PyObject * _obj2 = 0; | |
6784 | char *_kwnames[] = { "self","id","label", NULL }; | |
6785 | ||
6786 | self = self; | |
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6788 | return NULL; | |
6789 | if (_argo0) { | |
6790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); | |
6793 | return NULL; | |
6794 | } | |
6795 | } | |
6796 | { | |
6797 | if (!PyString_Check(_obj2)) { | |
6798 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6799 | return NULL; | |
6800 | } | |
6801 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6802 | } | |
6803 | { | |
6804 | wxPy_BEGIN_ALLOW_THREADS; | |
6805 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); | |
6806 | ||
6807 | wxPy_END_ALLOW_THREADS; | |
6808 | } Py_INCREF(Py_None); | |
6809 | _resultobj = Py_None; | |
6810 | { | |
6811 | if (_obj2) | |
6812 | delete _arg2; | |
6813 | } | |
6814 | return _resultobj; | |
6815 | } | |
6816 | ||
6817 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
6818 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject * _resultobj; | |
6820 | wxString * _result; | |
6821 | wxMenu * _arg0; | |
6822 | int _arg1; | |
6823 | PyObject * _argo0 = 0; | |
6824 | char *_kwnames[] = { "self","id", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | { | |
6837 | wxPy_BEGIN_ALLOW_THREADS; | |
6838 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); | |
6839 | ||
6840 | wxPy_END_ALLOW_THREADS; | |
6841 | }{ | |
6842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6843 | } | |
6844 | { | |
6845 | delete _result; | |
6846 | } | |
6847 | return _resultobj; | |
6848 | } | |
6849 | ||
6850 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
6851 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6852 | PyObject * _resultobj; | |
6853 | wxMenu * _arg0; | |
6854 | int _arg1; | |
6855 | wxString * _arg2; | |
6856 | PyObject * _argo0 = 0; | |
6857 | PyObject * _obj2 = 0; | |
6858 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
6859 | ||
6860 | self = self; | |
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6862 | return NULL; | |
6863 | if (_argo0) { | |
6864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); | |
6867 | return NULL; | |
6868 | } | |
6869 | } | |
6870 | { | |
6871 | if (!PyString_Check(_obj2)) { | |
6872 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6873 | return NULL; | |
6874 | } | |
6875 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6876 | } | |
6877 | { | |
6878 | wxPy_BEGIN_ALLOW_THREADS; | |
6879 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
6880 | ||
6881 | wxPy_END_ALLOW_THREADS; | |
6882 | } Py_INCREF(Py_None); | |
6883 | _resultobj = Py_None; | |
6884 | { | |
6885 | if (_obj2) | |
6886 | delete _arg2; | |
6887 | } | |
6888 | return _resultobj; | |
6889 | } | |
6890 | ||
6891 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) | |
6892 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6893 | PyObject * _resultobj; | |
6894 | wxMenu * _arg0; | |
6895 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; | |
6896 | PyObject * _argo0 = 0; | |
6897 | PyObject * _argo1 = 0; | |
6898 | char *_kwnames[] = { "self","source", NULL }; | |
6899 | ||
6900 | self = self; | |
6901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) | |
6902 | return NULL; | |
6903 | if (_argo0) { | |
6904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); | |
6907 | return NULL; | |
6908 | } | |
6909 | } | |
6910 | if (_argo1) { | |
6911 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
6917 | { | |
6918 | wxPy_BEGIN_ALLOW_THREADS; | |
6919 | wxMenu_UpdateUI(_arg0,_arg1); | |
6920 | ||
6921 | wxPy_END_ALLOW_THREADS; | |
6922 | } Py_INCREF(Py_None); | |
6923 | _resultobj = Py_None; | |
6924 | return _resultobj; | |
6925 | } | |
6926 | ||
6927 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
6928 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6929 | PyObject * _resultobj; | |
6930 | bool _result; | |
6931 | wxMenu * _arg0; | |
6932 | int _arg1; | |
6933 | PyObject * _argo0 = 0; | |
6934 | char *_kwnames[] = { "self","id", NULL }; | |
6935 | ||
6936 | self = self; | |
6937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) | |
6938 | return NULL; | |
6939 | if (_argo0) { | |
6940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); | |
6943 | return NULL; | |
6944 | } | |
6945 | } | |
6946 | { | |
6947 | wxPy_BEGIN_ALLOW_THREADS; | |
6948 | _result = (bool )wxMenu_Delete(_arg0,_arg1); | |
6949 | ||
6950 | wxPy_END_ALLOW_THREADS; | |
6951 | } _resultobj = Py_BuildValue("i",_result); | |
6952 | return _resultobj; | |
6953 | } | |
6954 | ||
6955 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
6956 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6957 | PyObject * _resultobj; | |
6958 | bool _result; | |
6959 | wxMenu * _arg0; | |
6960 | wxMenuItem * _arg1; | |
6961 | PyObject * _argo0 = 0; | |
6962 | PyObject * _argo1 = 0; | |
6963 | char *_kwnames[] = { "self","item", NULL }; | |
6964 | ||
6965 | self = self; | |
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) | |
6967 | return NULL; | |
6968 | if (_argo0) { | |
6969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); | |
6972 | return NULL; | |
6973 | } | |
6974 | } | |
6975 | if (_argo1) { | |
6976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
6979 | return NULL; | |
6980 | } | |
6981 | } | |
6982 | { | |
6983 | wxPy_BEGIN_ALLOW_THREADS; | |
6984 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); | |
6985 | ||
6986 | wxPy_END_ALLOW_THREADS; | |
6987 | } _resultobj = Py_BuildValue("i",_result); | |
6988 | return _resultobj; | |
6989 | } | |
6990 | ||
6991 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) | |
6992 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6993 | PyObject * _resultobj; | |
6994 | bool _result; | |
6995 | wxMenu * _arg0; | |
6996 | size_t _arg1; | |
6997 | wxMenuItem * _arg2; | |
6998 | PyObject * _argo0 = 0; | |
6999 | PyObject * _argo2 = 0; | |
7000 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7001 | ||
7002 | self = self; | |
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) | |
7004 | return NULL; | |
7005 | if (_argo0) { | |
7006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7009 | return NULL; | |
7010 | } | |
7011 | } | |
7012 | if (_argo2) { | |
7013 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7014 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
7016 | return NULL; | |
7017 | } | |
7018 | } | |
7019 | { | |
7020 | wxPy_BEGIN_ALLOW_THREADS; | |
7021 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); | |
7022 | ||
7023 | wxPy_END_ALLOW_THREADS; | |
7024 | } _resultobj = Py_BuildValue("i",_result); | |
7025 | return _resultobj; | |
7026 | } | |
7027 | ||
7028 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7029 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7030 | PyObject * _resultobj; | |
7031 | wxMenuItem * _result; | |
7032 | wxMenu * _arg0; | |
7033 | int _arg1; | |
7034 | PyObject * _argo0 = 0; | |
7035 | char *_kwnames[] = { "self","id", NULL }; | |
7036 | char _ptemp[128]; | |
7037 | ||
7038 | self = self; | |
7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) | |
7040 | return NULL; | |
7041 | if (_argo0) { | |
7042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); | |
7045 | return NULL; | |
7046 | } | |
7047 | } | |
7048 | { | |
7049 | wxPy_BEGIN_ALLOW_THREADS; | |
7050 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); | |
7051 | ||
7052 | wxPy_END_ALLOW_THREADS; | |
7053 | } if (_result) { | |
7054 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7055 | _resultobj = Py_BuildValue("s",_ptemp); | |
7056 | } else { | |
7057 | Py_INCREF(Py_None); | |
7058 | _resultobj = Py_None; | |
7059 | } | |
7060 | return _resultobj; | |
7061 | } | |
7062 | ||
7063 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7064 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject * _resultobj; | |
7066 | wxMenuItem * _result; | |
7067 | wxMenu * _arg0; | |
7068 | wxMenuItem * _arg1; | |
7069 | PyObject * _argo0 = 0; | |
7070 | PyObject * _argo1 = 0; | |
7071 | char *_kwnames[] = { "self","item", NULL }; | |
7072 | char _ptemp[128]; | |
7073 | ||
7074 | self = self; | |
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) | |
7076 | return NULL; | |
7077 | if (_argo0) { | |
7078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7081 | return NULL; | |
7082 | } | |
7083 | } | |
7084 | if (_argo1) { | |
7085 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7086 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
7088 | return NULL; | |
7089 | } | |
7090 | } | |
7091 | { | |
7092 | wxPy_BEGIN_ALLOW_THREADS; | |
7093 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); | |
7094 | ||
7095 | wxPy_END_ALLOW_THREADS; | |
7096 | } if (_result) { | |
7097 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7098 | _resultobj = Py_BuildValue("s",_ptemp); | |
7099 | } else { | |
7100 | Py_INCREF(Py_None); | |
7101 | _resultobj = Py_None; | |
7102 | } | |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | static void wxMenu_Destroy(wxMenu *self) { delete self; } | |
7107 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject * _resultobj; | |
7109 | wxMenu * _arg0; | |
7110 | PyObject * _argo0 = 0; | |
7111 | char *_kwnames[] = { "self", NULL }; | |
7112 | ||
7113 | self = self; | |
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
7115 | return NULL; | |
7116 | if (_argo0) { | |
7117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
7120 | return NULL; | |
7121 | } | |
7122 | } | |
7123 | { | |
7124 | wxPy_BEGIN_ALLOW_THREADS; | |
7125 | wxMenu_Destroy(_arg0); | |
7126 | ||
7127 | wxPy_END_ALLOW_THREADS; | |
7128 | } Py_INCREF(Py_None); | |
7129 | _resultobj = Py_None; | |
7130 | return _resultobj; | |
7131 | } | |
7132 | ||
7133 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
7134 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7135 | PyObject * _resultobj; | |
7136 | bool _result; | |
7137 | wxMenu * _arg0; | |
7138 | int _arg1; | |
7139 | PyObject * _argo0 = 0; | |
7140 | char *_kwnames[] = { "self","id", NULL }; | |
7141 | ||
7142 | self = self; | |
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) | |
7144 | return NULL; | |
7145 | if (_argo0) { | |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
7149 | return NULL; | |
7150 | } | |
7151 | } | |
7152 | { | |
7153 | wxPy_BEGIN_ALLOW_THREADS; | |
7154 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); | |
7155 | ||
7156 | wxPy_END_ALLOW_THREADS; | |
7157 | } _resultobj = Py_BuildValue("i",_result); | |
7158 | return _resultobj; | |
7159 | } | |
7160 | ||
7161 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
7162 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7163 | PyObject * _resultobj; | |
7164 | bool _result; | |
7165 | wxMenu * _arg0; | |
7166 | wxMenuItem * _arg1; | |
7167 | PyObject * _argo0 = 0; | |
7168 | PyObject * _argo1 = 0; | |
7169 | char *_kwnames[] = { "self","item", NULL }; | |
7170 | ||
7171 | self = self; | |
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) | |
7173 | return NULL; | |
7174 | if (_argo0) { | |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7178 | return NULL; | |
7179 | } | |
7180 | } | |
7181 | if (_argo1) { | |
7182 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | { | |
7189 | wxPy_BEGIN_ALLOW_THREADS; | |
7190 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); | |
7191 | ||
7192 | wxPy_END_ALLOW_THREADS; | |
7193 | } _resultobj = Py_BuildValue("i",_result); | |
7194 | return _resultobj; | |
7195 | } | |
7196 | ||
7197 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) | |
7198 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject * _resultobj; | |
7200 | size_t _result; | |
7201 | wxMenu * _arg0; | |
7202 | PyObject * _argo0 = 0; | |
7203 | char *_kwnames[] = { "self", NULL }; | |
7204 | ||
7205 | self = self; | |
7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) | |
7207 | return NULL; | |
7208 | if (_argo0) { | |
7209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
7212 | return NULL; | |
7213 | } | |
7214 | } | |
7215 | { | |
7216 | wxPy_BEGIN_ALLOW_THREADS; | |
7217 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); | |
7218 | ||
7219 | wxPy_END_ALLOW_THREADS; | |
7220 | } _resultobj = Py_BuildValue("i",_result); | |
7221 | return _resultobj; | |
7222 | } | |
7223 | ||
7224 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { | |
7225 | wxMenuItemList& list = self->GetMenuItems(); | |
7226 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
7227 | } | |
7228 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject * _resultobj; | |
7230 | PyObject * _result; | |
7231 | wxMenu * _arg0; | |
7232 | PyObject * _argo0 = 0; | |
7233 | char *_kwnames[] = { "self", NULL }; | |
7234 | ||
7235 | self = self; | |
7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) | |
7237 | return NULL; | |
7238 | if (_argo0) { | |
7239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
7242 | return NULL; | |
7243 | } | |
7244 | } | |
7245 | { | |
7246 | wxPy_BEGIN_ALLOW_THREADS; | |
7247 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); | |
7248 | ||
7249 | wxPy_END_ALLOW_THREADS; | |
7250 | }{ | |
7251 | _resultobj = _result; | |
7252 | } | |
7253 | return _resultobj; | |
7254 | } | |
7255 | ||
7256 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
7257 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7258 | PyObject * _resultobj; | |
7259 | wxMenu * _arg0; | |
7260 | wxEvtHandler * _arg1; | |
7261 | PyObject * _argo0 = 0; | |
7262 | PyObject * _argo1 = 0; | |
7263 | char *_kwnames[] = { "self","handler", NULL }; | |
7264 | ||
7265 | self = self; | |
7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
7267 | return NULL; | |
7268 | if (_argo0) { | |
7269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
7272 | return NULL; | |
7273 | } | |
7274 | } | |
7275 | if (_argo1) { | |
7276 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7277 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
7279 | return NULL; | |
7280 | } | |
7281 | } | |
7282 | { | |
7283 | wxPy_BEGIN_ALLOW_THREADS; | |
7284 | wxMenu_SetEventHandler(_arg0,_arg1); | |
7285 | ||
7286 | wxPy_END_ALLOW_THREADS; | |
7287 | } Py_INCREF(Py_None); | |
7288 | _resultobj = Py_None; | |
7289 | return _resultobj; | |
7290 | } | |
7291 | ||
7292 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
7293 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject * _resultobj; | |
7295 | wxEvtHandler * _result; | |
7296 | wxMenu * _arg0; | |
7297 | PyObject * _argo0 = 0; | |
7298 | char *_kwnames[] = { "self", NULL }; | |
7299 | char _ptemp[128]; | |
7300 | ||
7301 | self = self; | |
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) | |
7303 | return NULL; | |
7304 | if (_argo0) { | |
7305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
7308 | return NULL; | |
7309 | } | |
7310 | } | |
7311 | { | |
7312 | wxPy_BEGIN_ALLOW_THREADS; | |
7313 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); | |
7314 | ||
7315 | wxPy_END_ALLOW_THREADS; | |
7316 | } if (_result) { | |
7317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
7318 | _resultobj = Py_BuildValue("s",_ptemp); | |
7319 | } else { | |
7320 | Py_INCREF(Py_None); | |
7321 | _resultobj = Py_None; | |
7322 | } | |
7323 | return _resultobj; | |
7324 | } | |
7325 | ||
7326 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) | |
7327 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7328 | PyObject * _resultobj; | |
7329 | wxMenu * _arg0; | |
7330 | wxWindow * _arg1; | |
7331 | PyObject * _argo0 = 0; | |
7332 | PyObject * _argo1 = 0; | |
7333 | char *_kwnames[] = { "self","win", NULL }; | |
7334 | ||
7335 | self = self; | |
7336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) | |
7337 | return NULL; | |
7338 | if (_argo0) { | |
7339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
7342 | return NULL; | |
7343 | } | |
7344 | } | |
7345 | if (_argo1) { | |
7346 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7347 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
7349 | return NULL; | |
7350 | } | |
7351 | } | |
7352 | { | |
7353 | wxPy_BEGIN_ALLOW_THREADS; | |
7354 | wxMenu_SetInvokingWindow(_arg0,_arg1); | |
7355 | ||
7356 | wxPy_END_ALLOW_THREADS; | |
7357 | } Py_INCREF(Py_None); | |
7358 | _resultobj = Py_None; | |
7359 | return _resultobj; | |
7360 | } | |
7361 | ||
7362 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) | |
7363 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject * _resultobj; | |
7365 | wxWindow * _result; | |
7366 | wxMenu * _arg0; | |
7367 | PyObject * _argo0 = 0; | |
7368 | char *_kwnames[] = { "self", NULL }; | |
7369 | char _ptemp[128]; | |
7370 | ||
7371 | self = self; | |
7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) | |
7373 | return NULL; | |
7374 | if (_argo0) { | |
7375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
7378 | return NULL; | |
7379 | } | |
7380 | } | |
7381 | { | |
7382 | wxPy_BEGIN_ALLOW_THREADS; | |
7383 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); | |
7384 | ||
7385 | wxPy_END_ALLOW_THREADS; | |
7386 | } if (_result) { | |
7387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
7388 | _resultobj = Py_BuildValue("s",_ptemp); | |
7389 | } else { | |
7390 | Py_INCREF(Py_None); | |
7391 | _resultobj = Py_None; | |
7392 | } | |
7393 | return _resultobj; | |
7394 | } | |
7395 | ||
7396 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
7397 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7398 | PyObject * _resultobj; | |
7399 | long _result; | |
7400 | wxMenu * _arg0; | |
7401 | PyObject * _argo0 = 0; | |
7402 | char *_kwnames[] = { "self", NULL }; | |
7403 | ||
7404 | self = self; | |
7405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) | |
7406 | return NULL; | |
7407 | if (_argo0) { | |
7408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
7411 | return NULL; | |
7412 | } | |
7413 | } | |
7414 | { | |
7415 | wxPy_BEGIN_ALLOW_THREADS; | |
7416 | _result = (long )wxMenu_GetStyle(_arg0); | |
7417 | ||
7418 | wxPy_END_ALLOW_THREADS; | |
7419 | } _resultobj = Py_BuildValue("l",_result); | |
7420 | return _resultobj; | |
7421 | } | |
7422 | ||
7423 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) | |
7424 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7425 | PyObject * _resultobj; | |
7426 | bool _result; | |
7427 | wxMenu * _arg0; | |
7428 | PyObject * _argo0 = 0; | |
7429 | char *_kwnames[] = { "self", NULL }; | |
7430 | ||
7431 | self = self; | |
7432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) | |
7433 | return NULL; | |
7434 | if (_argo0) { | |
7435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
7438 | return NULL; | |
7439 | } | |
7440 | } | |
7441 | { | |
7442 | wxPy_BEGIN_ALLOW_THREADS; | |
7443 | _result = (bool )wxMenu_IsAttached(_arg0); | |
7444 | ||
7445 | wxPy_END_ALLOW_THREADS; | |
7446 | } _resultobj = Py_BuildValue("i",_result); | |
7447 | return _resultobj; | |
7448 | } | |
7449 | ||
7450 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
7451 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7452 | PyObject * _resultobj; | |
7453 | wxMenu * _arg0; | |
7454 | wxMenu * _arg1; | |
7455 | PyObject * _argo0 = 0; | |
7456 | PyObject * _argo1 = 0; | |
7457 | char *_kwnames[] = { "self","parent", NULL }; | |
7458 | ||
7459 | self = self; | |
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) | |
7461 | return NULL; | |
7462 | if (_argo0) { | |
7463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
7466 | return NULL; | |
7467 | } | |
7468 | } | |
7469 | if (_argo1) { | |
7470 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7471 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
7473 | return NULL; | |
7474 | } | |
7475 | } | |
7476 | { | |
7477 | wxPy_BEGIN_ALLOW_THREADS; | |
7478 | wxMenu_SetParent(_arg0,_arg1); | |
7479 | ||
7480 | wxPy_END_ALLOW_THREADS; | |
7481 | } Py_INCREF(Py_None); | |
7482 | _resultobj = Py_None; | |
7483 | return _resultobj; | |
7484 | } | |
7485 | ||
7486 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) | |
7487 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7488 | PyObject * _resultobj; | |
7489 | wxMenu * _result; | |
7490 | wxMenu * _arg0; | |
7491 | PyObject * _argo0 = 0; | |
7492 | char *_kwnames[] = { "self", NULL }; | |
7493 | char _ptemp[128]; | |
7494 | ||
7495 | self = self; | |
7496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) | |
7497 | return NULL; | |
7498 | if (_argo0) { | |
7499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
7505 | { | |
7506 | wxPy_BEGIN_ALLOW_THREADS; | |
7507 | _result = (wxMenu *)wxMenu_GetParent(_arg0); | |
7508 | ||
7509 | wxPy_END_ALLOW_THREADS; | |
7510 | } if (_result) { | |
7511 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7512 | _resultobj = Py_BuildValue("s",_ptemp); | |
7513 | } else { | |
7514 | Py_INCREF(Py_None); | |
7515 | _resultobj = Py_None; | |
7516 | } | |
7517 | return _resultobj; | |
7518 | } | |
7519 | ||
7520 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
7521 | wxMenuBar *src; | |
7522 | wxWindow *dest; | |
7523 | src = (wxMenuBar *) ptr; | |
7524 | dest = (wxWindow *) src; | |
7525 | return (void *) dest; | |
7526 | } | |
7527 | ||
7528 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
7529 | wxMenuBar *src; | |
7530 | wxEvtHandler *dest; | |
7531 | src = (wxMenuBar *) ptr; | |
7532 | dest = (wxEvtHandler *) src; | |
7533 | return (void *) dest; | |
7534 | } | |
7535 | ||
7536 | #define new_wxMenuBar() (new wxMenuBar()) | |
7537 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7538 | PyObject * _resultobj; | |
7539 | wxMenuBar * _result; | |
7540 | char *_kwnames[] = { NULL }; | |
7541 | char _ptemp[128]; | |
7542 | ||
7543 | self = self; | |
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames)) | |
7545 | return NULL; | |
7546 | { | |
7547 | wxPy_BEGIN_ALLOW_THREADS; | |
7548 | _result = (wxMenuBar *)new_wxMenuBar(); | |
7549 | ||
7550 | wxPy_END_ALLOW_THREADS; | |
7551 | } if (_result) { | |
7552 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
7553 | _resultobj = Py_BuildValue("s",_ptemp); | |
7554 | } else { | |
7555 | Py_INCREF(Py_None); | |
7556 | _resultobj = Py_None; | |
7557 | } | |
7558 | return _resultobj; | |
7559 | } | |
7560 | ||
7561 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
7562 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject * _resultobj; | |
7564 | bool _result; | |
7565 | wxMenuBar * _arg0; | |
7566 | wxMenu * _arg1; | |
7567 | wxString * _arg2; | |
7568 | PyObject * _argo0 = 0; | |
7569 | PyObject * _argo1 = 0; | |
7570 | PyObject * _obj2 = 0; | |
7571 | char *_kwnames[] = { "self","menu","title", NULL }; | |
7572 | ||
7573 | self = self; | |
7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7575 | return NULL; | |
7576 | if (_argo0) { | |
7577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); | |
7580 | return NULL; | |
7581 | } | |
7582 | } | |
7583 | if (_argo1) { | |
7584 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7585 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
7587 | return NULL; | |
7588 | } | |
7589 | } | |
7590 | { | |
7591 | if (!PyString_Check(_obj2)) { | |
7592 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7593 | return NULL; | |
7594 | } | |
7595 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7596 | } | |
7597 | { | |
7598 | wxPy_BEGIN_ALLOW_THREADS; | |
7599 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); | |
7600 | ||
7601 | wxPy_END_ALLOW_THREADS; | |
7602 | } _resultobj = Py_BuildValue("i",_result); | |
7603 | { | |
7604 | if (_obj2) | |
7605 | delete _arg2; | |
7606 | } | |
7607 | return _resultobj; | |
7608 | } | |
7609 | ||
7610 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) | |
7611 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7612 | PyObject * _resultobj; | |
7613 | bool _result; | |
7614 | wxMenuBar * _arg0; | |
7615 | size_t _arg1; | |
7616 | wxMenu * _arg2; | |
7617 | wxString * _arg3; | |
7618 | PyObject * _argo0 = 0; | |
7619 | PyObject * _argo2 = 0; | |
7620 | PyObject * _obj3 = 0; | |
7621 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
7622 | ||
7623 | self = self; | |
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
7625 | return NULL; | |
7626 | if (_argo0) { | |
7627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); | |
7630 | return NULL; | |
7631 | } | |
7632 | } | |
7633 | if (_argo2) { | |
7634 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7635 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
7637 | return NULL; | |
7638 | } | |
7639 | } | |
7640 | { | |
7641 | if (!PyString_Check(_obj3)) { | |
7642 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7643 | return NULL; | |
7644 | } | |
7645 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7646 | } | |
7647 | { | |
7648 | wxPy_BEGIN_ALLOW_THREADS; | |
7649 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); | |
7650 | ||
7651 | wxPy_END_ALLOW_THREADS; | |
7652 | } _resultobj = Py_BuildValue("i",_result); | |
7653 | { | |
7654 | if (_obj3) | |
7655 | delete _arg3; | |
7656 | } | |
7657 | return _resultobj; | |
7658 | } | |
7659 | ||
7660 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) | |
7661 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7662 | PyObject * _resultobj; | |
7663 | size_t _result; | |
7664 | wxMenuBar * _arg0; | |
7665 | PyObject * _argo0 = 0; | |
7666 | char *_kwnames[] = { "self", NULL }; | |
7667 | ||
7668 | self = self; | |
7669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) | |
7670 | return NULL; | |
7671 | if (_argo0) { | |
7672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); | |
7675 | return NULL; | |
7676 | } | |
7677 | } | |
7678 | { | |
7679 | wxPy_BEGIN_ALLOW_THREADS; | |
7680 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); | |
7681 | ||
7682 | wxPy_END_ALLOW_THREADS; | |
7683 | } _resultobj = Py_BuildValue("i",_result); | |
7684 | return _resultobj; | |
7685 | } | |
7686 | ||
7687 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
7688 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7689 | PyObject * _resultobj; | |
7690 | wxMenu * _result; | |
7691 | wxMenuBar * _arg0; | |
7692 | size_t _arg1; | |
7693 | PyObject * _argo0 = 0; | |
7694 | char *_kwnames[] = { "self","pos", NULL }; | |
7695 | char _ptemp[128]; | |
7696 | ||
7697 | self = self; | |
7698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) | |
7699 | return NULL; | |
7700 | if (_argo0) { | |
7701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); | |
7704 | return NULL; | |
7705 | } | |
7706 | } | |
7707 | { | |
7708 | wxPy_BEGIN_ALLOW_THREADS; | |
7709 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); | |
7710 | ||
7711 | wxPy_END_ALLOW_THREADS; | |
7712 | } if (_result) { | |
7713 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7714 | _resultobj = Py_BuildValue("s",_ptemp); | |
7715 | } else { | |
7716 | Py_INCREF(Py_None); | |
7717 | _resultobj = Py_None; | |
7718 | } | |
7719 | return _resultobj; | |
7720 | } | |
7721 | ||
7722 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
7723 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7724 | PyObject * _resultobj; | |
7725 | wxMenu * _result; | |
7726 | wxMenuBar * _arg0; | |
7727 | size_t _arg1; | |
7728 | wxMenu * _arg2; | |
7729 | wxString * _arg3; | |
7730 | PyObject * _argo0 = 0; | |
7731 | PyObject * _argo2 = 0; | |
7732 | PyObject * _obj3 = 0; | |
7733 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
7734 | char _ptemp[128]; | |
7735 | ||
7736 | self = self; | |
7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
7738 | return NULL; | |
7739 | if (_argo0) { | |
7740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
7743 | return NULL; | |
7744 | } | |
7745 | } | |
7746 | if (_argo2) { | |
7747 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7748 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
7750 | return NULL; | |
7751 | } | |
7752 | } | |
7753 | { | |
7754 | if (!PyString_Check(_obj3)) { | |
7755 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7756 | return NULL; | |
7757 | } | |
7758 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7759 | } | |
7760 | { | |
7761 | wxPy_BEGIN_ALLOW_THREADS; | |
7762 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
7763 | ||
7764 | wxPy_END_ALLOW_THREADS; | |
7765 | } if (_result) { | |
7766 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7767 | _resultobj = Py_BuildValue("s",_ptemp); | |
7768 | } else { | |
7769 | Py_INCREF(Py_None); | |
7770 | _resultobj = Py_None; | |
7771 | } | |
7772 | { | |
7773 | if (_obj3) | |
7774 | delete _arg3; | |
7775 | } | |
7776 | return _resultobj; | |
7777 | } | |
7778 | ||
7779 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7780 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7781 | PyObject * _resultobj; | |
7782 | wxMenu * _result; | |
7783 | wxMenuBar * _arg0; | |
7784 | size_t _arg1; | |
7785 | PyObject * _argo0 = 0; | |
7786 | char *_kwnames[] = { "self","pos", NULL }; | |
7787 | char _ptemp[128]; | |
7788 | ||
7789 | self = self; | |
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
7791 | return NULL; | |
7792 | if (_argo0) { | |
7793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
7796 | return NULL; | |
7797 | } | |
7798 | } | |
7799 | { | |
7800 | wxPy_BEGIN_ALLOW_THREADS; | |
7801 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
7802 | ||
7803 | wxPy_END_ALLOW_THREADS; | |
7804 | } if (_result) { | |
7805 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7806 | _resultobj = Py_BuildValue("s",_ptemp); | |
7807 | } else { | |
7808 | Py_INCREF(Py_None); | |
7809 | _resultobj = Py_None; | |
7810 | } | |
7811 | return _resultobj; | |
7812 | } | |
7813 | ||
7814 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
7815 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7816 | PyObject * _resultobj; | |
7817 | wxMenuBar * _arg0; | |
7818 | size_t _arg1; | |
7819 | bool _arg2; | |
7820 | PyObject * _argo0 = 0; | |
7821 | int tempbool2; | |
7822 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
7823 | ||
7824 | self = self; | |
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7826 | return NULL; | |
7827 | if (_argo0) { | |
7828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
7831 | return NULL; | |
7832 | } | |
7833 | } | |
7834 | _arg2 = (bool ) tempbool2; | |
7835 | { | |
7836 | wxPy_BEGIN_ALLOW_THREADS; | |
7837 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
7838 | ||
7839 | wxPy_END_ALLOW_THREADS; | |
7840 | } Py_INCREF(Py_None); | |
7841 | _resultobj = Py_None; | |
7842 | return _resultobj; | |
7843 | } | |
7844 | ||
7845 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
7846 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7847 | PyObject * _resultobj; | |
7848 | wxMenuBar * _arg0; | |
7849 | size_t _arg1; | |
7850 | wxString * _arg2; | |
7851 | PyObject * _argo0 = 0; | |
7852 | PyObject * _obj2 = 0; | |
7853 | char *_kwnames[] = { "self","pos","label", NULL }; | |
7854 | ||
7855 | self = self; | |
7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7857 | return NULL; | |
7858 | if (_argo0) { | |
7859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
7862 | return NULL; | |
7863 | } | |
7864 | } | |
7865 | { | |
7866 | if (!PyString_Check(_obj2)) { | |
7867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7868 | return NULL; | |
7869 | } | |
7870 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7871 | } | |
7872 | { | |
7873 | wxPy_BEGIN_ALLOW_THREADS; | |
7874 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
7875 | ||
7876 | wxPy_END_ALLOW_THREADS; | |
7877 | } Py_INCREF(Py_None); | |
7878 | _resultobj = Py_None; | |
7879 | { | |
7880 | if (_obj2) | |
7881 | delete _arg2; | |
7882 | } | |
7883 | return _resultobj; | |
7884 | } | |
7885 | ||
7886 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
7887 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject * _resultobj; | |
7889 | wxString * _result; | |
7890 | wxMenuBar * _arg0; | |
7891 | size_t _arg1; | |
7892 | PyObject * _argo0 = 0; | |
7893 | char *_kwnames[] = { "self","pos", NULL }; | |
7894 | ||
7895 | self = self; | |
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
7897 | return NULL; | |
7898 | if (_argo0) { | |
7899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
7902 | return NULL; | |
7903 | } | |
7904 | } | |
7905 | { | |
7906 | wxPy_BEGIN_ALLOW_THREADS; | |
7907 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
7908 | ||
7909 | wxPy_END_ALLOW_THREADS; | |
7910 | }{ | |
7911 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7912 | } | |
7913 | { | |
7914 | delete _result; | |
7915 | } | |
7916 | return _resultobj; | |
7917 | } | |
7918 | ||
7919 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
7920 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7921 | PyObject * _resultobj; | |
7922 | int _result; | |
7923 | wxMenuBar * _arg0; | |
7924 | wxString * _arg1; | |
7925 | wxString * _arg2; | |
7926 | PyObject * _argo0 = 0; | |
7927 | PyObject * _obj1 = 0; | |
7928 | PyObject * _obj2 = 0; | |
7929 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
7930 | ||
7931 | self = self; | |
7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7933 | return NULL; | |
7934 | if (_argo0) { | |
7935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
7938 | return NULL; | |
7939 | } | |
7940 | } | |
7941 | { | |
7942 | if (!PyString_Check(_obj1)) { | |
7943 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7944 | return NULL; | |
7945 | } | |
7946 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
7947 | } | |
7948 | { | |
7949 | if (!PyString_Check(_obj2)) { | |
7950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7951 | return NULL; | |
7952 | } | |
7953 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7954 | } | |
7955 | { | |
7956 | wxPy_BEGIN_ALLOW_THREADS; | |
7957 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
7958 | ||
7959 | wxPy_END_ALLOW_THREADS; | |
7960 | } _resultobj = Py_BuildValue("i",_result); | |
7961 | { | |
7962 | if (_obj1) | |
7963 | delete _arg1; | |
7964 | } | |
7965 | { | |
7966 | if (_obj2) | |
7967 | delete _arg2; | |
7968 | } | |
7969 | return _resultobj; | |
7970 | } | |
7971 | ||
7972 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7973 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7974 | PyObject * _resultobj; | |
7975 | wxMenuItem * _result; | |
7976 | wxMenuBar * _arg0; | |
7977 | int _arg1; | |
7978 | PyObject * _argo0 = 0; | |
7979 | char *_kwnames[] = { "self","id", NULL }; | |
7980 | char _ptemp[128]; | |
7981 | ||
7982 | self = self; | |
7983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7984 | return NULL; | |
7985 | if (_argo0) { | |
7986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
7989 | return NULL; | |
7990 | } | |
7991 | } | |
7992 | { | |
7993 | wxPy_BEGIN_ALLOW_THREADS; | |
7994 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); | |
7995 | ||
7996 | wxPy_END_ALLOW_THREADS; | |
7997 | } if (_result) { | |
7998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7999 | _resultobj = Py_BuildValue("s",_ptemp); | |
8000 | } else { | |
8001 | Py_INCREF(Py_None); | |
8002 | _resultobj = Py_None; | |
8003 | } | |
8004 | return _resultobj; | |
8005 | } | |
8006 | ||
8007 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8008 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8009 | PyObject * _resultobj; | |
8010 | wxMenuBar * _arg0; | |
8011 | int _arg1; | |
8012 | bool _arg2; | |
8013 | PyObject * _argo0 = 0; | |
8014 | int tempbool2; | |
8015 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8016 | ||
8017 | self = self; | |
8018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8019 | return NULL; | |
8020 | if (_argo0) { | |
8021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8024 | return NULL; | |
8025 | } | |
8026 | } | |
8027 | _arg2 = (bool ) tempbool2; | |
8028 | { | |
8029 | wxPy_BEGIN_ALLOW_THREADS; | |
8030 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8031 | ||
8032 | wxPy_END_ALLOW_THREADS; | |
8033 | } Py_INCREF(Py_None); | |
8034 | _resultobj = Py_None; | |
8035 | return _resultobj; | |
8036 | } | |
8037 | ||
8038 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8039 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8040 | PyObject * _resultobj; | |
8041 | wxMenuBar * _arg0; | |
8042 | int _arg1; | |
8043 | bool _arg2; | |
8044 | PyObject * _argo0 = 0; | |
8045 | int tempbool2; | |
8046 | char *_kwnames[] = { "self","id","check", NULL }; | |
8047 | ||
8048 | self = self; | |
8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8050 | return NULL; | |
8051 | if (_argo0) { | |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8055 | return NULL; | |
8056 | } | |
8057 | } | |
8058 | _arg2 = (bool ) tempbool2; | |
8059 | { | |
8060 | wxPy_BEGIN_ALLOW_THREADS; | |
8061 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8062 | ||
8063 | wxPy_END_ALLOW_THREADS; | |
8064 | } Py_INCREF(Py_None); | |
8065 | _resultobj = Py_None; | |
8066 | return _resultobj; | |
8067 | } | |
8068 | ||
8069 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
8070 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8071 | PyObject * _resultobj; | |
8072 | bool _result; | |
8073 | wxMenuBar * _arg0; | |
8074 | int _arg1; | |
8075 | PyObject * _argo0 = 0; | |
8076 | char *_kwnames[] = { "self","id", NULL }; | |
8077 | ||
8078 | self = self; | |
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8080 | return NULL; | |
8081 | if (_argo0) { | |
8082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8085 | return NULL; | |
8086 | } | |
8087 | } | |
8088 | { | |
8089 | wxPy_BEGIN_ALLOW_THREADS; | |
8090 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); | |
8091 | ||
8092 | wxPy_END_ALLOW_THREADS; | |
8093 | } _resultobj = Py_BuildValue("i",_result); | |
8094 | return _resultobj; | |
8095 | } | |
8096 | ||
8097 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
8098 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8099 | PyObject * _resultobj; | |
8100 | bool _result; | |
8101 | wxMenuBar * _arg0; | |
8102 | int _arg1; | |
8103 | PyObject * _argo0 = 0; | |
8104 | char *_kwnames[] = { "self","id", NULL }; | |
8105 | ||
8106 | self = self; | |
8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8108 | return NULL; | |
8109 | if (_argo0) { | |
8110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8113 | return NULL; | |
8114 | } | |
8115 | } | |
8116 | { | |
8117 | wxPy_BEGIN_ALLOW_THREADS; | |
8118 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); | |
8119 | ||
8120 | wxPy_END_ALLOW_THREADS; | |
8121 | } _resultobj = Py_BuildValue("i",_result); | |
8122 | return _resultobj; | |
8123 | } | |
8124 | ||
8125 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
8126 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8127 | PyObject * _resultobj; | |
8128 | wxMenuBar * _arg0; | |
8129 | int _arg1; | |
8130 | wxString * _arg2; | |
8131 | PyObject * _argo0 = 0; | |
8132 | PyObject * _obj2 = 0; | |
8133 | char *_kwnames[] = { "self","id","label", NULL }; | |
8134 | ||
8135 | self = self; | |
8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8137 | return NULL; | |
8138 | if (_argo0) { | |
8139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8142 | return NULL; | |
8143 | } | |
8144 | } | |
8145 | { | |
8146 | if (!PyString_Check(_obj2)) { | |
8147 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8148 | return NULL; | |
8149 | } | |
8150 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8151 | } | |
8152 | { | |
8153 | wxPy_BEGIN_ALLOW_THREADS; | |
8154 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | |
8155 | ||
8156 | wxPy_END_ALLOW_THREADS; | |
8157 | } Py_INCREF(Py_None); | |
8158 | _resultobj = Py_None; | |
8159 | { | |
8160 | if (_obj2) | |
8161 | delete _arg2; | |
8162 | } | |
8163 | return _resultobj; | |
8164 | } | |
8165 | ||
8166 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
8167 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8168 | PyObject * _resultobj; | |
8169 | wxString * _result; | |
8170 | wxMenuBar * _arg0; | |
8171 | int _arg1; | |
8172 | PyObject * _argo0 = 0; | |
8173 | char *_kwnames[] = { "self","id", NULL }; | |
8174 | ||
8175 | self = self; | |
8176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
8177 | return NULL; | |
8178 | if (_argo0) { | |
8179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
8182 | return NULL; | |
8183 | } | |
8184 | } | |
8185 | { | |
8186 | wxPy_BEGIN_ALLOW_THREADS; | |
8187 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
8188 | ||
8189 | wxPy_END_ALLOW_THREADS; | |
8190 | }{ | |
8191 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8192 | } | |
8193 | { | |
8194 | delete _result; | |
8195 | } | |
8196 | return _resultobj; | |
8197 | } | |
8198 | ||
8199 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8200 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8201 | PyObject * _resultobj; | |
8202 | wxMenuBar * _arg0; | |
8203 | int _arg1; | |
8204 | wxString * _arg2; | |
8205 | PyObject * _argo0 = 0; | |
8206 | PyObject * _obj2 = 0; | |
8207 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8208 | ||
8209 | self = self; | |
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8211 | return NULL; | |
8212 | if (_argo0) { | |
8213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
8216 | return NULL; | |
8217 | } | |
8218 | } | |
8219 | { | |
8220 | if (!PyString_Check(_obj2)) { | |
8221 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8222 | return NULL; | |
8223 | } | |
8224 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8225 | } | |
8226 | { | |
8227 | wxPy_BEGIN_ALLOW_THREADS; | |
8228 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
8229 | ||
8230 | wxPy_END_ALLOW_THREADS; | |
8231 | } Py_INCREF(Py_None); | |
8232 | _resultobj = Py_None; | |
8233 | { | |
8234 | if (_obj2) | |
8235 | delete _arg2; | |
8236 | } | |
8237 | return _resultobj; | |
8238 | } | |
8239 | ||
8240 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8241 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject * _resultobj; | |
8243 | wxString * _result; | |
8244 | wxMenuBar * _arg0; | |
8245 | int _arg1; | |
8246 | PyObject * _argo0 = 0; | |
8247 | char *_kwnames[] = { "self","id", NULL }; | |
8248 | ||
8249 | self = self; | |
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8251 | return NULL; | |
8252 | if (_argo0) { | |
8253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8256 | return NULL; | |
8257 | } | |
8258 | } | |
8259 | { | |
8260 | wxPy_BEGIN_ALLOW_THREADS; | |
8261 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | |
8262 | ||
8263 | wxPy_END_ALLOW_THREADS; | |
8264 | }{ | |
8265 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8266 | } | |
8267 | { | |
8268 | delete _result; | |
8269 | } | |
8270 | return _resultobj; | |
8271 | } | |
8272 | ||
8273 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8274 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8275 | PyObject * _resultobj; | |
8276 | wxMenuItem * _result; | |
8277 | wxMenu * _arg0 = (wxMenu *) NULL; | |
8278 | int _arg1 = (int ) wxID_SEPARATOR; | |
8279 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8280 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
8281 | bool _arg4 = (bool ) FALSE; | |
8282 | wxMenu * _arg5 = (wxMenu *) NULL; | |
8283 | PyObject * _argo0 = 0; | |
8284 | PyObject * _obj2 = 0; | |
8285 | PyObject * _obj3 = 0; | |
8286 | int tempbool4 = (int) FALSE; | |
8287 | PyObject * _argo5 = 0; | |
8288 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
8289 | char _ptemp[128]; | |
8290 | ||
8291 | self = self; | |
8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) | |
8293 | return NULL; | |
8294 | if (_argo0) { | |
8295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
8298 | return NULL; | |
8299 | } | |
8300 | } | |
8301 | if (_obj2) | |
8302 | { | |
8303 | if (!PyString_Check(_obj2)) { | |
8304 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8305 | return NULL; | |
8306 | } | |
8307 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
8308 | } | |
8309 | if (_obj3) | |
8310 | { | |
8311 | if (!PyString_Check(_obj3)) { | |
8312 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8313 | return NULL; | |
8314 | } | |
8315 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
8316 | } | |
8317 | _arg4 = (bool ) tempbool4; | |
8318 | if (_argo5) { | |
8319 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8320 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
8321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8322 | return NULL; | |
8323 | } | |
8324 | } | |
8325 | { | |
8326 | wxPy_BEGIN_ALLOW_THREADS; | |
8327 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
8328 | ||
8329 | wxPy_END_ALLOW_THREADS; | |
8330 | } if (_result) { | |
8331 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
8332 | _resultobj = Py_BuildValue("s",_ptemp); | |
8333 | } else { | |
8334 | Py_INCREF(Py_None); | |
8335 | _resultobj = Py_None; | |
8336 | } | |
8337 | { | |
8338 | if (_obj2) | |
8339 | delete _arg2; | |
8340 | } | |
8341 | { | |
8342 | if (_obj3) | |
8343 | delete _arg3; | |
8344 | } | |
8345 | return _resultobj; | |
8346 | } | |
8347 | ||
8348 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) | |
8349 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8350 | PyObject * _resultobj; | |
8351 | wxMenu * _result; | |
8352 | wxMenuItem * _arg0; | |
8353 | PyObject * _argo0 = 0; | |
8354 | char *_kwnames[] = { "self", NULL }; | |
8355 | char _ptemp[128]; | |
8356 | ||
8357 | self = self; | |
8358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) | |
8359 | return NULL; | |
8360 | if (_argo0) { | |
8361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); | |
8364 | return NULL; | |
8365 | } | |
8366 | } | |
8367 | { | |
8368 | wxPy_BEGIN_ALLOW_THREADS; | |
8369 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); | |
8370 | ||
8371 | wxPy_END_ALLOW_THREADS; | |
8372 | } if (_result) { | |
8373 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8374 | _resultobj = Py_BuildValue("s",_ptemp); | |
8375 | } else { | |
8376 | Py_INCREF(Py_None); | |
8377 | _resultobj = Py_None; | |
8378 | } | |
8379 | return _resultobj; | |
8380 | } | |
8381 | ||
8382 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
8383 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8384 | PyObject * _resultobj; | |
8385 | wxMenuItem * _arg0; | |
8386 | int _arg1; | |
8387 | PyObject * _argo0 = 0; | |
8388 | char *_kwnames[] = { "self","id", NULL }; | |
8389 | ||
8390 | self = self; | |
8391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) | |
8392 | return NULL; | |
8393 | if (_argo0) { | |
8394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); | |
8397 | return NULL; | |
8398 | } | |
8399 | } | |
8400 | { | |
8401 | wxPy_BEGIN_ALLOW_THREADS; | |
8402 | wxMenuItem_SetId(_arg0,_arg1); | |
8403 | ||
8404 | wxPy_END_ALLOW_THREADS; | |
8405 | } Py_INCREF(Py_None); | |
8406 | _resultobj = Py_None; | |
8407 | return _resultobj; | |
8408 | } | |
8409 | ||
8410 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
8411 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8412 | PyObject * _resultobj; | |
8413 | int _result; | |
8414 | wxMenuItem * _arg0; | |
8415 | PyObject * _argo0 = 0; | |
8416 | char *_kwnames[] = { "self", NULL }; | |
8417 | ||
8418 | self = self; | |
8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) | |
8420 | return NULL; | |
8421 | if (_argo0) { | |
8422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); | |
8425 | return NULL; | |
8426 | } | |
8427 | } | |
8428 | { | |
8429 | wxPy_BEGIN_ALLOW_THREADS; | |
8430 | _result = (int )wxMenuItem_GetId(_arg0); | |
8431 | ||
8432 | wxPy_END_ALLOW_THREADS; | |
8433 | } _resultobj = Py_BuildValue("i",_result); | |
8434 | return _resultobj; | |
8435 | } | |
8436 | ||
8437 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
8438 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8439 | PyObject * _resultobj; | |
8440 | bool _result; | |
8441 | wxMenuItem * _arg0; | |
8442 | PyObject * _argo0 = 0; | |
8443 | char *_kwnames[] = { "self", NULL }; | |
8444 | ||
8445 | self = self; | |
8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) | |
8447 | return NULL; | |
8448 | if (_argo0) { | |
8449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); | |
8452 | return NULL; | |
8453 | } | |
8454 | } | |
8455 | { | |
8456 | wxPy_BEGIN_ALLOW_THREADS; | |
8457 | _result = (bool )wxMenuItem_IsSeparator(_arg0); | |
8458 | ||
8459 | wxPy_END_ALLOW_THREADS; | |
8460 | } _resultobj = Py_BuildValue("i",_result); | |
8461 | return _resultobj; | |
8462 | } | |
8463 | ||
8464 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
8465 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8466 | PyObject * _resultobj; | |
8467 | wxMenuItem * _arg0; | |
8468 | wxString * _arg1; | |
8469 | PyObject * _argo0 = 0; | |
8470 | PyObject * _obj1 = 0; | |
8471 | char *_kwnames[] = { "self","str", NULL }; | |
8472 | ||
8473 | self = self; | |
8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) | |
8475 | return NULL; | |
8476 | if (_argo0) { | |
8477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); | |
8480 | return NULL; | |
8481 | } | |
8482 | } | |
8483 | { | |
8484 | if (!PyString_Check(_obj1)) { | |
8485 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8486 | return NULL; | |
8487 | } | |
8488 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
8489 | } | |
8490 | { | |
8491 | wxPy_BEGIN_ALLOW_THREADS; | |
8492 | wxMenuItem_SetText(_arg0,*_arg1); | |
8493 | ||
8494 | wxPy_END_ALLOW_THREADS; | |
8495 | } Py_INCREF(Py_None); | |
8496 | _resultobj = Py_None; | |
8497 | { | |
8498 | if (_obj1) | |
8499 | delete _arg1; | |
8500 | } | |
8501 | return _resultobj; | |
8502 | } | |
8503 | ||
8504 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
8505 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject * _resultobj; | |
8507 | wxString * _result; | |
8508 | wxMenuItem * _arg0; | |
8509 | PyObject * _argo0 = 0; | |
8510 | char *_kwnames[] = { "self", NULL }; | |
8511 | ||
8512 | self = self; | |
8513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) | |
8514 | return NULL; | |
8515 | if (_argo0) { | |
8516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); | |
8519 | return NULL; | |
8520 | } | |
8521 | } | |
8522 | { | |
8523 | wxPy_BEGIN_ALLOW_THREADS; | |
8524 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); | |
8525 | ||
8526 | wxPy_END_ALLOW_THREADS; | |
8527 | }{ | |
8528 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8529 | } | |
8530 | { | |
8531 | delete _result; | |
8532 | } | |
8533 | return _resultobj; | |
8534 | } | |
8535 | ||
8536 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) | |
8537 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8538 | PyObject * _resultobj; | |
8539 | wxString * _result; | |
8540 | wxMenuItem * _arg0; | |
8541 | PyObject * _argo0 = 0; | |
8542 | char *_kwnames[] = { "self", NULL }; | |
8543 | ||
8544 | self = self; | |
8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) | |
8546 | return NULL; | |
8547 | if (_argo0) { | |
8548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); | |
8551 | return NULL; | |
8552 | } | |
8553 | } | |
8554 | { | |
8555 | wxPy_BEGIN_ALLOW_THREADS; | |
8556 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); | |
8557 | _result = (wxString *) &_result_ref; | |
8558 | ||
8559 | wxPy_END_ALLOW_THREADS; | |
8560 | }{ | |
8561 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8562 | } | |
8563 | return _resultobj; | |
8564 | } | |
8565 | ||
8566 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) | |
8567 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8568 | PyObject * _resultobj; | |
8569 | wxMenuItem * _arg0; | |
8570 | bool _arg1; | |
8571 | PyObject * _argo0 = 0; | |
8572 | int tempbool1; | |
8573 | char *_kwnames[] = { "self","checkable", NULL }; | |
8574 | ||
8575 | self = self; | |
8576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) | |
8577 | return NULL; | |
8578 | if (_argo0) { | |
8579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); | |
8582 | return NULL; | |
8583 | } | |
8584 | } | |
8585 | _arg1 = (bool ) tempbool1; | |
8586 | { | |
8587 | wxPy_BEGIN_ALLOW_THREADS; | |
8588 | wxMenuItem_SetCheckable(_arg0,_arg1); | |
8589 | ||
8590 | wxPy_END_ALLOW_THREADS; | |
8591 | } Py_INCREF(Py_None); | |
8592 | _resultobj = Py_None; | |
8593 | return _resultobj; | |
8594 | } | |
8595 | ||
8596 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
8597 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8598 | PyObject * _resultobj; | |
8599 | bool _result; | |
8600 | wxMenuItem * _arg0; | |
8601 | PyObject * _argo0 = 0; | |
8602 | char *_kwnames[] = { "self", NULL }; | |
8603 | ||
8604 | self = self; | |
8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) | |
8606 | return NULL; | |
8607 | if (_argo0) { | |
8608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); | |
8611 | return NULL; | |
8612 | } | |
8613 | } | |
8614 | { | |
8615 | wxPy_BEGIN_ALLOW_THREADS; | |
8616 | _result = (bool )wxMenuItem_IsCheckable(_arg0); | |
8617 | ||
8618 | wxPy_END_ALLOW_THREADS; | |
8619 | } _resultobj = Py_BuildValue("i",_result); | |
8620 | return _resultobj; | |
8621 | } | |
8622 | ||
8623 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) | |
8624 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8625 | PyObject * _resultobj; | |
8626 | bool _result; | |
8627 | wxMenuItem * _arg0; | |
8628 | PyObject * _argo0 = 0; | |
8629 | char *_kwnames[] = { "self", NULL }; | |
8630 | ||
8631 | self = self; | |
8632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) | |
8633 | return NULL; | |
8634 | if (_argo0) { | |
8635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); | |
8638 | return NULL; | |
8639 | } | |
8640 | } | |
8641 | { | |
8642 | wxPy_BEGIN_ALLOW_THREADS; | |
8643 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); | |
8644 | ||
8645 | wxPy_END_ALLOW_THREADS; | |
8646 | } _resultobj = Py_BuildValue("i",_result); | |
8647 | return _resultobj; | |
8648 | } | |
8649 | ||
8650 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) | |
8651 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8652 | PyObject * _resultobj; | |
8653 | wxMenuItem * _arg0; | |
8654 | wxMenu * _arg1; | |
8655 | PyObject * _argo0 = 0; | |
8656 | PyObject * _argo1 = 0; | |
8657 | char *_kwnames[] = { "self","menu", NULL }; | |
8658 | ||
8659 | self = self; | |
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) | |
8661 | return NULL; | |
8662 | if (_argo0) { | |
8663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); | |
8666 | return NULL; | |
8667 | } | |
8668 | } | |
8669 | if (_argo1) { | |
8670 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8671 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
8673 | return NULL; | |
8674 | } | |
8675 | } | |
8676 | { | |
8677 | wxPy_BEGIN_ALLOW_THREADS; | |
8678 | wxMenuItem_SetSubMenu(_arg0,_arg1); | |
8679 | ||
8680 | wxPy_END_ALLOW_THREADS; | |
8681 | } Py_INCREF(Py_None); | |
8682 | _resultobj = Py_None; | |
8683 | return _resultobj; | |
8684 | } | |
8685 | ||
8686 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
8687 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8688 | PyObject * _resultobj; | |
8689 | wxMenu * _result; | |
8690 | wxMenuItem * _arg0; | |
8691 | PyObject * _argo0 = 0; | |
8692 | char *_kwnames[] = { "self", NULL }; | |
8693 | char _ptemp[128]; | |
8694 | ||
8695 | self = self; | |
8696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) | |
8697 | return NULL; | |
8698 | if (_argo0) { | |
8699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); | |
8702 | return NULL; | |
8703 | } | |
8704 | } | |
8705 | { | |
8706 | wxPy_BEGIN_ALLOW_THREADS; | |
8707 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
8708 | ||
8709 | wxPy_END_ALLOW_THREADS; | |
8710 | } if (_result) { | |
8711 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8712 | _resultobj = Py_BuildValue("s",_ptemp); | |
8713 | } else { | |
8714 | Py_INCREF(Py_None); | |
8715 | _resultobj = Py_None; | |
8716 | } | |
8717 | return _resultobj; | |
8718 | } | |
8719 | ||
8720 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8721 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8722 | PyObject * _resultobj; | |
8723 | wxMenuItem * _arg0; | |
8724 | bool _arg1 = (bool ) TRUE; | |
8725 | PyObject * _argo0 = 0; | |
8726 | int tempbool1 = (int) TRUE; | |
8727 | char *_kwnames[] = { "self","enable", NULL }; | |
8728 | ||
8729 | self = self; | |
8730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
8731 | return NULL; | |
8732 | if (_argo0) { | |
8733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
8736 | return NULL; | |
8737 | } | |
8738 | } | |
8739 | _arg1 = (bool ) tempbool1; | |
8740 | { | |
8741 | wxPy_BEGIN_ALLOW_THREADS; | |
8742 | wxMenuItem_Enable(_arg0,_arg1); | |
8743 | ||
8744 | wxPy_END_ALLOW_THREADS; | |
8745 | } Py_INCREF(Py_None); | |
8746 | _resultobj = Py_None; | |
8747 | return _resultobj; | |
8748 | } | |
8749 | ||
8750 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
8751 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8752 | PyObject * _resultobj; | |
8753 | bool _result; | |
8754 | wxMenuItem * _arg0; | |
8755 | PyObject * _argo0 = 0; | |
8756 | char *_kwnames[] = { "self", NULL }; | |
8757 | ||
8758 | self = self; | |
8759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) | |
8760 | return NULL; | |
8761 | if (_argo0) { | |
8762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); | |
8765 | return NULL; | |
8766 | } | |
8767 | } | |
8768 | { | |
8769 | wxPy_BEGIN_ALLOW_THREADS; | |
8770 | _result = (bool )wxMenuItem_IsEnabled(_arg0); | |
8771 | ||
8772 | wxPy_END_ALLOW_THREADS; | |
8773 | } _resultobj = Py_BuildValue("i",_result); | |
8774 | return _resultobj; | |
8775 | } | |
8776 | ||
8777 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
8778 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8779 | PyObject * _resultobj; | |
8780 | wxMenuItem * _arg0; | |
8781 | bool _arg1 = (bool ) TRUE; | |
8782 | PyObject * _argo0 = 0; | |
8783 | int tempbool1 = (int) TRUE; | |
8784 | char *_kwnames[] = { "self","check", NULL }; | |
8785 | ||
8786 | self = self; | |
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) | |
8788 | return NULL; | |
8789 | if (_argo0) { | |
8790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); | |
8793 | return NULL; | |
8794 | } | |
8795 | } | |
8796 | _arg1 = (bool ) tempbool1; | |
8797 | { | |
8798 | wxPy_BEGIN_ALLOW_THREADS; | |
8799 | wxMenuItem_Check(_arg0,_arg1); | |
8800 | ||
8801 | wxPy_END_ALLOW_THREADS; | |
8802 | } Py_INCREF(Py_None); | |
8803 | _resultobj = Py_None; | |
8804 | return _resultobj; | |
8805 | } | |
8806 | ||
8807 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
8808 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8809 | PyObject * _resultobj; | |
8810 | bool _result; | |
8811 | wxMenuItem * _arg0; | |
8812 | PyObject * _argo0 = 0; | |
8813 | char *_kwnames[] = { "self", NULL }; | |
8814 | ||
8815 | self = self; | |
8816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) | |
8817 | return NULL; | |
8818 | if (_argo0) { | |
8819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); | |
8822 | return NULL; | |
8823 | } | |
8824 | } | |
8825 | { | |
8826 | wxPy_BEGIN_ALLOW_THREADS; | |
8827 | _result = (bool )wxMenuItem_IsChecked(_arg0); | |
8828 | ||
8829 | wxPy_END_ALLOW_THREADS; | |
8830 | } _resultobj = Py_BuildValue("i",_result); | |
8831 | return _resultobj; | |
8832 | } | |
8833 | ||
8834 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) | |
8835 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8836 | PyObject * _resultobj; | |
8837 | wxMenuItem * _arg0; | |
8838 | PyObject * _argo0 = 0; | |
8839 | char *_kwnames[] = { "self", NULL }; | |
8840 | ||
8841 | self = self; | |
8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) | |
8843 | return NULL; | |
8844 | if (_argo0) { | |
8845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); | |
8848 | return NULL; | |
8849 | } | |
8850 | } | |
8851 | { | |
8852 | wxPy_BEGIN_ALLOW_THREADS; | |
8853 | wxMenuItem_Toggle(_arg0); | |
8854 | ||
8855 | wxPy_END_ALLOW_THREADS; | |
8856 | } Py_INCREF(Py_None); | |
8857 | _resultobj = Py_None; | |
8858 | return _resultobj; | |
8859 | } | |
8860 | ||
8861 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
8862 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8863 | PyObject * _resultobj; | |
8864 | wxMenuItem * _arg0; | |
8865 | wxString * _arg1; | |
8866 | PyObject * _argo0 = 0; | |
8867 | PyObject * _obj1 = 0; | |
8868 | char *_kwnames[] = { "self","str", NULL }; | |
8869 | ||
8870 | self = self; | |
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) | |
8872 | return NULL; | |
8873 | if (_argo0) { | |
8874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); | |
8877 | return NULL; | |
8878 | } | |
8879 | } | |
8880 | { | |
8881 | if (!PyString_Check(_obj1)) { | |
8882 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8883 | return NULL; | |
8884 | } | |
8885 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
8886 | } | |
8887 | { | |
8888 | wxPy_BEGIN_ALLOW_THREADS; | |
8889 | wxMenuItem_SetHelp(_arg0,*_arg1); | |
8890 | ||
8891 | wxPy_END_ALLOW_THREADS; | |
8892 | } Py_INCREF(Py_None); | |
8893 | _resultobj = Py_None; | |
8894 | { | |
8895 | if (_obj1) | |
8896 | delete _arg1; | |
8897 | } | |
8898 | return _resultobj; | |
8899 | } | |
8900 | ||
8901 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) | |
8902 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8903 | PyObject * _resultobj; | |
8904 | wxString * _result; | |
8905 | wxMenuItem * _arg0; | |
8906 | PyObject * _argo0 = 0; | |
8907 | char *_kwnames[] = { "self", NULL }; | |
8908 | ||
8909 | self = self; | |
8910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) | |
8911 | return NULL; | |
8912 | if (_argo0) { | |
8913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); | |
8916 | return NULL; | |
8917 | } | |
8918 | } | |
8919 | { | |
8920 | wxPy_BEGIN_ALLOW_THREADS; | |
8921 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); | |
8922 | _result = (wxString *) &_result_ref; | |
8923 | ||
8924 | wxPy_END_ALLOW_THREADS; | |
8925 | }{ | |
8926 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8927 | } | |
8928 | return _resultobj; | |
8929 | } | |
8930 | ||
8931 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) | |
8932 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8933 | PyObject * _resultobj; | |
8934 | wxAcceleratorEntry * _result; | |
8935 | wxMenuItem * _arg0; | |
8936 | PyObject * _argo0 = 0; | |
8937 | char *_kwnames[] = { "self", NULL }; | |
8938 | char _ptemp[128]; | |
8939 | ||
8940 | self = self; | |
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) | |
8942 | return NULL; | |
8943 | if (_argo0) { | |
8944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); | |
8947 | return NULL; | |
8948 | } | |
8949 | } | |
8950 | { | |
8951 | wxPy_BEGIN_ALLOW_THREADS; | |
8952 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); | |
8953 | ||
8954 | wxPy_END_ALLOW_THREADS; | |
8955 | } if (_result) { | |
8956 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
8957 | _resultobj = Py_BuildValue("s",_ptemp); | |
8958 | } else { | |
8959 | Py_INCREF(Py_None); | |
8960 | _resultobj = Py_None; | |
8961 | } | |
8962 | return _resultobj; | |
8963 | } | |
8964 | ||
8965 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) | |
8966 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8967 | PyObject * _resultobj; | |
8968 | wxMenuItem * _arg0; | |
8969 | wxAcceleratorEntry * _arg1; | |
8970 | PyObject * _argo0 = 0; | |
8971 | PyObject * _argo1 = 0; | |
8972 | char *_kwnames[] = { "self","accel", NULL }; | |
8973 | ||
8974 | self = self; | |
8975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) | |
8976 | return NULL; | |
8977 | if (_argo0) { | |
8978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); | |
8981 | return NULL; | |
8982 | } | |
8983 | } | |
8984 | if (_argo1) { | |
8985 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8986 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { | |
8987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
8988 | return NULL; | |
8989 | } | |
8990 | } | |
8991 | { | |
8992 | wxPy_BEGIN_ALLOW_THREADS; | |
8993 | wxMenuItem_SetAccel(_arg0,_arg1); | |
8994 | ||
8995 | wxPy_END_ALLOW_THREADS; | |
8996 | } Py_INCREF(Py_None); | |
8997 | _resultobj = Py_None; | |
8998 | return _resultobj; | |
8999 | } | |
9000 | ||
9001 | static PyMethodDef windowscMethods[] = { | |
9002 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9003 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
9004 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9005 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
9006 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9007 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
9008 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
9009 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9010 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9011 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
9012 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
9013 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
9014 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
9015 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
9016 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9017 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9018 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9019 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9020 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9021 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9022 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9023 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9024 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9025 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9026 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9027 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9028 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9029 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
9030 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
9031 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9032 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9033 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
9034 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9035 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
9036 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
9037 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9038 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
9039 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
9040 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9041 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9042 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
9043 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
9044 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9045 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
9046 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
9047 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
9048 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9049 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
9050 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9051 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9052 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
9053 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9054 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
9055 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
9056 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9057 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
9058 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
9059 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
9060 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9061 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9062 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
9063 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9064 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
9065 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9066 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9067 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9068 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9069 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
9070 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
9071 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9072 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9073 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
9074 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
9075 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
9076 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9077 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
9078 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
9079 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
9080 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
9081 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
9082 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
9083 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, | |
9084 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
9085 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9086 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
9087 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
9088 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
9089 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
9090 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9091 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
9092 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9093 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
9094 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
9095 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
9096 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
9097 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9098 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
9099 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
9100 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
9101 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9102 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
9103 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
9104 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
9105 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
9106 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9107 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
9108 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9109 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
9110 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9111 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
9112 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9113 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
9114 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
9115 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
9116 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
9117 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
9118 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
9119 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
9120 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
9121 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
9122 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
9123 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9124 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
9125 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
9126 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9127 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
9128 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9129 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9130 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9131 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
9132 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
9133 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
9134 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
9135 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
9136 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9137 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9138 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9139 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
9140 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9141 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
9142 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
9143 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9144 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9145 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
9146 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9147 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
9148 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
9149 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9150 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9151 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9152 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
9153 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
9154 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
9155 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
9156 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9157 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
9158 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
9159 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
9160 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
9161 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
9162 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
9163 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
9164 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
9165 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
9166 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
9167 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
9168 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
9169 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
9170 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9171 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9172 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | |
9173 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
9174 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
9175 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
9176 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
9177 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
9178 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
9179 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
9180 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
9181 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
9182 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
9183 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
9184 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9185 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
9186 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
9187 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
9188 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9189 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9190 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
9191 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9192 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9193 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
9194 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
9195 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9196 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
9197 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
9198 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
9199 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
9200 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9201 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
9202 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
9203 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
9204 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9205 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9206 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9207 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
9208 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
9209 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9210 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9211 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
9212 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
9213 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
9214 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
9215 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
9216 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
9217 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
9218 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9219 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
9220 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
9221 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
9222 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
9223 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
9224 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
9225 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9226 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
9227 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
9228 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9229 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9230 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
9231 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
9232 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
9233 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
9234 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
9235 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
9236 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9237 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
9238 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9239 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
9240 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
9241 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
9242 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
9243 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
9244 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9245 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9246 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
9247 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
9248 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9249 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9250 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
9251 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
9252 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
9253 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
9254 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
9255 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
9256 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
9257 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
9258 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
9259 | { NULL, NULL } | |
9260 | }; | |
9261 | #ifdef __cplusplus | |
9262 | } | |
9263 | #endif | |
9264 | /* | |
9265 | * This table is used by the pointer type-checker | |
9266 | */ | |
9267 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
9268 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
9269 | { "_signed_long","_long",0}, | |
9270 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, | |
9271 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
9272 | { "_wxPrintQuality","_wxCoord",0}, | |
9273 | { "_wxPrintQuality","_int",0}, | |
9274 | { "_wxPrintQuality","_signed_int",0}, | |
9275 | { "_wxPrintQuality","_unsigned_int",0}, | |
9276 | { "_wxPrintQuality","_wxWindowID",0}, | |
9277 | { "_wxPrintQuality","_uint",0}, | |
9278 | { "_wxPrintQuality","_EBool",0}, | |
9279 | { "_wxPrintQuality","_size_t",0}, | |
9280 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, | |
9281 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
9282 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, | |
9283 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
9284 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9285 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9286 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9287 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9288 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9289 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9290 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9291 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9292 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9293 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9294 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9295 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9296 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9297 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9298 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9299 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9300 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
9301 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
9302 | { "_wxCursor","_class_wxCursor",0}, | |
9303 | { "_wxMask","_class_wxMask",0}, | |
9304 | { "_wxPen","_class_wxPen",0}, | |
9305 | { "_byte","_unsigned_char",0}, | |
9306 | { "_wxDataObject","_class_wxDataObject",0}, | |
9307 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, | |
9308 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
9309 | { "_long","_unsigned_long",0}, | |
9310 | { "_long","_signed_long",0}, | |
9311 | { "_wxImageList","_class_wxImageList",0}, | |
9312 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, | |
9313 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
9314 | { "_class_wxClipboard","_wxClipboard",0}, | |
9315 | { "_wxDC","_class_wxDC",0}, | |
9316 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, | |
9317 | { "_size_t","_wxCoord",0}, | |
9318 | { "_size_t","_wxPrintQuality",0}, | |
9319 | { "_size_t","_unsigned_int",0}, | |
9320 | { "_size_t","_int",0}, | |
9321 | { "_size_t","_wxWindowID",0}, | |
9322 | { "_size_t","_uint",0}, | |
9323 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
9324 | { "_wxPrinterDC","_class_wxPrinterDC",0}, | |
9325 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
9326 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9327 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9328 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9329 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9330 | { "_wxPanel","_class_wxPanel",0}, | |
9331 | { "_class_wxMask","_wxMask",0}, | |
9332 | { "_wxTextDataObject","_class_wxTextDataObject",0}, | |
9333 | { "_wxColour","_class_wxColour",0}, | |
9334 | { "_class_wxDialog","_wxDialog",0}, | |
9335 | { "_class_wxFileDataObject","_wxFileDataObject",0}, | |
9336 | { "_class_wxDataObject","_wxDataObject",0}, | |
9337 | { "_wxBrush","_class_wxBrush",0}, | |
9338 | { "_wxDataFormat","_class_wxDataFormat",0}, | |
9339 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
9340 | { "_uint","_wxCoord",0}, | |
9341 | { "_uint","_wxPrintQuality",0}, | |
9342 | { "_uint","_size_t",0}, | |
9343 | { "_uint","_unsigned_int",0}, | |
9344 | { "_uint","_int",0}, | |
9345 | { "_uint","_wxWindowID",0}, | |
9346 | { "_wxChar","_char",0}, | |
9347 | { "_wxPyValidator","_class_wxPyValidator",0}, | |
9348 | { "_wxRect","_class_wxRect",0}, | |
9349 | { "_wxPoint","_class_wxPoint",0}, | |
9350 | { "_char","_wxChar",0}, | |
9351 | { "_wxBitmap","_class_wxBitmap",0}, | |
9352 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
9353 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
9354 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9355 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9356 | { "_class_wxValidator","_wxValidator",0}, | |
9357 | { "_wxDropTarget","_class_wxDropTarget",0}, | |
9358 | { "_EBool","_wxCoord",0}, | |
9359 | { "_EBool","_wxPrintQuality",0}, | |
9360 | { "_EBool","_signed_int",0}, | |
9361 | { "_EBool","_int",0}, | |
9362 | { "_EBool","_wxWindowID",0}, | |
9363 | { "_class_wxRegion","_wxRegion",0}, | |
9364 | { "_class_wxDataFormat","_wxDataFormat",0}, | |
9365 | { "_wxFont","_class_wxFont",0}, | |
9366 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, | |
9367 | { "_unsigned_long","_long",0}, | |
9368 | { "_class_wxRect","_wxRect",0}, | |
9369 | { "_class_wxDC","_wxDC",0}, | |
9370 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
9371 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9372 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
9373 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
9374 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
9375 | { "_class_wxPanel","_wxPanel",0}, | |
9376 | { "_signed_int","_wxCoord",0}, | |
9377 | { "_signed_int","_wxPrintQuality",0}, | |
9378 | { "_signed_int","_EBool",0}, | |
9379 | { "_signed_int","_wxWindowID",0}, | |
9380 | { "_signed_int","_int",0}, | |
9381 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
9382 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
9383 | { "_class_wxTextDataObject","_wxTextDataObject",0}, | |
9384 | { "_wxMenu","_class_wxMenu",0}, | |
9385 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
9386 | { "_WXTYPE","_short",0}, | |
9387 | { "_WXTYPE","_signed_short",0}, | |
9388 | { "_WXTYPE","_unsigned_short",0}, | |
9389 | { "_class_wxDropTarget","_wxDropTarget",0}, | |
9390 | { "_class_wxBrush","_wxBrush",0}, | |
9391 | { "_unsigned_short","_WXTYPE",0}, | |
9392 | { "_unsigned_short","_short",0}, | |
9393 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9394 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9395 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9396 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9397 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9398 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9399 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9400 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9401 | { "_class_wxWindow","_wxWindow",0}, | |
9402 | { "_class_wxFont","_wxFont",0}, | |
9403 | { "_wxClipboard","_class_wxClipboard",0}, | |
9404 | { "_class_wxPyValidator","_wxPyValidator",0}, | |
9405 | { "_wxBusyInfo","_class_wxBusyInfo",0}, | |
9406 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
9407 | { "_wxClientDC","_class_wxClientDC",0}, | |
9408 | { "_class_wxPoint","_wxPoint",0}, | |
9409 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
9410 | { "_signed_short","_WXTYPE",0}, | |
9411 | { "_signed_short","_short",0}, | |
9412 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
9413 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, | |
9414 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
9415 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
9416 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
9417 | { "_class_wxCursor","_wxCursor",0}, | |
9418 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, | |
9419 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
9420 | { "_unsigned_char","_byte",0}, | |
9421 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
9422 | { "_class_wxMenu","_wxMenu",0}, | |
9423 | { "_unsigned_int","_wxCoord",0}, | |
9424 | { "_unsigned_int","_wxPrintQuality",0}, | |
9425 | { "_unsigned_int","_size_t",0}, | |
9426 | { "_unsigned_int","_uint",0}, | |
9427 | { "_unsigned_int","_wxWindowID",0}, | |
9428 | { "_unsigned_int","_int",0}, | |
9429 | { "_wxIcon","_class_wxIcon",0}, | |
9430 | { "_wxDialog","_class_wxDialog",0}, | |
9431 | { "_class_wxPen","_wxPen",0}, | |
9432 | { "_short","_WXTYPE",0}, | |
9433 | { "_short","_unsigned_short",0}, | |
9434 | { "_short","_signed_short",0}, | |
9435 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, | |
9436 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
9437 | { "_class_wxImageList","_wxImageList",0}, | |
9438 | { "_wxWindowID","_wxCoord",0}, | |
9439 | { "_wxWindowID","_wxPrintQuality",0}, | |
9440 | { "_wxWindowID","_size_t",0}, | |
9441 | { "_wxWindowID","_EBool",0}, | |
9442 | { "_wxWindowID","_uint",0}, | |
9443 | { "_wxWindowID","_int",0}, | |
9444 | { "_wxWindowID","_signed_int",0}, | |
9445 | { "_wxWindowID","_unsigned_int",0}, | |
9446 | { "_int","_wxCoord",0}, | |
9447 | { "_int","_wxPrintQuality",0}, | |
9448 | { "_int","_size_t",0}, | |
9449 | { "_int","_EBool",0}, | |
9450 | { "_int","_uint",0}, | |
9451 | { "_int","_wxWindowID",0}, | |
9452 | { "_int","_unsigned_int",0}, | |
9453 | { "_int","_signed_int",0}, | |
9454 | { "_wxSize","_class_wxSize",0}, | |
9455 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
9456 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
9457 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, | |
9458 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
9459 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
9460 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9461 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
9462 | { "_wxValidator","_class_wxValidator",0}, | |
9463 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
9464 | { "_class_wxIcon","_wxIcon",0}, | |
9465 | { "_class_wxColour","_wxColour",0}, | |
9466 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
9467 | { "_wxPalette","_class_wxPalette",0}, | |
9468 | { "_wxCoord","_int",0}, | |
9469 | { "_wxCoord","_signed_int",0}, | |
9470 | { "_wxCoord","_unsigned_int",0}, | |
9471 | { "_wxCoord","_wxWindowID",0}, | |
9472 | { "_wxCoord","_uint",0}, | |
9473 | { "_wxCoord","_EBool",0}, | |
9474 | { "_wxCoord","_size_t",0}, | |
9475 | { "_wxCoord","_wxPrintQuality",0}, | |
9476 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
9477 | { "_wxRegion","_class_wxRegion",0}, | |
9478 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, | |
9479 | { "_class_wxBusyInfo","_wxBusyInfo",0}, | |
9480 | { "_class_wxClientDC","_wxClientDC",0}, | |
9481 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, | |
9482 | { "_class_wxSize","_wxSize",0}, | |
9483 | { "_class_wxBitmap","_wxBitmap",0}, | |
9484 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
9485 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, | |
9486 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
9487 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9488 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
9489 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9490 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
9491 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9492 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
9493 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9494 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
9495 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9496 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
9497 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9498 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
9499 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9500 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
9501 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9502 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
9503 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
9504 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
9505 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
9506 | { "_class_wxPalette","_wxPalette",0}, | |
9507 | { "_wxFileDataObject","_class_wxFileDataObject",0}, | |
9508 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
9509 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9510 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
9511 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9512 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
9513 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
9514 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
9515 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
9516 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
9517 | { "_wxWindow","_class_wxWindow",0}, | |
9518 | {0,0,0}}; | |
9519 | ||
9520 | static PyObject *SWIG_globals; | |
9521 | #ifdef __cplusplus | |
9522 | extern "C" | |
9523 | #endif | |
9524 | SWIGEXPORT(void) initwindowsc() { | |
9525 | PyObject *m, *d; | |
9526 | SWIG_globals = SWIG_newvarlink(); | |
9527 | m = Py_InitModule("windowsc", windowscMethods); | |
9528 | d = PyModule_GetDict(m); | |
9529 | { | |
9530 | int i; | |
9531 | for (i = 0; _swig_mapping[i].n1; i++) | |
9532 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9533 | } | |
9534 | } |