]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : gtk/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 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
135 | } | |
136 | // This is very dangerous!!! But is the only way I could find | |
137 | // to squash a memory leak. Currently it is okay, but if the | |
138 | // validator architecture in wxWindows ever changes, problems | |
139 | // could arise. | |
140 | delete self; | |
141 | ||
142 | wxPySaveThread(doSave); | |
143 | return ptr; | |
144 | } | |
145 | ||
146 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
147 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
148 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
149 | ||
150 | PYPRIVATE; | |
151 | // PyObject* m_data; | |
152 | }; | |
153 | ||
154 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
155 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
156 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
157 | ||
158 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
159 | ||
160 | #ifdef __cplusplus | |
161 | extern "C" { | |
162 | #endif | |
163 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
164 | PyObject * _resultobj; | |
165 | bool _result; | |
166 | char *_kwnames[] = { NULL }; | |
167 | ||
168 | self = self; | |
169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
170 | return NULL; | |
171 | { | |
172 | wxPy_BEGIN_ALLOW_THREADS; | |
173 | _result = (bool )wxValidator_IsSilent(); | |
174 | ||
175 | wxPy_END_ALLOW_THREADS; | |
176 | } _resultobj = Py_BuildValue("i",_result); | |
177 | return _resultobj; | |
178 | } | |
179 | ||
180 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
181 | PyObject * _resultobj; | |
182 | int _arg0 = (int ) TRUE; | |
183 | char *_kwnames[] = { "doIt", NULL }; | |
184 | ||
185 | self = self; | |
186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
187 | return NULL; | |
188 | { | |
189 | wxPy_BEGIN_ALLOW_THREADS; | |
190 | wxValidator_SetBellOnError(_arg0); | |
191 | ||
192 | wxPy_END_ALLOW_THREADS; | |
193 | } Py_INCREF(Py_None); | |
194 | _resultobj = Py_None; | |
195 | return _resultobj; | |
196 | } | |
197 | ||
198 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) | |
199 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
200 | PyObject * _resultobj; | |
201 | bool _result; | |
202 | wxEvtHandler * _arg0; | |
203 | wxEvent * _arg1; | |
204 | PyObject * _argo0 = 0; | |
205 | PyObject * _argo1 = 0; | |
206 | char *_kwnames[] = { "self","event", NULL }; | |
207 | ||
208 | self = self; | |
209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
210 | return NULL; | |
211 | if (_argo0) { | |
212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
215 | return NULL; | |
216 | } | |
217 | } | |
218 | if (_argo1) { | |
219 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
220 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
222 | return NULL; | |
223 | } | |
224 | } | |
225 | { | |
226 | wxPy_BEGIN_ALLOW_THREADS; | |
227 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
228 | ||
229 | wxPy_END_ALLOW_THREADS; | |
230 | } _resultobj = Py_BuildValue("i",_result); | |
231 | return _resultobj; | |
232 | } | |
233 | ||
234 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) | |
235 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
236 | PyObject * _resultobj; | |
237 | bool _result; | |
238 | wxEvtHandler * _arg0; | |
239 | PyObject * _argo0 = 0; | |
240 | char *_kwnames[] = { "self", NULL }; | |
241 | ||
242 | self = self; | |
243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
244 | return NULL; | |
245 | if (_argo0) { | |
246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
249 | return NULL; | |
250 | } | |
251 | } | |
252 | { | |
253 | wxPy_BEGIN_ALLOW_THREADS; | |
254 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
255 | ||
256 | wxPy_END_ALLOW_THREADS; | |
257 | } _resultobj = Py_BuildValue("i",_result); | |
258 | return _resultobj; | |
259 | } | |
260 | ||
261 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
262 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
263 | PyObject * _resultobj; | |
264 | wxEvtHandler * _arg0; | |
265 | bool _arg1; | |
266 | PyObject * _argo0 = 0; | |
267 | int tempbool1; | |
268 | char *_kwnames[] = { "self","enabled", NULL }; | |
269 | ||
270 | self = self; | |
271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
272 | return NULL; | |
273 | if (_argo0) { | |
274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
277 | return NULL; | |
278 | } | |
279 | } | |
280 | _arg1 = (bool ) tempbool1; | |
281 | { | |
282 | wxPy_BEGIN_ALLOW_THREADS; | |
283 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
284 | ||
285 | wxPy_END_ALLOW_THREADS; | |
286 | } Py_INCREF(Py_None); | |
287 | _resultobj = Py_None; | |
288 | return _resultobj; | |
289 | } | |
290 | ||
291 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
292 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
293 | PyObject * _resultobj; | |
294 | wxEvtHandler * _result; | |
295 | wxEvtHandler * _arg0; | |
296 | PyObject * _argo0 = 0; | |
297 | char *_kwnames[] = { "self", NULL }; | |
298 | char _ptemp[128]; | |
299 | ||
300 | self = self; | |
301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
302 | return NULL; | |
303 | if (_argo0) { | |
304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
307 | return NULL; | |
308 | } | |
309 | } | |
310 | { | |
311 | wxPy_BEGIN_ALLOW_THREADS; | |
312 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
313 | ||
314 | wxPy_END_ALLOW_THREADS; | |
315 | } if (_result) { | |
316 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
317 | _resultobj = Py_BuildValue("s",_ptemp); | |
318 | } else { | |
319 | Py_INCREF(Py_None); | |
320 | _resultobj = Py_None; | |
321 | } | |
322 | return _resultobj; | |
323 | } | |
324 | ||
325 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
326 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
327 | PyObject * _resultobj; | |
328 | wxEvtHandler * _result; | |
329 | wxEvtHandler * _arg0; | |
330 | PyObject * _argo0 = 0; | |
331 | char *_kwnames[] = { "self", NULL }; | |
332 | char _ptemp[128]; | |
333 | ||
334 | self = self; | |
335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
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_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
341 | return NULL; | |
342 | } | |
343 | } | |
344 | { | |
345 | wxPy_BEGIN_ALLOW_THREADS; | |
346 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
347 | ||
348 | wxPy_END_ALLOW_THREADS; | |
349 | } if (_result) { | |
350 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
351 | _resultobj = Py_BuildValue("s",_ptemp); | |
352 | } else { | |
353 | Py_INCREF(Py_None); | |
354 | _resultobj = Py_None; | |
355 | } | |
356 | return _resultobj; | |
357 | } | |
358 | ||
359 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
360 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
361 | PyObject * _resultobj; | |
362 | wxEvtHandler * _arg0; | |
363 | wxEvtHandler * _arg1; | |
364 | PyObject * _argo0 = 0; | |
365 | PyObject * _argo1 = 0; | |
366 | char *_kwnames[] = { "self","handler", NULL }; | |
367 | ||
368 | self = self; | |
369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
370 | return NULL; | |
371 | if (_argo0) { | |
372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | if (_argo1) { | |
379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
382 | return NULL; | |
383 | } | |
384 | } | |
385 | { | |
386 | wxPy_BEGIN_ALLOW_THREADS; | |
387 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
388 | ||
389 | wxPy_END_ALLOW_THREADS; | |
390 | } Py_INCREF(Py_None); | |
391 | _resultobj = Py_None; | |
392 | return _resultobj; | |
393 | } | |
394 | ||
395 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
396 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
397 | PyObject * _resultobj; | |
398 | wxEvtHandler * _arg0; | |
399 | wxEvtHandler * _arg1; | |
400 | PyObject * _argo0 = 0; | |
401 | PyObject * _argo1 = 0; | |
402 | char *_kwnames[] = { "self","handler", NULL }; | |
403 | ||
404 | self = self; | |
405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
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_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | if (_argo1) { | |
415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | { | |
422 | wxPy_BEGIN_ALLOW_THREADS; | |
423 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
424 | ||
425 | wxPy_END_ALLOW_THREADS; | |
426 | } Py_INCREF(Py_None); | |
427 | _resultobj = Py_None; | |
428 | return _resultobj; | |
429 | } | |
430 | ||
431 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
432 | if (PyCallable_Check(func)) { | |
433 | self->Connect(id, lastId, eventType, | |
434 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
435 | new wxPyCallback(func)); | |
436 | } | |
437 | } | |
438 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
439 | PyObject * _resultobj; | |
440 | wxEvtHandler * _arg0; | |
441 | int _arg1; | |
442 | int _arg2; | |
443 | int _arg3; | |
444 | PyObject * _arg4; | |
445 | PyObject * _argo0 = 0; | |
446 | PyObject * _obj4 = 0; | |
447 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
448 | ||
449 | self = self; | |
450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
451 | return NULL; | |
452 | if (_argo0) { | |
453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
456 | return NULL; | |
457 | } | |
458 | } | |
459 | { | |
460 | _arg4 = _obj4; | |
461 | } | |
462 | { | |
463 | wxPy_BEGIN_ALLOW_THREADS; | |
464 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
465 | ||
466 | wxPy_END_ALLOW_THREADS; | |
467 | } Py_INCREF(Py_None); | |
468 | _resultobj = Py_None; | |
469 | return _resultobj; | |
470 | } | |
471 | ||
472 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { | |
473 | return self->Disconnect(id, lastId, eventType, | |
474 | (wxObjectEventFunction) | |
475 | &wxPyCallback::EventThunker); | |
476 | } | |
477 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
478 | PyObject * _resultobj; | |
479 | bool _result; | |
480 | wxEvtHandler * _arg0; | |
481 | int _arg1; | |
482 | int _arg2 = (int ) -1; | |
483 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
484 | PyObject * _argo0 = 0; | |
485 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
486 | ||
487 | self = self; | |
488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
489 | return NULL; | |
490 | if (_argo0) { | |
491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
494 | return NULL; | |
495 | } | |
496 | } | |
497 | { | |
498 | wxPy_BEGIN_ALLOW_THREADS; | |
499 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
500 | ||
501 | wxPy_END_ALLOW_THREADS; | |
502 | } _resultobj = Py_BuildValue("i",_result); | |
503 | return _resultobj; | |
504 | } | |
505 | ||
506 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { | |
507 | wxValidator *src; | |
508 | wxEvtHandler *dest; | |
509 | src = (wxValidator *) ptr; | |
510 | dest = (wxEvtHandler *) src; | |
511 | return (void *) dest; | |
512 | } | |
513 | ||
514 | #define new_wxValidator() (new wxValidator()) | |
515 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
516 | PyObject * _resultobj; | |
517 | wxValidator * _result; | |
518 | char *_kwnames[] = { NULL }; | |
519 | char _ptemp[128]; | |
520 | ||
521 | self = self; | |
522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
523 | return NULL; | |
524 | { | |
525 | wxPy_BEGIN_ALLOW_THREADS; | |
526 | _result = (wxValidator *)new_wxValidator(); | |
527 | ||
528 | wxPy_END_ALLOW_THREADS; | |
529 | } if (_result) { | |
530 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
531 | _resultobj = Py_BuildValue("s",_ptemp); | |
532 | } else { | |
533 | Py_INCREF(Py_None); | |
534 | _resultobj = Py_None; | |
535 | } | |
536 | return _resultobj; | |
537 | } | |
538 | ||
539 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
540 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
541 | PyObject * _resultobj; | |
542 | wxValidator * _result; | |
543 | wxValidator * _arg0; | |
544 | PyObject * _argo0 = 0; | |
545 | char *_kwnames[] = { "self", NULL }; | |
546 | char _ptemp[128]; | |
547 | ||
548 | self = self; | |
549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
550 | return NULL; | |
551 | if (_argo0) { | |
552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
555 | return NULL; | |
556 | } | |
557 | } | |
558 | { | |
559 | wxPy_BEGIN_ALLOW_THREADS; | |
560 | _result = (wxValidator *)wxValidator_Clone(_arg0); | |
561 | ||
562 | wxPy_END_ALLOW_THREADS; | |
563 | } if (_result) { | |
564 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
565 | _resultobj = Py_BuildValue("s",_ptemp); | |
566 | } else { | |
567 | Py_INCREF(Py_None); | |
568 | _resultobj = Py_None; | |
569 | } | |
570 | return _resultobj; | |
571 | } | |
572 | ||
573 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
574 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
575 | PyObject * _resultobj; | |
576 | wxWindow * _result; | |
577 | wxValidator * _arg0; | |
578 | PyObject * _argo0 = 0; | |
579 | char *_kwnames[] = { "self", NULL }; | |
580 | char _ptemp[128]; | |
581 | ||
582 | self = self; | |
583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
584 | return NULL; | |
585 | if (_argo0) { | |
586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
589 | return NULL; | |
590 | } | |
591 | } | |
592 | { | |
593 | wxPy_BEGIN_ALLOW_THREADS; | |
594 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); | |
595 | ||
596 | wxPy_END_ALLOW_THREADS; | |
597 | } if (_result) { | |
598 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
599 | _resultobj = Py_BuildValue("s",_ptemp); | |
600 | } else { | |
601 | Py_INCREF(Py_None); | |
602 | _resultobj = Py_None; | |
603 | } | |
604 | return _resultobj; | |
605 | } | |
606 | ||
607 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
608 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
609 | PyObject * _resultobj; | |
610 | wxValidator * _arg0; | |
611 | wxWindow * _arg1; | |
612 | PyObject * _argo0 = 0; | |
613 | PyObject * _argo1 = 0; | |
614 | char *_kwnames[] = { "self","window", NULL }; | |
615 | ||
616 | self = self; | |
617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
618 | return NULL; | |
619 | if (_argo0) { | |
620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
623 | return NULL; | |
624 | } | |
625 | } | |
626 | if (_argo1) { | |
627 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
628 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
630 | return NULL; | |
631 | } | |
632 | } | |
633 | { | |
634 | wxPy_BEGIN_ALLOW_THREADS; | |
635 | wxValidator_SetWindow(_arg0,_arg1); | |
636 | ||
637 | wxPy_END_ALLOW_THREADS; | |
638 | } Py_INCREF(Py_None); | |
639 | _resultobj = Py_None; | |
640 | return _resultobj; | |
641 | } | |
642 | ||
643 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
644 | wxPyValidator *src; | |
645 | wxValidator *dest; | |
646 | src = (wxPyValidator *) ptr; | |
647 | dest = (wxValidator *) src; | |
648 | return (void *) dest; | |
649 | } | |
650 | ||
651 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
652 | wxPyValidator *src; | |
653 | wxEvtHandler *dest; | |
654 | src = (wxPyValidator *) ptr; | |
655 | dest = (wxEvtHandler *) src; | |
656 | return (void *) dest; | |
657 | } | |
658 | ||
659 | #define new_wxPyValidator() (new wxPyValidator()) | |
660 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
661 | PyObject * _resultobj; | |
662 | wxPyValidator * _result; | |
663 | char *_kwnames[] = { NULL }; | |
664 | char _ptemp[128]; | |
665 | ||
666 | self = self; | |
667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
668 | return NULL; | |
669 | { | |
670 | wxPy_BEGIN_ALLOW_THREADS; | |
671 | _result = (wxPyValidator *)new_wxPyValidator(); | |
672 | ||
673 | wxPy_END_ALLOW_THREADS; | |
674 | } if (_result) { | |
675 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
676 | _resultobj = Py_BuildValue("s",_ptemp); | |
677 | } else { | |
678 | Py_INCREF(Py_None); | |
679 | _resultobj = Py_None; | |
680 | } | |
681 | return _resultobj; | |
682 | } | |
683 | ||
684 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
685 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
686 | PyObject * _resultobj; | |
687 | wxPyValidator * _arg0; | |
688 | PyObject * _argo0 = 0; | |
689 | char *_kwnames[] = { "self", NULL }; | |
690 | ||
691 | self = self; | |
692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
693 | return NULL; | |
694 | if (_argo0) { | |
695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
698 | return NULL; | |
699 | } | |
700 | } | |
701 | { | |
702 | wxPy_BEGIN_ALLOW_THREADS; | |
703 | wxPyValidator_Destroy(_arg0); | |
704 | ||
705 | wxPy_END_ALLOW_THREADS; | |
706 | } Py_INCREF(Py_None); | |
707 | _resultobj = Py_None; | |
708 | return _resultobj; | |
709 | } | |
710 | ||
711 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
712 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
713 | PyObject * _resultobj; | |
714 | wxPyValidator * _arg0; | |
715 | PyObject * _arg1; | |
716 | int _arg2 = (int ) TRUE; | |
717 | PyObject * _argo0 = 0; | |
718 | PyObject * _obj1 = 0; | |
719 | char *_kwnames[] = { "self","self","incref", NULL }; | |
720 | ||
721 | self = self; | |
722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_arg2)) | |
723 | return NULL; | |
724 | if (_argo0) { | |
725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
728 | return NULL; | |
729 | } | |
730 | } | |
731 | { | |
732 | _arg1 = _obj1; | |
733 | } | |
734 | { | |
735 | wxPy_BEGIN_ALLOW_THREADS; | |
736 | wxPyValidator__setSelf(_arg0,_arg1,_arg2); | |
737 | ||
738 | wxPy_END_ALLOW_THREADS; | |
739 | } Py_INCREF(Py_None); | |
740 | _resultobj = Py_None; | |
741 | return _resultobj; | |
742 | } | |
743 | ||
744 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
745 | wxWindow *src; | |
746 | wxEvtHandler *dest; | |
747 | src = (wxWindow *) ptr; | |
748 | dest = (wxEvtHandler *) src; | |
749 | return (void *) dest; | |
750 | } | |
751 | ||
752 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
753 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
754 | PyObject * _resultobj; | |
755 | wxWindow * _result; | |
756 | wxWindow * _arg0; | |
757 | wxWindowID _arg1; | |
758 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
759 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
760 | long _arg4 = (long ) 0; | |
761 | char * _arg5 = (char *) "panel"; | |
762 | PyObject * _argo0 = 0; | |
763 | wxPoint temp; | |
764 | PyObject * _obj2 = 0; | |
765 | wxSize temp0; | |
766 | PyObject * _obj3 = 0; | |
767 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
768 | char _ptemp[128]; | |
769 | ||
770 | self = self; | |
771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
772 | return NULL; | |
773 | if (_argo0) { | |
774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); | |
777 | return NULL; | |
778 | } | |
779 | } | |
780 | if (_obj2) | |
781 | { | |
782 | _arg2 = &temp; | |
783 | if (! wxPoint_helper(_obj2, &_arg2)) | |
784 | return NULL; | |
785 | } | |
786 | if (_obj3) | |
787 | { | |
788 | _arg3 = &temp0; | |
789 | if (! wxSize_helper(_obj3, &_arg3)) | |
790 | return NULL; | |
791 | } | |
792 | { | |
793 | wxPy_BEGIN_ALLOW_THREADS; | |
794 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
795 | ||
796 | wxPy_END_ALLOW_THREADS; | |
797 | } if (_result) { | |
798 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
799 | _resultobj = Py_BuildValue("s",_ptemp); | |
800 | } else { | |
801 | Py_INCREF(Py_None); | |
802 | _resultobj = Py_None; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
807 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
808 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
809 | PyObject * _resultobj; | |
810 | wxWindow * _arg0; | |
811 | PyObject * _argo0 = 0; | |
812 | char *_kwnames[] = { "self", NULL }; | |
813 | ||
814 | self = self; | |
815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
816 | return NULL; | |
817 | if (_argo0) { | |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | { | |
825 | wxPy_BEGIN_ALLOW_THREADS; | |
826 | wxWindow_CaptureMouse(_arg0); | |
827 | ||
828 | wxPy_END_ALLOW_THREADS; | |
829 | } Py_INCREF(Py_None); | |
830 | _resultobj = Py_None; | |
831 | return _resultobj; | |
832 | } | |
833 | ||
834 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
835 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
836 | PyObject * _resultobj; | |
837 | wxWindow * _arg0; | |
838 | int _arg1 = (int ) wxBOTH; | |
839 | PyObject * _argo0 = 0; | |
840 | char *_kwnames[] = { "self","direction", NULL }; | |
841 | ||
842 | self = self; | |
843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) | |
844 | return NULL; | |
845 | if (_argo0) { | |
846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); | |
849 | return NULL; | |
850 | } | |
851 | } | |
852 | { | |
853 | wxPy_BEGIN_ALLOW_THREADS; | |
854 | wxWindow_Center(_arg0,_arg1); | |
855 | ||
856 | wxPy_END_ALLOW_THREADS; | |
857 | } Py_INCREF(Py_None); | |
858 | _resultobj = Py_None; | |
859 | return _resultobj; | |
860 | } | |
861 | ||
862 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
863 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
864 | PyObject * _resultobj; | |
865 | wxWindow * _arg0; | |
866 | int _arg1 = (int ) wxBOTH; | |
867 | PyObject * _argo0 = 0; | |
868 | char *_kwnames[] = { "self","direction", NULL }; | |
869 | ||
870 | self = self; | |
871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) | |
872 | return NULL; | |
873 | if (_argo0) { | |
874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); | |
877 | return NULL; | |
878 | } | |
879 | } | |
880 | { | |
881 | wxPy_BEGIN_ALLOW_THREADS; | |
882 | wxWindow_Centre(_arg0,_arg1); | |
883 | ||
884 | wxPy_END_ALLOW_THREADS; | |
885 | } Py_INCREF(Py_None); | |
886 | _resultobj = Py_None; | |
887 | return _resultobj; | |
888 | } | |
889 | ||
890 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) | |
891 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
892 | PyObject * _resultobj; | |
893 | wxWindow * _arg0; | |
894 | int _arg1 = (int ) wxBOTH; | |
895 | PyObject * _argo0 = 0; | |
896 | char *_kwnames[] = { "self","direction", NULL }; | |
897 | ||
898 | self = self; | |
899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) | |
900 | return NULL; | |
901 | if (_argo0) { | |
902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); | |
905 | return NULL; | |
906 | } | |
907 | } | |
908 | { | |
909 | wxPy_BEGIN_ALLOW_THREADS; | |
910 | wxWindow_CentreOnParent(_arg0,_arg1); | |
911 | ||
912 | wxPy_END_ALLOW_THREADS; | |
913 | } Py_INCREF(Py_None); | |
914 | _resultobj = Py_None; | |
915 | return _resultobj; | |
916 | } | |
917 | ||
918 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
919 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject * _resultobj; | |
921 | wxWindow * _arg0; | |
922 | int _arg1 = (int ) wxBOTH; | |
923 | PyObject * _argo0 = 0; | |
924 | char *_kwnames[] = { "self","direction", NULL }; | |
925 | ||
926 | self = self; | |
927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) | |
928 | return NULL; | |
929 | if (_argo0) { | |
930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); | |
933 | return NULL; | |
934 | } | |
935 | } | |
936 | { | |
937 | wxPy_BEGIN_ALLOW_THREADS; | |
938 | wxWindow_CenterOnParent(_arg0,_arg1); | |
939 | ||
940 | wxPy_END_ALLOW_THREADS; | |
941 | } Py_INCREF(Py_None); | |
942 | _resultobj = Py_None; | |
943 | return _resultobj; | |
944 | } | |
945 | ||
946 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) | |
947 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
948 | PyObject * _resultobj; | |
949 | wxWindow * _arg0; | |
950 | int * _arg1; | |
951 | int * _arg2; | |
952 | PyObject * _argo0 = 0; | |
953 | int temp; | |
954 | PyObject * _obj1 = 0; | |
955 | int temp0; | |
956 | PyObject * _obj2 = 0; | |
957 | char *_kwnames[] = { "self","x","y", NULL }; | |
958 | ||
959 | self = self; | |
960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
961 | return NULL; | |
962 | if (_argo0) { | |
963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); | |
966 | return NULL; | |
967 | } | |
968 | } | |
969 | { | |
970 | temp = (int) PyInt_AsLong(_obj1); | |
971 | _arg1 = &temp; | |
972 | } | |
973 | { | |
974 | temp0 = (int) PyInt_AsLong(_obj2); | |
975 | _arg2 = &temp0; | |
976 | } | |
977 | { | |
978 | wxPy_BEGIN_ALLOW_THREADS; | |
979 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
980 | ||
981 | wxPy_END_ALLOW_THREADS; | |
982 | } Py_INCREF(Py_None); | |
983 | _resultobj = Py_None; | |
984 | { | |
985 | PyObject *o; | |
986 | o = PyInt_FromLong((long) (*_arg1)); | |
987 | _resultobj = t_output_helper(_resultobj, o); | |
988 | } | |
989 | { | |
990 | PyObject *o; | |
991 | o = PyInt_FromLong((long) (*_arg2)); | |
992 | _resultobj = t_output_helper(_resultobj, o); | |
993 | } | |
994 | return _resultobj; | |
995 | } | |
996 | ||
997 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) | |
998 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
999 | PyObject * _resultobj; | |
1000 | wxPoint * _result; | |
1001 | wxWindow * _arg0; | |
1002 | wxPoint * _arg1; | |
1003 | PyObject * _argo0 = 0; | |
1004 | wxPoint temp; | |
1005 | PyObject * _obj1 = 0; | |
1006 | char *_kwnames[] = { "self","pt", NULL }; | |
1007 | char _ptemp[128]; | |
1008 | ||
1009 | self = self; | |
1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) | |
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_ClientToScreen. Expected _wxWindow_p."); | |
1016 | return NULL; | |
1017 | } | |
1018 | } | |
1019 | { | |
1020 | _arg1 = &temp; | |
1021 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1022 | return NULL; | |
1023 | } | |
1024 | { | |
1025 | wxPy_BEGIN_ALLOW_THREADS; | |
1026 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1027 | ||
1028 | wxPy_END_ALLOW_THREADS; | |
1029 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1030 | _resultobj = Py_BuildValue("s",_ptemp); | |
1031 | return _resultobj; | |
1032 | } | |
1033 | ||
1034 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) | |
1035 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1036 | PyObject * _resultobj; | |
1037 | bool _result; | |
1038 | wxWindow * _arg0; | |
1039 | int _arg1 = (int ) FALSE; | |
1040 | PyObject * _argo0 = 0; | |
1041 | char *_kwnames[] = { "self","force", NULL }; | |
1042 | ||
1043 | self = self; | |
1044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) | |
1045 | return NULL; | |
1046 | if (_argo0) { | |
1047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); | |
1050 | return NULL; | |
1051 | } | |
1052 | } | |
1053 | { | |
1054 | wxPy_BEGIN_ALLOW_THREADS; | |
1055 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1056 | ||
1057 | wxPy_END_ALLOW_THREADS; | |
1058 | } _resultobj = Py_BuildValue("i",_result); | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
1063 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | bool _result; | |
1066 | wxWindow * _arg0; | |
1067 | PyObject * _argo0 = 0; | |
1068 | char *_kwnames[] = { "self", NULL }; | |
1069 | ||
1070 | self = self; | |
1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) | |
1072 | return NULL; | |
1073 | if (_argo0) { | |
1074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); | |
1077 | return NULL; | |
1078 | } | |
1079 | } | |
1080 | { | |
1081 | wxPy_BEGIN_ALLOW_THREADS; | |
1082 | _result = (bool )wxWindow_Destroy(_arg0); | |
1083 | ||
1084 | wxPy_END_ALLOW_THREADS; | |
1085 | } _resultobj = Py_BuildValue("i",_result); | |
1086 | return _resultobj; | |
1087 | } | |
1088 | ||
1089 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
1090 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1091 | PyObject * _resultobj; | |
1092 | wxWindow * _arg0; | |
1093 | PyObject * _argo0 = 0; | |
1094 | char *_kwnames[] = { "self", NULL }; | |
1095 | ||
1096 | self = self; | |
1097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) | |
1098 | return NULL; | |
1099 | if (_argo0) { | |
1100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); | |
1103 | return NULL; | |
1104 | } | |
1105 | } | |
1106 | { | |
1107 | wxPy_BEGIN_ALLOW_THREADS; | |
1108 | wxWindow_DestroyChildren(_arg0); | |
1109 | ||
1110 | wxPy_END_ALLOW_THREADS; | |
1111 | } Py_INCREF(Py_None); | |
1112 | _resultobj = Py_None; | |
1113 | return _resultobj; | |
1114 | } | |
1115 | ||
1116 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1117 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1118 | PyObject * _resultobj; | |
1119 | wxWindow * _arg0; | |
1120 | bool _arg1; | |
1121 | PyObject * _argo0 = 0; | |
1122 | int tempbool1; | |
1123 | char *_kwnames[] = { "self","enable", NULL }; | |
1124 | ||
1125 | self = self; | |
1126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) | |
1127 | return NULL; | |
1128 | if (_argo0) { | |
1129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); | |
1132 | return NULL; | |
1133 | } | |
1134 | } | |
1135 | _arg1 = (bool ) tempbool1; | |
1136 | { | |
1137 | wxPy_BEGIN_ALLOW_THREADS; | |
1138 | wxWindow_Enable(_arg0,_arg1); | |
1139 | ||
1140 | wxPy_END_ALLOW_THREADS; | |
1141 | } Py_INCREF(Py_None); | |
1142 | _resultobj = Py_None; | |
1143 | return _resultobj; | |
1144 | } | |
1145 | ||
1146 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1147 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1148 | PyObject * _resultobj; | |
1149 | wxWindow * _result; | |
1150 | wxWindow * _arg0; | |
1151 | long _arg1; | |
1152 | PyObject * _argo0 = 0; | |
1153 | char *_kwnames[] = { "self","id", NULL }; | |
1154 | char _ptemp[128]; | |
1155 | ||
1156 | self = self; | |
1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) | |
1158 | return NULL; | |
1159 | if (_argo0) { | |
1160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); | |
1163 | return NULL; | |
1164 | } | |
1165 | } | |
1166 | { | |
1167 | wxPy_BEGIN_ALLOW_THREADS; | |
1168 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1169 | ||
1170 | wxPy_END_ALLOW_THREADS; | |
1171 | } if (_result) { | |
1172 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1173 | _resultobj = Py_BuildValue("s",_ptemp); | |
1174 | } else { | |
1175 | Py_INCREF(Py_None); | |
1176 | _resultobj = Py_None; | |
1177 | } | |
1178 | return _resultobj; | |
1179 | } | |
1180 | ||
1181 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1182 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1183 | PyObject * _resultobj; | |
1184 | wxWindow * _result; | |
1185 | wxWindow * _arg0; | |
1186 | wxString * _arg1; | |
1187 | PyObject * _argo0 = 0; | |
1188 | PyObject * _obj1 = 0; | |
1189 | char *_kwnames[] = { "self","name", NULL }; | |
1190 | char _ptemp[128]; | |
1191 | ||
1192 | self = self; | |
1193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) | |
1194 | return NULL; | |
1195 | if (_argo0) { | |
1196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); | |
1199 | return NULL; | |
1200 | } | |
1201 | } | |
1202 | { | |
1203 | if (!PyString_Check(_obj1)) { | |
1204 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1205 | return NULL; | |
1206 | } | |
1207 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1208 | } | |
1209 | { | |
1210 | wxPy_BEGIN_ALLOW_THREADS; | |
1211 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1212 | ||
1213 | wxPy_END_ALLOW_THREADS; | |
1214 | } if (_result) { | |
1215 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1216 | _resultobj = Py_BuildValue("s",_ptemp); | |
1217 | } else { | |
1218 | Py_INCREF(Py_None); | |
1219 | _resultobj = Py_None; | |
1220 | } | |
1221 | { | |
1222 | if (_obj1) | |
1223 | delete _arg1; | |
1224 | } | |
1225 | return _resultobj; | |
1226 | } | |
1227 | ||
1228 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
1229 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1230 | PyObject * _resultobj; | |
1231 | wxWindow * _arg0; | |
1232 | PyObject * _argo0 = 0; | |
1233 | char *_kwnames[] = { "self", NULL }; | |
1234 | ||
1235 | self = self; | |
1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) | |
1237 | return NULL; | |
1238 | if (_argo0) { | |
1239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); | |
1242 | return NULL; | |
1243 | } | |
1244 | } | |
1245 | { | |
1246 | wxPy_BEGIN_ALLOW_THREADS; | |
1247 | wxWindow_Fit(_arg0); | |
1248 | ||
1249 | wxPy_END_ALLOW_THREADS; | |
1250 | } Py_INCREF(Py_None); | |
1251 | _resultobj = Py_None; | |
1252 | return _resultobj; | |
1253 | } | |
1254 | ||
1255 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1256 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1257 | PyObject * _resultobj; | |
1258 | wxColour * _result; | |
1259 | wxWindow * _arg0; | |
1260 | PyObject * _argo0 = 0; | |
1261 | char *_kwnames[] = { "self", NULL }; | |
1262 | char _ptemp[128]; | |
1263 | ||
1264 | self = self; | |
1265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) | |
1266 | return NULL; | |
1267 | if (_argo0) { | |
1268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); | |
1271 | return NULL; | |
1272 | } | |
1273 | } | |
1274 | { | |
1275 | wxPy_BEGIN_ALLOW_THREADS; | |
1276 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1277 | ||
1278 | wxPy_END_ALLOW_THREADS; | |
1279 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1280 | _resultobj = Py_BuildValue("s",_ptemp); | |
1281 | return _resultobj; | |
1282 | } | |
1283 | ||
1284 | static PyObject * wxWindow_GetChildren(wxWindow *self) { | |
1285 | wxWindowList& list = self->GetChildren(); | |
1286 | return wxPy_ConvertList(&list, "wxWindow"); | |
1287 | } | |
1288 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1289 | PyObject * _resultobj; | |
1290 | PyObject * _result; | |
1291 | wxWindow * _arg0; | |
1292 | PyObject * _argo0 = 0; | |
1293 | char *_kwnames[] = { "self", NULL }; | |
1294 | ||
1295 | self = self; | |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1302 | return NULL; | |
1303 | } | |
1304 | } | |
1305 | { | |
1306 | wxPy_BEGIN_ALLOW_THREADS; | |
1307 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1308 | ||
1309 | wxPy_END_ALLOW_THREADS; | |
1310 | }{ | |
1311 | _resultobj = _result; | |
1312 | } | |
1313 | return _resultobj; | |
1314 | } | |
1315 | ||
1316 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1317 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1318 | PyObject * _resultobj; | |
1319 | int _result; | |
1320 | wxWindow * _arg0; | |
1321 | PyObject * _argo0 = 0; | |
1322 | char *_kwnames[] = { "self", NULL }; | |
1323 | ||
1324 | self = self; | |
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) | |
1326 | return NULL; | |
1327 | if (_argo0) { | |
1328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); | |
1331 | return NULL; | |
1332 | } | |
1333 | } | |
1334 | { | |
1335 | wxPy_BEGIN_ALLOW_THREADS; | |
1336 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1337 | ||
1338 | wxPy_END_ALLOW_THREADS; | |
1339 | } _resultobj = Py_BuildValue("i",_result); | |
1340 | return _resultobj; | |
1341 | } | |
1342 | ||
1343 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1344 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1345 | PyObject * _resultobj; | |
1346 | int _result; | |
1347 | wxWindow * _arg0; | |
1348 | PyObject * _argo0 = 0; | |
1349 | char *_kwnames[] = { "self", NULL }; | |
1350 | ||
1351 | self = self; | |
1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) | |
1353 | return NULL; | |
1354 | if (_argo0) { | |
1355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); | |
1358 | return NULL; | |
1359 | } | |
1360 | } | |
1361 | { | |
1362 | wxPy_BEGIN_ALLOW_THREADS; | |
1363 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1364 | ||
1365 | wxPy_END_ALLOW_THREADS; | |
1366 | } _resultobj = Py_BuildValue("i",_result); | |
1367 | return _resultobj; | |
1368 | } | |
1369 | ||
1370 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) | |
1371 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1372 | PyObject * _resultobj; | |
1373 | wxWindow * _arg0; | |
1374 | int * _arg1; | |
1375 | int temp; | |
1376 | int * _arg2; | |
1377 | int temp0; | |
1378 | PyObject * _argo0 = 0; | |
1379 | char *_kwnames[] = { "self", NULL }; | |
1380 | ||
1381 | self = self; | |
1382 | { | |
1383 | _arg1 = &temp; | |
1384 | } | |
1385 | { | |
1386 | _arg2 = &temp0; | |
1387 | } | |
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) | |
1389 | return NULL; | |
1390 | if (_argo0) { | |
1391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); | |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
1397 | { | |
1398 | wxPy_BEGIN_ALLOW_THREADS; | |
1399 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1400 | ||
1401 | wxPy_END_ALLOW_THREADS; | |
1402 | } Py_INCREF(Py_None); | |
1403 | _resultobj = Py_None; | |
1404 | { | |
1405 | PyObject *o; | |
1406 | o = PyInt_FromLong((long) (*_arg1)); | |
1407 | _resultobj = t_output_helper(_resultobj, o); | |
1408 | } | |
1409 | { | |
1410 | PyObject *o; | |
1411 | o = PyInt_FromLong((long) (*_arg2)); | |
1412 | _resultobj = t_output_helper(_resultobj, o); | |
1413 | } | |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
1417 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) | |
1418 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject * _resultobj; | |
1420 | wxSize * _result; | |
1421 | wxWindow * _arg0; | |
1422 | PyObject * _argo0 = 0; | |
1423 | char *_kwnames[] = { "self", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) | |
1428 | return NULL; | |
1429 | if (_argo0) { | |
1430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); | |
1433 | return NULL; | |
1434 | } | |
1435 | } | |
1436 | { | |
1437 | wxPy_BEGIN_ALLOW_THREADS; | |
1438 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1439 | ||
1440 | wxPy_END_ALLOW_THREADS; | |
1441 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1442 | _resultobj = Py_BuildValue("s",_ptemp); | |
1443 | return _resultobj; | |
1444 | } | |
1445 | ||
1446 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) | |
1447 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1448 | PyObject * _resultobj; | |
1449 | wxLayoutConstraints * _result; | |
1450 | wxWindow * _arg0; | |
1451 | PyObject * _argo0 = 0; | |
1452 | char *_kwnames[] = { "self", NULL }; | |
1453 | char _ptemp[128]; | |
1454 | ||
1455 | self = self; | |
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) | |
1457 | return NULL; | |
1458 | if (_argo0) { | |
1459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); | |
1462 | return NULL; | |
1463 | } | |
1464 | } | |
1465 | { | |
1466 | wxPy_BEGIN_ALLOW_THREADS; | |
1467 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1468 | ||
1469 | wxPy_END_ALLOW_THREADS; | |
1470 | } if (_result) { | |
1471 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1472 | _resultobj = Py_BuildValue("s",_ptemp); | |
1473 | } else { | |
1474 | Py_INCREF(Py_None); | |
1475 | _resultobj = Py_None; | |
1476 | } | |
1477 | return _resultobj; | |
1478 | } | |
1479 | ||
1480 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
1481 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1482 | PyObject * _resultobj; | |
1483 | wxEvtHandler * _result; | |
1484 | wxWindow * _arg0; | |
1485 | PyObject * _argo0 = 0; | |
1486 | char *_kwnames[] = { "self", NULL }; | |
1487 | char _ptemp[128]; | |
1488 | ||
1489 | self = self; | |
1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1491 | return NULL; | |
1492 | if (_argo0) { | |
1493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1496 | return NULL; | |
1497 | } | |
1498 | } | |
1499 | { | |
1500 | wxPy_BEGIN_ALLOW_THREADS; | |
1501 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1502 | ||
1503 | wxPy_END_ALLOW_THREADS; | |
1504 | } if (_result) { | |
1505 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1506 | _resultobj = Py_BuildValue("s",_ptemp); | |
1507 | } else { | |
1508 | Py_INCREF(Py_None); | |
1509 | _resultobj = Py_None; | |
1510 | } | |
1511 | return _resultobj; | |
1512 | } | |
1513 | ||
1514 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) | |
1515 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1516 | PyObject * _resultobj; | |
1517 | wxFont * _result; | |
1518 | wxWindow * _arg0; | |
1519 | PyObject * _argo0 = 0; | |
1520 | char *_kwnames[] = { "self", NULL }; | |
1521 | char _ptemp[128]; | |
1522 | ||
1523 | self = self; | |
1524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) | |
1525 | return NULL; | |
1526 | if (_argo0) { | |
1527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); | |
1530 | return NULL; | |
1531 | } | |
1532 | } | |
1533 | { | |
1534 | wxPy_BEGIN_ALLOW_THREADS; | |
1535 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
1536 | _result = (wxFont *) &_result_ref; | |
1537 | ||
1538 | wxPy_END_ALLOW_THREADS; | |
1539 | } if (_result) { | |
1540 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1541 | _resultobj = Py_BuildValue("s",_ptemp); | |
1542 | } else { | |
1543 | Py_INCREF(Py_None); | |
1544 | _resultobj = Py_None; | |
1545 | } | |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
1549 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
1550 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1551 | PyObject * _resultobj; | |
1552 | wxColour * _result; | |
1553 | wxWindow * _arg0; | |
1554 | PyObject * _argo0 = 0; | |
1555 | char *_kwnames[] = { "self", NULL }; | |
1556 | char _ptemp[128]; | |
1557 | ||
1558 | self = self; | |
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) | |
1560 | return NULL; | |
1561 | if (_argo0) { | |
1562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); | |
1565 | return NULL; | |
1566 | } | |
1567 | } | |
1568 | { | |
1569 | wxPy_BEGIN_ALLOW_THREADS; | |
1570 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1571 | ||
1572 | wxPy_END_ALLOW_THREADS; | |
1573 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1574 | _resultobj = Py_BuildValue("s",_ptemp); | |
1575 | return _resultobj; | |
1576 | } | |
1577 | ||
1578 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
1579 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1580 | PyObject * _resultobj; | |
1581 | wxWindow * _result; | |
1582 | wxWindow * _arg0; | |
1583 | PyObject * _argo0 = 0; | |
1584 | char *_kwnames[] = { "self", NULL }; | |
1585 | char _ptemp[128]; | |
1586 | ||
1587 | self = self; | |
1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) | |
1589 | return NULL; | |
1590 | if (_argo0) { | |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); | |
1594 | return NULL; | |
1595 | } | |
1596 | } | |
1597 | { | |
1598 | wxPy_BEGIN_ALLOW_THREADS; | |
1599 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1600 | ||
1601 | wxPy_END_ALLOW_THREADS; | |
1602 | } if (_result) { | |
1603 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1604 | _resultobj = Py_BuildValue("s",_ptemp); | |
1605 | } else { | |
1606 | Py_INCREF(Py_None); | |
1607 | _resultobj = Py_None; | |
1608 | } | |
1609 | return _resultobj; | |
1610 | } | |
1611 | ||
1612 | static long wxWindow_GetHandle(wxWindow *self) { | |
1613 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); | |
1614 | } | |
1615 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject * _resultobj; | |
1617 | long _result; | |
1618 | wxWindow * _arg0; | |
1619 | PyObject * _argo0 = 0; | |
1620 | char *_kwnames[] = { "self", NULL }; | |
1621 | ||
1622 | self = self; | |
1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1624 | return NULL; | |
1625 | if (_argo0) { | |
1626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1629 | return NULL; | |
1630 | } | |
1631 | } | |
1632 | { | |
1633 | wxPy_BEGIN_ALLOW_THREADS; | |
1634 | _result = (long )wxWindow_GetHandle(_arg0); | |
1635 | ||
1636 | wxPy_END_ALLOW_THREADS; | |
1637 | } _resultobj = Py_BuildValue("l",_result); | |
1638 | return _resultobj; | |
1639 | } | |
1640 | ||
1641 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
1642 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1643 | PyObject * _resultobj; | |
1644 | int _result; | |
1645 | wxWindow * _arg0; | |
1646 | PyObject * _argo0 = 0; | |
1647 | char *_kwnames[] = { "self", NULL }; | |
1648 | ||
1649 | self = self; | |
1650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) | |
1651 | return NULL; | |
1652 | if (_argo0) { | |
1653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); | |
1656 | return NULL; | |
1657 | } | |
1658 | } | |
1659 | { | |
1660 | wxPy_BEGIN_ALLOW_THREADS; | |
1661 | _result = (int )wxWindow_GetId(_arg0); | |
1662 | ||
1663 | wxPy_END_ALLOW_THREADS; | |
1664 | } _resultobj = Py_BuildValue("i",_result); | |
1665 | return _resultobj; | |
1666 | } | |
1667 | ||
1668 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
1669 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1670 | PyObject * _resultobj; | |
1671 | wxString * _result; | |
1672 | wxWindow * _arg0; | |
1673 | PyObject * _argo0 = 0; | |
1674 | char *_kwnames[] = { "self", NULL }; | |
1675 | ||
1676 | self = self; | |
1677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) | |
1678 | return NULL; | |
1679 | if (_argo0) { | |
1680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); | |
1683 | return NULL; | |
1684 | } | |
1685 | } | |
1686 | { | |
1687 | wxPy_BEGIN_ALLOW_THREADS; | |
1688 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1689 | ||
1690 | wxPy_END_ALLOW_THREADS; | |
1691 | }{ | |
1692 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
1693 | } | |
1694 | { | |
1695 | delete _result; | |
1696 | } | |
1697 | return _resultobj; | |
1698 | } | |
1699 | ||
1700 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
1701 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject * _resultobj; | |
1703 | wxWindow * _arg0; | |
1704 | wxString * _arg1; | |
1705 | PyObject * _argo0 = 0; | |
1706 | PyObject * _obj1 = 0; | |
1707 | char *_kwnames[] = { "self","label", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | if (!PyString_Check(_obj1)) { | |
1721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1722 | return NULL; | |
1723 | } | |
1724 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1725 | } | |
1726 | { | |
1727 | wxPy_BEGIN_ALLOW_THREADS; | |
1728 | wxWindow_SetLabel(_arg0,*_arg1); | |
1729 | ||
1730 | wxPy_END_ALLOW_THREADS; | |
1731 | } Py_INCREF(Py_None); | |
1732 | _resultobj = Py_None; | |
1733 | { | |
1734 | if (_obj1) | |
1735 | delete _arg1; | |
1736 | } | |
1737 | return _resultobj; | |
1738 | } | |
1739 | ||
1740 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) | |
1741 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject * _resultobj; | |
1743 | wxString * _result; | |
1744 | wxWindow * _arg0; | |
1745 | PyObject * _argo0 = 0; | |
1746 | char *_kwnames[] = { "self", NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) | |
1750 | return NULL; | |
1751 | if (_argo0) { | |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); | |
1755 | return NULL; | |
1756 | } | |
1757 | } | |
1758 | { | |
1759 | wxPy_BEGIN_ALLOW_THREADS; | |
1760 | _result = new wxString (wxWindow_GetName(_arg0)); | |
1761 | ||
1762 | wxPy_END_ALLOW_THREADS; | |
1763 | }{ | |
1764 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
1765 | } | |
1766 | { | |
1767 | delete _result; | |
1768 | } | |
1769 | return _resultobj; | |
1770 | } | |
1771 | ||
1772 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
1773 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1774 | PyObject * _resultobj; | |
1775 | wxWindow * _result; | |
1776 | wxWindow * _arg0; | |
1777 | PyObject * _argo0 = 0; | |
1778 | char *_kwnames[] = { "self", NULL }; | |
1779 | char _ptemp[128]; | |
1780 | ||
1781 | self = self; | |
1782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) | |
1783 | return NULL; | |
1784 | if (_argo0) { | |
1785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); | |
1788 | return NULL; | |
1789 | } | |
1790 | } | |
1791 | { | |
1792 | wxPy_BEGIN_ALLOW_THREADS; | |
1793 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
1794 | ||
1795 | wxPy_END_ALLOW_THREADS; | |
1796 | } if (_result) { | |
1797 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1798 | _resultobj = Py_BuildValue("s",_ptemp); | |
1799 | } else { | |
1800 | Py_INCREF(Py_None); | |
1801 | _resultobj = Py_None; | |
1802 | } | |
1803 | return _resultobj; | |
1804 | } | |
1805 | ||
1806 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
1807 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1808 | PyObject * _resultobj; | |
1809 | wxWindow * _arg0; | |
1810 | int * _arg1; | |
1811 | int temp; | |
1812 | int * _arg2; | |
1813 | int temp0; | |
1814 | PyObject * _argo0 = 0; | |
1815 | char *_kwnames[] = { "self", NULL }; | |
1816 | ||
1817 | self = self; | |
1818 | { | |
1819 | _arg1 = &temp; | |
1820 | } | |
1821 | { | |
1822 | _arg2 = &temp0; | |
1823 | } | |
1824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) | |
1825 | return NULL; | |
1826 | if (_argo0) { | |
1827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); | |
1830 | return NULL; | |
1831 | } | |
1832 | } | |
1833 | { | |
1834 | wxPy_BEGIN_ALLOW_THREADS; | |
1835 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
1836 | ||
1837 | wxPy_END_ALLOW_THREADS; | |
1838 | } Py_INCREF(Py_None); | |
1839 | _resultobj = Py_None; | |
1840 | { | |
1841 | PyObject *o; | |
1842 | o = PyInt_FromLong((long) (*_arg1)); | |
1843 | _resultobj = t_output_helper(_resultobj, o); | |
1844 | } | |
1845 | { | |
1846 | PyObject *o; | |
1847 | o = PyInt_FromLong((long) (*_arg2)); | |
1848 | _resultobj = t_output_helper(_resultobj, o); | |
1849 | } | |
1850 | return _resultobj; | |
1851 | } | |
1852 | ||
1853 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
1854 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1855 | PyObject * _resultobj; | |
1856 | wxPoint * _result; | |
1857 | wxWindow * _arg0; | |
1858 | PyObject * _argo0 = 0; | |
1859 | char *_kwnames[] = { "self", NULL }; | |
1860 | char _ptemp[128]; | |
1861 | ||
1862 | self = self; | |
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) | |
1864 | return NULL; | |
1865 | if (_argo0) { | |
1866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); | |
1869 | return NULL; | |
1870 | } | |
1871 | } | |
1872 | { | |
1873 | wxPy_BEGIN_ALLOW_THREADS; | |
1874 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
1875 | ||
1876 | wxPy_END_ALLOW_THREADS; | |
1877 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1878 | _resultobj = Py_BuildValue("s",_ptemp); | |
1879 | return _resultobj; | |
1880 | } | |
1881 | ||
1882 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
1883 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1884 | PyObject * _resultobj; | |
1885 | wxRect * _result; | |
1886 | wxWindow * _arg0; | |
1887 | PyObject * _argo0 = 0; | |
1888 | char *_kwnames[] = { "self", NULL }; | |
1889 | char _ptemp[128]; | |
1890 | ||
1891 | self = self; | |
1892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) | |
1893 | return NULL; | |
1894 | if (_argo0) { | |
1895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); | |
1898 | return NULL; | |
1899 | } | |
1900 | } | |
1901 | { | |
1902 | wxPy_BEGIN_ALLOW_THREADS; | |
1903 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
1904 | ||
1905 | wxPy_END_ALLOW_THREADS; | |
1906 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1907 | _resultobj = Py_BuildValue("s",_ptemp); | |
1908 | return _resultobj; | |
1909 | } | |
1910 | ||
1911 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) | |
1912 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1913 | PyObject * _resultobj; | |
1914 | int _result; | |
1915 | wxWindow * _arg0; | |
1916 | int _arg1; | |
1917 | PyObject * _argo0 = 0; | |
1918 | char *_kwnames[] = { "self","orientation", NULL }; | |
1919 | ||
1920 | self = self; | |
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) | |
1922 | return NULL; | |
1923 | if (_argo0) { | |
1924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); | |
1927 | return NULL; | |
1928 | } | |
1929 | } | |
1930 | { | |
1931 | wxPy_BEGIN_ALLOW_THREADS; | |
1932 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
1933 | ||
1934 | wxPy_END_ALLOW_THREADS; | |
1935 | } _resultobj = Py_BuildValue("i",_result); | |
1936 | return _resultobj; | |
1937 | } | |
1938 | ||
1939 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
1940 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject * _resultobj; | |
1942 | int _result; | |
1943 | wxWindow * _arg0; | |
1944 | int _arg1; | |
1945 | PyObject * _argo0 = 0; | |
1946 | char *_kwnames[] = { "self","orientation", NULL }; | |
1947 | ||
1948 | self = self; | |
1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) | |
1950 | return NULL; | |
1951 | if (_argo0) { | |
1952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); | |
1955 | return NULL; | |
1956 | } | |
1957 | } | |
1958 | { | |
1959 | wxPy_BEGIN_ALLOW_THREADS; | |
1960 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
1961 | ||
1962 | wxPy_END_ALLOW_THREADS; | |
1963 | } _resultobj = Py_BuildValue("i",_result); | |
1964 | return _resultobj; | |
1965 | } | |
1966 | ||
1967 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
1968 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject * _resultobj; | |
1970 | int _result; | |
1971 | wxWindow * _arg0; | |
1972 | int _arg1; | |
1973 | PyObject * _argo0 = 0; | |
1974 | char *_kwnames[] = { "self","orientation", NULL }; | |
1975 | ||
1976 | self = self; | |
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) | |
1978 | return NULL; | |
1979 | if (_argo0) { | |
1980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); | |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
1986 | { | |
1987 | wxPy_BEGIN_ALLOW_THREADS; | |
1988 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
1989 | ||
1990 | wxPy_END_ALLOW_THREADS; | |
1991 | } _resultobj = Py_BuildValue("i",_result); | |
1992 | return _resultobj; | |
1993 | } | |
1994 | ||
1995 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
1996 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1997 | PyObject * _resultobj; | |
1998 | wxWindow * _arg0; | |
1999 | int * _arg1; | |
2000 | int temp; | |
2001 | int * _arg2; | |
2002 | int temp0; | |
2003 | PyObject * _argo0 = 0; | |
2004 | char *_kwnames[] = { "self", NULL }; | |
2005 | ||
2006 | self = self; | |
2007 | { | |
2008 | _arg1 = &temp; | |
2009 | } | |
2010 | { | |
2011 | _arg2 = &temp0; | |
2012 | } | |
2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) | |
2014 | return NULL; | |
2015 | if (_argo0) { | |
2016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); | |
2019 | return NULL; | |
2020 | } | |
2021 | } | |
2022 | { | |
2023 | wxPy_BEGIN_ALLOW_THREADS; | |
2024 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2025 | ||
2026 | wxPy_END_ALLOW_THREADS; | |
2027 | } Py_INCREF(Py_None); | |
2028 | _resultobj = Py_None; | |
2029 | { | |
2030 | PyObject *o; | |
2031 | o = PyInt_FromLong((long) (*_arg1)); | |
2032 | _resultobj = t_output_helper(_resultobj, o); | |
2033 | } | |
2034 | { | |
2035 | PyObject *o; | |
2036 | o = PyInt_FromLong((long) (*_arg2)); | |
2037 | _resultobj = t_output_helper(_resultobj, o); | |
2038 | } | |
2039 | return _resultobj; | |
2040 | } | |
2041 | ||
2042 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) | |
2043 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject * _resultobj; | |
2045 | wxSize * _result; | |
2046 | wxWindow * _arg0; | |
2047 | PyObject * _argo0 = 0; | |
2048 | char *_kwnames[] = { "self", NULL }; | |
2049 | char _ptemp[128]; | |
2050 | ||
2051 | self = self; | |
2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) | |
2053 | return NULL; | |
2054 | if (_argo0) { | |
2055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); | |
2058 | return NULL; | |
2059 | } | |
2060 | } | |
2061 | { | |
2062 | wxPy_BEGIN_ALLOW_THREADS; | |
2063 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2064 | ||
2065 | wxPy_END_ALLOW_THREADS; | |
2066 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2067 | _resultobj = Py_BuildValue("s",_ptemp); | |
2068 | return _resultobj; | |
2069 | } | |
2070 | ||
2071 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
2072 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2073 | PyObject * _resultobj; | |
2074 | wxWindow * _arg0; | |
2075 | wxString * _arg1; | |
2076 | int * _arg2; | |
2077 | int temp; | |
2078 | int * _arg3; | |
2079 | int temp0; | |
2080 | PyObject * _argo0 = 0; | |
2081 | PyObject * _obj1 = 0; | |
2082 | char *_kwnames[] = { "self","string", NULL }; | |
2083 | ||
2084 | self = self; | |
2085 | { | |
2086 | _arg2 = &temp; | |
2087 | } | |
2088 | { | |
2089 | _arg3 = &temp0; | |
2090 | } | |
2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
2092 | return NULL; | |
2093 | if (_argo0) { | |
2094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); | |
2097 | return NULL; | |
2098 | } | |
2099 | } | |
2100 | { | |
2101 | if (!PyString_Check(_obj1)) { | |
2102 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2103 | return NULL; | |
2104 | } | |
2105 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
2106 | } | |
2107 | { | |
2108 | wxPy_BEGIN_ALLOW_THREADS; | |
2109 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2110 | ||
2111 | wxPy_END_ALLOW_THREADS; | |
2112 | } Py_INCREF(Py_None); | |
2113 | _resultobj = Py_None; | |
2114 | { | |
2115 | PyObject *o; | |
2116 | o = PyInt_FromLong((long) (*_arg2)); | |
2117 | _resultobj = t_output_helper(_resultobj, o); | |
2118 | } | |
2119 | { | |
2120 | PyObject *o; | |
2121 | o = PyInt_FromLong((long) (*_arg3)); | |
2122 | _resultobj = t_output_helper(_resultobj, o); | |
2123 | } | |
2124 | { | |
2125 | if (_obj1) | |
2126 | delete _arg1; | |
2127 | } | |
2128 | return _resultobj; | |
2129 | } | |
2130 | ||
2131 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2132 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2133 | PyObject * _resultobj; | |
2134 | wxWindow * _arg0; | |
2135 | wxString * _arg1; | |
2136 | int * _arg2; | |
2137 | int temp; | |
2138 | int * _arg3; | |
2139 | int temp0; | |
2140 | int * _arg4; | |
2141 | int temp1; | |
2142 | int * _arg5; | |
2143 | int temp2; | |
2144 | wxFont * _arg6 = (wxFont *) NULL; | |
2145 | PyObject * _argo0 = 0; | |
2146 | PyObject * _obj1 = 0; | |
2147 | PyObject * _argo6 = 0; | |
2148 | char *_kwnames[] = { "self","string","font", NULL }; | |
2149 | ||
2150 | self = self; | |
2151 | { | |
2152 | _arg2 = &temp; | |
2153 | } | |
2154 | { | |
2155 | _arg3 = &temp0; | |
2156 | } | |
2157 | { | |
2158 | _arg4 = &temp1; | |
2159 | } | |
2160 | { | |
2161 | _arg5 = &temp2; | |
2162 | } | |
2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
2164 | return NULL; | |
2165 | if (_argo0) { | |
2166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); | |
2169 | return NULL; | |
2170 | } | |
2171 | } | |
2172 | { | |
2173 | if (!PyString_Check(_obj1)) { | |
2174 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2175 | return NULL; | |
2176 | } | |
2177 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
2178 | } | |
2179 | if (_argo6) { | |
2180 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2181 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
2182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); | |
2183 | return NULL; | |
2184 | } | |
2185 | } | |
2186 | { | |
2187 | wxPy_BEGIN_ALLOW_THREADS; | |
2188 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2189 | ||
2190 | wxPy_END_ALLOW_THREADS; | |
2191 | } Py_INCREF(Py_None); | |
2192 | _resultobj = Py_None; | |
2193 | { | |
2194 | PyObject *o; | |
2195 | o = PyInt_FromLong((long) (*_arg2)); | |
2196 | _resultobj = t_output_helper(_resultobj, o); | |
2197 | } | |
2198 | { | |
2199 | PyObject *o; | |
2200 | o = PyInt_FromLong((long) (*_arg3)); | |
2201 | _resultobj = t_output_helper(_resultobj, o); | |
2202 | } | |
2203 | { | |
2204 | PyObject *o; | |
2205 | o = PyInt_FromLong((long) (*_arg4)); | |
2206 | _resultobj = t_output_helper(_resultobj, o); | |
2207 | } | |
2208 | { | |
2209 | PyObject *o; | |
2210 | o = PyInt_FromLong((long) (*_arg5)); | |
2211 | _resultobj = t_output_helper(_resultobj, o); | |
2212 | } | |
2213 | { | |
2214 | if (_obj1) | |
2215 | delete _arg1; | |
2216 | } | |
2217 | return _resultobj; | |
2218 | } | |
2219 | ||
2220 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
2221 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2222 | PyObject * _resultobj; | |
2223 | wxString * _result; | |
2224 | wxWindow * _arg0; | |
2225 | PyObject * _argo0 = 0; | |
2226 | char *_kwnames[] = { "self", NULL }; | |
2227 | ||
2228 | self = self; | |
2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) | |
2230 | return NULL; | |
2231 | if (_argo0) { | |
2232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); | |
2235 | return NULL; | |
2236 | } | |
2237 | } | |
2238 | { | |
2239 | wxPy_BEGIN_ALLOW_THREADS; | |
2240 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2241 | ||
2242 | wxPy_END_ALLOW_THREADS; | |
2243 | }{ | |
2244 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
2245 | } | |
2246 | { | |
2247 | delete _result; | |
2248 | } | |
2249 | return _resultobj; | |
2250 | } | |
2251 | ||
2252 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) | |
2253 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2254 | PyObject * _resultobj; | |
2255 | wxRegion * _result; | |
2256 | wxWindow * _arg0; | |
2257 | PyObject * _argo0 = 0; | |
2258 | char *_kwnames[] = { "self", NULL }; | |
2259 | char _ptemp[128]; | |
2260 | ||
2261 | self = self; | |
2262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) | |
2263 | return NULL; | |
2264 | if (_argo0) { | |
2265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); | |
2268 | return NULL; | |
2269 | } | |
2270 | } | |
2271 | { | |
2272 | wxPy_BEGIN_ALLOW_THREADS; | |
2273 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2274 | ||
2275 | wxPy_END_ALLOW_THREADS; | |
2276 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2277 | _resultobj = Py_BuildValue("s",_ptemp); | |
2278 | return _resultobj; | |
2279 | } | |
2280 | ||
2281 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) | |
2282 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2283 | PyObject * _resultobj; | |
2284 | long _result; | |
2285 | wxWindow * _arg0; | |
2286 | PyObject * _argo0 = 0; | |
2287 | char *_kwnames[] = { "self", NULL }; | |
2288 | ||
2289 | self = self; | |
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) | |
2291 | return NULL; | |
2292 | if (_argo0) { | |
2293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); | |
2296 | return NULL; | |
2297 | } | |
2298 | } | |
2299 | { | |
2300 | wxPy_BEGIN_ALLOW_THREADS; | |
2301 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2302 | ||
2303 | wxPy_END_ALLOW_THREADS; | |
2304 | } _resultobj = Py_BuildValue("l",_result); | |
2305 | return _resultobj; | |
2306 | } | |
2307 | ||
2308 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) | |
2309 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2310 | PyObject * _resultobj; | |
2311 | bool _result; | |
2312 | wxWindow * _arg0; | |
2313 | PyObject * _argo0 = 0; | |
2314 | char *_kwnames[] = { "self", NULL }; | |
2315 | ||
2316 | self = self; | |
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) | |
2318 | return NULL; | |
2319 | if (_argo0) { | |
2320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); | |
2323 | return NULL; | |
2324 | } | |
2325 | } | |
2326 | { | |
2327 | wxPy_BEGIN_ALLOW_THREADS; | |
2328 | _result = (bool )wxWindow_Hide(_arg0); | |
2329 | ||
2330 | wxPy_END_ALLOW_THREADS; | |
2331 | } _resultobj = Py_BuildValue("i",_result); | |
2332 | return _resultobj; | |
2333 | } | |
2334 | ||
2335 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
2336 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2337 | PyObject * _resultobj; | |
2338 | wxWindow * _arg0; | |
2339 | PyObject * _argo0 = 0; | |
2340 | char *_kwnames[] = { "self", NULL }; | |
2341 | ||
2342 | self = self; | |
2343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) | |
2344 | return NULL; | |
2345 | if (_argo0) { | |
2346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); | |
2349 | return NULL; | |
2350 | } | |
2351 | } | |
2352 | { | |
2353 | wxPy_BEGIN_ALLOW_THREADS; | |
2354 | wxWindow_InitDialog(_arg0); | |
2355 | ||
2356 | wxPy_END_ALLOW_THREADS; | |
2357 | } Py_INCREF(Py_None); | |
2358 | _resultobj = Py_None; | |
2359 | return _resultobj; | |
2360 | } | |
2361 | ||
2362 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
2363 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2364 | PyObject * _resultobj; | |
2365 | bool _result; | |
2366 | wxWindow * _arg0; | |
2367 | PyObject * _argo0 = 0; | |
2368 | char *_kwnames[] = { "self", NULL }; | |
2369 | ||
2370 | self = self; | |
2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) | |
2372 | return NULL; | |
2373 | if (_argo0) { | |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); | |
2377 | return NULL; | |
2378 | } | |
2379 | } | |
2380 | { | |
2381 | wxPy_BEGIN_ALLOW_THREADS; | |
2382 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2383 | ||
2384 | wxPy_END_ALLOW_THREADS; | |
2385 | } _resultobj = Py_BuildValue("i",_result); | |
2386 | return _resultobj; | |
2387 | } | |
2388 | ||
2389 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2390 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2391 | PyObject * _resultobj; | |
2392 | bool _result; | |
2393 | wxWindow * _arg0; | |
2394 | int _arg1; | |
2395 | int _arg2; | |
2396 | int _arg3 = (int ) 0; | |
2397 | int _arg4 = (int ) 0; | |
2398 | PyObject * _argo0 = 0; | |
2399 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2400 | ||
2401 | self = self; | |
2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2403 | return NULL; | |
2404 | if (_argo0) { | |
2405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2408 | return NULL; | |
2409 | } | |
2410 | } | |
2411 | { | |
2412 | wxPy_BEGIN_ALLOW_THREADS; | |
2413 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2414 | ||
2415 | wxPy_END_ALLOW_THREADS; | |
2416 | } _resultobj = Py_BuildValue("i",_result); | |
2417 | return _resultobj; | |
2418 | } | |
2419 | ||
2420 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2421 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2422 | PyObject * _resultobj; | |
2423 | bool _result; | |
2424 | wxWindow * _arg0; | |
2425 | wxPoint * _arg1; | |
2426 | PyObject * _argo0 = 0; | |
2427 | wxPoint temp; | |
2428 | PyObject * _obj1 = 0; | |
2429 | char *_kwnames[] = { "self","pt", NULL }; | |
2430 | ||
2431 | self = self; | |
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2433 | return NULL; | |
2434 | if (_argo0) { | |
2435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2438 | return NULL; | |
2439 | } | |
2440 | } | |
2441 | { | |
2442 | _arg1 = &temp; | |
2443 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2444 | return NULL; | |
2445 | } | |
2446 | { | |
2447 | wxPy_BEGIN_ALLOW_THREADS; | |
2448 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2449 | ||
2450 | wxPy_END_ALLOW_THREADS; | |
2451 | } _resultobj = Py_BuildValue("i",_result); | |
2452 | return _resultobj; | |
2453 | } | |
2454 | ||
2455 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2456 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2457 | PyObject * _resultobj; | |
2458 | bool _result; | |
2459 | wxWindow * _arg0; | |
2460 | wxRect * _arg1; | |
2461 | PyObject * _argo0 = 0; | |
2462 | wxRect temp; | |
2463 | PyObject * _obj1 = 0; | |
2464 | char *_kwnames[] = { "self","rect", NULL }; | |
2465 | ||
2466 | self = self; | |
2467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2468 | return NULL; | |
2469 | if (_argo0) { | |
2470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2473 | return NULL; | |
2474 | } | |
2475 | } | |
2476 | { | |
2477 | _arg1 = &temp; | |
2478 | if (! wxRect_helper(_obj1, &_arg1)) | |
2479 | return NULL; | |
2480 | } | |
2481 | { | |
2482 | wxPy_BEGIN_ALLOW_THREADS; | |
2483 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2484 | ||
2485 | wxPy_END_ALLOW_THREADS; | |
2486 | } _resultobj = Py_BuildValue("i",_result); | |
2487 | return _resultobj; | |
2488 | } | |
2489 | ||
2490 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
2491 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2492 | PyObject * _resultobj; | |
2493 | bool _result; | |
2494 | wxWindow * _arg0; | |
2495 | PyObject * _argo0 = 0; | |
2496 | char *_kwnames[] = { "self", NULL }; | |
2497 | ||
2498 | self = self; | |
2499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) | |
2500 | return NULL; | |
2501 | if (_argo0) { | |
2502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); | |
2505 | return NULL; | |
2506 | } | |
2507 | } | |
2508 | { | |
2509 | wxPy_BEGIN_ALLOW_THREADS; | |
2510 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2511 | ||
2512 | wxPy_END_ALLOW_THREADS; | |
2513 | } _resultobj = Py_BuildValue("i",_result); | |
2514 | return _resultobj; | |
2515 | } | |
2516 | ||
2517 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
2518 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2519 | PyObject * _resultobj; | |
2520 | bool _result; | |
2521 | wxWindow * _arg0; | |
2522 | PyObject * _argo0 = 0; | |
2523 | char *_kwnames[] = { "self", NULL }; | |
2524 | ||
2525 | self = self; | |
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) | |
2527 | return NULL; | |
2528 | if (_argo0) { | |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); | |
2532 | return NULL; | |
2533 | } | |
2534 | } | |
2535 | { | |
2536 | wxPy_BEGIN_ALLOW_THREADS; | |
2537 | _result = (bool )wxWindow_IsShown(_arg0); | |
2538 | ||
2539 | wxPy_END_ALLOW_THREADS; | |
2540 | } _resultobj = Py_BuildValue("i",_result); | |
2541 | return _resultobj; | |
2542 | } | |
2543 | ||
2544 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) | |
2545 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject * _resultobj; | |
2547 | bool _result; | |
2548 | wxWindow * _arg0; | |
2549 | PyObject * _argo0 = 0; | |
2550 | char *_kwnames[] = { "self", NULL }; | |
2551 | ||
2552 | self = self; | |
2553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) | |
2554 | return NULL; | |
2555 | if (_argo0) { | |
2556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); | |
2559 | return NULL; | |
2560 | } | |
2561 | } | |
2562 | { | |
2563 | wxPy_BEGIN_ALLOW_THREADS; | |
2564 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2565 | ||
2566 | wxPy_END_ALLOW_THREADS; | |
2567 | } _resultobj = Py_BuildValue("i",_result); | |
2568 | return _resultobj; | |
2569 | } | |
2570 | ||
2571 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) | |
2572 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2573 | PyObject * _resultobj; | |
2574 | wxWindow * _arg0; | |
2575 | PyObject * _argo0 = 0; | |
2576 | char *_kwnames[] = { "self", NULL }; | |
2577 | ||
2578 | self = self; | |
2579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) | |
2580 | return NULL; | |
2581 | if (_argo0) { | |
2582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); | |
2585 | return NULL; | |
2586 | } | |
2587 | } | |
2588 | { | |
2589 | wxPy_BEGIN_ALLOW_THREADS; | |
2590 | wxWindow_Layout(_arg0); | |
2591 | ||
2592 | wxPy_END_ALLOW_THREADS; | |
2593 | } Py_INCREF(Py_None); | |
2594 | _resultobj = Py_None; | |
2595 | return _resultobj; | |
2596 | } | |
2597 | ||
2598 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
2599 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2600 | PyObject * _resultobj; | |
2601 | bool _result; | |
2602 | wxWindow * _arg0; | |
2603 | wxWindow * _arg1; | |
2604 | wxString * _arg2; | |
2605 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; | |
2606 | PyObject * _argo0 = 0; | |
2607 | PyObject * _argo1 = 0; | |
2608 | PyObject * _obj2 = 0; | |
2609 | PyObject * _argo3 = 0; | |
2610 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; | |
2611 | ||
2612 | self = self; | |
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) | |
2614 | return NULL; | |
2615 | if (_argo0) { | |
2616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
2619 | return NULL; | |
2620 | } | |
2621 | } | |
2622 | if (_argo1) { | |
2623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
2626 | return NULL; | |
2627 | } | |
2628 | } | |
2629 | { | |
2630 | if (!PyString_Check(_obj2)) { | |
2631 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2632 | return NULL; | |
2633 | } | |
2634 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
2635 | } | |
2636 | if (_argo3) { | |
2637 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2638 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
2639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); | |
2640 | return NULL; | |
2641 | } | |
2642 | } | |
2643 | { | |
2644 | wxPy_BEGIN_ALLOW_THREADS; | |
2645 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
2646 | ||
2647 | wxPy_END_ALLOW_THREADS; | |
2648 | } _resultobj = Py_BuildValue("i",_result); | |
2649 | { | |
2650 | if (_obj2) | |
2651 | delete _arg2; | |
2652 | } | |
2653 | return _resultobj; | |
2654 | } | |
2655 | ||
2656 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
2657 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2658 | PyObject * _resultobj; | |
2659 | wxWindow * _arg0; | |
2660 | PyObject * _argo0 = 0; | |
2661 | char *_kwnames[] = { "self", NULL }; | |
2662 | ||
2663 | self = self; | |
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) | |
2665 | return NULL; | |
2666 | if (_argo0) { | |
2667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); | |
2670 | return NULL; | |
2671 | } | |
2672 | } | |
2673 | { | |
2674 | wxPy_BEGIN_ALLOW_THREADS; | |
2675 | wxWindow_Lower(_arg0); | |
2676 | ||
2677 | wxPy_END_ALLOW_THREADS; | |
2678 | } Py_INCREF(Py_None); | |
2679 | _resultobj = Py_None; | |
2680 | return _resultobj; | |
2681 | } | |
2682 | ||
2683 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
2684 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2685 | PyObject * _resultobj; | |
2686 | wxWindow * _arg0; | |
2687 | bool _arg1; | |
2688 | PyObject * _argo0 = 0; | |
2689 | int tempbool1; | |
2690 | char *_kwnames[] = { "self","flag", NULL }; | |
2691 | ||
2692 | self = self; | |
2693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
2694 | return NULL; | |
2695 | if (_argo0) { | |
2696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); | |
2699 | return NULL; | |
2700 | } | |
2701 | } | |
2702 | _arg1 = (bool ) tempbool1; | |
2703 | { | |
2704 | wxPy_BEGIN_ALLOW_THREADS; | |
2705 | wxWindow_MakeModal(_arg0,_arg1); | |
2706 | ||
2707 | wxPy_END_ALLOW_THREADS; | |
2708 | } Py_INCREF(Py_None); | |
2709 | _resultobj = Py_None; | |
2710 | return _resultobj; | |
2711 | } | |
2712 | ||
2713 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2714 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2715 | PyObject * _resultobj; | |
2716 | wxWindow * _arg0; | |
2717 | int _arg1; | |
2718 | int _arg2; | |
2719 | PyObject * _argo0 = 0; | |
2720 | char *_kwnames[] = { "self","x","y", NULL }; | |
2721 | ||
2722 | self = self; | |
2723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2724 | return NULL; | |
2725 | if (_argo0) { | |
2726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); | |
2729 | return NULL; | |
2730 | } | |
2731 | } | |
2732 | { | |
2733 | wxPy_BEGIN_ALLOW_THREADS; | |
2734 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
2735 | ||
2736 | wxPy_END_ALLOW_THREADS; | |
2737 | } Py_INCREF(Py_None); | |
2738 | _resultobj = Py_None; | |
2739 | return _resultobj; | |
2740 | } | |
2741 | ||
2742 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2743 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2744 | PyObject * _resultobj; | |
2745 | wxWindow * _arg0; | |
2746 | wxPoint * _arg1; | |
2747 | PyObject * _argo0 = 0; | |
2748 | wxPoint temp; | |
2749 | PyObject * _obj1 = 0; | |
2750 | char *_kwnames[] = { "self","point", NULL }; | |
2751 | ||
2752 | self = self; | |
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) | |
2754 | return NULL; | |
2755 | if (_argo0) { | |
2756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); | |
2759 | return NULL; | |
2760 | } | |
2761 | } | |
2762 | { | |
2763 | _arg1 = &temp; | |
2764 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2765 | return NULL; | |
2766 | } | |
2767 | { | |
2768 | wxPy_BEGIN_ALLOW_THREADS; | |
2769 | wxWindow_Move(_arg0,*_arg1); | |
2770 | ||
2771 | wxPy_END_ALLOW_THREADS; | |
2772 | } Py_INCREF(Py_None); | |
2773 | _resultobj = Py_None; | |
2774 | return _resultobj; | |
2775 | } | |
2776 | ||
2777 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) | |
2778 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2779 | PyObject * _resultobj; | |
2780 | wxEvtHandler * _result; | |
2781 | wxWindow * _arg0; | |
2782 | bool _arg1 = (bool ) FALSE; | |
2783 | PyObject * _argo0 = 0; | |
2784 | int tempbool1 = (int) FALSE; | |
2785 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
2786 | char _ptemp[128]; | |
2787 | ||
2788 | self = self; | |
2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
2790 | return NULL; | |
2791 | if (_argo0) { | |
2792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
2795 | return NULL; | |
2796 | } | |
2797 | } | |
2798 | _arg1 = (bool ) tempbool1; | |
2799 | { | |
2800 | wxPy_BEGIN_ALLOW_THREADS; | |
2801 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
2802 | ||
2803 | wxPy_END_ALLOW_THREADS; | |
2804 | } if (_result) { | |
2805 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
2806 | _resultobj = Py_BuildValue("s",_ptemp); | |
2807 | } else { | |
2808 | Py_INCREF(Py_None); | |
2809 | _resultobj = Py_None; | |
2810 | } | |
2811 | return _resultobj; | |
2812 | } | |
2813 | ||
2814 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
2815 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2816 | PyObject * _resultobj; | |
2817 | wxWindow * _arg0; | |
2818 | wxEvtHandler * _arg1; | |
2819 | PyObject * _argo0 = 0; | |
2820 | PyObject * _argo1 = 0; | |
2821 | char *_kwnames[] = { "self","handler", NULL }; | |
2822 | ||
2823 | self = self; | |
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
2825 | return NULL; | |
2826 | if (_argo0) { | |
2827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
2830 | return NULL; | |
2831 | } | |
2832 | } | |
2833 | if (_argo1) { | |
2834 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2835 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
2836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
2837 | return NULL; | |
2838 | } | |
2839 | } | |
2840 | { | |
2841 | wxPy_BEGIN_ALLOW_THREADS; | |
2842 | wxWindow_PushEventHandler(_arg0,_arg1); | |
2843 | ||
2844 | wxPy_END_ALLOW_THREADS; | |
2845 | } Py_INCREF(Py_None); | |
2846 | _resultobj = Py_None; | |
2847 | return _resultobj; | |
2848 | } | |
2849 | ||
2850 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) | |
2851 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2852 | PyObject * _resultobj; | |
2853 | bool _result; | |
2854 | wxWindow * _arg0; | |
2855 | wxMenu * _arg1; | |
2856 | int _arg2; | |
2857 | int _arg3; | |
2858 | PyObject * _argo0 = 0; | |
2859 | PyObject * _argo1 = 0; | |
2860 | char *_kwnames[] = { "self","menu","x","y", NULL }; | |
2861 | ||
2862 | self = self; | |
2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
2864 | return NULL; | |
2865 | if (_argo0) { | |
2866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); | |
2869 | return NULL; | |
2870 | } | |
2871 | } | |
2872 | if (_argo1) { | |
2873 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2874 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
2875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); | |
2876 | return NULL; | |
2877 | } | |
2878 | } | |
2879 | { | |
2880 | wxPy_BEGIN_ALLOW_THREADS; | |
2881 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
2882 | ||
2883 | wxPy_END_ALLOW_THREADS; | |
2884 | } _resultobj = Py_BuildValue("i",_result); | |
2885 | return _resultobj; | |
2886 | } | |
2887 | ||
2888 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
2889 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2890 | PyObject * _resultobj; | |
2891 | bool _result; | |
2892 | wxWindow * _arg0; | |
2893 | wxMenu * _arg1; | |
2894 | wxPoint * _arg2; | |
2895 | PyObject * _argo0 = 0; | |
2896 | PyObject * _argo1 = 0; | |
2897 | wxPoint temp; | |
2898 | PyObject * _obj2 = 0; | |
2899 | char *_kwnames[] = { "self","menu","pos", NULL }; | |
2900 | ||
2901 | self = self; | |
2902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2903 | return NULL; | |
2904 | if (_argo0) { | |
2905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); | |
2908 | return NULL; | |
2909 | } | |
2910 | } | |
2911 | if (_argo1) { | |
2912 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2913 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
2914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); | |
2915 | return NULL; | |
2916 | } | |
2917 | } | |
2918 | { | |
2919 | _arg2 = &temp; | |
2920 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2921 | return NULL; | |
2922 | } | |
2923 | { | |
2924 | wxPy_BEGIN_ALLOW_THREADS; | |
2925 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); | |
2926 | ||
2927 | wxPy_END_ALLOW_THREADS; | |
2928 | } _resultobj = Py_BuildValue("i",_result); | |
2929 | return _resultobj; | |
2930 | } | |
2931 | ||
2932 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
2933 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2934 | PyObject * _resultobj; | |
2935 | wxWindow * _arg0; | |
2936 | PyObject * _argo0 = 0; | |
2937 | char *_kwnames[] = { "self", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) | |
2941 | return NULL; | |
2942 | if (_argo0) { | |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); | |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
2949 | { | |
2950 | wxPy_BEGIN_ALLOW_THREADS; | |
2951 | wxWindow_Raise(_arg0); | |
2952 | ||
2953 | wxPy_END_ALLOW_THREADS; | |
2954 | } Py_INCREF(Py_None); | |
2955 | _resultobj = Py_None; | |
2956 | return _resultobj; | |
2957 | } | |
2958 | ||
2959 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
2960 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2961 | PyObject * _resultobj; | |
2962 | wxWindow * _arg0; | |
2963 | bool _arg1 = (bool ) TRUE; | |
2964 | wxRect * _arg2 = (wxRect *) NULL; | |
2965 | PyObject * _argo0 = 0; | |
2966 | int tempbool1 = (int) TRUE; | |
2967 | wxRect temp; | |
2968 | PyObject * _obj2 = 0; | |
2969 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; | |
2970 | ||
2971 | self = self; | |
2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) | |
2973 | return NULL; | |
2974 | if (_argo0) { | |
2975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); | |
2978 | return NULL; | |
2979 | } | |
2980 | } | |
2981 | _arg1 = (bool ) tempbool1; | |
2982 | if (_obj2) | |
2983 | { | |
2984 | _arg2 = &temp; | |
2985 | if (! wxRect_helper(_obj2, &_arg2)) | |
2986 | return NULL; | |
2987 | } | |
2988 | { | |
2989 | wxPy_BEGIN_ALLOW_THREADS; | |
2990 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
2991 | ||
2992 | wxPy_END_ALLOW_THREADS; | |
2993 | } Py_INCREF(Py_None); | |
2994 | _resultobj = Py_None; | |
2995 | return _resultobj; | |
2996 | } | |
2997 | ||
2998 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
2999 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3000 | PyObject * _resultobj; | |
3001 | wxWindow * _arg0; | |
3002 | PyObject * _argo0 = 0; | |
3003 | char *_kwnames[] = { "self", NULL }; | |
3004 | ||
3005 | self = self; | |
3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
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_ReleaseMouse. Expected _wxWindow_p."); | |
3012 | return NULL; | |
3013 | } | |
3014 | } | |
3015 | { | |
3016 | wxPy_BEGIN_ALLOW_THREADS; | |
3017 | wxWindow_ReleaseMouse(_arg0); | |
3018 | ||
3019 | wxPy_END_ALLOW_THREADS; | |
3020 | } Py_INCREF(Py_None); | |
3021 | _resultobj = Py_None; | |
3022 | return _resultobj; | |
3023 | } | |
3024 | ||
3025 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) | |
3026 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3027 | PyObject * _resultobj; | |
3028 | bool _result; | |
3029 | wxWindow * _arg0; | |
3030 | wxWindow * _arg1; | |
3031 | PyObject * _argo0 = 0; | |
3032 | PyObject * _argo1 = 0; | |
3033 | char *_kwnames[] = { "self","newParent", NULL }; | |
3034 | ||
3035 | self = self; | |
3036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) | |
3037 | return NULL; | |
3038 | if (_argo0) { | |
3039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3042 | return NULL; | |
3043 | } | |
3044 | } | |
3045 | if (_argo1) { | |
3046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3049 | return NULL; | |
3050 | } | |
3051 | } | |
3052 | { | |
3053 | wxPy_BEGIN_ALLOW_THREADS; | |
3054 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3055 | ||
3056 | wxPy_END_ALLOW_THREADS; | |
3057 | } _resultobj = Py_BuildValue("i",_result); | |
3058 | return _resultobj; | |
3059 | } | |
3060 | ||
3061 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) | |
3062 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3063 | PyObject * _resultobj; | |
3064 | wxWindow * _arg0; | |
3065 | int * _arg1; | |
3066 | int * _arg2; | |
3067 | PyObject * _argo0 = 0; | |
3068 | int temp; | |
3069 | PyObject * _obj1 = 0; | |
3070 | int temp0; | |
3071 | PyObject * _obj2 = 0; | |
3072 | char *_kwnames[] = { "self","x","y", NULL }; | |
3073 | ||
3074 | self = self; | |
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3076 | return NULL; | |
3077 | if (_argo0) { | |
3078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); | |
3081 | return NULL; | |
3082 | } | |
3083 | } | |
3084 | { | |
3085 | temp = (int) PyInt_AsLong(_obj1); | |
3086 | _arg1 = &temp; | |
3087 | } | |
3088 | { | |
3089 | temp0 = (int) PyInt_AsLong(_obj2); | |
3090 | _arg2 = &temp0; | |
3091 | } | |
3092 | { | |
3093 | wxPy_BEGIN_ALLOW_THREADS; | |
3094 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3095 | ||
3096 | wxPy_END_ALLOW_THREADS; | |
3097 | } Py_INCREF(Py_None); | |
3098 | _resultobj = Py_None; | |
3099 | { | |
3100 | PyObject *o; | |
3101 | o = PyInt_FromLong((long) (*_arg1)); | |
3102 | _resultobj = t_output_helper(_resultobj, o); | |
3103 | } | |
3104 | { | |
3105 | PyObject *o; | |
3106 | o = PyInt_FromLong((long) (*_arg2)); | |
3107 | _resultobj = t_output_helper(_resultobj, o); | |
3108 | } | |
3109 | return _resultobj; | |
3110 | } | |
3111 | ||
3112 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) | |
3113 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3114 | PyObject * _resultobj; | |
3115 | wxPoint * _result; | |
3116 | wxWindow * _arg0; | |
3117 | wxPoint * _arg1; | |
3118 | PyObject * _argo0 = 0; | |
3119 | wxPoint temp; | |
3120 | PyObject * _obj1 = 0; | |
3121 | char *_kwnames[] = { "self","pt", NULL }; | |
3122 | char _ptemp[128]; | |
3123 | ||
3124 | self = self; | |
3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) | |
3126 | return NULL; | |
3127 | if (_argo0) { | |
3128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); | |
3131 | return NULL; | |
3132 | } | |
3133 | } | |
3134 | { | |
3135 | _arg1 = &temp; | |
3136 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3137 | return NULL; | |
3138 | } | |
3139 | { | |
3140 | wxPy_BEGIN_ALLOW_THREADS; | |
3141 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3142 | ||
3143 | wxPy_END_ALLOW_THREADS; | |
3144 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3145 | _resultobj = Py_BuildValue("s",_ptemp); | |
3146 | return _resultobj; | |
3147 | } | |
3148 | ||
3149 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) | |
3150 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject * _resultobj; | |
3152 | wxWindow * _arg0; | |
3153 | int _arg1; | |
3154 | int _arg2; | |
3155 | wxRect * _arg3 = (wxRect *) NULL; | |
3156 | PyObject * _argo0 = 0; | |
3157 | wxRect temp; | |
3158 | PyObject * _obj3 = 0; | |
3159 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; | |
3160 | ||
3161 | self = self; | |
3162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3163 | return NULL; | |
3164 | if (_argo0) { | |
3165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); | |
3168 | return NULL; | |
3169 | } | |
3170 | } | |
3171 | if (_obj3) | |
3172 | { | |
3173 | _arg3 = &temp; | |
3174 | if (! wxRect_helper(_obj3, &_arg3)) | |
3175 | return NULL; | |
3176 | } | |
3177 | { | |
3178 | wxPy_BEGIN_ALLOW_THREADS; | |
3179 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3180 | ||
3181 | wxPy_END_ALLOW_THREADS; | |
3182 | } Py_INCREF(Py_None); | |
3183 | _resultobj = Py_None; | |
3184 | return _resultobj; | |
3185 | } | |
3186 | ||
3187 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) | |
3188 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3189 | PyObject * _resultobj; | |
3190 | wxWindow * _arg0; | |
3191 | wxAcceleratorTable * _arg1; | |
3192 | PyObject * _argo0 = 0; | |
3193 | PyObject * _argo1 = 0; | |
3194 | char *_kwnames[] = { "self","accel", NULL }; | |
3195 | ||
3196 | self = self; | |
3197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
3198 | return NULL; | |
3199 | if (_argo0) { | |
3200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
3203 | return NULL; | |
3204 | } | |
3205 | } | |
3206 | if (_argo1) { | |
3207 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
3210 | return NULL; | |
3211 | } | |
3212 | } | |
3213 | { | |
3214 | wxPy_BEGIN_ALLOW_THREADS; | |
3215 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3216 | ||
3217 | wxPy_END_ALLOW_THREADS; | |
3218 | } Py_INCREF(Py_None); | |
3219 | _resultobj = Py_None; | |
3220 | return _resultobj; | |
3221 | } | |
3222 | ||
3223 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
3224 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3225 | PyObject * _resultobj; | |
3226 | wxWindow * _arg0; | |
3227 | bool _arg1; | |
3228 | PyObject * _argo0 = 0; | |
3229 | int tempbool1; | |
3230 | char *_kwnames[] = { "self","autoLayout", NULL }; | |
3231 | ||
3232 | self = self; | |
3233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) | |
3234 | return NULL; | |
3235 | if (_argo0) { | |
3236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); | |
3239 | return NULL; | |
3240 | } | |
3241 | } | |
3242 | _arg1 = (bool ) tempbool1; | |
3243 | { | |
3244 | wxPy_BEGIN_ALLOW_THREADS; | |
3245 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3246 | ||
3247 | wxPy_END_ALLOW_THREADS; | |
3248 | } Py_INCREF(Py_None); | |
3249 | _resultobj = Py_None; | |
3250 | return _resultobj; | |
3251 | } | |
3252 | ||
3253 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) | |
3254 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3255 | PyObject * _resultobj; | |
3256 | bool _result; | |
3257 | wxWindow * _arg0; | |
3258 | PyObject * _argo0 = 0; | |
3259 | char *_kwnames[] = { "self", NULL }; | |
3260 | ||
3261 | self = self; | |
3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3263 | return NULL; | |
3264 | if (_argo0) { | |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | { | |
3272 | wxPy_BEGIN_ALLOW_THREADS; | |
3273 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3274 | ||
3275 | wxPy_END_ALLOW_THREADS; | |
3276 | } _resultobj = Py_BuildValue("i",_result); | |
3277 | return _resultobj; | |
3278 | } | |
3279 | ||
3280 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3281 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject * _resultobj; | |
3283 | wxWindow * _arg0; | |
3284 | wxColour * _arg1; | |
3285 | PyObject * _argo0 = 0; | |
3286 | PyObject * _argo1 = 0; | |
3287 | char *_kwnames[] = { "self","colour", NULL }; | |
3288 | ||
3289 | self = self; | |
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1)) | |
3291 | return NULL; | |
3292 | if (_argo0) { | |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); | |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
3299 | if (_argo1) { | |
3300 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3301 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
3302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p."); | |
3303 | return NULL; | |
3304 | } | |
3305 | } | |
3306 | { | |
3307 | wxPy_BEGIN_ALLOW_THREADS; | |
3308 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3309 | ||
3310 | wxPy_END_ALLOW_THREADS; | |
3311 | } Py_INCREF(Py_None); | |
3312 | _resultobj = Py_None; | |
3313 | return _resultobj; | |
3314 | } | |
3315 | ||
3316 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
3317 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3318 | PyObject * _resultobj; | |
3319 | wxWindow * _arg0; | |
3320 | wxLayoutConstraints * _arg1; | |
3321 | PyObject * _argo0 = 0; | |
3322 | PyObject * _argo1 = 0; | |
3323 | char *_kwnames[] = { "self","constraints", NULL }; | |
3324 | ||
3325 | self = self; | |
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) | |
3327 | return NULL; | |
3328 | if (_argo0) { | |
3329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); | |
3332 | return NULL; | |
3333 | } | |
3334 | } | |
3335 | if (_argo1) { | |
3336 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3337 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); | |
3339 | return NULL; | |
3340 | } | |
3341 | } | |
3342 | { | |
3343 | wxPy_BEGIN_ALLOW_THREADS; | |
3344 | wxWindow_SetConstraints(_arg0,_arg1); | |
3345 | ||
3346 | wxPy_END_ALLOW_THREADS; | |
3347 | } Py_INCREF(Py_None); | |
3348 | _resultobj = Py_None; | |
3349 | return _resultobj; | |
3350 | } | |
3351 | ||
3352 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) | |
3353 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject * _resultobj; | |
3355 | wxWindow * _arg0; | |
3356 | wxLayoutConstraints * _arg1; | |
3357 | PyObject * _argo0 = 0; | |
3358 | PyObject * _argo1 = 0; | |
3359 | char *_kwnames[] = { "self","constraints", NULL }; | |
3360 | ||
3361 | self = self; | |
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3363 | return NULL; | |
3364 | if (_argo0) { | |
3365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3368 | return NULL; | |
3369 | } | |
3370 | } | |
3371 | if (_argo1) { | |
3372 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3373 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3375 | return NULL; | |
3376 | } | |
3377 | } | |
3378 | { | |
3379 | wxPy_BEGIN_ALLOW_THREADS; | |
3380 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3381 | ||
3382 | wxPy_END_ALLOW_THREADS; | |
3383 | } Py_INCREF(Py_None); | |
3384 | _resultobj = Py_None; | |
3385 | return _resultobj; | |
3386 | } | |
3387 | ||
3388 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) | |
3389 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3390 | PyObject * _resultobj; | |
3391 | wxWindow * _arg0; | |
3392 | PyObject * _argo0 = 0; | |
3393 | char *_kwnames[] = { "self", NULL }; | |
3394 | ||
3395 | self = self; | |
3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) | |
3397 | return NULL; | |
3398 | if (_argo0) { | |
3399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); | |
3402 | return NULL; | |
3403 | } | |
3404 | } | |
3405 | { | |
3406 | wxPy_BEGIN_ALLOW_THREADS; | |
3407 | wxWindow_SetFocus(_arg0); | |
3408 | ||
3409 | wxPy_END_ALLOW_THREADS; | |
3410 | } Py_INCREF(Py_None); | |
3411 | _resultobj = Py_None; | |
3412 | return _resultobj; | |
3413 | } | |
3414 | ||
3415 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) | |
3416 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3417 | PyObject * _resultobj; | |
3418 | bool _result; | |
3419 | wxWindow * _arg0; | |
3420 | PyObject * _argo0 = 0; | |
3421 | char *_kwnames[] = { "self", NULL }; | |
3422 | ||
3423 | self = self; | |
3424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3425 | return NULL; | |
3426 | if (_argo0) { | |
3427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3430 | return NULL; | |
3431 | } | |
3432 | } | |
3433 | { | |
3434 | wxPy_BEGIN_ALLOW_THREADS; | |
3435 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3436 | ||
3437 | wxPy_END_ALLOW_THREADS; | |
3438 | } _resultobj = Py_BuildValue("i",_result); | |
3439 | return _resultobj; | |
3440 | } | |
3441 | ||
3442 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
3443 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxWindow * _arg0; | |
3446 | wxFont * _arg1; | |
3447 | PyObject * _argo0 = 0; | |
3448 | PyObject * _argo1 = 0; | |
3449 | char *_kwnames[] = { "self","font", NULL }; | |
3450 | ||
3451 | self = self; | |
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) | |
3453 | return NULL; | |
3454 | if (_argo0) { | |
3455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | if (_argo1) { | |
3462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); | |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
3468 | { | |
3469 | wxPy_BEGIN_ALLOW_THREADS; | |
3470 | wxWindow_SetFont(_arg0,*_arg1); | |
3471 | ||
3472 | wxPy_END_ALLOW_THREADS; | |
3473 | } Py_INCREF(Py_None); | |
3474 | _resultobj = Py_None; | |
3475 | return _resultobj; | |
3476 | } | |
3477 | ||
3478 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
3479 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3480 | PyObject * _resultobj; | |
3481 | wxWindow * _arg0; | |
3482 | wxColour * _arg1; | |
3483 | PyObject * _argo0 = 0; | |
3484 | PyObject * _argo1 = 0; | |
3485 | char *_kwnames[] = { "self","colour", NULL }; | |
3486 | ||
3487 | self = self; | |
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1)) | |
3489 | return NULL; | |
3490 | if (_argo0) { | |
3491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); | |
3494 | return NULL; | |
3495 | } | |
3496 | } | |
3497 | if (_argo1) { | |
3498 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3499 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
3500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p."); | |
3501 | return NULL; | |
3502 | } | |
3503 | } | |
3504 | { | |
3505 | wxPy_BEGIN_ALLOW_THREADS; | |
3506 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3507 | ||
3508 | wxPy_END_ALLOW_THREADS; | |
3509 | } Py_INCREF(Py_None); | |
3510 | _resultobj = Py_None; | |
3511 | return _resultobj; | |
3512 | } | |
3513 | ||
3514 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
3515 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject * _resultobj; | |
3517 | wxWindow * _arg0; | |
3518 | int _arg1; | |
3519 | PyObject * _argo0 = 0; | |
3520 | char *_kwnames[] = { "self","id", NULL }; | |
3521 | ||
3522 | self = self; | |
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) | |
3524 | return NULL; | |
3525 | if (_argo0) { | |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); | |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
3532 | { | |
3533 | wxPy_BEGIN_ALLOW_THREADS; | |
3534 | wxWindow_SetId(_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_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
3543 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3544 | PyObject * _resultobj; | |
3545 | wxWindow * _arg0; | |
3546 | wxString * _arg1; | |
3547 | PyObject * _argo0 = 0; | |
3548 | PyObject * _obj1 = 0; | |
3549 | char *_kwnames[] = { "self","name", NULL }; | |
3550 | ||
3551 | self = self; | |
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) | |
3553 | return NULL; | |
3554 | if (_argo0) { | |
3555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); | |
3558 | return NULL; | |
3559 | } | |
3560 | } | |
3561 | { | |
3562 | if (!PyString_Check(_obj1)) { | |
3563 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3564 | return NULL; | |
3565 | } | |
3566 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
3567 | } | |
3568 | { | |
3569 | wxPy_BEGIN_ALLOW_THREADS; | |
3570 | wxWindow_SetName(_arg0,*_arg1); | |
3571 | ||
3572 | wxPy_END_ALLOW_THREADS; | |
3573 | } Py_INCREF(Py_None); | |
3574 | _resultobj = Py_None; | |
3575 | { | |
3576 | if (_obj1) | |
3577 | delete _arg1; | |
3578 | } | |
3579 | return _resultobj; | |
3580 | } | |
3581 | ||
3582 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3583 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject * _resultobj; | |
3585 | wxWindow * _arg0; | |
3586 | int _arg1; | |
3587 | int _arg2; | |
3588 | int _arg3; | |
3589 | int _arg4; | |
3590 | int _arg5 = (int ) TRUE; | |
3591 | PyObject * _argo0 = 0; | |
3592 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; | |
3593 | ||
3594 | self = self; | |
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
3596 | return NULL; | |
3597 | if (_argo0) { | |
3598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); | |
3601 | return NULL; | |
3602 | } | |
3603 | } | |
3604 | { | |
3605 | wxPy_BEGIN_ALLOW_THREADS; | |
3606 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3607 | ||
3608 | wxPy_END_ALLOW_THREADS; | |
3609 | } Py_INCREF(Py_None); | |
3610 | _resultobj = Py_None; | |
3611 | return _resultobj; | |
3612 | } | |
3613 | ||
3614 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
3615 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3616 | PyObject * _resultobj; | |
3617 | wxWindow * _arg0; | |
3618 | int _arg1; | |
3619 | int _arg2; | |
3620 | bool _arg3 = (bool ) TRUE; | |
3621 | PyObject * _argo0 = 0; | |
3622 | int tempbool3 = (int) TRUE; | |
3623 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; | |
3624 | ||
3625 | self = self; | |
3626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
3627 | return NULL; | |
3628 | if (_argo0) { | |
3629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); | |
3632 | return NULL; | |
3633 | } | |
3634 | } | |
3635 | _arg3 = (bool ) tempbool3; | |
3636 | { | |
3637 | wxPy_BEGIN_ALLOW_THREADS; | |
3638 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
3639 | ||
3640 | wxPy_END_ALLOW_THREADS; | |
3641 | } Py_INCREF(Py_None); | |
3642 | _resultobj = Py_None; | |
3643 | return _resultobj; | |
3644 | } | |
3645 | ||
3646 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3647 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3648 | PyObject * _resultobj; | |
3649 | wxWindow * _arg0; | |
3650 | int _arg1; | |
3651 | int _arg2; | |
3652 | int _arg3; | |
3653 | int _arg4; | |
3654 | int _arg5 = (int ) wxSIZE_AUTO; | |
3655 | PyObject * _argo0 = 0; | |
3656 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
3657 | ||
3658 | self = self; | |
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
3660 | return NULL; | |
3661 | if (_argo0) { | |
3662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); | |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
3668 | { | |
3669 | wxPy_BEGIN_ALLOW_THREADS; | |
3670 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3671 | ||
3672 | wxPy_END_ALLOW_THREADS; | |
3673 | } Py_INCREF(Py_None); | |
3674 | _resultobj = Py_None; | |
3675 | return _resultobj; | |
3676 | } | |
3677 | ||
3678 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
3679 | self->SetSize(size.x, size.y); | |
3680 | } | |
3681 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3682 | PyObject * _resultobj; | |
3683 | wxWindow * _arg0; | |
3684 | wxSize * _arg1; | |
3685 | PyObject * _argo0 = 0; | |
3686 | wxSize temp; | |
3687 | PyObject * _obj1 = 0; | |
3688 | char *_kwnames[] = { "self","size", NULL }; | |
3689 | ||
3690 | self = self; | |
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) | |
3692 | return NULL; | |
3693 | if (_argo0) { | |
3694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); | |
3697 | return NULL; | |
3698 | } | |
3699 | } | |
3700 | { | |
3701 | _arg1 = &temp; | |
3702 | if (! wxSize_helper(_obj1, &_arg1)) | |
3703 | return NULL; | |
3704 | } | |
3705 | { | |
3706 | wxPy_BEGIN_ALLOW_THREADS; | |
3707 | wxWindow_SetSize(_arg0,*_arg1); | |
3708 | ||
3709 | wxPy_END_ALLOW_THREADS; | |
3710 | } Py_INCREF(Py_None); | |
3711 | _resultobj = Py_None; | |
3712 | return _resultobj; | |
3713 | } | |
3714 | ||
3715 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
3716 | self->SetSize(pos.x, pos.y, -1, -1); | |
3717 | } | |
3718 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3719 | PyObject * _resultobj; | |
3720 | wxWindow * _arg0; | |
3721 | wxPoint * _arg1; | |
3722 | PyObject * _argo0 = 0; | |
3723 | wxPoint temp; | |
3724 | PyObject * _obj1 = 0; | |
3725 | char *_kwnames[] = { "self","pos", NULL }; | |
3726 | ||
3727 | self = self; | |
3728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) | |
3729 | return NULL; | |
3730 | if (_argo0) { | |
3731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); | |
3734 | return NULL; | |
3735 | } | |
3736 | } | |
3737 | { | |
3738 | _arg1 = &temp; | |
3739 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3740 | return NULL; | |
3741 | } | |
3742 | { | |
3743 | wxPy_BEGIN_ALLOW_THREADS; | |
3744 | wxWindow_SetPosition(_arg0,*_arg1); | |
3745 | ||
3746 | wxPy_END_ALLOW_THREADS; | |
3747 | } Py_INCREF(Py_None); | |
3748 | _resultobj = Py_None; | |
3749 | return _resultobj; | |
3750 | } | |
3751 | ||
3752 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3753 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3754 | PyObject * _resultobj; | |
3755 | wxWindow * _arg0; | |
3756 | int _arg1 = (int ) -1; | |
3757 | int _arg2 = (int ) -1; | |
3758 | int _arg3 = (int ) -1; | |
3759 | int _arg4 = (int ) -1; | |
3760 | int _arg5 = (int ) -1; | |
3761 | int _arg6 = (int ) -1; | |
3762 | PyObject * _argo0 = 0; | |
3763 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; | |
3764 | ||
3765 | self = self; | |
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
3767 | return NULL; | |
3768 | if (_argo0) { | |
3769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); | |
3772 | return NULL; | |
3773 | } | |
3774 | } | |
3775 | { | |
3776 | wxPy_BEGIN_ALLOW_THREADS; | |
3777 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3778 | ||
3779 | wxPy_END_ALLOW_THREADS; | |
3780 | } Py_INCREF(Py_None); | |
3781 | _resultobj = Py_None; | |
3782 | return _resultobj; | |
3783 | } | |
3784 | ||
3785 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) | |
3786 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3787 | PyObject * _resultobj; | |
3788 | wxWindow * _arg0; | |
3789 | int _arg1; | |
3790 | int _arg2; | |
3791 | PyObject * _argo0 = 0; | |
3792 | char *_kwnames[] = { "self","width","height", NULL }; | |
3793 | ||
3794 | self = self; | |
3795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3796 | return NULL; | |
3797 | if (_argo0) { | |
3798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); | |
3801 | return NULL; | |
3802 | } | |
3803 | } | |
3804 | { | |
3805 | wxPy_BEGIN_ALLOW_THREADS; | |
3806 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
3807 | ||
3808 | wxPy_END_ALLOW_THREADS; | |
3809 | } Py_INCREF(Py_None); | |
3810 | _resultobj = Py_None; | |
3811 | return _resultobj; | |
3812 | } | |
3813 | ||
3814 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
3815 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject * _resultobj; | |
3817 | wxWindow * _arg0; | |
3818 | wxSize * _arg1; | |
3819 | PyObject * _argo0 = 0; | |
3820 | wxSize temp; | |
3821 | PyObject * _obj1 = 0; | |
3822 | char *_kwnames[] = { "self","size", NULL }; | |
3823 | ||
3824 | self = self; | |
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) | |
3826 | return NULL; | |
3827 | if (_argo0) { | |
3828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); | |
3831 | return NULL; | |
3832 | } | |
3833 | } | |
3834 | { | |
3835 | _arg1 = &temp; | |
3836 | if (! wxSize_helper(_obj1, &_arg1)) | |
3837 | return NULL; | |
3838 | } | |
3839 | { | |
3840 | wxPy_BEGIN_ALLOW_THREADS; | |
3841 | wxWindow_SetClientSize(_arg0,*_arg1); | |
3842 | ||
3843 | wxPy_END_ALLOW_THREADS; | |
3844 | } Py_INCREF(Py_None); | |
3845 | _resultobj = Py_None; | |
3846 | return _resultobj; | |
3847 | } | |
3848 | ||
3849 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
3850 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject * _resultobj; | |
3852 | wxWindow * _arg0; | |
3853 | wxCursor * _arg1; | |
3854 | PyObject * _argo0 = 0; | |
3855 | PyObject * _argo1 = 0; | |
3856 | char *_kwnames[] = { "self","cursor", NULL }; | |
3857 | ||
3858 | self = self; | |
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) | |
3860 | return NULL; | |
3861 | if (_argo0) { | |
3862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); | |
3865 | return NULL; | |
3866 | } | |
3867 | } | |
3868 | if (_argo1) { | |
3869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); | |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
3875 | { | |
3876 | wxPy_BEGIN_ALLOW_THREADS; | |
3877 | wxWindow_SetCursor(_arg0,*_arg1); | |
3878 | ||
3879 | wxPy_END_ALLOW_THREADS; | |
3880 | } Py_INCREF(Py_None); | |
3881 | _resultobj = Py_None; | |
3882 | return _resultobj; | |
3883 | } | |
3884 | ||
3885 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
3886 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3887 | PyObject * _resultobj; | |
3888 | wxWindow * _arg0; | |
3889 | wxEvtHandler * _arg1; | |
3890 | PyObject * _argo0 = 0; | |
3891 | PyObject * _argo1 = 0; | |
3892 | char *_kwnames[] = { "self","handler", NULL }; | |
3893 | ||
3894 | self = self; | |
3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
3896 | return NULL; | |
3897 | if (_argo0) { | |
3898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | if (_argo1) { | |
3905 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3906 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
3908 | return NULL; | |
3909 | } | |
3910 | } | |
3911 | { | |
3912 | wxPy_BEGIN_ALLOW_THREADS; | |
3913 | wxWindow_SetEventHandler(_arg0,_arg1); | |
3914 | ||
3915 | wxPy_END_ALLOW_THREADS; | |
3916 | } Py_INCREF(Py_None); | |
3917 | _resultobj = Py_None; | |
3918 | return _resultobj; | |
3919 | } | |
3920 | ||
3921 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
3922 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3923 | PyObject * _resultobj; | |
3924 | wxWindow * _arg0; | |
3925 | wxString * _arg1; | |
3926 | PyObject * _argo0 = 0; | |
3927 | PyObject * _obj1 = 0; | |
3928 | char *_kwnames[] = { "self","title", NULL }; | |
3929 | ||
3930 | self = self; | |
3931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) | |
3932 | return NULL; | |
3933 | if (_argo0) { | |
3934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); | |
3937 | return NULL; | |
3938 | } | |
3939 | } | |
3940 | { | |
3941 | if (!PyString_Check(_obj1)) { | |
3942 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3943 | return NULL; | |
3944 | } | |
3945 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
3946 | } | |
3947 | { | |
3948 | wxPy_BEGIN_ALLOW_THREADS; | |
3949 | wxWindow_SetTitle(_arg0,*_arg1); | |
3950 | ||
3951 | wxPy_END_ALLOW_THREADS; | |
3952 | } Py_INCREF(Py_None); | |
3953 | _resultobj = Py_None; | |
3954 | { | |
3955 | if (_obj1) | |
3956 | delete _arg1; | |
3957 | } | |
3958 | return _resultobj; | |
3959 | } | |
3960 | ||
3961 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3962 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3963 | PyObject * _resultobj; | |
3964 | bool _result; | |
3965 | wxWindow * _arg0; | |
3966 | bool _arg1; | |
3967 | PyObject * _argo0 = 0; | |
3968 | int tempbool1; | |
3969 | char *_kwnames[] = { "self","show", NULL }; | |
3970 | ||
3971 | self = self; | |
3972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
3973 | return NULL; | |
3974 | if (_argo0) { | |
3975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); | |
3978 | return NULL; | |
3979 | } | |
3980 | } | |
3981 | _arg1 = (bool ) tempbool1; | |
3982 | { | |
3983 | wxPy_BEGIN_ALLOW_THREADS; | |
3984 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
3985 | ||
3986 | wxPy_END_ALLOW_THREADS; | |
3987 | } _resultobj = Py_BuildValue("i",_result); | |
3988 | return _resultobj; | |
3989 | } | |
3990 | ||
3991 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
3992 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3993 | PyObject * _resultobj; | |
3994 | bool _result; | |
3995 | wxWindow * _arg0; | |
3996 | PyObject * _argo0 = 0; | |
3997 | char *_kwnames[] = { "self", NULL }; | |
3998 | ||
3999 | self = self; | |
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) | |
4001 | return NULL; | |
4002 | if (_argo0) { | |
4003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); | |
4006 | return NULL; | |
4007 | } | |
4008 | } | |
4009 | { | |
4010 | wxPy_BEGIN_ALLOW_THREADS; | |
4011 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4012 | ||
4013 | wxPy_END_ALLOW_THREADS; | |
4014 | } _resultobj = Py_BuildValue("i",_result); | |
4015 | return _resultobj; | |
4016 | } | |
4017 | ||
4018 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
4019 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4020 | PyObject * _resultobj; | |
4021 | bool _result; | |
4022 | wxWindow * _arg0; | |
4023 | PyObject * _argo0 = 0; | |
4024 | char *_kwnames[] = { "self", NULL }; | |
4025 | ||
4026 | self = self; | |
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) | |
4028 | return NULL; | |
4029 | if (_argo0) { | |
4030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); | |
4033 | return NULL; | |
4034 | } | |
4035 | } | |
4036 | { | |
4037 | wxPy_BEGIN_ALLOW_THREADS; | |
4038 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4039 | ||
4040 | wxPy_END_ALLOW_THREADS; | |
4041 | } _resultobj = Py_BuildValue("i",_result); | |
4042 | return _resultobj; | |
4043 | } | |
4044 | ||
4045 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
4046 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4047 | PyObject * _resultobj; | |
4048 | bool _result; | |
4049 | wxWindow * _arg0; | |
4050 | PyObject * _argo0 = 0; | |
4051 | char *_kwnames[] = { "self", NULL }; | |
4052 | ||
4053 | self = self; | |
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) | |
4055 | return NULL; | |
4056 | if (_argo0) { | |
4057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); | |
4060 | return NULL; | |
4061 | } | |
4062 | } | |
4063 | { | |
4064 | wxPy_BEGIN_ALLOW_THREADS; | |
4065 | _result = (bool )wxWindow_Validate(_arg0); | |
4066 | ||
4067 | wxPy_END_ALLOW_THREADS; | |
4068 | } _resultobj = Py_BuildValue("i",_result); | |
4069 | return _resultobj; | |
4070 | } | |
4071 | ||
4072 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
4073 | static PyObject *_wrap_wxWindow_WarpPointer(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","x","y", NULL }; | |
4080 | ||
4081 | self = self; | |
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_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_WarpPointer. Expected _wxWindow_p."); | |
4088 | return NULL; | |
4089 | } | |
4090 | } | |
4091 | { | |
4092 | wxPy_BEGIN_ALLOW_THREADS; | |
4093 | wxWindow_WarpPointer(_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_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4102 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject * _resultobj; | |
4104 | wxPoint * _result; | |
4105 | wxWindow * _arg0; | |
4106 | wxPoint * _arg1; | |
4107 | PyObject * _argo0 = 0; | |
4108 | wxPoint temp; | |
4109 | PyObject * _obj1 = 0; | |
4110 | char *_kwnames[] = { "self","pt", NULL }; | |
4111 | char _ptemp[128]; | |
4112 | ||
4113 | self = self; | |
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) | |
4115 | return NULL; | |
4116 | if (_argo0) { | |
4117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); | |
4120 | return NULL; | |
4121 | } | |
4122 | } | |
4123 | { | |
4124 | _arg1 = &temp; | |
4125 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4126 | return NULL; | |
4127 | } | |
4128 | { | |
4129 | wxPy_BEGIN_ALLOW_THREADS; | |
4130 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4131 | ||
4132 | wxPy_END_ALLOW_THREADS; | |
4133 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4134 | _resultobj = Py_BuildValue("s",_ptemp); | |
4135 | return _resultobj; | |
4136 | } | |
4137 | ||
4138 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4139 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject * _resultobj; | |
4141 | wxSize * _result; | |
4142 | wxWindow * _arg0; | |
4143 | wxSize * _arg1; | |
4144 | PyObject * _argo0 = 0; | |
4145 | wxSize temp; | |
4146 | PyObject * _obj1 = 0; | |
4147 | char *_kwnames[] = { "self","sz", NULL }; | |
4148 | char _ptemp[128]; | |
4149 | ||
4150 | self = self; | |
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) | |
4152 | return NULL; | |
4153 | if (_argo0) { | |
4154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); | |
4157 | return NULL; | |
4158 | } | |
4159 | } | |
4160 | { | |
4161 | _arg1 = &temp; | |
4162 | if (! wxSize_helper(_obj1, &_arg1)) | |
4163 | return NULL; | |
4164 | } | |
4165 | { | |
4166 | wxPy_BEGIN_ALLOW_THREADS; | |
4167 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4168 | ||
4169 | wxPy_END_ALLOW_THREADS; | |
4170 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4171 | _resultobj = Py_BuildValue("s",_ptemp); | |
4172 | return _resultobj; | |
4173 | } | |
4174 | ||
4175 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4176 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4177 | PyObject * _resultobj; | |
4178 | wxPoint * _result; | |
4179 | wxWindow * _arg0; | |
4180 | wxPoint * _arg1; | |
4181 | PyObject * _argo0 = 0; | |
4182 | wxPoint temp; | |
4183 | PyObject * _obj1 = 0; | |
4184 | char *_kwnames[] = { "self","pt", NULL }; | |
4185 | char _ptemp[128]; | |
4186 | ||
4187 | self = self; | |
4188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) | |
4189 | return NULL; | |
4190 | if (_argo0) { | |
4191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); | |
4194 | return NULL; | |
4195 | } | |
4196 | } | |
4197 | { | |
4198 | _arg1 = &temp; | |
4199 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4200 | return NULL; | |
4201 | } | |
4202 | { | |
4203 | wxPy_BEGIN_ALLOW_THREADS; | |
4204 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4205 | ||
4206 | wxPy_END_ALLOW_THREADS; | |
4207 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4208 | _resultobj = Py_BuildValue("s",_ptemp); | |
4209 | return _resultobj; | |
4210 | } | |
4211 | ||
4212 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4213 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject * _resultobj; | |
4215 | wxSize * _result; | |
4216 | wxWindow * _arg0; | |
4217 | wxSize * _arg1; | |
4218 | PyObject * _argo0 = 0; | |
4219 | wxSize temp; | |
4220 | PyObject * _obj1 = 0; | |
4221 | char *_kwnames[] = { "self","sz", NULL }; | |
4222 | char _ptemp[128]; | |
4223 | ||
4224 | self = self; | |
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) | |
4226 | return NULL; | |
4227 | if (_argo0) { | |
4228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); | |
4231 | return NULL; | |
4232 | } | |
4233 | } | |
4234 | { | |
4235 | _arg1 = &temp; | |
4236 | if (! wxSize_helper(_obj1, &_arg1)) | |
4237 | return NULL; | |
4238 | } | |
4239 | { | |
4240 | wxPy_BEGIN_ALLOW_THREADS; | |
4241 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4242 | ||
4243 | wxPy_END_ALLOW_THREADS; | |
4244 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4245 | _resultobj = Py_BuildValue("s",_ptemp); | |
4246 | return _resultobj; | |
4247 | } | |
4248 | ||
4249 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4250 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4251 | PyObject * _resultobj; | |
4252 | wxWindow * _arg0; | |
4253 | wxString * _arg1; | |
4254 | PyObject * _argo0 = 0; | |
4255 | PyObject * _obj1 = 0; | |
4256 | char *_kwnames[] = { "self","tip", NULL }; | |
4257 | ||
4258 | self = self; | |
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) | |
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_SetToolTipString. Expected _wxWindow_p."); | |
4265 | return NULL; | |
4266 | } | |
4267 | } | |
4268 | { | |
4269 | if (!PyString_Check(_obj1)) { | |
4270 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4271 | return NULL; | |
4272 | } | |
4273 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
4274 | } | |
4275 | { | |
4276 | wxPy_BEGIN_ALLOW_THREADS; | |
4277 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4278 | ||
4279 | wxPy_END_ALLOW_THREADS; | |
4280 | } Py_INCREF(Py_None); | |
4281 | _resultobj = Py_None; | |
4282 | { | |
4283 | if (_obj1) | |
4284 | delete _arg1; | |
4285 | } | |
4286 | return _resultobj; | |
4287 | } | |
4288 | ||
4289 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4290 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4291 | PyObject * _resultobj; | |
4292 | wxWindow * _arg0; | |
4293 | wxToolTip * _arg1; | |
4294 | PyObject * _argo0 = 0; | |
4295 | PyObject * _argo1 = 0; | |
4296 | char *_kwnames[] = { "self","tooltip", NULL }; | |
4297 | ||
4298 | self = self; | |
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) | |
4300 | return NULL; | |
4301 | if (_argo0) { | |
4302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); | |
4305 | return NULL; | |
4306 | } | |
4307 | } | |
4308 | if (_argo1) { | |
4309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
4311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); | |
4312 | return NULL; | |
4313 | } | |
4314 | } | |
4315 | { | |
4316 | wxPy_BEGIN_ALLOW_THREADS; | |
4317 | wxWindow_SetToolTip(_arg0,_arg1); | |
4318 | ||
4319 | wxPy_END_ALLOW_THREADS; | |
4320 | } Py_INCREF(Py_None); | |
4321 | _resultobj = Py_None; | |
4322 | return _resultobj; | |
4323 | } | |
4324 | ||
4325 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
4326 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject * _resultobj; | |
4328 | wxToolTip * _result; | |
4329 | wxWindow * _arg0; | |
4330 | PyObject * _argo0 = 0; | |
4331 | char *_kwnames[] = { "self", NULL }; | |
4332 | char _ptemp[128]; | |
4333 | ||
4334 | self = self; | |
4335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) | |
4336 | return NULL; | |
4337 | if (_argo0) { | |
4338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); | |
4341 | return NULL; | |
4342 | } | |
4343 | } | |
4344 | { | |
4345 | wxPy_BEGIN_ALLOW_THREADS; | |
4346 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4347 | ||
4348 | wxPy_END_ALLOW_THREADS; | |
4349 | } if (_result) { | |
4350 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4351 | _resultobj = Py_BuildValue("s",_ptemp); | |
4352 | } else { | |
4353 | Py_INCREF(Py_None); | |
4354 | _resultobj = Py_None; | |
4355 | } | |
4356 | return _resultobj; | |
4357 | } | |
4358 | ||
4359 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) | |
4360 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4361 | PyObject * _resultobj; | |
4362 | wxWindow * _arg0; | |
4363 | wxSizer * _arg1; | |
4364 | PyObject * _argo0 = 0; | |
4365 | PyObject * _argo1 = 0; | |
4366 | char *_kwnames[] = { "self","sizer", NULL }; | |
4367 | ||
4368 | self = self; | |
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
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_SetSizer. Expected _wxWindow_p."); | |
4375 | return NULL; | |
4376 | } | |
4377 | } | |
4378 | if (_argo1) { | |
4379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4382 | return NULL; | |
4383 | } | |
4384 | } | |
4385 | { | |
4386 | wxPy_BEGIN_ALLOW_THREADS; | |
4387 | wxWindow_SetSizer(_arg0,_arg1); | |
4388 | ||
4389 | wxPy_END_ALLOW_THREADS; | |
4390 | } Py_INCREF(Py_None); | |
4391 | _resultobj = Py_None; | |
4392 | return _resultobj; | |
4393 | } | |
4394 | ||
4395 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
4396 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4397 | PyObject * _resultobj; | |
4398 | wxValidator * _result; | |
4399 | wxWindow * _arg0; | |
4400 | PyObject * _argo0 = 0; | |
4401 | char *_kwnames[] = { "self", NULL }; | |
4402 | char _ptemp[128]; | |
4403 | ||
4404 | self = self; | |
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4406 | return NULL; | |
4407 | if (_argo0) { | |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
4414 | { | |
4415 | wxPy_BEGIN_ALLOW_THREADS; | |
4416 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4417 | ||
4418 | wxPy_END_ALLOW_THREADS; | |
4419 | } if (_result) { | |
4420 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4421 | _resultobj = Py_BuildValue("s",_ptemp); | |
4422 | } else { | |
4423 | Py_INCREF(Py_None); | |
4424 | _resultobj = Py_None; | |
4425 | } | |
4426 | return _resultobj; | |
4427 | } | |
4428 | ||
4429 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4430 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject * _resultobj; | |
4432 | wxWindow * _arg0; | |
4433 | wxValidator * _arg1; | |
4434 | PyObject * _argo0 = 0; | |
4435 | PyObject * _argo1 = 0; | |
4436 | char *_kwnames[] = { "self","validator", NULL }; | |
4437 | ||
4438 | self = self; | |
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4440 | return NULL; | |
4441 | if (_argo0) { | |
4442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4445 | return NULL; | |
4446 | } | |
4447 | } | |
4448 | if (_argo1) { | |
4449 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4450 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4452 | return NULL; | |
4453 | } | |
4454 | } | |
4455 | { | |
4456 | wxPy_BEGIN_ALLOW_THREADS; | |
4457 | wxWindow_SetValidator(_arg0,*_arg1); | |
4458 | ||
4459 | wxPy_END_ALLOW_THREADS; | |
4460 | } Py_INCREF(Py_None); | |
4461 | _resultobj = Py_None; | |
4462 | return _resultobj; | |
4463 | } | |
4464 | ||
4465 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) | |
4466 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4467 | PyObject * _resultobj; | |
4468 | wxWindow * _arg0; | |
4469 | wxDropTarget * _arg1; | |
4470 | PyObject * _argo0 = 0; | |
4471 | PyObject * _argo1 = 0; | |
4472 | char *_kwnames[] = { "self","target", NULL }; | |
4473 | ||
4474 | self = self; | |
4475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
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_SetDropTarget. Expected _wxWindow_p."); | |
4481 | return NULL; | |
4482 | } | |
4483 | } | |
4484 | if (_argo1) { | |
4485 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4486 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
4487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
4488 | return NULL; | |
4489 | } | |
4490 | } | |
4491 | { | |
4492 | wxPy_BEGIN_ALLOW_THREADS; | |
4493 | wxWindow_SetDropTarget(_arg0,_arg1); | |
4494 | ||
4495 | wxPy_END_ALLOW_THREADS; | |
4496 | } Py_INCREF(Py_None); | |
4497 | _resultobj = Py_None; | |
4498 | return _resultobj; | |
4499 | } | |
4500 | ||
4501 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
4502 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject * _resultobj; | |
4504 | wxDropTarget * _result; | |
4505 | wxWindow * _arg0; | |
4506 | PyObject * _argo0 = 0; | |
4507 | char *_kwnames[] = { "self", NULL }; | |
4508 | char _ptemp[128]; | |
4509 | ||
4510 | self = self; | |
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
4512 | return NULL; | |
4513 | if (_argo0) { | |
4514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
4520 | { | |
4521 | wxPy_BEGIN_ALLOW_THREADS; | |
4522 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
4523 | ||
4524 | wxPy_END_ALLOW_THREADS; | |
4525 | } if (_result) { | |
4526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
4527 | _resultobj = Py_BuildValue("s",_ptemp); | |
4528 | } else { | |
4529 | Py_INCREF(Py_None); | |
4530 | _resultobj = Py_None; | |
4531 | } | |
4532 | return _resultobj; | |
4533 | } | |
4534 | ||
4535 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) | |
4536 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4537 | PyObject * _resultobj; | |
4538 | wxSize * _result; | |
4539 | wxWindow * _arg0; | |
4540 | PyObject * _argo0 = 0; | |
4541 | char *_kwnames[] = { "self", NULL }; | |
4542 | char _ptemp[128]; | |
4543 | ||
4544 | self = self; | |
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
4546 | return NULL; | |
4547 | if (_argo0) { | |
4548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
4551 | return NULL; | |
4552 | } | |
4553 | } | |
4554 | { | |
4555 | wxPy_BEGIN_ALLOW_THREADS; | |
4556 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
4557 | ||
4558 | wxPy_END_ALLOW_THREADS; | |
4559 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4560 | _resultobj = Py_BuildValue("s",_ptemp); | |
4561 | return _resultobj; | |
4562 | } | |
4563 | ||
4564 | static void *SwigwxPanelTowxWindow(void *ptr) { | |
4565 | wxPanel *src; | |
4566 | wxWindow *dest; | |
4567 | src = (wxPanel *) ptr; | |
4568 | dest = (wxWindow *) src; | |
4569 | return (void *) dest; | |
4570 | } | |
4571 | ||
4572 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
4573 | wxPanel *src; | |
4574 | wxEvtHandler *dest; | |
4575 | src = (wxPanel *) ptr; | |
4576 | dest = (wxEvtHandler *) src; | |
4577 | return (void *) dest; | |
4578 | } | |
4579 | ||
4580 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4581 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject * _resultobj; | |
4583 | wxPanel * _result; | |
4584 | wxWindow * _arg0; | |
4585 | wxWindowID _arg1; | |
4586 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
4587 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
4588 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
4589 | char * _arg5 = (char *) "panel"; | |
4590 | PyObject * _argo0 = 0; | |
4591 | wxPoint temp; | |
4592 | PyObject * _obj2 = 0; | |
4593 | wxSize temp0; | |
4594 | PyObject * _obj3 = 0; | |
4595 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
4596 | char _ptemp[128]; | |
4597 | ||
4598 | self = self; | |
4599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
4600 | return NULL; | |
4601 | if (_argo0) { | |
4602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); | |
4605 | return NULL; | |
4606 | } | |
4607 | } | |
4608 | if (_obj2) | |
4609 | { | |
4610 | _arg2 = &temp; | |
4611 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4612 | return NULL; | |
4613 | } | |
4614 | if (_obj3) | |
4615 | { | |
4616 | _arg3 = &temp0; | |
4617 | if (! wxSize_helper(_obj3, &_arg3)) | |
4618 | return NULL; | |
4619 | } | |
4620 | { | |
4621 | wxPy_BEGIN_ALLOW_THREADS; | |
4622 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
4623 | ||
4624 | wxPy_END_ALLOW_THREADS; | |
4625 | } if (_result) { | |
4626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
4627 | _resultobj = Py_BuildValue("s",_ptemp); | |
4628 | } else { | |
4629 | Py_INCREF(Py_None); | |
4630 | _resultobj = Py_None; | |
4631 | } | |
4632 | return _resultobj; | |
4633 | } | |
4634 | ||
4635 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
4636 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4637 | PyObject * _resultobj; | |
4638 | wxPanel * _arg0; | |
4639 | PyObject * _argo0 = 0; | |
4640 | char *_kwnames[] = { "self", NULL }; | |
4641 | ||
4642 | self = self; | |
4643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) | |
4644 | return NULL; | |
4645 | if (_argo0) { | |
4646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
4648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); | |
4649 | return NULL; | |
4650 | } | |
4651 | } | |
4652 | { | |
4653 | wxPy_BEGIN_ALLOW_THREADS; | |
4654 | wxPanel_InitDialog(_arg0); | |
4655 | ||
4656 | wxPy_END_ALLOW_THREADS; | |
4657 | } Py_INCREF(Py_None); | |
4658 | _resultobj = Py_None; | |
4659 | return _resultobj; | |
4660 | } | |
4661 | ||
4662 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) | |
4663 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4664 | PyObject * _resultobj; | |
4665 | wxButton * _result; | |
4666 | wxPanel * _arg0; | |
4667 | PyObject * _argo0 = 0; | |
4668 | char *_kwnames[] = { "self", NULL }; | |
4669 | char _ptemp[128]; | |
4670 | ||
4671 | self = self; | |
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) | |
4673 | return NULL; | |
4674 | if (_argo0) { | |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); | |
4678 | return NULL; | |
4679 | } | |
4680 | } | |
4681 | { | |
4682 | wxPy_BEGIN_ALLOW_THREADS; | |
4683 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
4684 | ||
4685 | wxPy_END_ALLOW_THREADS; | |
4686 | } if (_result) { | |
4687 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
4688 | _resultobj = Py_BuildValue("s",_ptemp); | |
4689 | } else { | |
4690 | Py_INCREF(Py_None); | |
4691 | _resultobj = Py_None; | |
4692 | } | |
4693 | return _resultobj; | |
4694 | } | |
4695 | ||
4696 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
4697 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4698 | PyObject * _resultobj; | |
4699 | wxPanel * _arg0; | |
4700 | wxButton * _arg1; | |
4701 | PyObject * _argo0 = 0; | |
4702 | PyObject * _argo1 = 0; | |
4703 | char *_kwnames[] = { "self","btn", NULL }; | |
4704 | ||
4705 | self = self; | |
4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
4707 | return NULL; | |
4708 | if (_argo0) { | |
4709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
4711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); | |
4712 | return NULL; | |
4713 | } | |
4714 | } | |
4715 | if (_argo1) { | |
4716 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4717 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
4718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); | |
4719 | return NULL; | |
4720 | } | |
4721 | } | |
4722 | { | |
4723 | wxPy_BEGIN_ALLOW_THREADS; | |
4724 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
4725 | ||
4726 | wxPy_END_ALLOW_THREADS; | |
4727 | } Py_INCREF(Py_None); | |
4728 | _resultobj = Py_None; | |
4729 | return _resultobj; | |
4730 | } | |
4731 | ||
4732 | static void *SwigwxDialogTowxPanel(void *ptr) { | |
4733 | wxDialog *src; | |
4734 | wxPanel *dest; | |
4735 | src = (wxDialog *) ptr; | |
4736 | dest = (wxPanel *) src; | |
4737 | return (void *) dest; | |
4738 | } | |
4739 | ||
4740 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
4741 | wxDialog *src; | |
4742 | wxWindow *dest; | |
4743 | src = (wxDialog *) ptr; | |
4744 | dest = (wxWindow *) src; | |
4745 | return (void *) dest; | |
4746 | } | |
4747 | ||
4748 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
4749 | wxDialog *src; | |
4750 | wxEvtHandler *dest; | |
4751 | src = (wxDialog *) ptr; | |
4752 | dest = (wxEvtHandler *) src; | |
4753 | return (void *) dest; | |
4754 | } | |
4755 | ||
4756 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4757 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject * _resultobj; | |
4759 | wxDialog * _result; | |
4760 | wxWindow * _arg0; | |
4761 | wxWindowID _arg1; | |
4762 | wxString * _arg2; | |
4763 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; | |
4764 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
4765 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
4766 | char * _arg6 = (char *) "dialogBox"; | |
4767 | PyObject * _argo0 = 0; | |
4768 | PyObject * _obj2 = 0; | |
4769 | wxPoint temp; | |
4770 | PyObject * _obj3 = 0; | |
4771 | wxSize temp0; | |
4772 | PyObject * _obj4 = 0; | |
4773 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
4774 | char _ptemp[128]; | |
4775 | ||
4776 | self = self; | |
4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
4778 | return NULL; | |
4779 | if (_argo0) { | |
4780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); | |
4783 | return NULL; | |
4784 | } | |
4785 | } | |
4786 | { | |
4787 | if (!PyString_Check(_obj2)) { | |
4788 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4789 | return NULL; | |
4790 | } | |
4791 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
4792 | } | |
4793 | if (_obj3) | |
4794 | { | |
4795 | _arg3 = &temp; | |
4796 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4797 | return NULL; | |
4798 | } | |
4799 | if (_obj4) | |
4800 | { | |
4801 | _arg4 = &temp0; | |
4802 | if (! wxSize_helper(_obj4, &_arg4)) | |
4803 | return NULL; | |
4804 | } | |
4805 | { | |
4806 | wxPy_BEGIN_ALLOW_THREADS; | |
4807 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4808 | ||
4809 | wxPy_END_ALLOW_THREADS; | |
4810 | } if (_result) { | |
4811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
4812 | _resultobj = Py_BuildValue("s",_ptemp); | |
4813 | } else { | |
4814 | Py_INCREF(Py_None); | |
4815 | _resultobj = Py_None; | |
4816 | } | |
4817 | { | |
4818 | if (_obj2) | |
4819 | delete _arg2; | |
4820 | } | |
4821 | return _resultobj; | |
4822 | } | |
4823 | ||
4824 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
4825 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4826 | PyObject * _resultobj; | |
4827 | wxDialog * _arg0; | |
4828 | int _arg1 = (int ) wxBOTH; | |
4829 | PyObject * _argo0 = 0; | |
4830 | char *_kwnames[] = { "self","direction", NULL }; | |
4831 | ||
4832 | self = self; | |
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) | |
4834 | return NULL; | |
4835 | if (_argo0) { | |
4836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); | |
4839 | return NULL; | |
4840 | } | |
4841 | } | |
4842 | { | |
4843 | wxPy_BEGIN_ALLOW_THREADS; | |
4844 | wxDialog_Centre(_arg0,_arg1); | |
4845 | ||
4846 | wxPy_END_ALLOW_THREADS; | |
4847 | } Py_INCREF(Py_None); | |
4848 | _resultobj = Py_None; | |
4849 | return _resultobj; | |
4850 | } | |
4851 | ||
4852 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
4853 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4854 | PyObject * _resultobj; | |
4855 | wxDialog * _arg0; | |
4856 | int _arg1; | |
4857 | PyObject * _argo0 = 0; | |
4858 | char *_kwnames[] = { "self","retCode", NULL }; | |
4859 | ||
4860 | self = self; | |
4861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) | |
4862 | return NULL; | |
4863 | if (_argo0) { | |
4864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); | |
4867 | return NULL; | |
4868 | } | |
4869 | } | |
4870 | { | |
4871 | wxPy_BEGIN_ALLOW_THREADS; | |
4872 | wxDialog_EndModal(_arg0,_arg1); | |
4873 | ||
4874 | wxPy_END_ALLOW_THREADS; | |
4875 | } Py_INCREF(Py_None); | |
4876 | _resultobj = Py_None; | |
4877 | return _resultobj; | |
4878 | } | |
4879 | ||
4880 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
4881 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4882 | PyObject * _resultobj; | |
4883 | wxString * _result; | |
4884 | wxDialog * _arg0; | |
4885 | PyObject * _argo0 = 0; | |
4886 | char *_kwnames[] = { "self", NULL }; | |
4887 | ||
4888 | self = self; | |
4889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) | |
4890 | return NULL; | |
4891 | if (_argo0) { | |
4892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); | |
4895 | return NULL; | |
4896 | } | |
4897 | } | |
4898 | { | |
4899 | wxPy_BEGIN_ALLOW_THREADS; | |
4900 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
4901 | ||
4902 | wxPy_END_ALLOW_THREADS; | |
4903 | }{ | |
4904 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
4905 | } | |
4906 | { | |
4907 | delete _result; | |
4908 | } | |
4909 | return _resultobj; | |
4910 | } | |
4911 | ||
4912 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
4913 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject * _resultobj; | |
4915 | wxDialog * _arg0; | |
4916 | bool _arg1; | |
4917 | PyObject * _argo0 = 0; | |
4918 | int tempbool1; | |
4919 | char *_kwnames[] = { "self","iconize", NULL }; | |
4920 | ||
4921 | self = self; | |
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) | |
4923 | return NULL; | |
4924 | if (_argo0) { | |
4925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); | |
4928 | return NULL; | |
4929 | } | |
4930 | } | |
4931 | _arg1 = (bool ) tempbool1; | |
4932 | { | |
4933 | wxPy_BEGIN_ALLOW_THREADS; | |
4934 | wxDialog_Iconize(_arg0,_arg1); | |
4935 | ||
4936 | wxPy_END_ALLOW_THREADS; | |
4937 | } Py_INCREF(Py_None); | |
4938 | _resultobj = Py_None; | |
4939 | return _resultobj; | |
4940 | } | |
4941 | ||
4942 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
4943 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4944 | PyObject * _resultobj; | |
4945 | bool _result; | |
4946 | wxDialog * _arg0; | |
4947 | PyObject * _argo0 = 0; | |
4948 | char *_kwnames[] = { "self", NULL }; | |
4949 | ||
4950 | self = self; | |
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) | |
4952 | return NULL; | |
4953 | if (_argo0) { | |
4954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); | |
4957 | return NULL; | |
4958 | } | |
4959 | } | |
4960 | { | |
4961 | wxPy_BEGIN_ALLOW_THREADS; | |
4962 | _result = (bool )wxDialog_IsIconized(_arg0); | |
4963 | ||
4964 | wxPy_END_ALLOW_THREADS; | |
4965 | } _resultobj = Py_BuildValue("i",_result); | |
4966 | return _resultobj; | |
4967 | } | |
4968 | ||
4969 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
4970 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject * _resultobj; | |
4972 | wxDialog * _arg0; | |
4973 | bool _arg1; | |
4974 | PyObject * _argo0 = 0; | |
4975 | int tempbool1; | |
4976 | char *_kwnames[] = { "self","flag", NULL }; | |
4977 | ||
4978 | self = self; | |
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) | |
4980 | return NULL; | |
4981 | if (_argo0) { | |
4982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); | |
4985 | return NULL; | |
4986 | } | |
4987 | } | |
4988 | _arg1 = (bool ) tempbool1; | |
4989 | { | |
4990 | wxPy_BEGIN_ALLOW_THREADS; | |
4991 | wxDialog_SetModal(_arg0,_arg1); | |
4992 | ||
4993 | wxPy_END_ALLOW_THREADS; | |
4994 | } Py_INCREF(Py_None); | |
4995 | _resultobj = Py_None; | |
4996 | return _resultobj; | |
4997 | } | |
4998 | ||
4999 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
5000 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5001 | PyObject * _resultobj; | |
5002 | bool _result; | |
5003 | wxDialog * _arg0; | |
5004 | PyObject * _argo0 = 0; | |
5005 | char *_kwnames[] = { "self", NULL }; | |
5006 | ||
5007 | self = self; | |
5008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) | |
5009 | return NULL; | |
5010 | if (_argo0) { | |
5011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); | |
5014 | return NULL; | |
5015 | } | |
5016 | } | |
5017 | { | |
5018 | wxPy_BEGIN_ALLOW_THREADS; | |
5019 | _result = (bool )wxDialog_IsModal(_arg0); | |
5020 | ||
5021 | wxPy_END_ALLOW_THREADS; | |
5022 | } _resultobj = Py_BuildValue("i",_result); | |
5023 | return _resultobj; | |
5024 | } | |
5025 | ||
5026 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
5027 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5028 | PyObject * _resultobj; | |
5029 | wxDialog * _arg0; | |
5030 | wxString * _arg1; | |
5031 | PyObject * _argo0 = 0; | |
5032 | PyObject * _obj1 = 0; | |
5033 | char *_kwnames[] = { "self","title", NULL }; | |
5034 | ||
5035 | self = self; | |
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) | |
5037 | return NULL; | |
5038 | if (_argo0) { | |
5039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); | |
5042 | return NULL; | |
5043 | } | |
5044 | } | |
5045 | { | |
5046 | if (!PyString_Check(_obj1)) { | |
5047 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5048 | return NULL; | |
5049 | } | |
5050 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
5051 | } | |
5052 | { | |
5053 | wxPy_BEGIN_ALLOW_THREADS; | |
5054 | wxDialog_SetTitle(_arg0,*_arg1); | |
5055 | ||
5056 | wxPy_END_ALLOW_THREADS; | |
5057 | } Py_INCREF(Py_None); | |
5058 | _resultobj = Py_None; | |
5059 | { | |
5060 | if (_obj1) | |
5061 | delete _arg1; | |
5062 | } | |
5063 | return _resultobj; | |
5064 | } | |
5065 | ||
5066 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
5067 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject * _resultobj; | |
5069 | bool _result; | |
5070 | wxDialog * _arg0; | |
5071 | bool _arg1; | |
5072 | PyObject * _argo0 = 0; | |
5073 | int tempbool1; | |
5074 | char *_kwnames[] = { "self","show", NULL }; | |
5075 | ||
5076 | self = self; | |
5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) | |
5078 | return NULL; | |
5079 | if (_argo0) { | |
5080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); | |
5083 | return NULL; | |
5084 | } | |
5085 | } | |
5086 | _arg1 = (bool ) tempbool1; | |
5087 | { | |
5088 | wxPy_BEGIN_ALLOW_THREADS; | |
5089 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
5090 | ||
5091 | wxPy_END_ALLOW_THREADS; | |
5092 | } _resultobj = Py_BuildValue("i",_result); | |
5093 | return _resultobj; | |
5094 | } | |
5095 | ||
5096 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
5097 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5098 | PyObject * _resultobj; | |
5099 | int _result; | |
5100 | wxDialog * _arg0; | |
5101 | PyObject * _argo0 = 0; | |
5102 | char *_kwnames[] = { "self", NULL }; | |
5103 | ||
5104 | self = self; | |
5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) | |
5106 | return NULL; | |
5107 | if (_argo0) { | |
5108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); | |
5111 | return NULL; | |
5112 | } | |
5113 | } | |
5114 | { | |
5115 | wxPy_BEGIN_ALLOW_THREADS; | |
5116 | _result = (int )wxDialog_ShowModal(_arg0); | |
5117 | ||
5118 | wxPy_END_ALLOW_THREADS; | |
5119 | } _resultobj = Py_BuildValue("i",_result); | |
5120 | return _resultobj; | |
5121 | } | |
5122 | ||
5123 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) | |
5124 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject * _resultobj; | |
5126 | int _result; | |
5127 | wxDialog * _arg0; | |
5128 | PyObject * _argo0 = 0; | |
5129 | char *_kwnames[] = { "self", NULL }; | |
5130 | ||
5131 | self = self; | |
5132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) | |
5133 | return NULL; | |
5134 | if (_argo0) { | |
5135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); | |
5138 | return NULL; | |
5139 | } | |
5140 | } | |
5141 | { | |
5142 | wxPy_BEGIN_ALLOW_THREADS; | |
5143 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
5144 | ||
5145 | wxPy_END_ALLOW_THREADS; | |
5146 | } _resultobj = Py_BuildValue("i",_result); | |
5147 | return _resultobj; | |
5148 | } | |
5149 | ||
5150 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
5151 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5152 | PyObject * _resultobj; | |
5153 | wxDialog * _arg0; | |
5154 | int _arg1; | |
5155 | PyObject * _argo0 = 0; | |
5156 | char *_kwnames[] = { "self","retCode", NULL }; | |
5157 | ||
5158 | self = self; | |
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) | |
5160 | return NULL; | |
5161 | if (_argo0) { | |
5162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
5164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); | |
5165 | return NULL; | |
5166 | } | |
5167 | } | |
5168 | { | |
5169 | wxPy_BEGIN_ALLOW_THREADS; | |
5170 | wxDialog_SetReturnCode(_arg0,_arg1); | |
5171 | ||
5172 | wxPy_END_ALLOW_THREADS; | |
5173 | } Py_INCREF(Py_None); | |
5174 | _resultobj = Py_None; | |
5175 | return _resultobj; | |
5176 | } | |
5177 | ||
5178 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
5179 | wxScrolledWindow *src; | |
5180 | wxPanel *dest; | |
5181 | src = (wxScrolledWindow *) ptr; | |
5182 | dest = (wxPanel *) src; | |
5183 | return (void *) dest; | |
5184 | } | |
5185 | ||
5186 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { | |
5187 | wxScrolledWindow *src; | |
5188 | wxWindow *dest; | |
5189 | src = (wxScrolledWindow *) ptr; | |
5190 | dest = (wxWindow *) src; | |
5191 | return (void *) dest; | |
5192 | } | |
5193 | ||
5194 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
5195 | wxScrolledWindow *src; | |
5196 | wxEvtHandler *dest; | |
5197 | src = (wxScrolledWindow *) ptr; | |
5198 | dest = (wxEvtHandler *) src; | |
5199 | return (void *) dest; | |
5200 | } | |
5201 | ||
5202 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5203 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject * _resultobj; | |
5205 | wxScrolledWindow * _result; | |
5206 | wxWindow * _arg0; | |
5207 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5208 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
5209 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5210 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
5211 | char * _arg5 = (char *) "scrolledWindow"; | |
5212 | PyObject * _argo0 = 0; | |
5213 | wxPoint temp; | |
5214 | PyObject * _obj2 = 0; | |
5215 | wxSize temp0; | |
5216 | PyObject * _obj3 = 0; | |
5217 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
5218 | char _ptemp[128]; | |
5219 | ||
5220 | self = self; | |
5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
5222 | return NULL; | |
5223 | if (_argo0) { | |
5224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); | |
5227 | return NULL; | |
5228 | } | |
5229 | } | |
5230 | if (_obj2) | |
5231 | { | |
5232 | _arg2 = &temp; | |
5233 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5234 | return NULL; | |
5235 | } | |
5236 | if (_obj3) | |
5237 | { | |
5238 | _arg3 = &temp0; | |
5239 | if (! wxSize_helper(_obj3, &_arg3)) | |
5240 | return NULL; | |
5241 | } | |
5242 | { | |
5243 | wxPy_BEGIN_ALLOW_THREADS; | |
5244 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5245 | ||
5246 | wxPy_END_ALLOW_THREADS; | |
5247 | } if (_result) { | |
5248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
5249 | _resultobj = Py_BuildValue("s",_ptemp); | |
5250 | } else { | |
5251 | Py_INCREF(Py_None); | |
5252 | _resultobj = Py_None; | |
5253 | } | |
5254 | return _resultobj; | |
5255 | } | |
5256 | ||
5257 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
5258 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5259 | PyObject * _resultobj; | |
5260 | wxScrolledWindow * _arg0; | |
5261 | bool _arg1; | |
5262 | bool _arg2; | |
5263 | PyObject * _argo0 = 0; | |
5264 | int tempbool1; | |
5265 | int tempbool2; | |
5266 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; | |
5267 | ||
5268 | self = self; | |
5269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
5270 | return NULL; | |
5271 | if (_argo0) { | |
5272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); | |
5275 | return NULL; | |
5276 | } | |
5277 | } | |
5278 | _arg1 = (bool ) tempbool1; | |
5279 | _arg2 = (bool ) tempbool2; | |
5280 | { | |
5281 | wxPy_BEGIN_ALLOW_THREADS; | |
5282 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5283 | ||
5284 | wxPy_END_ALLOW_THREADS; | |
5285 | } Py_INCREF(Py_None); | |
5286 | _resultobj = Py_None; | |
5287 | return _resultobj; | |
5288 | } | |
5289 | ||
5290 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
5291 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5292 | PyObject * _resultobj; | |
5293 | wxScrolledWindow * _arg0; | |
5294 | int * _arg1; | |
5295 | int temp; | |
5296 | int * _arg2; | |
5297 | int temp0; | |
5298 | PyObject * _argo0 = 0; | |
5299 | char *_kwnames[] = { "self", NULL }; | |
5300 | ||
5301 | self = self; | |
5302 | { | |
5303 | _arg1 = &temp; | |
5304 | } | |
5305 | { | |
5306 | _arg2 = &temp0; | |
5307 | } | |
5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) | |
5309 | return NULL; | |
5310 | if (_argo0) { | |
5311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); | |
5314 | return NULL; | |
5315 | } | |
5316 | } | |
5317 | { | |
5318 | wxPy_BEGIN_ALLOW_THREADS; | |
5319 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5320 | ||
5321 | wxPy_END_ALLOW_THREADS; | |
5322 | } Py_INCREF(Py_None); | |
5323 | _resultobj = Py_None; | |
5324 | { | |
5325 | PyObject *o; | |
5326 | o = PyInt_FromLong((long) (*_arg1)); | |
5327 | _resultobj = t_output_helper(_resultobj, o); | |
5328 | } | |
5329 | { | |
5330 | PyObject *o; | |
5331 | o = PyInt_FromLong((long) (*_arg2)); | |
5332 | _resultobj = t_output_helper(_resultobj, o); | |
5333 | } | |
5334 | return _resultobj; | |
5335 | } | |
5336 | ||
5337 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
5338 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject * _resultobj; | |
5340 | wxScrolledWindow * _arg0; | |
5341 | int * _arg1; | |
5342 | int temp; | |
5343 | int * _arg2; | |
5344 | int temp0; | |
5345 | PyObject * _argo0 = 0; | |
5346 | char *_kwnames[] = { "self", NULL }; | |
5347 | ||
5348 | self = self; | |
5349 | { | |
5350 | _arg1 = &temp; | |
5351 | } | |
5352 | { | |
5353 | _arg2 = &temp0; | |
5354 | } | |
5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) | |
5356 | return NULL; | |
5357 | if (_argo0) { | |
5358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); | |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
5364 | { | |
5365 | wxPy_BEGIN_ALLOW_THREADS; | |
5366 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
5367 | ||
5368 | wxPy_END_ALLOW_THREADS; | |
5369 | } Py_INCREF(Py_None); | |
5370 | _resultobj = Py_None; | |
5371 | { | |
5372 | PyObject *o; | |
5373 | o = PyInt_FromLong((long) (*_arg1)); | |
5374 | _resultobj = t_output_helper(_resultobj, o); | |
5375 | } | |
5376 | { | |
5377 | PyObject *o; | |
5378 | o = PyInt_FromLong((long) (*_arg2)); | |
5379 | _resultobj = t_output_helper(_resultobj, o); | |
5380 | } | |
5381 | return _resultobj; | |
5382 | } | |
5383 | ||
5384 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
5385 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5386 | PyObject * _resultobj; | |
5387 | bool _result; | |
5388 | wxScrolledWindow * _arg0; | |
5389 | PyObject * _argo0 = 0; | |
5390 | char *_kwnames[] = { "self", NULL }; | |
5391 | ||
5392 | self = self; | |
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) | |
5394 | return NULL; | |
5395 | if (_argo0) { | |
5396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); | |
5399 | return NULL; | |
5400 | } | |
5401 | } | |
5402 | { | |
5403 | wxPy_BEGIN_ALLOW_THREADS; | |
5404 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
5405 | ||
5406 | wxPy_END_ALLOW_THREADS; | |
5407 | } _resultobj = Py_BuildValue("i",_result); | |
5408 | return _resultobj; | |
5409 | } | |
5410 | ||
5411 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
5412 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5413 | PyObject * _resultobj; | |
5414 | wxScrolledWindow * _arg0; | |
5415 | wxDC * _arg1; | |
5416 | PyObject * _argo0 = 0; | |
5417 | PyObject * _argo1 = 0; | |
5418 | char *_kwnames[] = { "self","dc", NULL }; | |
5419 | ||
5420 | self = self; | |
5421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) | |
5422 | return NULL; | |
5423 | if (_argo0) { | |
5424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); | |
5427 | return NULL; | |
5428 | } | |
5429 | } | |
5430 | if (_argo1) { | |
5431 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); | |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
5438 | wxPy_BEGIN_ALLOW_THREADS; | |
5439 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
5440 | ||
5441 | wxPy_END_ALLOW_THREADS; | |
5442 | } Py_INCREF(Py_None); | |
5443 | _resultobj = Py_None; | |
5444 | return _resultobj; | |
5445 | } | |
5446 | ||
5447 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
5448 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject * _resultobj; | |
5450 | wxScrolledWindow * _arg0; | |
5451 | int _arg1; | |
5452 | int _arg2; | |
5453 | PyObject * _argo0 = 0; | |
5454 | char *_kwnames[] = { "self","x","y", NULL }; | |
5455 | ||
5456 | self = self; | |
5457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5458 | return NULL; | |
5459 | if (_argo0) { | |
5460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); | |
5463 | return NULL; | |
5464 | } | |
5465 | } | |
5466 | { | |
5467 | wxPy_BEGIN_ALLOW_THREADS; | |
5468 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
5469 | ||
5470 | wxPy_END_ALLOW_THREADS; | |
5471 | } Py_INCREF(Py_None); | |
5472 | _resultobj = Py_None; | |
5473 | return _resultobj; | |
5474 | } | |
5475 | ||
5476 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5477 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5478 | PyObject * _resultobj; | |
5479 | wxScrolledWindow * _arg0; | |
5480 | int _arg1; | |
5481 | int _arg2; | |
5482 | int _arg3; | |
5483 | int _arg4; | |
5484 | int _arg5 = (int ) 0; | |
5485 | int _arg6 = (int ) 0; | |
5486 | PyObject * _argo0 = 0; | |
5487 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL }; | |
5488 | ||
5489 | self = self; | |
5490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
5491 | return NULL; | |
5492 | if (_argo0) { | |
5493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); | |
5496 | return NULL; | |
5497 | } | |
5498 | } | |
5499 | { | |
5500 | wxPy_BEGIN_ALLOW_THREADS; | |
5501 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5502 | ||
5503 | wxPy_END_ALLOW_THREADS; | |
5504 | } Py_INCREF(Py_None); | |
5505 | _resultobj = Py_None; | |
5506 | return _resultobj; | |
5507 | } | |
5508 | ||
5509 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) | |
5510 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5511 | PyObject * _resultobj; | |
5512 | wxScrolledWindow * _arg0; | |
5513 | wxWindow * _arg1; | |
5514 | PyObject * _argo0 = 0; | |
5515 | PyObject * _argo1 = 0; | |
5516 | char *_kwnames[] = { "self","window", NULL }; | |
5517 | ||
5518 | self = self; | |
5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
5520 | return NULL; | |
5521 | if (_argo0) { | |
5522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
5525 | return NULL; | |
5526 | } | |
5527 | } | |
5528 | if (_argo1) { | |
5529 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5530 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
5532 | return NULL; | |
5533 | } | |
5534 | } | |
5535 | { | |
5536 | wxPy_BEGIN_ALLOW_THREADS; | |
5537 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
5538 | ||
5539 | wxPy_END_ALLOW_THREADS; | |
5540 | } Py_INCREF(Py_None); | |
5541 | _resultobj = Py_None; | |
5542 | return _resultobj; | |
5543 | } | |
5544 | ||
5545 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) | |
5546 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5547 | PyObject * _resultobj; | |
5548 | wxScrolledWindow * _arg0; | |
5549 | int * _arg1; | |
5550 | int temp; | |
5551 | int * _arg2; | |
5552 | int temp0; | |
5553 | PyObject * _argo0 = 0; | |
5554 | char *_kwnames[] = { "self", NULL }; | |
5555 | ||
5556 | self = self; | |
5557 | { | |
5558 | _arg1 = &temp; | |
5559 | } | |
5560 | { | |
5561 | _arg2 = &temp0; | |
5562 | } | |
5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) | |
5564 | return NULL; | |
5565 | if (_argo0) { | |
5566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); | |
5569 | return NULL; | |
5570 | } | |
5571 | } | |
5572 | { | |
5573 | wxPy_BEGIN_ALLOW_THREADS; | |
5574 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
5575 | ||
5576 | wxPy_END_ALLOW_THREADS; | |
5577 | } Py_INCREF(Py_None); | |
5578 | _resultobj = Py_None; | |
5579 | { | |
5580 | PyObject *o; | |
5581 | o = PyInt_FromLong((long) (*_arg1)); | |
5582 | _resultobj = t_output_helper(_resultobj, o); | |
5583 | } | |
5584 | { | |
5585 | PyObject *o; | |
5586 | o = PyInt_FromLong((long) (*_arg2)); | |
5587 | _resultobj = t_output_helper(_resultobj, o); | |
5588 | } | |
5589 | return _resultobj; | |
5590 | } | |
5591 | ||
5592 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5593 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject * _resultobj; | |
5595 | wxScrolledWindow * _arg0; | |
5596 | int _arg1; | |
5597 | int _arg2; | |
5598 | int * _arg3; | |
5599 | int temp; | |
5600 | int * _arg4; | |
5601 | int temp0; | |
5602 | PyObject * _argo0 = 0; | |
5603 | char *_kwnames[] = { "self","x","y", NULL }; | |
5604 | ||
5605 | self = self; | |
5606 | { | |
5607 | _arg3 = &temp; | |
5608 | } | |
5609 | { | |
5610 | _arg4 = &temp0; | |
5611 | } | |
5612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5613 | return NULL; | |
5614 | if (_argo0) { | |
5615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
5618 | return NULL; | |
5619 | } | |
5620 | } | |
5621 | { | |
5622 | wxPy_BEGIN_ALLOW_THREADS; | |
5623 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5624 | ||
5625 | wxPy_END_ALLOW_THREADS; | |
5626 | } Py_INCREF(Py_None); | |
5627 | _resultobj = Py_None; | |
5628 | { | |
5629 | PyObject *o; | |
5630 | o = PyInt_FromLong((long) (*_arg3)); | |
5631 | _resultobj = t_output_helper(_resultobj, o); | |
5632 | } | |
5633 | { | |
5634 | PyObject *o; | |
5635 | o = PyInt_FromLong((long) (*_arg4)); | |
5636 | _resultobj = t_output_helper(_resultobj, o); | |
5637 | } | |
5638 | return _resultobj; | |
5639 | } | |
5640 | ||
5641 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5642 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject * _resultobj; | |
5644 | wxScrolledWindow * _arg0; | |
5645 | int _arg1; | |
5646 | int _arg2; | |
5647 | int * _arg3; | |
5648 | int temp; | |
5649 | int * _arg4; | |
5650 | int temp0; | |
5651 | PyObject * _argo0 = 0; | |
5652 | char *_kwnames[] = { "self","x","y", NULL }; | |
5653 | ||
5654 | self = self; | |
5655 | { | |
5656 | _arg3 = &temp; | |
5657 | } | |
5658 | { | |
5659 | _arg4 = &temp0; | |
5660 | } | |
5661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5662 | return NULL; | |
5663 | if (_argo0) { | |
5664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
5667 | return NULL; | |
5668 | } | |
5669 | } | |
5670 | { | |
5671 | wxPy_BEGIN_ALLOW_THREADS; | |
5672 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5673 | ||
5674 | wxPy_END_ALLOW_THREADS; | |
5675 | } Py_INCREF(Py_None); | |
5676 | _resultobj = Py_None; | |
5677 | { | |
5678 | PyObject *o; | |
5679 | o = PyInt_FromLong((long) (*_arg3)); | |
5680 | _resultobj = t_output_helper(_resultobj, o); | |
5681 | } | |
5682 | { | |
5683 | PyObject *o; | |
5684 | o = PyInt_FromLong((long) (*_arg4)); | |
5685 | _resultobj = t_output_helper(_resultobj, o); | |
5686 | } | |
5687 | return _resultobj; | |
5688 | } | |
5689 | ||
5690 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
5691 | wxMenu *src; | |
5692 | wxEvtHandler *dest; | |
5693 | src = (wxMenu *) ptr; | |
5694 | dest = (wxEvtHandler *) src; | |
5695 | return (void *) dest; | |
5696 | } | |
5697 | ||
5698 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
5699 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | wxMenu * _result; | |
5702 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
5703 | long _arg1 = (long ) 0; | |
5704 | PyObject * _obj0 = 0; | |
5705 | char *_kwnames[] = { "title","style", NULL }; | |
5706 | char _ptemp[128]; | |
5707 | ||
5708 | self = self; | |
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
5710 | return NULL; | |
5711 | if (_obj0) | |
5712 | { | |
5713 | if (!PyString_Check(_obj0)) { | |
5714 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5715 | return NULL; | |
5716 | } | |
5717 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
5718 | } | |
5719 | { | |
5720 | wxPy_BEGIN_ALLOW_THREADS; | |
5721 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
5722 | ||
5723 | wxPy_END_ALLOW_THREADS; | |
5724 | } if (_result) { | |
5725 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
5726 | _resultobj = Py_BuildValue("s",_ptemp); | |
5727 | } else { | |
5728 | Py_INCREF(Py_None); | |
5729 | _resultobj = Py_None; | |
5730 | } | |
5731 | { | |
5732 | if (_obj0) | |
5733 | delete _arg0; | |
5734 | } | |
5735 | return _resultobj; | |
5736 | } | |
5737 | ||
5738 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5739 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5740 | PyObject * _resultobj; | |
5741 | wxMenu * _arg0; | |
5742 | int _arg1; | |
5743 | wxString * _arg2; | |
5744 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
5745 | int _arg4 = (int ) FALSE; | |
5746 | PyObject * _argo0 = 0; | |
5747 | PyObject * _obj2 = 0; | |
5748 | PyObject * _obj3 = 0; | |
5749 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; | |
5750 | ||
5751 | self = self; | |
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
5753 | return NULL; | |
5754 | if (_argo0) { | |
5755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
5758 | return NULL; | |
5759 | } | |
5760 | } | |
5761 | { | |
5762 | if (!PyString_Check(_obj2)) { | |
5763 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5764 | return NULL; | |
5765 | } | |
5766 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
5767 | } | |
5768 | if (_obj3) | |
5769 | { | |
5770 | if (!PyString_Check(_obj3)) { | |
5771 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5772 | return NULL; | |
5773 | } | |
5774 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
5775 | } | |
5776 | { | |
5777 | wxPy_BEGIN_ALLOW_THREADS; | |
5778 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
5779 | ||
5780 | wxPy_END_ALLOW_THREADS; | |
5781 | } Py_INCREF(Py_None); | |
5782 | _resultobj = Py_None; | |
5783 | { | |
5784 | if (_obj2) | |
5785 | delete _arg2; | |
5786 | } | |
5787 | { | |
5788 | if (_obj3) | |
5789 | delete _arg3; | |
5790 | } | |
5791 | return _resultobj; | |
5792 | } | |
5793 | ||
5794 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5795 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5796 | PyObject * _resultobj; | |
5797 | wxMenu * _arg0; | |
5798 | int _arg1; | |
5799 | wxString * _arg2; | |
5800 | wxMenu * _arg3; | |
5801 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; | |
5802 | PyObject * _argo0 = 0; | |
5803 | PyObject * _obj2 = 0; | |
5804 | PyObject * _argo3 = 0; | |
5805 | PyObject * _obj4 = 0; | |
5806 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
5807 | ||
5808 | self = self; | |
5809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
5810 | return NULL; | |
5811 | if (_argo0) { | |
5812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
5815 | return NULL; | |
5816 | } | |
5817 | } | |
5818 | { | |
5819 | if (!PyString_Check(_obj2)) { | |
5820 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5821 | return NULL; | |
5822 | } | |
5823 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
5824 | } | |
5825 | if (_argo3) { | |
5826 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
5827 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
5828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
5829 | return NULL; | |
5830 | } | |
5831 | } | |
5832 | if (_obj4) | |
5833 | { | |
5834 | if (!PyString_Check(_obj4)) { | |
5835 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5836 | return NULL; | |
5837 | } | |
5838 | _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); | |
5839 | } | |
5840 | { | |
5841 | wxPy_BEGIN_ALLOW_THREADS; | |
5842 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
5843 | ||
5844 | wxPy_END_ALLOW_THREADS; | |
5845 | } Py_INCREF(Py_None); | |
5846 | _resultobj = Py_None; | |
5847 | { | |
5848 | if (_obj2) | |
5849 | delete _arg2; | |
5850 | } | |
5851 | { | |
5852 | if (_obj4) | |
5853 | delete _arg4; | |
5854 | } | |
5855 | return _resultobj; | |
5856 | } | |
5857 | ||
5858 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
5859 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5860 | PyObject * _resultobj; | |
5861 | wxMenu * _arg0; | |
5862 | wxMenuItem * _arg1; | |
5863 | PyObject * _argo0 = 0; | |
5864 | PyObject * _argo1 = 0; | |
5865 | char *_kwnames[] = { "self","item", NULL }; | |
5866 | ||
5867 | self = self; | |
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
5869 | return NULL; | |
5870 | if (_argo0) { | |
5871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
5877 | if (_argo1) { | |
5878 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5879 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
5880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
5881 | return NULL; | |
5882 | } | |
5883 | } | |
5884 | { | |
5885 | wxPy_BEGIN_ALLOW_THREADS; | |
5886 | wxMenu_AppendItem(_arg0,_arg1); | |
5887 | ||
5888 | wxPy_END_ALLOW_THREADS; | |
5889 | } Py_INCREF(Py_None); | |
5890 | _resultobj = Py_None; | |
5891 | return _resultobj; | |
5892 | } | |
5893 | ||
5894 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
5895 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject * _resultobj; | |
5897 | wxMenu * _arg0; | |
5898 | PyObject * _argo0 = 0; | |
5899 | char *_kwnames[] = { "self", NULL }; | |
5900 | ||
5901 | self = self; | |
5902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
5903 | return NULL; | |
5904 | if (_argo0) { | |
5905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
5908 | return NULL; | |
5909 | } | |
5910 | } | |
5911 | { | |
5912 | wxPy_BEGIN_ALLOW_THREADS; | |
5913 | wxMenu_AppendSeparator(_arg0); | |
5914 | ||
5915 | wxPy_END_ALLOW_THREADS; | |
5916 | } Py_INCREF(Py_None); | |
5917 | _resultobj = Py_None; | |
5918 | return _resultobj; | |
5919 | } | |
5920 | ||
5921 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
5922 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject * _resultobj; | |
5924 | wxMenu * _arg0; | |
5925 | PyObject * _argo0 = 0; | |
5926 | char *_kwnames[] = { "self", NULL }; | |
5927 | ||
5928 | self = self; | |
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) | |
5930 | return NULL; | |
5931 | if (_argo0) { | |
5932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); | |
5935 | return NULL; | |
5936 | } | |
5937 | } | |
5938 | { | |
5939 | wxPy_BEGIN_ALLOW_THREADS; | |
5940 | wxMenu_Break(_arg0); | |
5941 | ||
5942 | wxPy_END_ALLOW_THREADS; | |
5943 | } Py_INCREF(Py_None); | |
5944 | _resultobj = Py_None; | |
5945 | return _resultobj; | |
5946 | } | |
5947 | ||
5948 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
5949 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5950 | PyObject * _resultobj; | |
5951 | wxMenu * _arg0; | |
5952 | int _arg1; | |
5953 | bool _arg2; | |
5954 | PyObject * _argo0 = 0; | |
5955 | int tempbool2; | |
5956 | char *_kwnames[] = { "self","id","flag", NULL }; | |
5957 | ||
5958 | self = self; | |
5959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5960 | return NULL; | |
5961 | if (_argo0) { | |
5962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); | |
5965 | return NULL; | |
5966 | } | |
5967 | } | |
5968 | _arg2 = (bool ) tempbool2; | |
5969 | { | |
5970 | wxPy_BEGIN_ALLOW_THREADS; | |
5971 | wxMenu_Check(_arg0,_arg1,_arg2); | |
5972 | ||
5973 | wxPy_END_ALLOW_THREADS; | |
5974 | } Py_INCREF(Py_None); | |
5975 | _resultobj = Py_None; | |
5976 | return _resultobj; | |
5977 | } | |
5978 | ||
5979 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
5980 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5981 | PyObject * _resultobj; | |
5982 | bool _result; | |
5983 | wxMenu * _arg0; | |
5984 | int _arg1; | |
5985 | PyObject * _argo0 = 0; | |
5986 | char *_kwnames[] = { "self","id", NULL }; | |
5987 | ||
5988 | self = self; | |
5989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
5990 | return NULL; | |
5991 | if (_argo0) { | |
5992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
5995 | return NULL; | |
5996 | } | |
5997 | } | |
5998 | { | |
5999 | wxPy_BEGIN_ALLOW_THREADS; | |
6000 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
6001 | ||
6002 | wxPy_END_ALLOW_THREADS; | |
6003 | } _resultobj = Py_BuildValue("i",_result); | |
6004 | return _resultobj; | |
6005 | } | |
6006 | ||
6007 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
6008 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject * _resultobj; | |
6010 | wxMenu * _arg0; | |
6011 | int _arg1; | |
6012 | bool _arg2; | |
6013 | PyObject * _argo0 = 0; | |
6014 | int tempbool2; | |
6015 | char *_kwnames[] = { "self","id","enable", NULL }; | |
6016 | ||
6017 | self = self; | |
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
6019 | return NULL; | |
6020 | if (_argo0) { | |
6021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); | |
6024 | return NULL; | |
6025 | } | |
6026 | } | |
6027 | _arg2 = (bool ) tempbool2; | |
6028 | { | |
6029 | wxPy_BEGIN_ALLOW_THREADS; | |
6030 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
6031 | ||
6032 | wxPy_END_ALLOW_THREADS; | |
6033 | } Py_INCREF(Py_None); | |
6034 | _resultobj = Py_None; | |
6035 | return _resultobj; | |
6036 | } | |
6037 | ||
6038 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
6039 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6040 | PyObject * _resultobj; | |
6041 | bool _result; | |
6042 | wxMenu * _arg0; | |
6043 | int _arg1; | |
6044 | PyObject * _argo0 = 0; | |
6045 | char *_kwnames[] = { "self","id", NULL }; | |
6046 | ||
6047 | self = self; | |
6048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
6049 | return NULL; | |
6050 | if (_argo0) { | |
6051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
6054 | return NULL; | |
6055 | } | |
6056 | } | |
6057 | { | |
6058 | wxPy_BEGIN_ALLOW_THREADS; | |
6059 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6060 | ||
6061 | wxPy_END_ALLOW_THREADS; | |
6062 | } _resultobj = Py_BuildValue("i",_result); | |
6063 | return _resultobj; | |
6064 | } | |
6065 | ||
6066 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
6067 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6068 | PyObject * _resultobj; | |
6069 | int _result; | |
6070 | wxMenu * _arg0; | |
6071 | wxString * _arg1; | |
6072 | PyObject * _argo0 = 0; | |
6073 | PyObject * _obj1 = 0; | |
6074 | char *_kwnames[] = { "self","itemString", NULL }; | |
6075 | ||
6076 | self = self; | |
6077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) | |
6078 | return NULL; | |
6079 | if (_argo0) { | |
6080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
6087 | if (!PyString_Check(_obj1)) { | |
6088 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6089 | return NULL; | |
6090 | } | |
6091 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
6092 | } | |
6093 | { | |
6094 | wxPy_BEGIN_ALLOW_THREADS; | |
6095 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
6096 | ||
6097 | wxPy_END_ALLOW_THREADS; | |
6098 | } _resultobj = Py_BuildValue("i",_result); | |
6099 | { | |
6100 | if (_obj1) | |
6101 | delete _arg1; | |
6102 | } | |
6103 | return _resultobj; | |
6104 | } | |
6105 | ||
6106 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
6107 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6108 | PyObject * _resultobj; | |
6109 | wxMenuItem * _result; | |
6110 | wxMenu * _arg0; | |
6111 | int _arg1; | |
6112 | PyObject * _argo0 = 0; | |
6113 | char *_kwnames[] = { "self","id", NULL }; | |
6114 | char _ptemp[128]; | |
6115 | ||
6116 | self = self; | |
6117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
6118 | return NULL; | |
6119 | if (_argo0) { | |
6120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
6123 | return NULL; | |
6124 | } | |
6125 | } | |
6126 | { | |
6127 | wxPy_BEGIN_ALLOW_THREADS; | |
6128 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
6129 | ||
6130 | wxPy_END_ALLOW_THREADS; | |
6131 | } if (_result) { | |
6132 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6133 | _resultobj = Py_BuildValue("s",_ptemp); | |
6134 | } else { | |
6135 | Py_INCREF(Py_None); | |
6136 | _resultobj = Py_None; | |
6137 | } | |
6138 | return _resultobj; | |
6139 | } | |
6140 | ||
6141 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
6142 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6143 | PyObject * _resultobj; | |
6144 | wxString * _result; | |
6145 | wxMenu * _arg0; | |
6146 | PyObject * _argo0 = 0; | |
6147 | char *_kwnames[] = { "self", NULL }; | |
6148 | ||
6149 | self = self; | |
6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) | |
6151 | return NULL; | |
6152 | if (_argo0) { | |
6153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); | |
6156 | return NULL; | |
6157 | } | |
6158 | } | |
6159 | { | |
6160 | wxPy_BEGIN_ALLOW_THREADS; | |
6161 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
6162 | ||
6163 | wxPy_END_ALLOW_THREADS; | |
6164 | }{ | |
6165 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6166 | } | |
6167 | { | |
6168 | delete _result; | |
6169 | } | |
6170 | return _resultobj; | |
6171 | } | |
6172 | ||
6173 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
6174 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6175 | PyObject * _resultobj; | |
6176 | wxMenu * _arg0; | |
6177 | wxString * _arg1; | |
6178 | PyObject * _argo0 = 0; | |
6179 | PyObject * _obj1 = 0; | |
6180 | char *_kwnames[] = { "self","title", NULL }; | |
6181 | ||
6182 | self = self; | |
6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) | |
6184 | return NULL; | |
6185 | if (_argo0) { | |
6186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); | |
6189 | return NULL; | |
6190 | } | |
6191 | } | |
6192 | { | |
6193 | if (!PyString_Check(_obj1)) { | |
6194 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6195 | return NULL; | |
6196 | } | |
6197 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
6198 | } | |
6199 | { | |
6200 | wxPy_BEGIN_ALLOW_THREADS; | |
6201 | wxMenu_SetTitle(_arg0,*_arg1); | |
6202 | ||
6203 | wxPy_END_ALLOW_THREADS; | |
6204 | } Py_INCREF(Py_None); | |
6205 | _resultobj = Py_None; | |
6206 | { | |
6207 | if (_obj1) | |
6208 | delete _arg1; | |
6209 | } | |
6210 | return _resultobj; | |
6211 | } | |
6212 | ||
6213 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
6214 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6215 | PyObject * _resultobj; | |
6216 | wxString * _result; | |
6217 | wxMenu * _arg0; | |
6218 | int _arg1; | |
6219 | PyObject * _argo0 = 0; | |
6220 | char *_kwnames[] = { "self","id", NULL }; | |
6221 | ||
6222 | self = self; | |
6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) | |
6224 | return NULL; | |
6225 | if (_argo0) { | |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); | |
6229 | return NULL; | |
6230 | } | |
6231 | } | |
6232 | { | |
6233 | wxPy_BEGIN_ALLOW_THREADS; | |
6234 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); | |
6235 | ||
6236 | wxPy_END_ALLOW_THREADS; | |
6237 | }{ | |
6238 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6239 | } | |
6240 | { | |
6241 | delete _result; | |
6242 | } | |
6243 | return _resultobj; | |
6244 | } | |
6245 | ||
6246 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
6247 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject * _resultobj; | |
6249 | wxMenu * _arg0; | |
6250 | int _arg1; | |
6251 | wxString * _arg2; | |
6252 | PyObject * _argo0 = 0; | |
6253 | PyObject * _obj2 = 0; | |
6254 | char *_kwnames[] = { "self","id","label", NULL }; | |
6255 | ||
6256 | self = self; | |
6257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6258 | return NULL; | |
6259 | if (_argo0) { | |
6260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); | |
6263 | return NULL; | |
6264 | } | |
6265 | } | |
6266 | { | |
6267 | if (!PyString_Check(_obj2)) { | |
6268 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6269 | return NULL; | |
6270 | } | |
6271 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6272 | } | |
6273 | { | |
6274 | wxPy_BEGIN_ALLOW_THREADS; | |
6275 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); | |
6276 | ||
6277 | wxPy_END_ALLOW_THREADS; | |
6278 | } Py_INCREF(Py_None); | |
6279 | _resultobj = Py_None; | |
6280 | { | |
6281 | if (_obj2) | |
6282 | delete _arg2; | |
6283 | } | |
6284 | return _resultobj; | |
6285 | } | |
6286 | ||
6287 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
6288 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6289 | PyObject * _resultobj; | |
6290 | wxString * _result; | |
6291 | wxMenu * _arg0; | |
6292 | int _arg1; | |
6293 | PyObject * _argo0 = 0; | |
6294 | char *_kwnames[] = { "self","id", NULL }; | |
6295 | ||
6296 | self = self; | |
6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
6298 | return NULL; | |
6299 | if (_argo0) { | |
6300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); | |
6303 | return NULL; | |
6304 | } | |
6305 | } | |
6306 | { | |
6307 | wxPy_BEGIN_ALLOW_THREADS; | |
6308 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); | |
6309 | ||
6310 | wxPy_END_ALLOW_THREADS; | |
6311 | }{ | |
6312 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6313 | } | |
6314 | { | |
6315 | delete _result; | |
6316 | } | |
6317 | return _resultobj; | |
6318 | } | |
6319 | ||
6320 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
6321 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6322 | PyObject * _resultobj; | |
6323 | wxMenu * _arg0; | |
6324 | int _arg1; | |
6325 | wxString * _arg2; | |
6326 | PyObject * _argo0 = 0; | |
6327 | PyObject * _obj2 = 0; | |
6328 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
6329 | ||
6330 | self = self; | |
6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6332 | return NULL; | |
6333 | if (_argo0) { | |
6334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); | |
6337 | return NULL; | |
6338 | } | |
6339 | } | |
6340 | { | |
6341 | if (!PyString_Check(_obj2)) { | |
6342 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6343 | return NULL; | |
6344 | } | |
6345 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6346 | } | |
6347 | { | |
6348 | wxPy_BEGIN_ALLOW_THREADS; | |
6349 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
6350 | ||
6351 | wxPy_END_ALLOW_THREADS; | |
6352 | } Py_INCREF(Py_None); | |
6353 | _resultobj = Py_None; | |
6354 | { | |
6355 | if (_obj2) | |
6356 | delete _arg2; | |
6357 | } | |
6358 | return _resultobj; | |
6359 | } | |
6360 | ||
6361 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) | |
6362 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6363 | PyObject * _resultobj; | |
6364 | wxMenu * _arg0; | |
6365 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; | |
6366 | PyObject * _argo0 = 0; | |
6367 | PyObject * _argo1 = 0; | |
6368 | char *_kwnames[] = { "self","source", NULL }; | |
6369 | ||
6370 | self = self; | |
6371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) | |
6372 | return NULL; | |
6373 | if (_argo0) { | |
6374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); | |
6377 | return NULL; | |
6378 | } | |
6379 | } | |
6380 | if (_argo1) { | |
6381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
6383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
6384 | return NULL; | |
6385 | } | |
6386 | } | |
6387 | { | |
6388 | wxPy_BEGIN_ALLOW_THREADS; | |
6389 | wxMenu_UpdateUI(_arg0,_arg1); | |
6390 | ||
6391 | wxPy_END_ALLOW_THREADS; | |
6392 | } Py_INCREF(Py_None); | |
6393 | _resultobj = Py_None; | |
6394 | return _resultobj; | |
6395 | } | |
6396 | ||
6397 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
6398 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject * _resultobj; | |
6400 | bool _result; | |
6401 | wxMenu * _arg0; | |
6402 | int _arg1; | |
6403 | PyObject * _argo0 = 0; | |
6404 | char *_kwnames[] = { "self","id", NULL }; | |
6405 | ||
6406 | self = self; | |
6407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) | |
6408 | return NULL; | |
6409 | if (_argo0) { | |
6410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); | |
6413 | return NULL; | |
6414 | } | |
6415 | } | |
6416 | { | |
6417 | wxPy_BEGIN_ALLOW_THREADS; | |
6418 | _result = (bool )wxMenu_Delete(_arg0,_arg1); | |
6419 | ||
6420 | wxPy_END_ALLOW_THREADS; | |
6421 | } _resultobj = Py_BuildValue("i",_result); | |
6422 | return _resultobj; | |
6423 | } | |
6424 | ||
6425 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
6426 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject * _resultobj; | |
6428 | bool _result; | |
6429 | wxMenu * _arg0; | |
6430 | wxMenuItem * _arg1; | |
6431 | PyObject * _argo0 = 0; | |
6432 | PyObject * _argo1 = 0; | |
6433 | char *_kwnames[] = { "self","item", NULL }; | |
6434 | ||
6435 | self = self; | |
6436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) | |
6437 | return NULL; | |
6438 | if (_argo0) { | |
6439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); | |
6442 | return NULL; | |
6443 | } | |
6444 | } | |
6445 | if (_argo1) { | |
6446 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6447 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
6449 | return NULL; | |
6450 | } | |
6451 | } | |
6452 | { | |
6453 | wxPy_BEGIN_ALLOW_THREADS; | |
6454 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); | |
6455 | ||
6456 | wxPy_END_ALLOW_THREADS; | |
6457 | } _resultobj = Py_BuildValue("i",_result); | |
6458 | return _resultobj; | |
6459 | } | |
6460 | ||
6461 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) | |
6462 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6463 | PyObject * _resultobj; | |
6464 | bool _result; | |
6465 | wxMenu * _arg0; | |
6466 | size_t _arg1; | |
6467 | wxMenuItem * _arg2; | |
6468 | PyObject * _argo0 = 0; | |
6469 | PyObject * _argo2 = 0; | |
6470 | char *_kwnames[] = { "self","pos","item", NULL }; | |
6471 | ||
6472 | self = self; | |
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) | |
6474 | return NULL; | |
6475 | if (_argo0) { | |
6476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
6479 | return NULL; | |
6480 | } | |
6481 | } | |
6482 | if (_argo2) { | |
6483 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6484 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
6485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
6486 | return NULL; | |
6487 | } | |
6488 | } | |
6489 | { | |
6490 | wxPy_BEGIN_ALLOW_THREADS; | |
6491 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); | |
6492 | ||
6493 | wxPy_END_ALLOW_THREADS; | |
6494 | } _resultobj = Py_BuildValue("i",_result); | |
6495 | return _resultobj; | |
6496 | } | |
6497 | ||
6498 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
6499 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6500 | PyObject * _resultobj; | |
6501 | wxMenuItem * _result; | |
6502 | wxMenu * _arg0; | |
6503 | int _arg1; | |
6504 | PyObject * _argo0 = 0; | |
6505 | char *_kwnames[] = { "self","id", NULL }; | |
6506 | char _ptemp[128]; | |
6507 | ||
6508 | self = self; | |
6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) | |
6510 | return NULL; | |
6511 | if (_argo0) { | |
6512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); | |
6515 | return NULL; | |
6516 | } | |
6517 | } | |
6518 | { | |
6519 | wxPy_BEGIN_ALLOW_THREADS; | |
6520 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); | |
6521 | ||
6522 | wxPy_END_ALLOW_THREADS; | |
6523 | } if (_result) { | |
6524 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6525 | _resultobj = Py_BuildValue("s",_ptemp); | |
6526 | } else { | |
6527 | Py_INCREF(Py_None); | |
6528 | _resultobj = Py_None; | |
6529 | } | |
6530 | return _resultobj; | |
6531 | } | |
6532 | ||
6533 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
6534 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6535 | PyObject * _resultobj; | |
6536 | wxMenuItem * _result; | |
6537 | wxMenu * _arg0; | |
6538 | wxMenuItem * _arg1; | |
6539 | PyObject * _argo0 = 0; | |
6540 | PyObject * _argo1 = 0; | |
6541 | char *_kwnames[] = { "self","item", NULL }; | |
6542 | char _ptemp[128]; | |
6543 | ||
6544 | self = self; | |
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) | |
6546 | return NULL; | |
6547 | if (_argo0) { | |
6548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
6551 | return NULL; | |
6552 | } | |
6553 | } | |
6554 | if (_argo1) { | |
6555 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6556 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
6558 | return NULL; | |
6559 | } | |
6560 | } | |
6561 | { | |
6562 | wxPy_BEGIN_ALLOW_THREADS; | |
6563 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); | |
6564 | ||
6565 | wxPy_END_ALLOW_THREADS; | |
6566 | } if (_result) { | |
6567 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6568 | _resultobj = Py_BuildValue("s",_ptemp); | |
6569 | } else { | |
6570 | Py_INCREF(Py_None); | |
6571 | _resultobj = Py_None; | |
6572 | } | |
6573 | return _resultobj; | |
6574 | } | |
6575 | ||
6576 | static void wxMenu_Destroy(wxMenu *self) { delete self; } | |
6577 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6578 | PyObject * _resultobj; | |
6579 | wxMenu * _arg0; | |
6580 | PyObject * _argo0 = 0; | |
6581 | char *_kwnames[] = { "self", NULL }; | |
6582 | ||
6583 | self = self; | |
6584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
6585 | return NULL; | |
6586 | if (_argo0) { | |
6587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
6590 | return NULL; | |
6591 | } | |
6592 | } | |
6593 | { | |
6594 | wxPy_BEGIN_ALLOW_THREADS; | |
6595 | wxMenu_Destroy(_arg0); | |
6596 | ||
6597 | wxPy_END_ALLOW_THREADS; | |
6598 | } Py_INCREF(Py_None); | |
6599 | _resultobj = Py_None; | |
6600 | return _resultobj; | |
6601 | } | |
6602 | ||
6603 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
6604 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject * _resultobj; | |
6606 | bool _result; | |
6607 | wxMenu * _arg0; | |
6608 | int _arg1; | |
6609 | PyObject * _argo0 = 0; | |
6610 | char *_kwnames[] = { "self","id", NULL }; | |
6611 | ||
6612 | self = self; | |
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) | |
6614 | return NULL; | |
6615 | if (_argo0) { | |
6616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
6619 | return NULL; | |
6620 | } | |
6621 | } | |
6622 | { | |
6623 | wxPy_BEGIN_ALLOW_THREADS; | |
6624 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); | |
6625 | ||
6626 | wxPy_END_ALLOW_THREADS; | |
6627 | } _resultobj = Py_BuildValue("i",_result); | |
6628 | return _resultobj; | |
6629 | } | |
6630 | ||
6631 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
6632 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6633 | PyObject * _resultobj; | |
6634 | bool _result; | |
6635 | wxMenu * _arg0; | |
6636 | wxMenuItem * _arg1; | |
6637 | PyObject * _argo0 = 0; | |
6638 | PyObject * _argo1 = 0; | |
6639 | char *_kwnames[] = { "self","item", NULL }; | |
6640 | ||
6641 | self = self; | |
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) | |
6643 | return NULL; | |
6644 | if (_argo0) { | |
6645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
6648 | return NULL; | |
6649 | } | |
6650 | } | |
6651 | if (_argo1) { | |
6652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
6654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
6655 | return NULL; | |
6656 | } | |
6657 | } | |
6658 | { | |
6659 | wxPy_BEGIN_ALLOW_THREADS; | |
6660 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); | |
6661 | ||
6662 | wxPy_END_ALLOW_THREADS; | |
6663 | } _resultobj = Py_BuildValue("i",_result); | |
6664 | return _resultobj; | |
6665 | } | |
6666 | ||
6667 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) | |
6668 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6669 | PyObject * _resultobj; | |
6670 | size_t _result; | |
6671 | wxMenu * _arg0; | |
6672 | PyObject * _argo0 = 0; | |
6673 | char *_kwnames[] = { "self", NULL }; | |
6674 | ||
6675 | self = self; | |
6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) | |
6677 | return NULL; | |
6678 | if (_argo0) { | |
6679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
6682 | return NULL; | |
6683 | } | |
6684 | } | |
6685 | { | |
6686 | wxPy_BEGIN_ALLOW_THREADS; | |
6687 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); | |
6688 | ||
6689 | wxPy_END_ALLOW_THREADS; | |
6690 | } _resultobj = Py_BuildValue("i",_result); | |
6691 | return _resultobj; | |
6692 | } | |
6693 | ||
6694 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { | |
6695 | wxMenuItemList& list = self->GetMenuItems(); | |
6696 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
6697 | } | |
6698 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6699 | PyObject * _resultobj; | |
6700 | PyObject * _result; | |
6701 | wxMenu * _arg0; | |
6702 | PyObject * _argo0 = 0; | |
6703 | char *_kwnames[] = { "self", NULL }; | |
6704 | ||
6705 | self = self; | |
6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) | |
6707 | return NULL; | |
6708 | if (_argo0) { | |
6709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
6712 | return NULL; | |
6713 | } | |
6714 | } | |
6715 | { | |
6716 | wxPy_BEGIN_ALLOW_THREADS; | |
6717 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); | |
6718 | ||
6719 | wxPy_END_ALLOW_THREADS; | |
6720 | }{ | |
6721 | _resultobj = _result; | |
6722 | } | |
6723 | return _resultobj; | |
6724 | } | |
6725 | ||
6726 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
6727 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6728 | PyObject * _resultobj; | |
6729 | wxMenu * _arg0; | |
6730 | wxEvtHandler * _arg1; | |
6731 | PyObject * _argo0 = 0; | |
6732 | PyObject * _argo1 = 0; | |
6733 | char *_kwnames[] = { "self","handler", NULL }; | |
6734 | ||
6735 | self = self; | |
6736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
6737 | return NULL; | |
6738 | if (_argo0) { | |
6739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
6742 | return NULL; | |
6743 | } | |
6744 | } | |
6745 | if (_argo1) { | |
6746 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6747 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
6748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
6749 | return NULL; | |
6750 | } | |
6751 | } | |
6752 | { | |
6753 | wxPy_BEGIN_ALLOW_THREADS; | |
6754 | wxMenu_SetEventHandler(_arg0,_arg1); | |
6755 | ||
6756 | wxPy_END_ALLOW_THREADS; | |
6757 | } Py_INCREF(Py_None); | |
6758 | _resultobj = Py_None; | |
6759 | return _resultobj; | |
6760 | } | |
6761 | ||
6762 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
6763 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6764 | PyObject * _resultobj; | |
6765 | wxEvtHandler * _result; | |
6766 | wxMenu * _arg0; | |
6767 | PyObject * _argo0 = 0; | |
6768 | char *_kwnames[] = { "self", NULL }; | |
6769 | char _ptemp[128]; | |
6770 | ||
6771 | self = self; | |
6772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) | |
6773 | return NULL; | |
6774 | if (_argo0) { | |
6775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
6778 | return NULL; | |
6779 | } | |
6780 | } | |
6781 | { | |
6782 | wxPy_BEGIN_ALLOW_THREADS; | |
6783 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); | |
6784 | ||
6785 | wxPy_END_ALLOW_THREADS; | |
6786 | } if (_result) { | |
6787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
6788 | _resultobj = Py_BuildValue("s",_ptemp); | |
6789 | } else { | |
6790 | Py_INCREF(Py_None); | |
6791 | _resultobj = Py_None; | |
6792 | } | |
6793 | return _resultobj; | |
6794 | } | |
6795 | ||
6796 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) | |
6797 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6798 | PyObject * _resultobj; | |
6799 | wxMenu * _arg0; | |
6800 | wxWindow * _arg1; | |
6801 | PyObject * _argo0 = 0; | |
6802 | PyObject * _argo1 = 0; | |
6803 | char *_kwnames[] = { "self","win", NULL }; | |
6804 | ||
6805 | self = self; | |
6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) | |
6807 | return NULL; | |
6808 | if (_argo0) { | |
6809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
6812 | return NULL; | |
6813 | } | |
6814 | } | |
6815 | if (_argo1) { | |
6816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
6819 | return NULL; | |
6820 | } | |
6821 | } | |
6822 | { | |
6823 | wxPy_BEGIN_ALLOW_THREADS; | |
6824 | wxMenu_SetInvokingWindow(_arg0,_arg1); | |
6825 | ||
6826 | wxPy_END_ALLOW_THREADS; | |
6827 | } Py_INCREF(Py_None); | |
6828 | _resultobj = Py_None; | |
6829 | return _resultobj; | |
6830 | } | |
6831 | ||
6832 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) | |
6833 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6834 | PyObject * _resultobj; | |
6835 | wxWindow * _result; | |
6836 | wxMenu * _arg0; | |
6837 | PyObject * _argo0 = 0; | |
6838 | char *_kwnames[] = { "self", NULL }; | |
6839 | char _ptemp[128]; | |
6840 | ||
6841 | self = self; | |
6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) | |
6843 | return NULL; | |
6844 | if (_argo0) { | |
6845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
6848 | return NULL; | |
6849 | } | |
6850 | } | |
6851 | { | |
6852 | wxPy_BEGIN_ALLOW_THREADS; | |
6853 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); | |
6854 | ||
6855 | wxPy_END_ALLOW_THREADS; | |
6856 | } if (_result) { | |
6857 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
6858 | _resultobj = Py_BuildValue("s",_ptemp); | |
6859 | } else { | |
6860 | Py_INCREF(Py_None); | |
6861 | _resultobj = Py_None; | |
6862 | } | |
6863 | return _resultobj; | |
6864 | } | |
6865 | ||
6866 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
6867 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject * _resultobj; | |
6869 | long _result; | |
6870 | wxMenu * _arg0; | |
6871 | PyObject * _argo0 = 0; | |
6872 | char *_kwnames[] = { "self", NULL }; | |
6873 | ||
6874 | self = self; | |
6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) | |
6876 | return NULL; | |
6877 | if (_argo0) { | |
6878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
6881 | return NULL; | |
6882 | } | |
6883 | } | |
6884 | { | |
6885 | wxPy_BEGIN_ALLOW_THREADS; | |
6886 | _result = (long )wxMenu_GetStyle(_arg0); | |
6887 | ||
6888 | wxPy_END_ALLOW_THREADS; | |
6889 | } _resultobj = Py_BuildValue("l",_result); | |
6890 | return _resultobj; | |
6891 | } | |
6892 | ||
6893 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) | |
6894 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6895 | PyObject * _resultobj; | |
6896 | bool _result; | |
6897 | wxMenu * _arg0; | |
6898 | PyObject * _argo0 = 0; | |
6899 | char *_kwnames[] = { "self", NULL }; | |
6900 | ||
6901 | self = self; | |
6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) | |
6903 | return NULL; | |
6904 | if (_argo0) { | |
6905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
6908 | return NULL; | |
6909 | } | |
6910 | } | |
6911 | { | |
6912 | wxPy_BEGIN_ALLOW_THREADS; | |
6913 | _result = (bool )wxMenu_IsAttached(_arg0); | |
6914 | ||
6915 | wxPy_END_ALLOW_THREADS; | |
6916 | } _resultobj = Py_BuildValue("i",_result); | |
6917 | return _resultobj; | |
6918 | } | |
6919 | ||
6920 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
6921 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6922 | PyObject * _resultobj; | |
6923 | wxMenu * _arg0; | |
6924 | wxMenu * _arg1; | |
6925 | PyObject * _argo0 = 0; | |
6926 | PyObject * _argo1 = 0; | |
6927 | char *_kwnames[] = { "self","parent", NULL }; | |
6928 | ||
6929 | self = self; | |
6930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) | |
6931 | return NULL; | |
6932 | if (_argo0) { | |
6933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
6936 | return NULL; | |
6937 | } | |
6938 | } | |
6939 | if (_argo1) { | |
6940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
6942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
6943 | return NULL; | |
6944 | } | |
6945 | } | |
6946 | { | |
6947 | wxPy_BEGIN_ALLOW_THREADS; | |
6948 | wxMenu_SetParent(_arg0,_arg1); | |
6949 | ||
6950 | wxPy_END_ALLOW_THREADS; | |
6951 | } Py_INCREF(Py_None); | |
6952 | _resultobj = Py_None; | |
6953 | return _resultobj; | |
6954 | } | |
6955 | ||
6956 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) | |
6957 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6958 | PyObject * _resultobj; | |
6959 | wxMenu * _result; | |
6960 | wxMenu * _arg0; | |
6961 | PyObject * _argo0 = 0; | |
6962 | char *_kwnames[] = { "self", NULL }; | |
6963 | char _ptemp[128]; | |
6964 | ||
6965 | self = self; | |
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) | |
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_GetParent. Expected _wxMenu_p."); | |
6972 | return NULL; | |
6973 | } | |
6974 | } | |
6975 | { | |
6976 | wxPy_BEGIN_ALLOW_THREADS; | |
6977 | _result = (wxMenu *)wxMenu_GetParent(_arg0); | |
6978 | ||
6979 | wxPy_END_ALLOW_THREADS; | |
6980 | } if (_result) { | |
6981 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6982 | _resultobj = Py_BuildValue("s",_ptemp); | |
6983 | } else { | |
6984 | Py_INCREF(Py_None); | |
6985 | _resultobj = Py_None; | |
6986 | } | |
6987 | return _resultobj; | |
6988 | } | |
6989 | ||
6990 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
6991 | wxMenuBar *src; | |
6992 | wxWindow *dest; | |
6993 | src = (wxMenuBar *) ptr; | |
6994 | dest = (wxWindow *) src; | |
6995 | return (void *) dest; | |
6996 | } | |
6997 | ||
6998 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
6999 | wxMenuBar *src; | |
7000 | wxEvtHandler *dest; | |
7001 | src = (wxMenuBar *) ptr; | |
7002 | dest = (wxEvtHandler *) src; | |
7003 | return (void *) dest; | |
7004 | } | |
7005 | ||
7006 | #define new_wxMenuBar() (new wxMenuBar()) | |
7007 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject * _resultobj; | |
7009 | wxMenuBar * _result; | |
7010 | char *_kwnames[] = { NULL }; | |
7011 | char _ptemp[128]; | |
7012 | ||
7013 | self = self; | |
7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames)) | |
7015 | return NULL; | |
7016 | { | |
7017 | wxPy_BEGIN_ALLOW_THREADS; | |
7018 | _result = (wxMenuBar *)new_wxMenuBar(); | |
7019 | ||
7020 | wxPy_END_ALLOW_THREADS; | |
7021 | } if (_result) { | |
7022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
7023 | _resultobj = Py_BuildValue("s",_ptemp); | |
7024 | } else { | |
7025 | Py_INCREF(Py_None); | |
7026 | _resultobj = Py_None; | |
7027 | } | |
7028 | return _resultobj; | |
7029 | } | |
7030 | ||
7031 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
7032 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7033 | PyObject * _resultobj; | |
7034 | bool _result; | |
7035 | wxMenuBar * _arg0; | |
7036 | wxMenu * _arg1; | |
7037 | wxString * _arg2; | |
7038 | PyObject * _argo0 = 0; | |
7039 | PyObject * _argo1 = 0; | |
7040 | PyObject * _obj2 = 0; | |
7041 | char *_kwnames[] = { "self","menu","title", NULL }; | |
7042 | ||
7043 | self = self; | |
7044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7045 | return NULL; | |
7046 | if (_argo0) { | |
7047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); | |
7050 | return NULL; | |
7051 | } | |
7052 | } | |
7053 | if (_argo1) { | |
7054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
7056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
7057 | return NULL; | |
7058 | } | |
7059 | } | |
7060 | { | |
7061 | if (!PyString_Check(_obj2)) { | |
7062 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7063 | return NULL; | |
7064 | } | |
7065 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7066 | } | |
7067 | { | |
7068 | wxPy_BEGIN_ALLOW_THREADS; | |
7069 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); | |
7070 | ||
7071 | wxPy_END_ALLOW_THREADS; | |
7072 | } _resultobj = Py_BuildValue("i",_result); | |
7073 | { | |
7074 | if (_obj2) | |
7075 | delete _arg2; | |
7076 | } | |
7077 | return _resultobj; | |
7078 | } | |
7079 | ||
7080 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) | |
7081 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7082 | PyObject * _resultobj; | |
7083 | bool _result; | |
7084 | wxMenuBar * _arg0; | |
7085 | size_t _arg1; | |
7086 | wxMenu * _arg2; | |
7087 | wxString * _arg3; | |
7088 | PyObject * _argo0 = 0; | |
7089 | PyObject * _argo2 = 0; | |
7090 | PyObject * _obj3 = 0; | |
7091 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
7092 | ||
7093 | self = self; | |
7094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
7095 | return NULL; | |
7096 | if (_argo0) { | |
7097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); | |
7100 | return NULL; | |
7101 | } | |
7102 | } | |
7103 | if (_argo2) { | |
7104 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7105 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
7107 | return NULL; | |
7108 | } | |
7109 | } | |
7110 | { | |
7111 | if (!PyString_Check(_obj3)) { | |
7112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7113 | return NULL; | |
7114 | } | |
7115 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7116 | } | |
7117 | { | |
7118 | wxPy_BEGIN_ALLOW_THREADS; | |
7119 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); | |
7120 | ||
7121 | wxPy_END_ALLOW_THREADS; | |
7122 | } _resultobj = Py_BuildValue("i",_result); | |
7123 | { | |
7124 | if (_obj3) | |
7125 | delete _arg3; | |
7126 | } | |
7127 | return _resultobj; | |
7128 | } | |
7129 | ||
7130 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) | |
7131 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject * _resultobj; | |
7133 | size_t _result; | |
7134 | wxMenuBar * _arg0; | |
7135 | PyObject * _argo0 = 0; | |
7136 | char *_kwnames[] = { "self", NULL }; | |
7137 | ||
7138 | self = self; | |
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) | |
7140 | return NULL; | |
7141 | if (_argo0) { | |
7142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); | |
7145 | return NULL; | |
7146 | } | |
7147 | } | |
7148 | { | |
7149 | wxPy_BEGIN_ALLOW_THREADS; | |
7150 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); | |
7151 | ||
7152 | wxPy_END_ALLOW_THREADS; | |
7153 | } _resultobj = Py_BuildValue("i",_result); | |
7154 | return _resultobj; | |
7155 | } | |
7156 | ||
7157 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
7158 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7159 | PyObject * _resultobj; | |
7160 | wxMenu * _result; | |
7161 | wxMenuBar * _arg0; | |
7162 | size_t _arg1; | |
7163 | PyObject * _argo0 = 0; | |
7164 | char *_kwnames[] = { "self","pos", NULL }; | |
7165 | char _ptemp[128]; | |
7166 | ||
7167 | self = self; | |
7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) | |
7169 | return NULL; | |
7170 | if (_argo0) { | |
7171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); | |
7174 | return NULL; | |
7175 | } | |
7176 | } | |
7177 | { | |
7178 | wxPy_BEGIN_ALLOW_THREADS; | |
7179 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); | |
7180 | ||
7181 | wxPy_END_ALLOW_THREADS; | |
7182 | } if (_result) { | |
7183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7184 | _resultobj = Py_BuildValue("s",_ptemp); | |
7185 | } else { | |
7186 | Py_INCREF(Py_None); | |
7187 | _resultobj = Py_None; | |
7188 | } | |
7189 | return _resultobj; | |
7190 | } | |
7191 | ||
7192 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
7193 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7194 | PyObject * _resultobj; | |
7195 | wxMenu * _result; | |
7196 | wxMenuBar * _arg0; | |
7197 | size_t _arg1; | |
7198 | wxMenu * _arg2; | |
7199 | wxString * _arg3; | |
7200 | PyObject * _argo0 = 0; | |
7201 | PyObject * _argo2 = 0; | |
7202 | PyObject * _obj3 = 0; | |
7203 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
7204 | char _ptemp[128]; | |
7205 | ||
7206 | self = self; | |
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
7208 | return NULL; | |
7209 | if (_argo0) { | |
7210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
7213 | return NULL; | |
7214 | } | |
7215 | } | |
7216 | if (_argo2) { | |
7217 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7218 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
7219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
7220 | return NULL; | |
7221 | } | |
7222 | } | |
7223 | { | |
7224 | if (!PyString_Check(_obj3)) { | |
7225 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7226 | return NULL; | |
7227 | } | |
7228 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7229 | } | |
7230 | { | |
7231 | wxPy_BEGIN_ALLOW_THREADS; | |
7232 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
7233 | ||
7234 | wxPy_END_ALLOW_THREADS; | |
7235 | } if (_result) { | |
7236 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7237 | _resultobj = Py_BuildValue("s",_ptemp); | |
7238 | } else { | |
7239 | Py_INCREF(Py_None); | |
7240 | _resultobj = Py_None; | |
7241 | } | |
7242 | { | |
7243 | if (_obj3) | |
7244 | delete _arg3; | |
7245 | } | |
7246 | return _resultobj; | |
7247 | } | |
7248 | ||
7249 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7250 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject * _resultobj; | |
7252 | wxMenu * _result; | |
7253 | wxMenuBar * _arg0; | |
7254 | size_t _arg1; | |
7255 | PyObject * _argo0 = 0; | |
7256 | char *_kwnames[] = { "self","pos", NULL }; | |
7257 | char _ptemp[128]; | |
7258 | ||
7259 | self = self; | |
7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
7261 | return NULL; | |
7262 | if (_argo0) { | |
7263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
7266 | return NULL; | |
7267 | } | |
7268 | } | |
7269 | { | |
7270 | wxPy_BEGIN_ALLOW_THREADS; | |
7271 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
7272 | ||
7273 | wxPy_END_ALLOW_THREADS; | |
7274 | } if (_result) { | |
7275 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7276 | _resultobj = Py_BuildValue("s",_ptemp); | |
7277 | } else { | |
7278 | Py_INCREF(Py_None); | |
7279 | _resultobj = Py_None; | |
7280 | } | |
7281 | return _resultobj; | |
7282 | } | |
7283 | ||
7284 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
7285 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7286 | PyObject * _resultobj; | |
7287 | wxMenuBar * _arg0; | |
7288 | size_t _arg1; | |
7289 | bool _arg2; | |
7290 | PyObject * _argo0 = 0; | |
7291 | int tempbool2; | |
7292 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
7293 | ||
7294 | self = self; | |
7295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7296 | return NULL; | |
7297 | if (_argo0) { | |
7298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
7301 | return NULL; | |
7302 | } | |
7303 | } | |
7304 | _arg2 = (bool ) tempbool2; | |
7305 | { | |
7306 | wxPy_BEGIN_ALLOW_THREADS; | |
7307 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
7308 | ||
7309 | wxPy_END_ALLOW_THREADS; | |
7310 | } Py_INCREF(Py_None); | |
7311 | _resultobj = Py_None; | |
7312 | return _resultobj; | |
7313 | } | |
7314 | ||
7315 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
7316 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject * _resultobj; | |
7318 | wxMenuBar * _arg0; | |
7319 | size_t _arg1; | |
7320 | wxString * _arg2; | |
7321 | PyObject * _argo0 = 0; | |
7322 | PyObject * _obj2 = 0; | |
7323 | char *_kwnames[] = { "self","pos","label", NULL }; | |
7324 | ||
7325 | self = self; | |
7326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7327 | return NULL; | |
7328 | if (_argo0) { | |
7329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
7332 | return NULL; | |
7333 | } | |
7334 | } | |
7335 | { | |
7336 | if (!PyString_Check(_obj2)) { | |
7337 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7338 | return NULL; | |
7339 | } | |
7340 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7341 | } | |
7342 | { | |
7343 | wxPy_BEGIN_ALLOW_THREADS; | |
7344 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
7345 | ||
7346 | wxPy_END_ALLOW_THREADS; | |
7347 | } Py_INCREF(Py_None); | |
7348 | _resultobj = Py_None; | |
7349 | { | |
7350 | if (_obj2) | |
7351 | delete _arg2; | |
7352 | } | |
7353 | return _resultobj; | |
7354 | } | |
7355 | ||
7356 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
7357 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7358 | PyObject * _resultobj; | |
7359 | wxString * _result; | |
7360 | wxMenuBar * _arg0; | |
7361 | size_t _arg1; | |
7362 | PyObject * _argo0 = 0; | |
7363 | char *_kwnames[] = { "self","pos", NULL }; | |
7364 | ||
7365 | self = self; | |
7366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
7367 | return NULL; | |
7368 | if (_argo0) { | |
7369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
7372 | return NULL; | |
7373 | } | |
7374 | } | |
7375 | { | |
7376 | wxPy_BEGIN_ALLOW_THREADS; | |
7377 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
7378 | ||
7379 | wxPy_END_ALLOW_THREADS; | |
7380 | }{ | |
7381 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7382 | } | |
7383 | { | |
7384 | delete _result; | |
7385 | } | |
7386 | return _resultobj; | |
7387 | } | |
7388 | ||
7389 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
7390 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7391 | PyObject * _resultobj; | |
7392 | int _result; | |
7393 | wxMenuBar * _arg0; | |
7394 | wxString * _arg1; | |
7395 | wxString * _arg2; | |
7396 | PyObject * _argo0 = 0; | |
7397 | PyObject * _obj1 = 0; | |
7398 | PyObject * _obj2 = 0; | |
7399 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
7400 | ||
7401 | self = self; | |
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7403 | return NULL; | |
7404 | if (_argo0) { | |
7405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
7408 | return NULL; | |
7409 | } | |
7410 | } | |
7411 | { | |
7412 | if (!PyString_Check(_obj1)) { | |
7413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7414 | return NULL; | |
7415 | } | |
7416 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
7417 | } | |
7418 | { | |
7419 | if (!PyString_Check(_obj2)) { | |
7420 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7421 | return NULL; | |
7422 | } | |
7423 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7424 | } | |
7425 | { | |
7426 | wxPy_BEGIN_ALLOW_THREADS; | |
7427 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
7428 | ||
7429 | wxPy_END_ALLOW_THREADS; | |
7430 | } _resultobj = Py_BuildValue("i",_result); | |
7431 | { | |
7432 | if (_obj1) | |
7433 | delete _arg1; | |
7434 | } | |
7435 | { | |
7436 | if (_obj2) | |
7437 | delete _arg2; | |
7438 | } | |
7439 | return _resultobj; | |
7440 | } | |
7441 | ||
7442 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7443 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject * _resultobj; | |
7445 | wxMenuItem * _result; | |
7446 | wxMenuBar * _arg0; | |
7447 | int _arg1; | |
7448 | PyObject * _argo0 = 0; | |
7449 | char *_kwnames[] = { "self","id", NULL }; | |
7450 | char _ptemp[128]; | |
7451 | ||
7452 | self = self; | |
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7454 | return NULL; | |
7455 | if (_argo0) { | |
7456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
7459 | return NULL; | |
7460 | } | |
7461 | } | |
7462 | { | |
7463 | wxPy_BEGIN_ALLOW_THREADS; | |
7464 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); | |
7465 | ||
7466 | wxPy_END_ALLOW_THREADS; | |
7467 | } if (_result) { | |
7468 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7469 | _resultobj = Py_BuildValue("s",_ptemp); | |
7470 | } else { | |
7471 | Py_INCREF(Py_None); | |
7472 | _resultobj = Py_None; | |
7473 | } | |
7474 | return _resultobj; | |
7475 | } | |
7476 | ||
7477 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
7478 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7479 | PyObject * _resultobj; | |
7480 | wxMenuBar * _arg0; | |
7481 | int _arg1; | |
7482 | bool _arg2; | |
7483 | PyObject * _argo0 = 0; | |
7484 | int tempbool2; | |
7485 | char *_kwnames[] = { "self","id","enable", NULL }; | |
7486 | ||
7487 | self = self; | |
7488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7489 | return NULL; | |
7490 | if (_argo0) { | |
7491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
7494 | return NULL; | |
7495 | } | |
7496 | } | |
7497 | _arg2 = (bool ) tempbool2; | |
7498 | { | |
7499 | wxPy_BEGIN_ALLOW_THREADS; | |
7500 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
7501 | ||
7502 | wxPy_END_ALLOW_THREADS; | |
7503 | } Py_INCREF(Py_None); | |
7504 | _resultobj = Py_None; | |
7505 | return _resultobj; | |
7506 | } | |
7507 | ||
7508 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
7509 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject * _resultobj; | |
7511 | wxMenuBar * _arg0; | |
7512 | int _arg1; | |
7513 | bool _arg2; | |
7514 | PyObject * _argo0 = 0; | |
7515 | int tempbool2; | |
7516 | char *_kwnames[] = { "self","id","check", NULL }; | |
7517 | ||
7518 | self = self; | |
7519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7520 | return NULL; | |
7521 | if (_argo0) { | |
7522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
7525 | return NULL; | |
7526 | } | |
7527 | } | |
7528 | _arg2 = (bool ) tempbool2; | |
7529 | { | |
7530 | wxPy_BEGIN_ALLOW_THREADS; | |
7531 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
7532 | ||
7533 | wxPy_END_ALLOW_THREADS; | |
7534 | } Py_INCREF(Py_None); | |
7535 | _resultobj = Py_None; | |
7536 | return _resultobj; | |
7537 | } | |
7538 | ||
7539 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
7540 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject * _resultobj; | |
7542 | bool _result; | |
7543 | wxMenuBar * _arg0; | |
7544 | int _arg1; | |
7545 | PyObject * _argo0 = 0; | |
7546 | char *_kwnames[] = { "self","id", NULL }; | |
7547 | ||
7548 | self = self; | |
7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7550 | return NULL; | |
7551 | if (_argo0) { | |
7552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
7555 | return NULL; | |
7556 | } | |
7557 | } | |
7558 | { | |
7559 | wxPy_BEGIN_ALLOW_THREADS; | |
7560 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); | |
7561 | ||
7562 | wxPy_END_ALLOW_THREADS; | |
7563 | } _resultobj = Py_BuildValue("i",_result); | |
7564 | return _resultobj; | |
7565 | } | |
7566 | ||
7567 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
7568 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject * _resultobj; | |
7570 | bool _result; | |
7571 | wxMenuBar * _arg0; | |
7572 | int _arg1; | |
7573 | PyObject * _argo0 = 0; | |
7574 | char *_kwnames[] = { "self","id", NULL }; | |
7575 | ||
7576 | self = self; | |
7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7578 | return NULL; | |
7579 | if (_argo0) { | |
7580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
7583 | return NULL; | |
7584 | } | |
7585 | } | |
7586 | { | |
7587 | wxPy_BEGIN_ALLOW_THREADS; | |
7588 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); | |
7589 | ||
7590 | wxPy_END_ALLOW_THREADS; | |
7591 | } _resultobj = Py_BuildValue("i",_result); | |
7592 | return _resultobj; | |
7593 | } | |
7594 | ||
7595 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
7596 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7597 | PyObject * _resultobj; | |
7598 | wxMenuBar * _arg0; | |
7599 | int _arg1; | |
7600 | wxString * _arg2; | |
7601 | PyObject * _argo0 = 0; | |
7602 | PyObject * _obj2 = 0; | |
7603 | char *_kwnames[] = { "self","id","label", NULL }; | |
7604 | ||
7605 | self = self; | |
7606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7607 | return NULL; | |
7608 | if (_argo0) { | |
7609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
7612 | return NULL; | |
7613 | } | |
7614 | } | |
7615 | { | |
7616 | if (!PyString_Check(_obj2)) { | |
7617 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7618 | return NULL; | |
7619 | } | |
7620 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7621 | } | |
7622 | { | |
7623 | wxPy_BEGIN_ALLOW_THREADS; | |
7624 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | |
7625 | ||
7626 | wxPy_END_ALLOW_THREADS; | |
7627 | } Py_INCREF(Py_None); | |
7628 | _resultobj = Py_None; | |
7629 | { | |
7630 | if (_obj2) | |
7631 | delete _arg2; | |
7632 | } | |
7633 | return _resultobj; | |
7634 | } | |
7635 | ||
7636 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
7637 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7638 | PyObject * _resultobj; | |
7639 | wxString * _result; | |
7640 | wxMenuBar * _arg0; | |
7641 | int _arg1; | |
7642 | PyObject * _argo0 = 0; | |
7643 | char *_kwnames[] = { "self","id", NULL }; | |
7644 | ||
7645 | self = self; | |
7646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
7647 | return NULL; | |
7648 | if (_argo0) { | |
7649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
7652 | return NULL; | |
7653 | } | |
7654 | } | |
7655 | { | |
7656 | wxPy_BEGIN_ALLOW_THREADS; | |
7657 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
7658 | ||
7659 | wxPy_END_ALLOW_THREADS; | |
7660 | }{ | |
7661 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7662 | } | |
7663 | { | |
7664 | delete _result; | |
7665 | } | |
7666 | return _resultobj; | |
7667 | } | |
7668 | ||
7669 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
7670 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7671 | PyObject * _resultobj; | |
7672 | wxMenuBar * _arg0; | |
7673 | int _arg1; | |
7674 | wxString * _arg2; | |
7675 | PyObject * _argo0 = 0; | |
7676 | PyObject * _obj2 = 0; | |
7677 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
7678 | ||
7679 | self = self; | |
7680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7681 | return NULL; | |
7682 | if (_argo0) { | |
7683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
7686 | return NULL; | |
7687 | } | |
7688 | } | |
7689 | { | |
7690 | if (!PyString_Check(_obj2)) { | |
7691 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7692 | return NULL; | |
7693 | } | |
7694 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7695 | } | |
7696 | { | |
7697 | wxPy_BEGIN_ALLOW_THREADS; | |
7698 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
7699 | ||
7700 | wxPy_END_ALLOW_THREADS; | |
7701 | } Py_INCREF(Py_None); | |
7702 | _resultobj = Py_None; | |
7703 | { | |
7704 | if (_obj2) | |
7705 | delete _arg2; | |
7706 | } | |
7707 | return _resultobj; | |
7708 | } | |
7709 | ||
7710 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
7711 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7712 | PyObject * _resultobj; | |
7713 | wxString * _result; | |
7714 | wxMenuBar * _arg0; | |
7715 | int _arg1; | |
7716 | PyObject * _argo0 = 0; | |
7717 | char *_kwnames[] = { "self","id", NULL }; | |
7718 | ||
7719 | self = self; | |
7720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
7721 | return NULL; | |
7722 | if (_argo0) { | |
7723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
7725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
7726 | return NULL; | |
7727 | } | |
7728 | } | |
7729 | { | |
7730 | wxPy_BEGIN_ALLOW_THREADS; | |
7731 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | |
7732 | ||
7733 | wxPy_END_ALLOW_THREADS; | |
7734 | }{ | |
7735 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7736 | } | |
7737 | { | |
7738 | delete _result; | |
7739 | } | |
7740 | return _resultobj; | |
7741 | } | |
7742 | ||
7743 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7744 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7745 | PyObject * _resultobj; | |
7746 | wxMenuItem * _result; | |
7747 | wxMenu * _arg0 = (wxMenu *) NULL; | |
7748 | int _arg1 = (int ) ID_SEPARATOR; | |
7749 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
7750 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
7751 | bool _arg4 = (bool ) FALSE; | |
7752 | wxMenu * _arg5 = (wxMenu *) NULL; | |
7753 | PyObject * _argo0 = 0; | |
7754 | PyObject * _obj2 = 0; | |
7755 | PyObject * _obj3 = 0; | |
7756 | int tempbool4 = (int) FALSE; | |
7757 | PyObject * _argo5 = 0; | |
7758 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
7759 | char _ptemp[128]; | |
7760 | ||
7761 | self = self; | |
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) | |
7763 | return NULL; | |
7764 | if (_argo0) { | |
7765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
7768 | return NULL; | |
7769 | } | |
7770 | } | |
7771 | if (_obj2) | |
7772 | { | |
7773 | if (!PyString_Check(_obj2)) { | |
7774 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7775 | return NULL; | |
7776 | } | |
7777 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
7778 | } | |
7779 | if (_obj3) | |
7780 | { | |
7781 | if (!PyString_Check(_obj3)) { | |
7782 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7783 | return NULL; | |
7784 | } | |
7785 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
7786 | } | |
7787 | _arg4 = (bool ) tempbool4; | |
7788 | if (_argo5) { | |
7789 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7790 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
7791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
7792 | return NULL; | |
7793 | } | |
7794 | } | |
7795 | { | |
7796 | wxPy_BEGIN_ALLOW_THREADS; | |
7797 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
7798 | ||
7799 | wxPy_END_ALLOW_THREADS; | |
7800 | } if (_result) { | |
7801 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
7802 | _resultobj = Py_BuildValue("s",_ptemp); | |
7803 | } else { | |
7804 | Py_INCREF(Py_None); | |
7805 | _resultobj = Py_None; | |
7806 | } | |
7807 | { | |
7808 | if (_obj2) | |
7809 | delete _arg2; | |
7810 | } | |
7811 | { | |
7812 | if (_obj3) | |
7813 | delete _arg3; | |
7814 | } | |
7815 | return _resultobj; | |
7816 | } | |
7817 | ||
7818 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) | |
7819 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7820 | PyObject * _resultobj; | |
7821 | wxMenu * _result; | |
7822 | wxMenuItem * _arg0; | |
7823 | PyObject * _argo0 = 0; | |
7824 | char *_kwnames[] = { "self", NULL }; | |
7825 | char _ptemp[128]; | |
7826 | ||
7827 | self = self; | |
7828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) | |
7829 | return NULL; | |
7830 | if (_argo0) { | |
7831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
7833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); | |
7834 | return NULL; | |
7835 | } | |
7836 | } | |
7837 | { | |
7838 | wxPy_BEGIN_ALLOW_THREADS; | |
7839 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); | |
7840 | ||
7841 | wxPy_END_ALLOW_THREADS; | |
7842 | } if (_result) { | |
7843 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7844 | _resultobj = Py_BuildValue("s",_ptemp); | |
7845 | } else { | |
7846 | Py_INCREF(Py_None); | |
7847 | _resultobj = Py_None; | |
7848 | } | |
7849 | return _resultobj; | |
7850 | } | |
7851 | ||
7852 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
7853 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7854 | PyObject * _resultobj; | |
7855 | wxMenuItem * _arg0; | |
7856 | int _arg1; | |
7857 | PyObject * _argo0 = 0; | |
7858 | char *_kwnames[] = { "self","id", NULL }; | |
7859 | ||
7860 | self = self; | |
7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) | |
7862 | return NULL; | |
7863 | if (_argo0) { | |
7864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
7866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); | |
7867 | return NULL; | |
7868 | } | |
7869 | } | |
7870 | { | |
7871 | wxPy_BEGIN_ALLOW_THREADS; | |
7872 | wxMenuItem_SetId(_arg0,_arg1); | |
7873 | ||
7874 | wxPy_END_ALLOW_THREADS; | |
7875 | } Py_INCREF(Py_None); | |
7876 | _resultobj = Py_None; | |
7877 | return _resultobj; | |
7878 | } | |
7879 | ||
7880 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
7881 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject * _resultobj; | |
7883 | int _result; | |
7884 | wxMenuItem * _arg0; | |
7885 | PyObject * _argo0 = 0; | |
7886 | char *_kwnames[] = { "self", NULL }; | |
7887 | ||
7888 | self = self; | |
7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) | |
7890 | return NULL; | |
7891 | if (_argo0) { | |
7892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
7894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); | |
7895 | return NULL; | |
7896 | } | |
7897 | } | |
7898 | { | |
7899 | wxPy_BEGIN_ALLOW_THREADS; | |
7900 | _result = (int )wxMenuItem_GetId(_arg0); | |
7901 | ||
7902 | wxPy_END_ALLOW_THREADS; | |
7903 | } _resultobj = Py_BuildValue("i",_result); | |
7904 | return _resultobj; | |
7905 | } | |
7906 | ||
7907 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
7908 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7909 | PyObject * _resultobj; | |
7910 | bool _result; | |
7911 | wxMenuItem * _arg0; | |
7912 | PyObject * _argo0 = 0; | |
7913 | char *_kwnames[] = { "self", NULL }; | |
7914 | ||
7915 | self = self; | |
7916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) | |
7917 | return NULL; | |
7918 | if (_argo0) { | |
7919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
7921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); | |
7922 | return NULL; | |
7923 | } | |
7924 | } | |
7925 | { | |
7926 | wxPy_BEGIN_ALLOW_THREADS; | |
7927 | _result = (bool )wxMenuItem_IsSeparator(_arg0); | |
7928 | ||
7929 | wxPy_END_ALLOW_THREADS; | |
7930 | } _resultobj = Py_BuildValue("i",_result); | |
7931 | return _resultobj; | |
7932 | } | |
7933 | ||
7934 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
7935 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject * _resultobj; | |
7937 | wxMenuItem * _arg0; | |
7938 | wxString * _arg1; | |
7939 | PyObject * _argo0 = 0; | |
7940 | PyObject * _obj1 = 0; | |
7941 | char *_kwnames[] = { "self","str", NULL }; | |
7942 | ||
7943 | self = self; | |
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) | |
7945 | return NULL; | |
7946 | if (_argo0) { | |
7947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
7949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); | |
7950 | return NULL; | |
7951 | } | |
7952 | } | |
7953 | { | |
7954 | if (!PyString_Check(_obj1)) { | |
7955 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7956 | return NULL; | |
7957 | } | |
7958 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
7959 | } | |
7960 | { | |
7961 | wxPy_BEGIN_ALLOW_THREADS; | |
7962 | wxMenuItem_SetText(_arg0,*_arg1); | |
7963 | ||
7964 | wxPy_END_ALLOW_THREADS; | |
7965 | } Py_INCREF(Py_None); | |
7966 | _resultobj = Py_None; | |
7967 | { | |
7968 | if (_obj1) | |
7969 | delete _arg1; | |
7970 | } | |
7971 | return _resultobj; | |
7972 | } | |
7973 | ||
7974 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
7975 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7976 | PyObject * _resultobj; | |
7977 | wxString * _result; | |
7978 | wxMenuItem * _arg0; | |
7979 | PyObject * _argo0 = 0; | |
7980 | char *_kwnames[] = { "self", NULL }; | |
7981 | ||
7982 | self = self; | |
7983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) | |
7984 | return NULL; | |
7985 | if (_argo0) { | |
7986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
7988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); | |
7989 | return NULL; | |
7990 | } | |
7991 | } | |
7992 | { | |
7993 | wxPy_BEGIN_ALLOW_THREADS; | |
7994 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); | |
7995 | ||
7996 | wxPy_END_ALLOW_THREADS; | |
7997 | }{ | |
7998 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7999 | } | |
8000 | { | |
8001 | delete _result; | |
8002 | } | |
8003 | return _resultobj; | |
8004 | } | |
8005 | ||
8006 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) | |
8007 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8008 | PyObject * _resultobj; | |
8009 | wxString * _result; | |
8010 | wxMenuItem * _arg0; | |
8011 | PyObject * _argo0 = 0; | |
8012 | char *_kwnames[] = { "self", NULL }; | |
8013 | ||
8014 | self = self; | |
8015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) | |
8016 | return NULL; | |
8017 | if (_argo0) { | |
8018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); | |
8021 | return NULL; | |
8022 | } | |
8023 | } | |
8024 | { | |
8025 | wxPy_BEGIN_ALLOW_THREADS; | |
8026 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); | |
8027 | _result = (wxString *) &_result_ref; | |
8028 | ||
8029 | wxPy_END_ALLOW_THREADS; | |
8030 | }{ | |
8031 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); | |
8032 | } | |
8033 | return _resultobj; | |
8034 | } | |
8035 | ||
8036 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) | |
8037 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8038 | PyObject * _resultobj; | |
8039 | wxMenuItem * _arg0; | |
8040 | bool _arg1; | |
8041 | PyObject * _argo0 = 0; | |
8042 | int tempbool1; | |
8043 | char *_kwnames[] = { "self","checkable", NULL }; | |
8044 | ||
8045 | self = self; | |
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) | |
8047 | return NULL; | |
8048 | if (_argo0) { | |
8049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); | |
8052 | return NULL; | |
8053 | } | |
8054 | } | |
8055 | _arg1 = (bool ) tempbool1; | |
8056 | { | |
8057 | wxPy_BEGIN_ALLOW_THREADS; | |
8058 | wxMenuItem_SetCheckable(_arg0,_arg1); | |
8059 | ||
8060 | wxPy_END_ALLOW_THREADS; | |
8061 | } Py_INCREF(Py_None); | |
8062 | _resultobj = Py_None; | |
8063 | return _resultobj; | |
8064 | } | |
8065 | ||
8066 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
8067 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject * _resultobj; | |
8069 | bool _result; | |
8070 | wxMenuItem * _arg0; | |
8071 | PyObject * _argo0 = 0; | |
8072 | char *_kwnames[] = { "self", NULL }; | |
8073 | ||
8074 | self = self; | |
8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) | |
8076 | return NULL; | |
8077 | if (_argo0) { | |
8078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); | |
8081 | return NULL; | |
8082 | } | |
8083 | } | |
8084 | { | |
8085 | wxPy_BEGIN_ALLOW_THREADS; | |
8086 | _result = (bool )wxMenuItem_IsCheckable(_arg0); | |
8087 | ||
8088 | wxPy_END_ALLOW_THREADS; | |
8089 | } _resultobj = Py_BuildValue("i",_result); | |
8090 | return _resultobj; | |
8091 | } | |
8092 | ||
8093 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) | |
8094 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8095 | PyObject * _resultobj; | |
8096 | bool _result; | |
8097 | wxMenuItem * _arg0; | |
8098 | PyObject * _argo0 = 0; | |
8099 | char *_kwnames[] = { "self", NULL }; | |
8100 | ||
8101 | self = self; | |
8102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) | |
8103 | return NULL; | |
8104 | if (_argo0) { | |
8105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); | |
8108 | return NULL; | |
8109 | } | |
8110 | } | |
8111 | { | |
8112 | wxPy_BEGIN_ALLOW_THREADS; | |
8113 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); | |
8114 | ||
8115 | wxPy_END_ALLOW_THREADS; | |
8116 | } _resultobj = Py_BuildValue("i",_result); | |
8117 | return _resultobj; | |
8118 | } | |
8119 | ||
8120 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) | |
8121 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8122 | PyObject * _resultobj; | |
8123 | wxMenuItem * _arg0; | |
8124 | wxMenu * _arg1; | |
8125 | PyObject * _argo0 = 0; | |
8126 | PyObject * _argo1 = 0; | |
8127 | char *_kwnames[] = { "self","menu", NULL }; | |
8128 | ||
8129 | self = self; | |
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) | |
8131 | return NULL; | |
8132 | if (_argo0) { | |
8133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); | |
8136 | return NULL; | |
8137 | } | |
8138 | } | |
8139 | if (_argo1) { | |
8140 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8141 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
8143 | return NULL; | |
8144 | } | |
8145 | } | |
8146 | { | |
8147 | wxPy_BEGIN_ALLOW_THREADS; | |
8148 | wxMenuItem_SetSubMenu(_arg0,_arg1); | |
8149 | ||
8150 | wxPy_END_ALLOW_THREADS; | |
8151 | } Py_INCREF(Py_None); | |
8152 | _resultobj = Py_None; | |
8153 | return _resultobj; | |
8154 | } | |
8155 | ||
8156 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
8157 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject * _resultobj; | |
8159 | wxMenu * _result; | |
8160 | wxMenuItem * _arg0; | |
8161 | PyObject * _argo0 = 0; | |
8162 | char *_kwnames[] = { "self", NULL }; | |
8163 | char _ptemp[128]; | |
8164 | ||
8165 | self = self; | |
8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) | |
8167 | return NULL; | |
8168 | if (_argo0) { | |
8169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); | |
8172 | return NULL; | |
8173 | } | |
8174 | } | |
8175 | { | |
8176 | wxPy_BEGIN_ALLOW_THREADS; | |
8177 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
8178 | ||
8179 | wxPy_END_ALLOW_THREADS; | |
8180 | } if (_result) { | |
8181 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
8182 | _resultobj = Py_BuildValue("s",_ptemp); | |
8183 | } else { | |
8184 | Py_INCREF(Py_None); | |
8185 | _resultobj = Py_None; | |
8186 | } | |
8187 | return _resultobj; | |
8188 | } | |
8189 | ||
8190 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
8191 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject * _resultobj; | |
8193 | wxMenuItem * _arg0; | |
8194 | bool _arg1 = (bool ) TRUE; | |
8195 | PyObject * _argo0 = 0; | |
8196 | int tempbool1 = (int) TRUE; | |
8197 | char *_kwnames[] = { "self","enable", NULL }; | |
8198 | ||
8199 | self = self; | |
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
8201 | return NULL; | |
8202 | if (_argo0) { | |
8203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
8206 | return NULL; | |
8207 | } | |
8208 | } | |
8209 | _arg1 = (bool ) tempbool1; | |
8210 | { | |
8211 | wxPy_BEGIN_ALLOW_THREADS; | |
8212 | wxMenuItem_Enable(_arg0,_arg1); | |
8213 | ||
8214 | wxPy_END_ALLOW_THREADS; | |
8215 | } Py_INCREF(Py_None); | |
8216 | _resultobj = Py_None; | |
8217 | return _resultobj; | |
8218 | } | |
8219 | ||
8220 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
8221 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8222 | PyObject * _resultobj; | |
8223 | bool _result; | |
8224 | wxMenuItem * _arg0; | |
8225 | PyObject * _argo0 = 0; | |
8226 | char *_kwnames[] = { "self", NULL }; | |
8227 | ||
8228 | self = self; | |
8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) | |
8230 | return NULL; | |
8231 | if (_argo0) { | |
8232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); | |
8235 | return NULL; | |
8236 | } | |
8237 | } | |
8238 | { | |
8239 | wxPy_BEGIN_ALLOW_THREADS; | |
8240 | _result = (bool )wxMenuItem_IsEnabled(_arg0); | |
8241 | ||
8242 | wxPy_END_ALLOW_THREADS; | |
8243 | } _resultobj = Py_BuildValue("i",_result); | |
8244 | return _resultobj; | |
8245 | } | |
8246 | ||
8247 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
8248 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8249 | PyObject * _resultobj; | |
8250 | wxMenuItem * _arg0; | |
8251 | bool _arg1 = (bool ) TRUE; | |
8252 | PyObject * _argo0 = 0; | |
8253 | int tempbool1 = (int) TRUE; | |
8254 | char *_kwnames[] = { "self","check", NULL }; | |
8255 | ||
8256 | self = self; | |
8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) | |
8258 | return NULL; | |
8259 | if (_argo0) { | |
8260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); | |
8263 | return NULL; | |
8264 | } | |
8265 | } | |
8266 | _arg1 = (bool ) tempbool1; | |
8267 | { | |
8268 | wxPy_BEGIN_ALLOW_THREADS; | |
8269 | wxMenuItem_Check(_arg0,_arg1); | |
8270 | ||
8271 | wxPy_END_ALLOW_THREADS; | |
8272 | } Py_INCREF(Py_None); | |
8273 | _resultobj = Py_None; | |
8274 | return _resultobj; | |
8275 | } | |
8276 | ||
8277 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
8278 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8279 | PyObject * _resultobj; | |
8280 | bool _result; | |
8281 | wxMenuItem * _arg0; | |
8282 | PyObject * _argo0 = 0; | |
8283 | char *_kwnames[] = { "self", NULL }; | |
8284 | ||
8285 | self = self; | |
8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) | |
8287 | return NULL; | |
8288 | if (_argo0) { | |
8289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); | |
8292 | return NULL; | |
8293 | } | |
8294 | } | |
8295 | { | |
8296 | wxPy_BEGIN_ALLOW_THREADS; | |
8297 | _result = (bool )wxMenuItem_IsChecked(_arg0); | |
8298 | ||
8299 | wxPy_END_ALLOW_THREADS; | |
8300 | } _resultobj = Py_BuildValue("i",_result); | |
8301 | return _resultobj; | |
8302 | } | |
8303 | ||
8304 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) | |
8305 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8306 | PyObject * _resultobj; | |
8307 | wxMenuItem * _arg0; | |
8308 | PyObject * _argo0 = 0; | |
8309 | char *_kwnames[] = { "self", NULL }; | |
8310 | ||
8311 | self = self; | |
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) | |
8313 | return NULL; | |
8314 | if (_argo0) { | |
8315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); | |
8318 | return NULL; | |
8319 | } | |
8320 | } | |
8321 | { | |
8322 | wxPy_BEGIN_ALLOW_THREADS; | |
8323 | wxMenuItem_Toggle(_arg0); | |
8324 | ||
8325 | wxPy_END_ALLOW_THREADS; | |
8326 | } Py_INCREF(Py_None); | |
8327 | _resultobj = Py_None; | |
8328 | return _resultobj; | |
8329 | } | |
8330 | ||
8331 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
8332 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8333 | PyObject * _resultobj; | |
8334 | wxMenuItem * _arg0; | |
8335 | wxString * _arg1; | |
8336 | PyObject * _argo0 = 0; | |
8337 | PyObject * _obj1 = 0; | |
8338 | char *_kwnames[] = { "self","str", NULL }; | |
8339 | ||
8340 | self = self; | |
8341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) | |
8342 | return NULL; | |
8343 | if (_argo0) { | |
8344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); | |
8347 | return NULL; | |
8348 | } | |
8349 | } | |
8350 | { | |
8351 | if (!PyString_Check(_obj1)) { | |
8352 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8353 | return NULL; | |
8354 | } | |
8355 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
8356 | } | |
8357 | { | |
8358 | wxPy_BEGIN_ALLOW_THREADS; | |
8359 | wxMenuItem_SetHelp(_arg0,*_arg1); | |
8360 | ||
8361 | wxPy_END_ALLOW_THREADS; | |
8362 | } Py_INCREF(Py_None); | |
8363 | _resultobj = Py_None; | |
8364 | { | |
8365 | if (_obj1) | |
8366 | delete _arg1; | |
8367 | } | |
8368 | return _resultobj; | |
8369 | } | |
8370 | ||
8371 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) | |
8372 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8373 | PyObject * _resultobj; | |
8374 | wxString * _result; | |
8375 | wxMenuItem * _arg0; | |
8376 | PyObject * _argo0 = 0; | |
8377 | char *_kwnames[] = { "self", NULL }; | |
8378 | ||
8379 | self = self; | |
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) | |
8381 | return NULL; | |
8382 | if (_argo0) { | |
8383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); | |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
8389 | { | |
8390 | wxPy_BEGIN_ALLOW_THREADS; | |
8391 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); | |
8392 | _result = (wxString *) &_result_ref; | |
8393 | ||
8394 | wxPy_END_ALLOW_THREADS; | |
8395 | }{ | |
8396 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); | |
8397 | } | |
8398 | return _resultobj; | |
8399 | } | |
8400 | ||
8401 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) | |
8402 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8403 | PyObject * _resultobj; | |
8404 | wxAcceleratorEntry * _result; | |
8405 | wxMenuItem * _arg0; | |
8406 | PyObject * _argo0 = 0; | |
8407 | char *_kwnames[] = { "self", NULL }; | |
8408 | char _ptemp[128]; | |
8409 | ||
8410 | self = self; | |
8411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) | |
8412 | return NULL; | |
8413 | if (_argo0) { | |
8414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); | |
8417 | return NULL; | |
8418 | } | |
8419 | } | |
8420 | { | |
8421 | wxPy_BEGIN_ALLOW_THREADS; | |
8422 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); | |
8423 | ||
8424 | wxPy_END_ALLOW_THREADS; | |
8425 | } if (_result) { | |
8426 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
8427 | _resultobj = Py_BuildValue("s",_ptemp); | |
8428 | } else { | |
8429 | Py_INCREF(Py_None); | |
8430 | _resultobj = Py_None; | |
8431 | } | |
8432 | return _resultobj; | |
8433 | } | |
8434 | ||
8435 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) | |
8436 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8437 | PyObject * _resultobj; | |
8438 | wxMenuItem * _arg0; | |
8439 | wxAcceleratorEntry * _arg1; | |
8440 | PyObject * _argo0 = 0; | |
8441 | PyObject * _argo1 = 0; | |
8442 | char *_kwnames[] = { "self","accel", NULL }; | |
8443 | ||
8444 | self = self; | |
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) | |
8446 | return NULL; | |
8447 | if (_argo0) { | |
8448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
8450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); | |
8451 | return NULL; | |
8452 | } | |
8453 | } | |
8454 | if (_argo1) { | |
8455 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8456 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { | |
8457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
8458 | return NULL; | |
8459 | } | |
8460 | } | |
8461 | { | |
8462 | wxPy_BEGIN_ALLOW_THREADS; | |
8463 | wxMenuItem_SetAccel(_arg0,_arg1); | |
8464 | ||
8465 | wxPy_END_ALLOW_THREADS; | |
8466 | } Py_INCREF(Py_None); | |
8467 | _resultobj = Py_None; | |
8468 | return _resultobj; | |
8469 | } | |
8470 | ||
8471 | static PyMethodDef windowscMethods[] = { | |
8472 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
8473 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
8474 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
8475 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
8476 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8477 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
8478 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
8479 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8480 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8481 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
8482 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
8483 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
8484 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
8485 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
8486 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8487 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8488 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8489 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
8490 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8491 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8492 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
8493 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
8494 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
8495 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
8496 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8497 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8498 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8499 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
8500 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
8501 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8502 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
8503 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
8504 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
8505 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
8506 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
8507 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8508 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8509 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
8510 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
8511 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
8512 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
8513 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
8514 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
8515 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
8516 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
8517 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
8518 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
8519 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
8520 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8521 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8522 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
8523 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8524 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
8525 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
8526 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8527 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
8528 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
8529 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
8530 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8531 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8532 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
8533 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
8534 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
8535 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8536 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8537 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8538 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8539 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
8540 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8541 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8542 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8543 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
8544 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
8545 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
8546 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
8547 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
8548 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
8549 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
8550 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
8551 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
8552 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
8553 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, | |
8554 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
8555 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
8556 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
8557 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
8558 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
8559 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
8560 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
8561 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
8562 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
8563 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
8564 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
8565 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
8566 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
8567 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8568 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
8569 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
8570 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
8571 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
8572 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8573 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
8574 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
8575 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
8576 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
8577 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
8578 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8579 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
8580 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
8581 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
8582 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
8583 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
8584 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
8585 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
8586 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
8587 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
8588 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
8589 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
8590 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
8591 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8592 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8593 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8594 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
8595 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
8596 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
8597 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
8598 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
8599 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
8600 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8601 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8602 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
8603 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
8604 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
8605 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
8606 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
8607 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
8608 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
8609 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
8610 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
8611 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
8612 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8613 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8614 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8615 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
8616 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
8617 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
8618 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
8619 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8620 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
8621 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
8622 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
8623 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
8624 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
8625 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
8626 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
8627 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
8628 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
8629 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
8630 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
8631 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
8632 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8633 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8634 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | |
8635 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
8636 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
8637 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
8638 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
8639 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
8640 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
8641 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
8642 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
8643 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
8644 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
8645 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
8646 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8647 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8648 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
8649 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
8650 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
8651 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
8652 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8653 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
8654 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
8655 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
8656 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
8657 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
8658 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
8659 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
8660 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
8661 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
8662 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
8663 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
8664 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8665 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8666 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8667 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
8668 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
8669 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8670 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8671 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
8672 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
8673 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
8674 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
8675 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
8676 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
8677 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
8678 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8679 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
8680 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
8681 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
8682 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
8683 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
8684 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8685 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
8686 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
8687 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
8688 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
8689 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
8690 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
8691 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
8692 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
8693 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
8694 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
8695 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
8696 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
8697 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
8698 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
8699 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
8700 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
8701 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
8702 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
8703 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
8704 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
8705 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
8706 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
8707 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8708 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
8709 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
8710 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
8711 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
8712 | { NULL, NULL } | |
8713 | }; | |
8714 | #ifdef __cplusplus | |
8715 | } | |
8716 | #endif | |
8717 | /* | |
8718 | * This table is used by the pointer type-checker | |
8719 | */ | |
8720 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8721 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8722 | { "_signed_long","_long",0}, | |
8723 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, | |
8724 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
8725 | { "_wxPrintQuality","_wxCoord",0}, | |
8726 | { "_wxPrintQuality","_int",0}, | |
8727 | { "_wxPrintQuality","_signed_int",0}, | |
8728 | { "_wxPrintQuality","_unsigned_int",0}, | |
8729 | { "_wxPrintQuality","_wxWindowID",0}, | |
8730 | { "_wxPrintQuality","_uint",0}, | |
8731 | { "_wxPrintQuality","_EBool",0}, | |
8732 | { "_wxPrintQuality","_size_t",0}, | |
8733 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, | |
8734 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
8735 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, | |
8736 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
8737 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
8738 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
8739 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
8740 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
8741 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
8742 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
8743 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
8744 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
8745 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
8746 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
8747 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
8748 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
8749 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
8750 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
8751 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
8752 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
8753 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
8754 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8755 | { "_wxCursor","_class_wxCursor",0}, | |
8756 | { "_wxMask","_class_wxMask",0}, | |
8757 | { "_wxPen","_class_wxPen",0}, | |
8758 | { "_byte","_unsigned_char",0}, | |
8759 | { "_wxDataObject","_class_wxDataObject",0}, | |
8760 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, | |
8761 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
8762 | { "_long","_unsigned_long",0}, | |
8763 | { "_long","_signed_long",0}, | |
8764 | { "_wxImageList","_class_wxImageList",0}, | |
8765 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, | |
8766 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
8767 | { "_class_wxClipboard","_wxClipboard",0}, | |
8768 | { "_wxDC","_class_wxDC",0}, | |
8769 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, | |
8770 | { "_size_t","_wxCoord",0}, | |
8771 | { "_size_t","_wxPrintQuality",0}, | |
8772 | { "_size_t","_unsigned_int",0}, | |
8773 | { "_size_t","_int",0}, | |
8774 | { "_size_t","_wxWindowID",0}, | |
8775 | { "_size_t","_uint",0}, | |
8776 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
8777 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
8778 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
8779 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8780 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8781 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
8782 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
8783 | { "_wxPanel","_class_wxPanel",0}, | |
8784 | { "_class_wxMask","_wxMask",0}, | |
8785 | { "_wxTextDataObject","_class_wxTextDataObject",0}, | |
8786 | { "_wxColour","_class_wxColour",0}, | |
8787 | { "_class_wxDialog","_wxDialog",0}, | |
8788 | { "_class_wxFileDataObject","_wxFileDataObject",0}, | |
8789 | { "_class_wxDataObject","_wxDataObject",0}, | |
8790 | { "_wxBrush","_class_wxBrush",0}, | |
8791 | { "_wxDataFormat","_class_wxDataFormat",0}, | |
8792 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
8793 | { "_uint","_wxCoord",0}, | |
8794 | { "_uint","_wxPrintQuality",0}, | |
8795 | { "_uint","_size_t",0}, | |
8796 | { "_uint","_unsigned_int",0}, | |
8797 | { "_uint","_int",0}, | |
8798 | { "_uint","_wxWindowID",0}, | |
8799 | { "_wxPyValidator","_class_wxPyValidator",0}, | |
8800 | { "_wxRect","_class_wxRect",0}, | |
8801 | { "_wxPoint","_class_wxPoint",0}, | |
8802 | { "_wxBitmap","_class_wxBitmap",0}, | |
8803 | { "_char","_wxDash",0}, | |
8804 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
8805 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
8806 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8807 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
8808 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
8809 | { "_class_wxValidator","_wxValidator",0}, | |
8810 | { "_wxDropTarget","_class_wxDropTarget",0}, | |
8811 | { "_EBool","_wxCoord",0}, | |
8812 | { "_EBool","_wxPrintQuality",0}, | |
8813 | { "_EBool","_signed_int",0}, | |
8814 | { "_EBool","_int",0}, | |
8815 | { "_EBool","_wxWindowID",0}, | |
8816 | { "_class_wxRegion","_wxRegion",0}, | |
8817 | { "_class_wxDataFormat","_wxDataFormat",0}, | |
8818 | { "_wxFont","_class_wxFont",0}, | |
8819 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, | |
8820 | { "_unsigned_long","_long",0}, | |
8821 | { "_class_wxRect","_wxRect",0}, | |
8822 | { "_class_wxDC","_wxDC",0}, | |
8823 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
8824 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8825 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8826 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
8827 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
8828 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
8829 | { "_class_wxPanel","_wxPanel",0}, | |
8830 | { "_signed_int","_wxCoord",0}, | |
8831 | { "_signed_int","_wxPrintQuality",0}, | |
8832 | { "_signed_int","_EBool",0}, | |
8833 | { "_signed_int","_wxWindowID",0}, | |
8834 | { "_signed_int","_int",0}, | |
8835 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
8836 | { "_class_wxTextDataObject","_wxTextDataObject",0}, | |
8837 | { "_wxMenu","_class_wxMenu",0}, | |
8838 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8839 | { "_WXTYPE","_short",0}, | |
8840 | { "_WXTYPE","_signed_short",0}, | |
8841 | { "_WXTYPE","_unsigned_short",0}, | |
8842 | { "_class_wxDropTarget","_wxDropTarget",0}, | |
8843 | { "_class_wxBrush","_wxBrush",0}, | |
8844 | { "_unsigned_short","_WXTYPE",0}, | |
8845 | { "_unsigned_short","_short",0}, | |
8846 | { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
8847 | { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
8848 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
8849 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
8850 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
8851 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
8852 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
8853 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
8854 | { "_class_wxWindow","_wxWindow",0}, | |
8855 | { "_class_wxFont","_wxFont",0}, | |
8856 | { "_wxClipboard","_class_wxClipboard",0}, | |
8857 | { "_class_wxPyValidator","_wxPyValidator",0}, | |
8858 | { "_wxBusyInfo","_class_wxBusyInfo",0}, | |
8859 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
8860 | { "_wxClientDC","_class_wxClientDC",0}, | |
8861 | { "_class_wxPoint","_wxPoint",0}, | |
8862 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8863 | { "_signed_short","_WXTYPE",0}, | |
8864 | { "_signed_short","_short",0}, | |
8865 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
8866 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, | |
8867 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
8868 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8869 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8870 | { "_class_wxCursor","_wxCursor",0}, | |
8871 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
8872 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, | |
8873 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
8874 | { "_unsigned_char","_byte",0}, | |
8875 | { "_class_wxMenu","_wxMenu",0}, | |
8876 | { "_unsigned_int","_wxCoord",0}, | |
8877 | { "_unsigned_int","_wxPrintQuality",0}, | |
8878 | { "_unsigned_int","_size_t",0}, | |
8879 | { "_unsigned_int","_uint",0}, | |
8880 | { "_unsigned_int","_wxWindowID",0}, | |
8881 | { "_unsigned_int","_int",0}, | |
8882 | { "_wxIcon","_class_wxIcon",0}, | |
8883 | { "_wxDialog","_class_wxDialog",0}, | |
8884 | { "_class_wxPen","_wxPen",0}, | |
8885 | { "_short","_WXTYPE",0}, | |
8886 | { "_short","_unsigned_short",0}, | |
8887 | { "_short","_signed_short",0}, | |
8888 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, | |
8889 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
8890 | { "_class_wxImageList","_wxImageList",0}, | |
8891 | { "_wxWindowID","_wxCoord",0}, | |
8892 | { "_wxWindowID","_wxPrintQuality",0}, | |
8893 | { "_wxWindowID","_size_t",0}, | |
8894 | { "_wxWindowID","_EBool",0}, | |
8895 | { "_wxWindowID","_uint",0}, | |
8896 | { "_wxWindowID","_int",0}, | |
8897 | { "_wxWindowID","_signed_int",0}, | |
8898 | { "_wxWindowID","_unsigned_int",0}, | |
8899 | { "_int","_wxCoord",0}, | |
8900 | { "_int","_wxPrintQuality",0}, | |
8901 | { "_int","_size_t",0}, | |
8902 | { "_int","_EBool",0}, | |
8903 | { "_int","_uint",0}, | |
8904 | { "_int","_wxWindowID",0}, | |
8905 | { "_int","_unsigned_int",0}, | |
8906 | { "_int","_signed_int",0}, | |
8907 | { "_wxSize","_class_wxSize",0}, | |
8908 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
8909 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, | |
8910 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8911 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
8912 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
8913 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
8914 | { "_wxValidator","_class_wxValidator",0}, | |
8915 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
8916 | { "_class_wxIcon","_wxIcon",0}, | |
8917 | { "_class_wxColour","_wxColour",0}, | |
8918 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8919 | { "_wxPalette","_class_wxPalette",0}, | |
8920 | { "_wxCoord","_int",0}, | |
8921 | { "_wxCoord","_signed_int",0}, | |
8922 | { "_wxCoord","_unsigned_int",0}, | |
8923 | { "_wxCoord","_wxWindowID",0}, | |
8924 | { "_wxCoord","_uint",0}, | |
8925 | { "_wxCoord","_EBool",0}, | |
8926 | { "_wxCoord","_size_t",0}, | |
8927 | { "_wxCoord","_wxPrintQuality",0}, | |
8928 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
8929 | { "_wxRegion","_class_wxRegion",0}, | |
8930 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, | |
8931 | { "_class_wxBusyInfo","_wxBusyInfo",0}, | |
8932 | { "_class_wxClientDC","_wxClientDC",0}, | |
8933 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, | |
8934 | { "_class_wxSize","_wxSize",0}, | |
8935 | { "_class_wxBitmap","_wxBitmap",0}, | |
8936 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
8937 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, | |
8938 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
8939 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
8940 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
8941 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
8942 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
8943 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
8944 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
8945 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
8946 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
8947 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
8948 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
8949 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
8950 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
8951 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
8952 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
8953 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
8954 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
8955 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8956 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8957 | { "_wxDash","_char",0}, | |
8958 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
8959 | { "_class_wxPalette","_wxPalette",0}, | |
8960 | { "_wxFileDataObject","_class_wxFileDataObject",0}, | |
8961 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
8962 | { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
8963 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
8964 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
8965 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
8966 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
8967 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
8968 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
8969 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
8970 | { "_wxWindow","_class_wxWindow",0}, | |
8971 | {0,0,0}}; | |
8972 | ||
8973 | static PyObject *SWIG_globals; | |
8974 | #ifdef __cplusplus | |
8975 | extern "C" | |
8976 | #endif | |
8977 | SWIGEXPORT(void) initwindowsc() { | |
8978 | PyObject *m, *d; | |
8979 | SWIG_globals = SWIG_newvarlink(); | |
8980 | m = Py_InitModule("windowsc", windowscMethods); | |
8981 | d = PyModule_GetDict(m); | |
8982 | { | |
8983 | int i; | |
8984 | for (i = 0; _swig_mapping[i].n1; i++) | |
8985 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8986 | } | |
8987 | } |