]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/msw/windows.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initwindowsc | |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/menuitem.h> | |
60 | #include <wx/tooltip.h> | |
61 | ||
62 | ||
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
67 | if (!target) { | |
68 | target = o; | |
69 | } else if (target == Py_None) { | |
70 | Py_DECREF(Py_None); | |
71 | target = o; | |
72 | } else { | |
73 | if (!PyTuple_Check(target)) { | |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
78 | o3 = PyTuple_New(1); | |
79 | PyTuple_SetItem(o3, 0, o); | |
80 | ||
81 | o2 = target; | |
82 | target = PySequence_Concat(o2, o3); | |
83 | Py_DECREF(o2); | |
84 | Py_DECREF(o3); | |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
89 | #if PYTHON_API_VERSION >= 1009 | |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
92 | static char* wxStringErrorMsg = "String type required"; | |
93 | #endif | |
94 | ||
95 | static wxString wxPyEmptyStr(""); | |
96 | ||
97 | class wxPyValidator : public wxValidator { | |
98 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
99 | public: | |
100 | wxPyValidator() { | |
101 | } | |
102 | ||
103 | ~wxPyValidator() { | |
104 | } | |
105 | ||
106 | wxObject* Clone() const { | |
107 | wxPyValidator* ptr = NULL; | |
108 | wxPyValidator* self = (wxPyValidator*)this; | |
109 | ||
110 | wxPyBeginBlockThreads(); | |
111 | if (self->m_myInst.findCallback("Clone")) { | |
112 | PyObject* ro; | |
113 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
114 | if (ro) { | |
115 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
116 | Py_DECREF(ro); | |
117 | } | |
118 | } | |
119 | wxPyEndBlockThreads(); | |
120 | ||
121 | // This is very dangerous!!! But is the only way I could find | |
122 | // to squash a memory leak. Currently it is okay, but if the | |
123 | // validator architecture in wxWindows ever changes, problems | |
124 | // could arise. | |
125 | delete self; | |
126 | return ptr; | |
127 | } | |
128 | ||
129 | ||
130 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
131 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
132 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
133 | ||
134 | PYPRIVATE; | |
135 | }; | |
136 | ||
137 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
138 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
139 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
140 | ||
141 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
142 | ||
143 | ||
144 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
145 | wxWindow* win = new wxWindow; | |
146 | win->SetHWND(hWnd); | |
147 | win->SubclassWin(hWnd); | |
148 | return win; | |
149 | } | |
150 | #ifdef __cplusplus | |
151 | extern "C" { | |
152 | #endif | |
153 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
154 | PyObject * _resultobj; | |
155 | wxWindow * _result; | |
156 | unsigned long _arg0; | |
157 | char *_kwnames[] = { "hWnd", NULL }; | |
158 | ||
159 | self = self; | |
160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
161 | return NULL; | |
162 | { | |
163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
164 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
165 | ||
166 | wxPyEndAllowThreads(__tstate); | |
167 | if (PyErr_Occurred()) return NULL; | |
168 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
169 | return _resultobj; | |
170 | } | |
171 | ||
172 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { | |
173 | wxEvtHandler *src; | |
174 | wxObject *dest; | |
175 | src = (wxEvtHandler *) ptr; | |
176 | dest = (wxObject *) src; | |
177 | return (void *) dest; | |
178 | } | |
179 | ||
180 | #define new_wxEvtHandler() (new wxEvtHandler()) | |
181 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
182 | PyObject * _resultobj; | |
183 | wxEvtHandler * _result; | |
184 | char *_kwnames[] = { NULL }; | |
185 | char _ptemp[128]; | |
186 | ||
187 | self = self; | |
188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
189 | return NULL; | |
190 | { | |
191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
192 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
193 | ||
194 | wxPyEndAllowThreads(__tstate); | |
195 | if (PyErr_Occurred()) return NULL; | |
196 | } if (_result) { | |
197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
198 | _resultobj = Py_BuildValue("s",_ptemp); | |
199 | } else { | |
200 | Py_INCREF(Py_None); | |
201 | _resultobj = Py_None; | |
202 | } | |
203 | return _resultobj; | |
204 | } | |
205 | ||
206 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) | |
207 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
208 | PyObject * _resultobj; | |
209 | bool _result; | |
210 | wxEvtHandler * _arg0; | |
211 | wxEvent * _arg1; | |
212 | PyObject * _argo0 = 0; | |
213 | PyObject * _argo1 = 0; | |
214 | char *_kwnames[] = { "self","event", NULL }; | |
215 | ||
216 | self = self; | |
217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
218 | return NULL; | |
219 | if (_argo0) { | |
220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
223 | return NULL; | |
224 | } | |
225 | } | |
226 | if (_argo1) { | |
227 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
228 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
230 | return NULL; | |
231 | } | |
232 | } | |
233 | { | |
234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
235 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
236 | ||
237 | wxPyEndAllowThreads(__tstate); | |
238 | if (PyErr_Occurred()) return NULL; | |
239 | } _resultobj = Py_BuildValue("i",_result); | |
240 | return _resultobj; | |
241 | } | |
242 | ||
243 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) | |
244 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
245 | PyObject * _resultobj; | |
246 | wxEvtHandler * _arg0; | |
247 | wxEvent * _arg1; | |
248 | PyObject * _argo0 = 0; | |
249 | PyObject * _argo1 = 0; | |
250 | char *_kwnames[] = { "self","event", NULL }; | |
251 | ||
252 | self = self; | |
253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
254 | return NULL; | |
255 | if (_argo0) { | |
256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
259 | return NULL; | |
260 | } | |
261 | } | |
262 | if (_argo1) { | |
263 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
266 | return NULL; | |
267 | } | |
268 | } | |
269 | { | |
270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
271 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
272 | ||
273 | wxPyEndAllowThreads(__tstate); | |
274 | if (PyErr_Occurred()) return NULL; | |
275 | } Py_INCREF(Py_None); | |
276 | _resultobj = Py_None; | |
277 | return _resultobj; | |
278 | } | |
279 | ||
280 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) | |
281 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | bool _result; | |
284 | wxEvtHandler * _arg0; | |
285 | PyObject * _argo0 = 0; | |
286 | char *_kwnames[] = { "self", NULL }; | |
287 | ||
288 | self = self; | |
289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
290 | return NULL; | |
291 | if (_argo0) { | |
292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
295 | return NULL; | |
296 | } | |
297 | } | |
298 | { | |
299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
300 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
301 | ||
302 | wxPyEndAllowThreads(__tstate); | |
303 | if (PyErr_Occurred()) return NULL; | |
304 | } _resultobj = Py_BuildValue("i",_result); | |
305 | return _resultobj; | |
306 | } | |
307 | ||
308 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
309 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
310 | PyObject * _resultobj; | |
311 | wxEvtHandler * _arg0; | |
312 | bool _arg1; | |
313 | PyObject * _argo0 = 0; | |
314 | int tempbool1; | |
315 | char *_kwnames[] = { "self","enabled", NULL }; | |
316 | ||
317 | self = self; | |
318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
319 | return NULL; | |
320 | if (_argo0) { | |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
324 | return NULL; | |
325 | } | |
326 | } | |
327 | _arg1 = (bool ) tempbool1; | |
328 | { | |
329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
330 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
331 | ||
332 | wxPyEndAllowThreads(__tstate); | |
333 | if (PyErr_Occurred()) return NULL; | |
334 | } Py_INCREF(Py_None); | |
335 | _resultobj = Py_None; | |
336 | return _resultobj; | |
337 | } | |
338 | ||
339 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
340 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject * _resultobj; | |
342 | wxEvtHandler * _result; | |
343 | wxEvtHandler * _arg0; | |
344 | PyObject * _argo0 = 0; | |
345 | char *_kwnames[] = { "self", NULL }; | |
346 | ||
347 | self = self; | |
348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
349 | return NULL; | |
350 | if (_argo0) { | |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
359 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
360 | ||
361 | wxPyEndAllowThreads(__tstate); | |
362 | if (PyErr_Occurred()) return NULL; | |
363 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
364 | return _resultobj; | |
365 | } | |
366 | ||
367 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
368 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
369 | PyObject * _resultobj; | |
370 | wxEvtHandler * _result; | |
371 | wxEvtHandler * _arg0; | |
372 | PyObject * _argo0 = 0; | |
373 | char *_kwnames[] = { "self", NULL }; | |
374 | ||
375 | self = self; | |
376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
377 | return NULL; | |
378 | if (_argo0) { | |
379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
382 | return NULL; | |
383 | } | |
384 | } | |
385 | { | |
386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
387 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
388 | ||
389 | wxPyEndAllowThreads(__tstate); | |
390 | if (PyErr_Occurred()) return NULL; | |
391 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
392 | return _resultobj; | |
393 | } | |
394 | ||
395 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
396 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(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_SetNextHandler",_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_SetNextHandler. 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_SetNextHandler. Expected _wxEvtHandler_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | { | |
422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
424 | ||
425 | wxPyEndAllowThreads(__tstate); | |
426 | if (PyErr_Occurred()) return NULL; | |
427 | } Py_INCREF(Py_None); | |
428 | _resultobj = Py_None; | |
429 | return _resultobj; | |
430 | } | |
431 | ||
432 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
433 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
434 | PyObject * _resultobj; | |
435 | wxEvtHandler * _arg0; | |
436 | wxEvtHandler * _arg1; | |
437 | PyObject * _argo0 = 0; | |
438 | PyObject * _argo1 = 0; | |
439 | char *_kwnames[] = { "self","handler", NULL }; | |
440 | ||
441 | self = self; | |
442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
443 | return NULL; | |
444 | if (_argo0) { | |
445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
448 | return NULL; | |
449 | } | |
450 | } | |
451 | if (_argo1) { | |
452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
455 | return NULL; | |
456 | } | |
457 | } | |
458 | { | |
459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
460 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
461 | ||
462 | wxPyEndAllowThreads(__tstate); | |
463 | if (PyErr_Occurred()) return NULL; | |
464 | } Py_INCREF(Py_None); | |
465 | _resultobj = Py_None; | |
466 | return _resultobj; | |
467 | } | |
468 | ||
469 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
470 | if (PyCallable_Check(func)) { | |
471 | self->Connect(id, lastId, eventType, | |
472 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
473 | new wxPyCallback(func)); | |
474 | } | |
475 | else if (func == Py_None) { | |
476 | self->Disconnect(id, lastId, eventType, | |
477 | (wxObjectEventFunction) | |
478 | &wxPyCallback::EventThunker); | |
479 | } | |
480 | else { | |
481 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
482 | } | |
483 | } | |
484 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | wxEvtHandler * _arg0; | |
487 | int _arg1; | |
488 | int _arg2; | |
489 | int _arg3; | |
490 | PyObject * _arg4; | |
491 | PyObject * _argo0 = 0; | |
492 | PyObject * _obj4 = 0; | |
493 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
494 | ||
495 | self = self; | |
496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
497 | return NULL; | |
498 | if (_argo0) { | |
499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
502 | return NULL; | |
503 | } | |
504 | } | |
505 | { | |
506 | _arg4 = _obj4; | |
507 | } | |
508 | { | |
509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
510 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
511 | ||
512 | wxPyEndAllowThreads(__tstate); | |
513 | if (PyErr_Occurred()) return NULL; | |
514 | } Py_INCREF(Py_None); | |
515 | _resultobj = Py_None; | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { | |
520 | return self->Disconnect(id, lastId, eventType, | |
521 | (wxObjectEventFunction) | |
522 | &wxPyCallback::EventThunker); | |
523 | } | |
524 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
525 | PyObject * _resultobj; | |
526 | bool _result; | |
527 | wxEvtHandler * _arg0; | |
528 | int _arg1; | |
529 | int _arg2 = (int ) -1; | |
530 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
531 | PyObject * _argo0 = 0; | |
532 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
533 | ||
534 | self = self; | |
535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
536 | return NULL; | |
537 | if (_argo0) { | |
538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
541 | return NULL; | |
542 | } | |
543 | } | |
544 | { | |
545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
546 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
547 | ||
548 | wxPyEndAllowThreads(__tstate); | |
549 | if (PyErr_Occurred()) return NULL; | |
550 | } _resultobj = Py_BuildValue("i",_result); | |
551 | return _resultobj; | |
552 | } | |
553 | ||
554 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { | |
555 | self->SetClientObject(new wxPyClientData(_self)); | |
556 | } | |
557 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
558 | PyObject * _resultobj; | |
559 | wxEvtHandler * _arg0; | |
560 | PyObject * _arg1; | |
561 | PyObject * _argo0 = 0; | |
562 | PyObject * _obj1 = 0; | |
563 | char *_kwnames[] = { "self","_self", NULL }; | |
564 | ||
565 | self = self; | |
566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
567 | return NULL; | |
568 | if (_argo0) { | |
569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
572 | return NULL; | |
573 | } | |
574 | } | |
575 | { | |
576 | _arg1 = _obj1; | |
577 | } | |
578 | { | |
579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
580 | wxEvtHandler__setOORInfo(_arg0,_arg1); | |
581 | ||
582 | wxPyEndAllowThreads(__tstate); | |
583 | if (PyErr_Occurred()) return NULL; | |
584 | } Py_INCREF(Py_None); | |
585 | _resultobj = Py_None; | |
586 | return _resultobj; | |
587 | } | |
588 | ||
589 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { | |
590 | wxValidator *src; | |
591 | wxEvtHandler *dest; | |
592 | src = (wxValidator *) ptr; | |
593 | dest = (wxEvtHandler *) src; | |
594 | return (void *) dest; | |
595 | } | |
596 | ||
597 | static void *SwigwxValidatorTowxObject(void *ptr) { | |
598 | wxValidator *src; | |
599 | wxObject *dest; | |
600 | src = (wxValidator *) ptr; | |
601 | dest = (wxObject *) src; | |
602 | return (void *) dest; | |
603 | } | |
604 | ||
605 | #define new_wxValidator() (new wxValidator()) | |
606 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
607 | PyObject * _resultobj; | |
608 | wxValidator * _result; | |
609 | char *_kwnames[] = { NULL }; | |
610 | char _ptemp[128]; | |
611 | ||
612 | self = self; | |
613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
614 | return NULL; | |
615 | { | |
616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
617 | _result = (wxValidator *)new_wxValidator(); | |
618 | ||
619 | wxPyEndAllowThreads(__tstate); | |
620 | if (PyErr_Occurred()) return NULL; | |
621 | } if (_result) { | |
622 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
623 | _resultobj = Py_BuildValue("s",_ptemp); | |
624 | } else { | |
625 | Py_INCREF(Py_None); | |
626 | _resultobj = Py_None; | |
627 | } | |
628 | return _resultobj; | |
629 | } | |
630 | ||
631 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
632 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
633 | PyObject * _resultobj; | |
634 | wxValidator * _result; | |
635 | wxValidator * _arg0; | |
636 | PyObject * _argo0 = 0; | |
637 | char *_kwnames[] = { "self", NULL }; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
641 | return NULL; | |
642 | if (_argo0) { | |
643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
646 | return NULL; | |
647 | } | |
648 | } | |
649 | { | |
650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
651 | _result = (wxValidator *)wxValidator_Clone(_arg0); | |
652 | ||
653 | wxPyEndAllowThreads(__tstate); | |
654 | if (PyErr_Occurred()) return NULL; | |
655 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
656 | return _resultobj; | |
657 | } | |
658 | ||
659 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
660 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
661 | PyObject * _resultobj; | |
662 | wxWindow * _result; | |
663 | wxValidator * _arg0; | |
664 | PyObject * _argo0 = 0; | |
665 | char *_kwnames[] = { "self", NULL }; | |
666 | ||
667 | self = self; | |
668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
669 | return NULL; | |
670 | if (_argo0) { | |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
674 | return NULL; | |
675 | } | |
676 | } | |
677 | { | |
678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
679 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); | |
680 | ||
681 | wxPyEndAllowThreads(__tstate); | |
682 | if (PyErr_Occurred()) return NULL; | |
683 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
684 | return _resultobj; | |
685 | } | |
686 | ||
687 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
688 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
689 | PyObject * _resultobj; | |
690 | wxValidator * _arg0; | |
691 | wxWindow * _arg1; | |
692 | PyObject * _argo0 = 0; | |
693 | PyObject * _argo1 = 0; | |
694 | char *_kwnames[] = { "self","window", NULL }; | |
695 | ||
696 | self = self; | |
697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
698 | return NULL; | |
699 | if (_argo0) { | |
700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
703 | return NULL; | |
704 | } | |
705 | } | |
706 | if (_argo1) { | |
707 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
708 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
710 | return NULL; | |
711 | } | |
712 | } | |
713 | { | |
714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
715 | wxValidator_SetWindow(_arg0,_arg1); | |
716 | ||
717 | wxPyEndAllowThreads(__tstate); | |
718 | if (PyErr_Occurred()) return NULL; | |
719 | } Py_INCREF(Py_None); | |
720 | _resultobj = Py_None; | |
721 | return _resultobj; | |
722 | } | |
723 | ||
724 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
725 | PyObject * _resultobj; | |
726 | bool _result; | |
727 | char *_kwnames[] = { NULL }; | |
728 | ||
729 | self = self; | |
730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
731 | return NULL; | |
732 | { | |
733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
734 | _result = (bool )wxValidator::IsSilent(); | |
735 | ||
736 | wxPyEndAllowThreads(__tstate); | |
737 | if (PyErr_Occurred()) return NULL; | |
738 | } _resultobj = Py_BuildValue("i",_result); | |
739 | return _resultobj; | |
740 | } | |
741 | ||
742 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
743 | PyObject * _resultobj; | |
744 | int _arg0 = (int ) TRUE; | |
745 | char *_kwnames[] = { "doIt", NULL }; | |
746 | ||
747 | self = self; | |
748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
749 | return NULL; | |
750 | { | |
751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
752 | wxValidator::SetBellOnError(_arg0); | |
753 | ||
754 | wxPyEndAllowThreads(__tstate); | |
755 | if (PyErr_Occurred()) return NULL; | |
756 | } Py_INCREF(Py_None); | |
757 | _resultobj = Py_None; | |
758 | return _resultobj; | |
759 | } | |
760 | ||
761 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
762 | wxPyValidator *src; | |
763 | wxValidator *dest; | |
764 | src = (wxPyValidator *) ptr; | |
765 | dest = (wxValidator *) src; | |
766 | return (void *) dest; | |
767 | } | |
768 | ||
769 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
770 | wxPyValidator *src; | |
771 | wxEvtHandler *dest; | |
772 | src = (wxPyValidator *) ptr; | |
773 | dest = (wxEvtHandler *) src; | |
774 | return (void *) dest; | |
775 | } | |
776 | ||
777 | static void *SwigwxPyValidatorTowxObject(void *ptr) { | |
778 | wxPyValidator *src; | |
779 | wxObject *dest; | |
780 | src = (wxPyValidator *) ptr; | |
781 | dest = (wxObject *) src; | |
782 | return (void *) dest; | |
783 | } | |
784 | ||
785 | #define new_wxPyValidator() (new wxPyValidator()) | |
786 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
787 | PyObject * _resultobj; | |
788 | wxPyValidator * _result; | |
789 | char *_kwnames[] = { NULL }; | |
790 | char _ptemp[128]; | |
791 | ||
792 | self = self; | |
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
794 | return NULL; | |
795 | { | |
796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
797 | _result = (wxPyValidator *)new_wxPyValidator(); | |
798 | ||
799 | wxPyEndAllowThreads(__tstate); | |
800 | if (PyErr_Occurred()) return NULL; | |
801 | } if (_result) { | |
802 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
803 | _resultobj = Py_BuildValue("s",_ptemp); | |
804 | } else { | |
805 | Py_INCREF(Py_None); | |
806 | _resultobj = Py_None; | |
807 | } | |
808 | return _resultobj; | |
809 | } | |
810 | ||
811 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) | |
812 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
813 | PyObject * _resultobj; | |
814 | wxPyValidator * _arg0; | |
815 | PyObject * _arg1; | |
816 | PyObject * _arg2; | |
817 | int _arg3 = (int ) TRUE; | |
818 | PyObject * _argo0 = 0; | |
819 | PyObject * _obj1 = 0; | |
820 | PyObject * _obj2 = 0; | |
821 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
822 | ||
823 | self = self; | |
824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) | |
825 | return NULL; | |
826 | if (_argo0) { | |
827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); | |
830 | return NULL; | |
831 | } | |
832 | } | |
833 | { | |
834 | _arg1 = _obj1; | |
835 | } | |
836 | { | |
837 | _arg2 = _obj2; | |
838 | } | |
839 | { | |
840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
841 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); | |
842 | ||
843 | wxPyEndAllowThreads(__tstate); | |
844 | if (PyErr_Occurred()) return NULL; | |
845 | } Py_INCREF(Py_None); | |
846 | _resultobj = Py_None; | |
847 | return _resultobj; | |
848 | } | |
849 | ||
850 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
851 | wxWindow *src; | |
852 | wxEvtHandler *dest; | |
853 | src = (wxWindow *) ptr; | |
854 | dest = (wxEvtHandler *) src; | |
855 | return (void *) dest; | |
856 | } | |
857 | ||
858 | static void *SwigwxWindowTowxObject(void *ptr) { | |
859 | wxWindow *src; | |
860 | wxObject *dest; | |
861 | src = (wxWindow *) ptr; | |
862 | dest = (wxObject *) src; | |
863 | return (void *) dest; | |
864 | } | |
865 | ||
866 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
867 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
868 | PyObject * _resultobj; | |
869 | wxWindow * _result; | |
870 | wxWindow * _arg0; | |
871 | wxWindowID _arg1; | |
872 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
873 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
874 | long _arg4 = (long ) 0; | |
875 | char * _arg5 = (char *) "panel"; | |
876 | PyObject * _argo0 = 0; | |
877 | wxPoint temp; | |
878 | PyObject * _obj2 = 0; | |
879 | wxSize temp0; | |
880 | PyObject * _obj3 = 0; | |
881 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
882 | char _ptemp[128]; | |
883 | ||
884 | self = self; | |
885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
886 | return NULL; | |
887 | if (_argo0) { | |
888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); | |
891 | return NULL; | |
892 | } | |
893 | } | |
894 | if (_obj2) | |
895 | { | |
896 | _arg2 = &temp; | |
897 | if (! wxPoint_helper(_obj2, &_arg2)) | |
898 | return NULL; | |
899 | } | |
900 | if (_obj3) | |
901 | { | |
902 | _arg3 = &temp0; | |
903 | if (! wxSize_helper(_obj3, &_arg3)) | |
904 | return NULL; | |
905 | } | |
906 | { | |
907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
909 | ||
910 | wxPyEndAllowThreads(__tstate); | |
911 | if (PyErr_Occurred()) return NULL; | |
912 | } if (_result) { | |
913 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
914 | _resultobj = Py_BuildValue("s",_ptemp); | |
915 | } else { | |
916 | Py_INCREF(Py_None); | |
917 | _resultobj = Py_None; | |
918 | } | |
919 | return _resultobj; | |
920 | } | |
921 | ||
922 | #define new_wxPreWindow() (new wxWindow()) | |
923 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
924 | PyObject * _resultobj; | |
925 | wxWindow * _result; | |
926 | char *_kwnames[] = { NULL }; | |
927 | char _ptemp[128]; | |
928 | ||
929 | self = self; | |
930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
931 | return NULL; | |
932 | { | |
933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
934 | _result = (wxWindow *)new_wxPreWindow(); | |
935 | ||
936 | wxPyEndAllowThreads(__tstate); | |
937 | if (PyErr_Occurred()) return NULL; | |
938 | } if (_result) { | |
939 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
940 | _resultobj = Py_BuildValue("s",_ptemp); | |
941 | } else { | |
942 | Py_INCREF(Py_None); | |
943 | _resultobj = Py_None; | |
944 | } | |
945 | return _resultobj; | |
946 | } | |
947 | ||
948 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
949 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
950 | PyObject * _resultobj; | |
951 | bool _result; | |
952 | wxWindow * _arg0; | |
953 | wxWindow * _arg1; | |
954 | wxWindowID _arg2; | |
955 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
956 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
957 | long _arg5 = (long ) 0; | |
958 | char * _arg6 = (char *) "panel"; | |
959 | PyObject * _argo0 = 0; | |
960 | PyObject * _argo1 = 0; | |
961 | wxPoint temp; | |
962 | PyObject * _obj3 = 0; | |
963 | wxSize temp0; | |
964 | PyObject * _obj4 = 0; | |
965 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
966 | ||
967 | self = self; | |
968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
969 | return NULL; | |
970 | if (_argo0) { | |
971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | if (_argo1) { | |
978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
981 | return NULL; | |
982 | } | |
983 | } | |
984 | if (_obj3) | |
985 | { | |
986 | _arg3 = &temp; | |
987 | if (! wxPoint_helper(_obj3, &_arg3)) | |
988 | return NULL; | |
989 | } | |
990 | if (_obj4) | |
991 | { | |
992 | _arg4 = &temp0; | |
993 | if (! wxSize_helper(_obj4, &_arg4)) | |
994 | return NULL; | |
995 | } | |
996 | { | |
997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
998 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
999 | ||
1000 | wxPyEndAllowThreads(__tstate); | |
1001 | if (PyErr_Occurred()) return NULL; | |
1002 | } _resultobj = Py_BuildValue("i",_result); | |
1003 | return _resultobj; | |
1004 | } | |
1005 | ||
1006 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
1007 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1008 | PyObject * _resultobj; | |
1009 | wxWindow * _arg0; | |
1010 | PyObject * _argo0 = 0; | |
1011 | char *_kwnames[] = { "self", NULL }; | |
1012 | ||
1013 | self = self; | |
1014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
1015 | return NULL; | |
1016 | if (_argo0) { | |
1017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
1020 | return NULL; | |
1021 | } | |
1022 | } | |
1023 | { | |
1024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1025 | wxWindow_CaptureMouse(_arg0); | |
1026 | ||
1027 | wxPyEndAllowThreads(__tstate); | |
1028 | if (PyErr_Occurred()) return NULL; | |
1029 | } Py_INCREF(Py_None); | |
1030 | _resultobj = Py_None; | |
1031 | return _resultobj; | |
1032 | } | |
1033 | ||
1034 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
1035 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1036 | PyObject * _resultobj; | |
1037 | wxWindow * _arg0; | |
1038 | int _arg1 = (int ) wxBOTH; | |
1039 | PyObject * _argo0 = 0; | |
1040 | char *_kwnames[] = { "self","direction", NULL }; | |
1041 | ||
1042 | self = self; | |
1043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) | |
1044 | return NULL; | |
1045 | if (_argo0) { | |
1046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); | |
1049 | return NULL; | |
1050 | } | |
1051 | } | |
1052 | { | |
1053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1054 | wxWindow_Center(_arg0,_arg1); | |
1055 | ||
1056 | wxPyEndAllowThreads(__tstate); | |
1057 | if (PyErr_Occurred()) return NULL; | |
1058 | } Py_INCREF(Py_None); | |
1059 | _resultobj = Py_None; | |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
1064 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | wxWindow * _arg0; | |
1067 | int _arg1 = (int ) wxBOTH; | |
1068 | PyObject * _argo0 = 0; | |
1069 | char *_kwnames[] = { "self","direction", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | { | |
1082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1083 | wxWindow_Centre(_arg0,_arg1); | |
1084 | ||
1085 | wxPyEndAllowThreads(__tstate); | |
1086 | if (PyErr_Occurred()) return NULL; | |
1087 | } Py_INCREF(Py_None); | |
1088 | _resultobj = Py_None; | |
1089 | return _resultobj; | |
1090 | } | |
1091 | ||
1092 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) | |
1093 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1094 | PyObject * _resultobj; | |
1095 | wxWindow * _arg0; | |
1096 | int _arg1 = (int ) wxBOTH; | |
1097 | PyObject * _argo0 = 0; | |
1098 | char *_kwnames[] = { "self","direction", NULL }; | |
1099 | ||
1100 | self = self; | |
1101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) | |
1102 | return NULL; | |
1103 | if (_argo0) { | |
1104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); | |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) return NULL; | |
1116 | } Py_INCREF(Py_None); | |
1117 | _resultobj = Py_None; | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
1122 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1123 | PyObject * _resultobj; | |
1124 | wxWindow * _arg0; | |
1125 | int _arg1 = (int ) wxBOTH; | |
1126 | PyObject * _argo0 = 0; | |
1127 | char *_kwnames[] = { "self","direction", NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) | |
1131 | return NULL; | |
1132 | if (_argo0) { | |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); | |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1141 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1142 | ||
1143 | wxPyEndAllowThreads(__tstate); | |
1144 | if (PyErr_Occurred()) return NULL; | |
1145 | } Py_INCREF(Py_None); | |
1146 | _resultobj = Py_None; | |
1147 | return _resultobj; | |
1148 | } | |
1149 | ||
1150 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) | |
1151 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject * _resultobj; | |
1153 | wxWindow * _arg0; | |
1154 | int _arg1 = (int ) wxBOTH; | |
1155 | PyObject * _argo0 = 0; | |
1156 | char *_kwnames[] = { "self","direction", NULL }; | |
1157 | ||
1158 | self = self; | |
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1160 | return NULL; | |
1161 | if (_argo0) { | |
1162 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1163 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1165 | return NULL; | |
1166 | } | |
1167 | } | |
1168 | { | |
1169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1170 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1171 | ||
1172 | wxPyEndAllowThreads(__tstate); | |
1173 | if (PyErr_Occurred()) return NULL; | |
1174 | } Py_INCREF(Py_None); | |
1175 | _resultobj = Py_None; | |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1180 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1181 | PyObject * _resultobj; | |
1182 | wxWindow * _arg0; | |
1183 | int _arg1 = (int ) wxBOTH; | |
1184 | PyObject * _argo0 = 0; | |
1185 | char *_kwnames[] = { "self","direction", NULL }; | |
1186 | ||
1187 | self = self; | |
1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1189 | return NULL; | |
1190 | if (_argo0) { | |
1191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1194 | return NULL; | |
1195 | } | |
1196 | } | |
1197 | { | |
1198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1199 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1200 | ||
1201 | wxPyEndAllowThreads(__tstate); | |
1202 | if (PyErr_Occurred()) return NULL; | |
1203 | } Py_INCREF(Py_None); | |
1204 | _resultobj = Py_None; | |
1205 | return _resultobj; | |
1206 | } | |
1207 | ||
1208 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) | |
1209 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1210 | PyObject * _resultobj; | |
1211 | wxWindow * _arg0; | |
1212 | PyObject * _argo0 = 0; | |
1213 | char *_kwnames[] = { "self", NULL }; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1227 | wxWindow_Clear(_arg0); | |
1228 | ||
1229 | wxPyEndAllowThreads(__tstate); | |
1230 | if (PyErr_Occurred()) return NULL; | |
1231 | } Py_INCREF(Py_None); | |
1232 | _resultobj = Py_None; | |
1233 | return _resultobj; | |
1234 | } | |
1235 | ||
1236 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) | |
1237 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1238 | PyObject * _resultobj; | |
1239 | wxWindow * _arg0; | |
1240 | int * _arg1; | |
1241 | int * _arg2; | |
1242 | PyObject * _argo0 = 0; | |
1243 | int temp; | |
1244 | PyObject * _obj1 = 0; | |
1245 | int temp0; | |
1246 | PyObject * _obj2 = 0; | |
1247 | char *_kwnames[] = { "self","x","y", NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1251 | return NULL; | |
1252 | if (_argo0) { | |
1253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); | |
1256 | return NULL; | |
1257 | } | |
1258 | } | |
1259 | { | |
1260 | temp = (int) PyInt_AsLong(_obj1); | |
1261 | _arg1 = &temp; | |
1262 | } | |
1263 | { | |
1264 | temp0 = (int) PyInt_AsLong(_obj2); | |
1265 | _arg2 = &temp0; | |
1266 | } | |
1267 | { | |
1268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1269 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1270 | ||
1271 | wxPyEndAllowThreads(__tstate); | |
1272 | if (PyErr_Occurred()) return NULL; | |
1273 | } Py_INCREF(Py_None); | |
1274 | _resultobj = Py_None; | |
1275 | { | |
1276 | PyObject *o; | |
1277 | o = PyInt_FromLong((long) (*_arg1)); | |
1278 | _resultobj = t_output_helper(_resultobj, o); | |
1279 | } | |
1280 | { | |
1281 | PyObject *o; | |
1282 | o = PyInt_FromLong((long) (*_arg2)); | |
1283 | _resultobj = t_output_helper(_resultobj, o); | |
1284 | } | |
1285 | return _resultobj; | |
1286 | } | |
1287 | ||
1288 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) | |
1289 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1290 | PyObject * _resultobj; | |
1291 | wxPoint * _result; | |
1292 | wxWindow * _arg0; | |
1293 | wxPoint * _arg1; | |
1294 | PyObject * _argo0 = 0; | |
1295 | wxPoint temp; | |
1296 | PyObject * _obj1 = 0; | |
1297 | char *_kwnames[] = { "self","pt", NULL }; | |
1298 | char _ptemp[128]; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) | |
1302 | return NULL; | |
1303 | if (_argo0) { | |
1304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); | |
1307 | return NULL; | |
1308 | } | |
1309 | } | |
1310 | { | |
1311 | _arg1 = &temp; | |
1312 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1313 | return NULL; | |
1314 | } | |
1315 | { | |
1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1317 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1318 | ||
1319 | wxPyEndAllowThreads(__tstate); | |
1320 | if (PyErr_Occurred()) return NULL; | |
1321 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1322 | _resultobj = Py_BuildValue("s",_ptemp); | |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) | |
1327 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | bool _result; | |
1330 | wxWindow * _arg0; | |
1331 | int _arg1 = (int ) FALSE; | |
1332 | PyObject * _argo0 = 0; | |
1333 | char *_kwnames[] = { "self","force", NULL }; | |
1334 | ||
1335 | self = self; | |
1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) | |
1337 | return NULL; | |
1338 | if (_argo0) { | |
1339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); | |
1342 | return NULL; | |
1343 | } | |
1344 | } | |
1345 | { | |
1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1347 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1348 | ||
1349 | wxPyEndAllowThreads(__tstate); | |
1350 | if (PyErr_Occurred()) return NULL; | |
1351 | } _resultobj = Py_BuildValue("i",_result); | |
1352 | return _resultobj; | |
1353 | } | |
1354 | ||
1355 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
1356 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject * _resultobj; | |
1358 | bool _result; | |
1359 | wxWindow * _arg0; | |
1360 | PyObject * _argo0 = 0; | |
1361 | char *_kwnames[] = { "self", NULL }; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) | |
1365 | return NULL; | |
1366 | if (_argo0) { | |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); | |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
1373 | { | |
1374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1375 | _result = (bool )wxWindow_Destroy(_arg0); | |
1376 | ||
1377 | wxPyEndAllowThreads(__tstate); | |
1378 | if (PyErr_Occurred()) return NULL; | |
1379 | } _resultobj = Py_BuildValue("i",_result); | |
1380 | return _resultobj; | |
1381 | } | |
1382 | ||
1383 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
1384 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1385 | PyObject * _resultobj; | |
1386 | wxWindow * _arg0; | |
1387 | PyObject * _argo0 = 0; | |
1388 | char *_kwnames[] = { "self", NULL }; | |
1389 | ||
1390 | self = self; | |
1391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) | |
1392 | return NULL; | |
1393 | if (_argo0) { | |
1394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); | |
1397 | return NULL; | |
1398 | } | |
1399 | } | |
1400 | { | |
1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1402 | wxWindow_DestroyChildren(_arg0); | |
1403 | ||
1404 | wxPyEndAllowThreads(__tstate); | |
1405 | if (PyErr_Occurred()) return NULL; | |
1406 | } Py_INCREF(Py_None); | |
1407 | _resultobj = Py_None; | |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
1411 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) | |
1412 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | wxWindow * _arg0; | |
1416 | PyObject * _argo0 = 0; | |
1417 | char *_kwnames[] = { "self", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1421 | return NULL; | |
1422 | if (_argo0) { | |
1423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1426 | return NULL; | |
1427 | } | |
1428 | } | |
1429 | { | |
1430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1431 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1432 | ||
1433 | wxPyEndAllowThreads(__tstate); | |
1434 | if (PyErr_Occurred()) return NULL; | |
1435 | } _resultobj = Py_BuildValue("i",_result); | |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
1440 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject * _resultobj; | |
1442 | wxWindow * _arg0; | |
1443 | bool _arg1; | |
1444 | PyObject * _argo0 = 0; | |
1445 | int tempbool1; | |
1446 | char *_kwnames[] = { "self","accept", NULL }; | |
1447 | ||
1448 | self = self; | |
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) | |
1450 | return NULL; | |
1451 | if (_argo0) { | |
1452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); | |
1455 | return NULL; | |
1456 | } | |
1457 | } | |
1458 | _arg1 = (bool ) tempbool1; | |
1459 | { | |
1460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1461 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1462 | ||
1463 | wxPyEndAllowThreads(__tstate); | |
1464 | if (PyErr_Occurred()) return NULL; | |
1465 | } Py_INCREF(Py_None); | |
1466 | _resultobj = Py_None; | |
1467 | return _resultobj; | |
1468 | } | |
1469 | ||
1470 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1471 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1472 | PyObject * _resultobj; | |
1473 | wxWindow * _arg0; | |
1474 | bool _arg1; | |
1475 | PyObject * _argo0 = 0; | |
1476 | int tempbool1; | |
1477 | char *_kwnames[] = { "self","enable", NULL }; | |
1478 | ||
1479 | self = self; | |
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) | |
1481 | return NULL; | |
1482 | if (_argo0) { | |
1483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); | |
1486 | return NULL; | |
1487 | } | |
1488 | } | |
1489 | _arg1 = (bool ) tempbool1; | |
1490 | { | |
1491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1492 | wxWindow_Enable(_arg0,_arg1); | |
1493 | ||
1494 | wxPyEndAllowThreads(__tstate); | |
1495 | if (PyErr_Occurred()) return NULL; | |
1496 | } Py_INCREF(Py_None); | |
1497 | _resultobj = Py_None; | |
1498 | return _resultobj; | |
1499 | } | |
1500 | ||
1501 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1502 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1503 | PyObject * _resultobj; | |
1504 | wxWindow * _result; | |
1505 | wxWindow * _arg0; | |
1506 | long _arg1; | |
1507 | PyObject * _argo0 = 0; | |
1508 | char *_kwnames[] = { "self","id", NULL }; | |
1509 | ||
1510 | self = self; | |
1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) | |
1512 | return NULL; | |
1513 | if (_argo0) { | |
1514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); | |
1517 | return NULL; | |
1518 | } | |
1519 | } | |
1520 | { | |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) return NULL; | |
1526 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1527 | return _resultobj; | |
1528 | } | |
1529 | ||
1530 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1531 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject * _resultobj; | |
1533 | wxWindow * _result; | |
1534 | wxWindow * _arg0; | |
1535 | wxString * _arg1; | |
1536 | PyObject * _argo0 = 0; | |
1537 | PyObject * _obj1 = 0; | |
1538 | char *_kwnames[] = { "self","name", NULL }; | |
1539 | ||
1540 | self = self; | |
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) | |
1542 | return NULL; | |
1543 | if (_argo0) { | |
1544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); | |
1547 | return NULL; | |
1548 | } | |
1549 | } | |
1550 | { | |
1551 | #if PYTHON_API_VERSION >= 1009 | |
1552 | char* tmpPtr; int tmpSize; | |
1553 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1555 | return NULL; | |
1556 | } | |
1557 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1558 | return NULL; | |
1559 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1560 | #else | |
1561 | if (!PyString_Check(_obj1)) { | |
1562 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1563 | return NULL; | |
1564 | } | |
1565 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1566 | #endif | |
1567 | } | |
1568 | { | |
1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1570 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1571 | ||
1572 | wxPyEndAllowThreads(__tstate); | |
1573 | if (PyErr_Occurred()) return NULL; | |
1574 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1575 | { | |
1576 | if (_obj1) | |
1577 | delete _arg1; | |
1578 | } | |
1579 | return _resultobj; | |
1580 | } | |
1581 | ||
1582 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
1583 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1584 | PyObject * _resultobj; | |
1585 | wxWindow * _arg0; | |
1586 | PyObject * _argo0 = 0; | |
1587 | char *_kwnames[] = { "self", NULL }; | |
1588 | ||
1589 | self = self; | |
1590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) | |
1591 | return NULL; | |
1592 | if (_argo0) { | |
1593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); | |
1596 | return NULL; | |
1597 | } | |
1598 | } | |
1599 | { | |
1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1601 | wxWindow_Fit(_arg0); | |
1602 | ||
1603 | wxPyEndAllowThreads(__tstate); | |
1604 | if (PyErr_Occurred()) return NULL; | |
1605 | } Py_INCREF(Py_None); | |
1606 | _resultobj = Py_None; | |
1607 | return _resultobj; | |
1608 | } | |
1609 | ||
1610 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1611 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject * _resultobj; | |
1613 | wxColour * _result; | |
1614 | wxWindow * _arg0; | |
1615 | PyObject * _argo0 = 0; | |
1616 | char *_kwnames[] = { "self", NULL }; | |
1617 | char _ptemp[128]; | |
1618 | ||
1619 | self = self; | |
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) | |
1621 | return NULL; | |
1622 | if (_argo0) { | |
1623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); | |
1626 | return NULL; | |
1627 | } | |
1628 | } | |
1629 | { | |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1631 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
1634 | if (PyErr_Occurred()) return NULL; | |
1635 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1636 | _resultobj = Py_BuildValue("s",_ptemp); | |
1637 | return _resultobj; | |
1638 | } | |
1639 | ||
1640 | static PyObject * wxWindow_GetChildren(wxWindow *self) { | |
1641 | wxWindowList& list = self->GetChildren(); | |
1642 | return wxPy_ConvertList(&list, "wxWindow"); | |
1643 | } | |
1644 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | PyObject * _result; | |
1647 | wxWindow * _arg0; | |
1648 | PyObject * _argo0 = 0; | |
1649 | char *_kwnames[] = { "self", NULL }; | |
1650 | ||
1651 | self = self; | |
1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1653 | return NULL; | |
1654 | if (_argo0) { | |
1655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1658 | return NULL; | |
1659 | } | |
1660 | } | |
1661 | { | |
1662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1663 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1664 | ||
1665 | wxPyEndAllowThreads(__tstate); | |
1666 | if (PyErr_Occurred()) return NULL; | |
1667 | }{ | |
1668 | _resultobj = _result; | |
1669 | } | |
1670 | return _resultobj; | |
1671 | } | |
1672 | ||
1673 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1674 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1675 | PyObject * _resultobj; | |
1676 | int _result; | |
1677 | wxWindow * _arg0; | |
1678 | PyObject * _argo0 = 0; | |
1679 | char *_kwnames[] = { "self", NULL }; | |
1680 | ||
1681 | self = self; | |
1682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) | |
1683 | return NULL; | |
1684 | if (_argo0) { | |
1685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); | |
1688 | return NULL; | |
1689 | } | |
1690 | } | |
1691 | { | |
1692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1693 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1694 | ||
1695 | wxPyEndAllowThreads(__tstate); | |
1696 | if (PyErr_Occurred()) return NULL; | |
1697 | } _resultobj = Py_BuildValue("i",_result); | |
1698 | return _resultobj; | |
1699 | } | |
1700 | ||
1701 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1702 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1703 | PyObject * _resultobj; | |
1704 | int _result; | |
1705 | wxWindow * _arg0; | |
1706 | PyObject * _argo0 = 0; | |
1707 | char *_kwnames[] = { "self", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) | |
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_GetCharWidth. Expected _wxWindow_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1721 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1722 | ||
1723 | wxPyEndAllowThreads(__tstate); | |
1724 | if (PyErr_Occurred()) return NULL; | |
1725 | } _resultobj = Py_BuildValue("i",_result); | |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
1729 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) | |
1730 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1731 | PyObject * _resultobj; | |
1732 | wxWindow * _arg0; | |
1733 | int * _arg1; | |
1734 | int temp; | |
1735 | int * _arg2; | |
1736 | int temp0; | |
1737 | PyObject * _argo0 = 0; | |
1738 | char *_kwnames[] = { "self", NULL }; | |
1739 | ||
1740 | self = self; | |
1741 | { | |
1742 | _arg1 = &temp; | |
1743 | } | |
1744 | { | |
1745 | _arg2 = &temp0; | |
1746 | } | |
1747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) | |
1748 | return NULL; | |
1749 | if (_argo0) { | |
1750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); | |
1753 | return NULL; | |
1754 | } | |
1755 | } | |
1756 | { | |
1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1758 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1759 | ||
1760 | wxPyEndAllowThreads(__tstate); | |
1761 | if (PyErr_Occurred()) return NULL; | |
1762 | } Py_INCREF(Py_None); | |
1763 | _resultobj = Py_None; | |
1764 | { | |
1765 | PyObject *o; | |
1766 | o = PyInt_FromLong((long) (*_arg1)); | |
1767 | _resultobj = t_output_helper(_resultobj, o); | |
1768 | } | |
1769 | { | |
1770 | PyObject *o; | |
1771 | o = PyInt_FromLong((long) (*_arg2)); | |
1772 | _resultobj = t_output_helper(_resultobj, o); | |
1773 | } | |
1774 | return _resultobj; | |
1775 | } | |
1776 | ||
1777 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) | |
1778 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1779 | PyObject * _resultobj; | |
1780 | wxSize * _result; | |
1781 | wxWindow * _arg0; | |
1782 | PyObject * _argo0 = 0; | |
1783 | char *_kwnames[] = { "self", NULL }; | |
1784 | char _ptemp[128]; | |
1785 | ||
1786 | self = self; | |
1787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) | |
1788 | return NULL; | |
1789 | if (_argo0) { | |
1790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); | |
1793 | return NULL; | |
1794 | } | |
1795 | } | |
1796 | { | |
1797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1798 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1799 | ||
1800 | wxPyEndAllowThreads(__tstate); | |
1801 | if (PyErr_Occurred()) return NULL; | |
1802 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1803 | _resultobj = Py_BuildValue("s",_ptemp); | |
1804 | return _resultobj; | |
1805 | } | |
1806 | ||
1807 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) | |
1808 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1809 | PyObject * _resultobj; | |
1810 | wxLayoutConstraints * _result; | |
1811 | wxWindow * _arg0; | |
1812 | PyObject * _argo0 = 0; | |
1813 | char *_kwnames[] = { "self", NULL }; | |
1814 | char _ptemp[128]; | |
1815 | ||
1816 | self = self; | |
1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) | |
1818 | return NULL; | |
1819 | if (_argo0) { | |
1820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); | |
1823 | return NULL; | |
1824 | } | |
1825 | } | |
1826 | { | |
1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1828 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1829 | ||
1830 | wxPyEndAllowThreads(__tstate); | |
1831 | if (PyErr_Occurred()) return NULL; | |
1832 | } if (_result) { | |
1833 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1834 | _resultobj = Py_BuildValue("s",_ptemp); | |
1835 | } else { | |
1836 | Py_INCREF(Py_None); | |
1837 | _resultobj = Py_None; | |
1838 | } | |
1839 | return _resultobj; | |
1840 | } | |
1841 | ||
1842 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
1843 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject * _resultobj; | |
1845 | wxEvtHandler * _result; | |
1846 | wxWindow * _arg0; | |
1847 | PyObject * _argo0 = 0; | |
1848 | char *_kwnames[] = { "self", NULL }; | |
1849 | ||
1850 | self = self; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1852 | return NULL; | |
1853 | if (_argo0) { | |
1854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1857 | return NULL; | |
1858 | } | |
1859 | } | |
1860 | { | |
1861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1862 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1863 | ||
1864 | wxPyEndAllowThreads(__tstate); | |
1865 | if (PyErr_Occurred()) return NULL; | |
1866 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1867 | return _resultobj; | |
1868 | } | |
1869 | ||
1870 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) | |
1871 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject * _resultobj; | |
1873 | wxFont * _result; | |
1874 | wxWindow * _arg0; | |
1875 | PyObject * _argo0 = 0; | |
1876 | char *_kwnames[] = { "self", NULL }; | |
1877 | char _ptemp[128]; | |
1878 | ||
1879 | self = self; | |
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) | |
1881 | return NULL; | |
1882 | if (_argo0) { | |
1883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); | |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
1889 | { | |
1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1891 | _result = new wxFont (wxWindow_GetFont(_arg0)); | |
1892 | ||
1893 | wxPyEndAllowThreads(__tstate); | |
1894 | if (PyErr_Occurred()) return NULL; | |
1895 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1896 | _resultobj = Py_BuildValue("s",_ptemp); | |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
1900 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
1901 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | wxColour * _result; | |
1904 | wxWindow * _arg0; | |
1905 | PyObject * _argo0 = 0; | |
1906 | char *_kwnames[] = { "self", NULL }; | |
1907 | char _ptemp[128]; | |
1908 | ||
1909 | self = self; | |
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) | |
1911 | return NULL; | |
1912 | if (_argo0) { | |
1913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); | |
1916 | return NULL; | |
1917 | } | |
1918 | } | |
1919 | { | |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) return NULL; | |
1925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1926 | _resultobj = Py_BuildValue("s",_ptemp); | |
1927 | return _resultobj; | |
1928 | } | |
1929 | ||
1930 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
1931 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1932 | PyObject * _resultobj; | |
1933 | wxWindow * _result; | |
1934 | wxWindow * _arg0; | |
1935 | PyObject * _argo0 = 0; | |
1936 | char *_kwnames[] = { "self", NULL }; | |
1937 | ||
1938 | self = self; | |
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) | |
1940 | return NULL; | |
1941 | if (_argo0) { | |
1942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); | |
1945 | return NULL; | |
1946 | } | |
1947 | } | |
1948 | { | |
1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1950 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1951 | ||
1952 | wxPyEndAllowThreads(__tstate); | |
1953 | if (PyErr_Occurred()) return NULL; | |
1954 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1955 | return _resultobj; | |
1956 | } | |
1957 | ||
1958 | static long wxWindow_GetHandle(wxWindow *self) { | |
1959 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); | |
1960 | } | |
1961 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1962 | PyObject * _resultobj; | |
1963 | long _result; | |
1964 | wxWindow * _arg0; | |
1965 | PyObject * _argo0 = 0; | |
1966 | char *_kwnames[] = { "self", NULL }; | |
1967 | ||
1968 | self = self; | |
1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
1970 | return NULL; | |
1971 | if (_argo0) { | |
1972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
1975 | return NULL; | |
1976 | } | |
1977 | } | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | _result = (long )wxWindow_GetHandle(_arg0); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) return NULL; | |
1984 | } _resultobj = Py_BuildValue("l",_result); | |
1985 | return _resultobj; | |
1986 | } | |
1987 | ||
1988 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
1989 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1990 | PyObject * _resultobj; | |
1991 | int _result; | |
1992 | wxWindow * _arg0; | |
1993 | PyObject * _argo0 = 0; | |
1994 | char *_kwnames[] = { "self", NULL }; | |
1995 | ||
1996 | self = self; | |
1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) | |
1998 | return NULL; | |
1999 | if (_argo0) { | |
2000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); | |
2003 | return NULL; | |
2004 | } | |
2005 | } | |
2006 | { | |
2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2008 | _result = (int )wxWindow_GetId(_arg0); | |
2009 | ||
2010 | wxPyEndAllowThreads(__tstate); | |
2011 | if (PyErr_Occurred()) return NULL; | |
2012 | } _resultobj = Py_BuildValue("i",_result); | |
2013 | return _resultobj; | |
2014 | } | |
2015 | ||
2016 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2017 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject * _resultobj; | |
2019 | wxString * _result; | |
2020 | wxWindow * _arg0; | |
2021 | PyObject * _argo0 = 0; | |
2022 | char *_kwnames[] = { "self", NULL }; | |
2023 | ||
2024 | self = self; | |
2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) | |
2026 | return NULL; | |
2027 | if (_argo0) { | |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); | |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
2034 | { | |
2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2036 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
2037 | ||
2038 | wxPyEndAllowThreads(__tstate); | |
2039 | if (PyErr_Occurred()) return NULL; | |
2040 | }{ | |
2041 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2042 | } | |
2043 | { | |
2044 | delete _result; | |
2045 | } | |
2046 | return _resultobj; | |
2047 | } | |
2048 | ||
2049 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
2050 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject * _resultobj; | |
2052 | wxWindow * _arg0; | |
2053 | wxString * _arg1; | |
2054 | PyObject * _argo0 = 0; | |
2055 | PyObject * _obj1 = 0; | |
2056 | char *_kwnames[] = { "self","label", NULL }; | |
2057 | ||
2058 | self = self; | |
2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) | |
2060 | return NULL; | |
2061 | if (_argo0) { | |
2062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); | |
2065 | return NULL; | |
2066 | } | |
2067 | } | |
2068 | { | |
2069 | #if PYTHON_API_VERSION >= 1009 | |
2070 | char* tmpPtr; int tmpSize; | |
2071 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2072 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2073 | return NULL; | |
2074 | } | |
2075 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2076 | return NULL; | |
2077 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2078 | #else | |
2079 | if (!PyString_Check(_obj1)) { | |
2080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2081 | return NULL; | |
2082 | } | |
2083 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2084 | #endif | |
2085 | } | |
2086 | { | |
2087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2088 | wxWindow_SetLabel(_arg0,*_arg1); | |
2089 | ||
2090 | wxPyEndAllowThreads(__tstate); | |
2091 | if (PyErr_Occurred()) return NULL; | |
2092 | } Py_INCREF(Py_None); | |
2093 | _resultobj = Py_None; | |
2094 | { | |
2095 | if (_obj1) | |
2096 | delete _arg1; | |
2097 | } | |
2098 | return _resultobj; | |
2099 | } | |
2100 | ||
2101 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) | |
2102 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2103 | PyObject * _resultobj; | |
2104 | wxString * _result; | |
2105 | wxWindow * _arg0; | |
2106 | PyObject * _argo0 = 0; | |
2107 | char *_kwnames[] = { "self", NULL }; | |
2108 | ||
2109 | self = self; | |
2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) | |
2111 | return NULL; | |
2112 | if (_argo0) { | |
2113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); | |
2116 | return NULL; | |
2117 | } | |
2118 | } | |
2119 | { | |
2120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2121 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2122 | ||
2123 | wxPyEndAllowThreads(__tstate); | |
2124 | if (PyErr_Occurred()) return NULL; | |
2125 | }{ | |
2126 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2127 | } | |
2128 | { | |
2129 | delete _result; | |
2130 | } | |
2131 | return _resultobj; | |
2132 | } | |
2133 | ||
2134 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
2135 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2136 | PyObject * _resultobj; | |
2137 | wxWindow * _result; | |
2138 | wxWindow * _arg0; | |
2139 | PyObject * _argo0 = 0; | |
2140 | char *_kwnames[] = { "self", NULL }; | |
2141 | ||
2142 | self = self; | |
2143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) | |
2144 | return NULL; | |
2145 | if (_argo0) { | |
2146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); | |
2149 | return NULL; | |
2150 | } | |
2151 | } | |
2152 | { | |
2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2154 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2155 | ||
2156 | wxPyEndAllowThreads(__tstate); | |
2157 | if (PyErr_Occurred()) return NULL; | |
2158 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2159 | return _resultobj; | |
2160 | } | |
2161 | ||
2162 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2163 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject * _resultobj; | |
2165 | wxWindow * _arg0; | |
2166 | int * _arg1; | |
2167 | int temp; | |
2168 | int * _arg2; | |
2169 | int temp0; | |
2170 | PyObject * _argo0 = 0; | |
2171 | char *_kwnames[] = { "self", NULL }; | |
2172 | ||
2173 | self = self; | |
2174 | { | |
2175 | _arg1 = &temp; | |
2176 | } | |
2177 | { | |
2178 | _arg2 = &temp0; | |
2179 | } | |
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) | |
2181 | return NULL; | |
2182 | if (_argo0) { | |
2183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); | |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2191 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2192 | ||
2193 | wxPyEndAllowThreads(__tstate); | |
2194 | if (PyErr_Occurred()) return NULL; | |
2195 | } Py_INCREF(Py_None); | |
2196 | _resultobj = Py_None; | |
2197 | { | |
2198 | PyObject *o; | |
2199 | o = PyInt_FromLong((long) (*_arg1)); | |
2200 | _resultobj = t_output_helper(_resultobj, o); | |
2201 | } | |
2202 | { | |
2203 | PyObject *o; | |
2204 | o = PyInt_FromLong((long) (*_arg2)); | |
2205 | _resultobj = t_output_helper(_resultobj, o); | |
2206 | } | |
2207 | return _resultobj; | |
2208 | } | |
2209 | ||
2210 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2211 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2212 | PyObject * _resultobj; | |
2213 | wxPoint * _result; | |
2214 | wxWindow * _arg0; | |
2215 | PyObject * _argo0 = 0; | |
2216 | char *_kwnames[] = { "self", NULL }; | |
2217 | char _ptemp[128]; | |
2218 | ||
2219 | self = self; | |
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) | |
2221 | return NULL; | |
2222 | if (_argo0) { | |
2223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); | |
2226 | return NULL; | |
2227 | } | |
2228 | } | |
2229 | { | |
2230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2231 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2232 | ||
2233 | wxPyEndAllowThreads(__tstate); | |
2234 | if (PyErr_Occurred()) return NULL; | |
2235 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2236 | _resultobj = Py_BuildValue("s",_ptemp); | |
2237 | return _resultobj; | |
2238 | } | |
2239 | ||
2240 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
2241 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2242 | PyObject * _resultobj; | |
2243 | wxRect * _result; | |
2244 | wxWindow * _arg0; | |
2245 | PyObject * _argo0 = 0; | |
2246 | char *_kwnames[] = { "self", NULL }; | |
2247 | char _ptemp[128]; | |
2248 | ||
2249 | self = self; | |
2250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) | |
2251 | return NULL; | |
2252 | if (_argo0) { | |
2253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); | |
2256 | return NULL; | |
2257 | } | |
2258 | } | |
2259 | { | |
2260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2261 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2262 | ||
2263 | wxPyEndAllowThreads(__tstate); | |
2264 | if (PyErr_Occurred()) return NULL; | |
2265 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2266 | _resultobj = Py_BuildValue("s",_ptemp); | |
2267 | return _resultobj; | |
2268 | } | |
2269 | ||
2270 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) | |
2271 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject * _resultobj; | |
2273 | int _result; | |
2274 | wxWindow * _arg0; | |
2275 | int _arg1; | |
2276 | PyObject * _argo0 = 0; | |
2277 | char *_kwnames[] = { "self","orientation", NULL }; | |
2278 | ||
2279 | self = self; | |
2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) | |
2281 | return NULL; | |
2282 | if (_argo0) { | |
2283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); | |
2286 | return NULL; | |
2287 | } | |
2288 | } | |
2289 | { | |
2290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2291 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2292 | ||
2293 | wxPyEndAllowThreads(__tstate); | |
2294 | if (PyErr_Occurred()) return NULL; | |
2295 | } _resultobj = Py_BuildValue("i",_result); | |
2296 | return _resultobj; | |
2297 | } | |
2298 | ||
2299 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
2300 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject * _resultobj; | |
2302 | int _result; | |
2303 | wxWindow * _arg0; | |
2304 | int _arg1; | |
2305 | PyObject * _argo0 = 0; | |
2306 | char *_kwnames[] = { "self","orientation", NULL }; | |
2307 | ||
2308 | self = self; | |
2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) | |
2310 | return NULL; | |
2311 | if (_argo0) { | |
2312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); | |
2315 | return NULL; | |
2316 | } | |
2317 | } | |
2318 | { | |
2319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2320 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2321 | ||
2322 | wxPyEndAllowThreads(__tstate); | |
2323 | if (PyErr_Occurred()) return NULL; | |
2324 | } _resultobj = Py_BuildValue("i",_result); | |
2325 | return _resultobj; | |
2326 | } | |
2327 | ||
2328 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
2329 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2330 | PyObject * _resultobj; | |
2331 | int _result; | |
2332 | wxWindow * _arg0; | |
2333 | int _arg1; | |
2334 | PyObject * _argo0 = 0; | |
2335 | char *_kwnames[] = { "self","orientation", NULL }; | |
2336 | ||
2337 | self = self; | |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) | |
2339 | return NULL; | |
2340 | if (_argo0) { | |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); | |
2344 | return NULL; | |
2345 | } | |
2346 | } | |
2347 | { | |
2348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2349 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2350 | ||
2351 | wxPyEndAllowThreads(__tstate); | |
2352 | if (PyErr_Occurred()) return NULL; | |
2353 | } _resultobj = Py_BuildValue("i",_result); | |
2354 | return _resultobj; | |
2355 | } | |
2356 | ||
2357 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2358 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2359 | PyObject * _resultobj; | |
2360 | wxWindow * _arg0; | |
2361 | int * _arg1; | |
2362 | int temp; | |
2363 | int * _arg2; | |
2364 | int temp0; | |
2365 | PyObject * _argo0 = 0; | |
2366 | char *_kwnames[] = { "self", NULL }; | |
2367 | ||
2368 | self = self; | |
2369 | { | |
2370 | _arg1 = &temp; | |
2371 | } | |
2372 | { | |
2373 | _arg2 = &temp0; | |
2374 | } | |
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) | |
2376 | return NULL; | |
2377 | if (_argo0) { | |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); | |
2381 | return NULL; | |
2382 | } | |
2383 | } | |
2384 | { | |
2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2386 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2387 | ||
2388 | wxPyEndAllowThreads(__tstate); | |
2389 | if (PyErr_Occurred()) return NULL; | |
2390 | } Py_INCREF(Py_None); | |
2391 | _resultobj = Py_None; | |
2392 | { | |
2393 | PyObject *o; | |
2394 | o = PyInt_FromLong((long) (*_arg1)); | |
2395 | _resultobj = t_output_helper(_resultobj, o); | |
2396 | } | |
2397 | { | |
2398 | PyObject *o; | |
2399 | o = PyInt_FromLong((long) (*_arg2)); | |
2400 | _resultobj = t_output_helper(_resultobj, o); | |
2401 | } | |
2402 | return _resultobj; | |
2403 | } | |
2404 | ||
2405 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) | |
2406 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2407 | PyObject * _resultobj; | |
2408 | wxSize * _result; | |
2409 | wxWindow * _arg0; | |
2410 | PyObject * _argo0 = 0; | |
2411 | char *_kwnames[] = { "self", NULL }; | |
2412 | char _ptemp[128]; | |
2413 | ||
2414 | self = self; | |
2415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) | |
2416 | return NULL; | |
2417 | if (_argo0) { | |
2418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); | |
2421 | return NULL; | |
2422 | } | |
2423 | } | |
2424 | { | |
2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2426 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2427 | ||
2428 | wxPyEndAllowThreads(__tstate); | |
2429 | if (PyErr_Occurred()) return NULL; | |
2430 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2431 | _resultobj = Py_BuildValue("s",_ptemp); | |
2432 | return _resultobj; | |
2433 | } | |
2434 | ||
2435 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
2436 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2437 | PyObject * _resultobj; | |
2438 | wxWindow * _arg0; | |
2439 | wxString * _arg1; | |
2440 | int * _arg2; | |
2441 | int temp; | |
2442 | int * _arg3; | |
2443 | int temp0; | |
2444 | PyObject * _argo0 = 0; | |
2445 | PyObject * _obj1 = 0; | |
2446 | char *_kwnames[] = { "self","string", NULL }; | |
2447 | ||
2448 | self = self; | |
2449 | { | |
2450 | _arg2 = &temp; | |
2451 | } | |
2452 | { | |
2453 | _arg3 = &temp0; | |
2454 | } | |
2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
2456 | return NULL; | |
2457 | if (_argo0) { | |
2458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); | |
2461 | return NULL; | |
2462 | } | |
2463 | } | |
2464 | { | |
2465 | #if PYTHON_API_VERSION >= 1009 | |
2466 | char* tmpPtr; int tmpSize; | |
2467 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2468 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2469 | return NULL; | |
2470 | } | |
2471 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2472 | return NULL; | |
2473 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2474 | #else | |
2475 | if (!PyString_Check(_obj1)) { | |
2476 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2477 | return NULL; | |
2478 | } | |
2479 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2480 | #endif | |
2481 | } | |
2482 | { | |
2483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2484 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2485 | ||
2486 | wxPyEndAllowThreads(__tstate); | |
2487 | if (PyErr_Occurred()) return NULL; | |
2488 | } Py_INCREF(Py_None); | |
2489 | _resultobj = Py_None; | |
2490 | { | |
2491 | PyObject *o; | |
2492 | o = PyInt_FromLong((long) (*_arg2)); | |
2493 | _resultobj = t_output_helper(_resultobj, o); | |
2494 | } | |
2495 | { | |
2496 | PyObject *o; | |
2497 | o = PyInt_FromLong((long) (*_arg3)); | |
2498 | _resultobj = t_output_helper(_resultobj, o); | |
2499 | } | |
2500 | { | |
2501 | if (_obj1) | |
2502 | delete _arg1; | |
2503 | } | |
2504 | return _resultobj; | |
2505 | } | |
2506 | ||
2507 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2508 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2509 | PyObject * _resultobj; | |
2510 | wxWindow * _arg0; | |
2511 | wxString * _arg1; | |
2512 | int * _arg2; | |
2513 | int temp; | |
2514 | int * _arg3; | |
2515 | int temp0; | |
2516 | int * _arg4; | |
2517 | int temp1; | |
2518 | int * _arg5; | |
2519 | int temp2; | |
2520 | wxFont * _arg6 = (wxFont *) NULL; | |
2521 | PyObject * _argo0 = 0; | |
2522 | PyObject * _obj1 = 0; | |
2523 | PyObject * _argo6 = 0; | |
2524 | char *_kwnames[] = { "self","string","font", NULL }; | |
2525 | ||
2526 | self = self; | |
2527 | { | |
2528 | _arg2 = &temp; | |
2529 | } | |
2530 | { | |
2531 | _arg3 = &temp0; | |
2532 | } | |
2533 | { | |
2534 | _arg4 = &temp1; | |
2535 | } | |
2536 | { | |
2537 | _arg5 = &temp2; | |
2538 | } | |
2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
2540 | return NULL; | |
2541 | if (_argo0) { | |
2542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); | |
2545 | return NULL; | |
2546 | } | |
2547 | } | |
2548 | { | |
2549 | #if PYTHON_API_VERSION >= 1009 | |
2550 | char* tmpPtr; int tmpSize; | |
2551 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2552 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2553 | return NULL; | |
2554 | } | |
2555 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2556 | return NULL; | |
2557 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2558 | #else | |
2559 | if (!PyString_Check(_obj1)) { | |
2560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2561 | return NULL; | |
2562 | } | |
2563 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2564 | #endif | |
2565 | } | |
2566 | if (_argo6) { | |
2567 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2568 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
2569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); | |
2570 | return NULL; | |
2571 | } | |
2572 | } | |
2573 | { | |
2574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2575 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2576 | ||
2577 | wxPyEndAllowThreads(__tstate); | |
2578 | if (PyErr_Occurred()) return NULL; | |
2579 | } Py_INCREF(Py_None); | |
2580 | _resultobj = Py_None; | |
2581 | { | |
2582 | PyObject *o; | |
2583 | o = PyInt_FromLong((long) (*_arg2)); | |
2584 | _resultobj = t_output_helper(_resultobj, o); | |
2585 | } | |
2586 | { | |
2587 | PyObject *o; | |
2588 | o = PyInt_FromLong((long) (*_arg3)); | |
2589 | _resultobj = t_output_helper(_resultobj, o); | |
2590 | } | |
2591 | { | |
2592 | PyObject *o; | |
2593 | o = PyInt_FromLong((long) (*_arg4)); | |
2594 | _resultobj = t_output_helper(_resultobj, o); | |
2595 | } | |
2596 | { | |
2597 | PyObject *o; | |
2598 | o = PyInt_FromLong((long) (*_arg5)); | |
2599 | _resultobj = t_output_helper(_resultobj, o); | |
2600 | } | |
2601 | { | |
2602 | if (_obj1) | |
2603 | delete _arg1; | |
2604 | } | |
2605 | return _resultobj; | |
2606 | } | |
2607 | ||
2608 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
2609 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject * _resultobj; | |
2611 | wxString * _result; | |
2612 | wxWindow * _arg0; | |
2613 | PyObject * _argo0 = 0; | |
2614 | char *_kwnames[] = { "self", NULL }; | |
2615 | ||
2616 | self = self; | |
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) | |
2618 | return NULL; | |
2619 | if (_argo0) { | |
2620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); | |
2623 | return NULL; | |
2624 | } | |
2625 | } | |
2626 | { | |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2628 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2629 | ||
2630 | wxPyEndAllowThreads(__tstate); | |
2631 | if (PyErr_Occurred()) return NULL; | |
2632 | }{ | |
2633 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2634 | } | |
2635 | { | |
2636 | delete _result; | |
2637 | } | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
2641 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) | |
2642 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2643 | PyObject * _resultobj; | |
2644 | wxRegion * _result; | |
2645 | wxWindow * _arg0; | |
2646 | PyObject * _argo0 = 0; | |
2647 | char *_kwnames[] = { "self", NULL }; | |
2648 | char _ptemp[128]; | |
2649 | ||
2650 | self = self; | |
2651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) | |
2652 | return NULL; | |
2653 | if (_argo0) { | |
2654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); | |
2657 | return NULL; | |
2658 | } | |
2659 | } | |
2660 | { | |
2661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2662 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2663 | ||
2664 | wxPyEndAllowThreads(__tstate); | |
2665 | if (PyErr_Occurred()) return NULL; | |
2666 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2667 | _resultobj = Py_BuildValue("s",_ptemp); | |
2668 | return _resultobj; | |
2669 | } | |
2670 | ||
2671 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) | |
2672 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2673 | PyObject * _resultobj; | |
2674 | long _result; | |
2675 | wxWindow * _arg0; | |
2676 | PyObject * _argo0 = 0; | |
2677 | char *_kwnames[] = { "self", NULL }; | |
2678 | ||
2679 | self = self; | |
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) | |
2681 | return NULL; | |
2682 | if (_argo0) { | |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); | |
2686 | return NULL; | |
2687 | } | |
2688 | } | |
2689 | { | |
2690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2691 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2692 | ||
2693 | wxPyEndAllowThreads(__tstate); | |
2694 | if (PyErr_Occurred()) return NULL; | |
2695 | } _resultobj = Py_BuildValue("l",_result); | |
2696 | return _resultobj; | |
2697 | } | |
2698 | ||
2699 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
2700 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2701 | PyObject * _resultobj; | |
2702 | wxWindow * _arg0; | |
2703 | long _arg1; | |
2704 | PyObject * _argo0 = 0; | |
2705 | char *_kwnames[] = { "self","style", NULL }; | |
2706 | ||
2707 | self = self; | |
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2709 | return NULL; | |
2710 | if (_argo0) { | |
2711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2714 | return NULL; | |
2715 | } | |
2716 | } | |
2717 | { | |
2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2719 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2720 | ||
2721 | wxPyEndAllowThreads(__tstate); | |
2722 | if (PyErr_Occurred()) return NULL; | |
2723 | } Py_INCREF(Py_None); | |
2724 | _resultobj = Py_None; | |
2725 | return _resultobj; | |
2726 | } | |
2727 | ||
2728 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2729 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2730 | PyObject * _resultobj; | |
2731 | wxWindow * _arg0; | |
2732 | long _arg1; | |
2733 | PyObject * _argo0 = 0; | |
2734 | char *_kwnames[] = { "self","style", NULL }; | |
2735 | ||
2736 | self = self; | |
2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2738 | return NULL; | |
2739 | if (_argo0) { | |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
2746 | { | |
2747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2748 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2749 | ||
2750 | wxPyEndAllowThreads(__tstate); | |
2751 | if (PyErr_Occurred()) return NULL; | |
2752 | } Py_INCREF(Py_None); | |
2753 | _resultobj = Py_None; | |
2754 | return _resultobj; | |
2755 | } | |
2756 | ||
2757 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) | |
2758 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2759 | PyObject * _resultobj; | |
2760 | bool _result; | |
2761 | wxWindow * _arg0; | |
2762 | PyObject * _argo0 = 0; | |
2763 | char *_kwnames[] = { "self", NULL }; | |
2764 | ||
2765 | self = self; | |
2766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) | |
2767 | return NULL; | |
2768 | if (_argo0) { | |
2769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); | |
2772 | return NULL; | |
2773 | } | |
2774 | } | |
2775 | { | |
2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2777 | _result = (bool )wxWindow_Hide(_arg0); | |
2778 | ||
2779 | wxPyEndAllowThreads(__tstate); | |
2780 | if (PyErr_Occurred()) return NULL; | |
2781 | } _resultobj = Py_BuildValue("i",_result); | |
2782 | return _resultobj; | |
2783 | } | |
2784 | ||
2785 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
2786 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2787 | PyObject * _resultobj; | |
2788 | wxWindow * _arg0; | |
2789 | PyObject * _argo0 = 0; | |
2790 | char *_kwnames[] = { "self", NULL }; | |
2791 | ||
2792 | self = self; | |
2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) | |
2794 | return NULL; | |
2795 | if (_argo0) { | |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); | |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
2802 | { | |
2803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2804 | wxWindow_InitDialog(_arg0); | |
2805 | ||
2806 | wxPyEndAllowThreads(__tstate); | |
2807 | if (PyErr_Occurred()) return NULL; | |
2808 | } Py_INCREF(Py_None); | |
2809 | _resultobj = Py_None; | |
2810 | return _resultobj; | |
2811 | } | |
2812 | ||
2813 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
2814 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2815 | PyObject * _resultobj; | |
2816 | bool _result; | |
2817 | wxWindow * _arg0; | |
2818 | PyObject * _argo0 = 0; | |
2819 | char *_kwnames[] = { "self", NULL }; | |
2820 | ||
2821 | self = self; | |
2822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) | |
2823 | return NULL; | |
2824 | if (_argo0) { | |
2825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); | |
2828 | return NULL; | |
2829 | } | |
2830 | } | |
2831 | { | |
2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2833 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2834 | ||
2835 | wxPyEndAllowThreads(__tstate); | |
2836 | if (PyErr_Occurred()) return NULL; | |
2837 | } _resultobj = Py_BuildValue("i",_result); | |
2838 | return _resultobj; | |
2839 | } | |
2840 | ||
2841 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2842 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2843 | PyObject * _resultobj; | |
2844 | bool _result; | |
2845 | wxWindow * _arg0; | |
2846 | int _arg1; | |
2847 | int _arg2; | |
2848 | int _arg3 = (int ) 0; | |
2849 | int _arg4 = (int ) 0; | |
2850 | PyObject * _argo0 = 0; | |
2851 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2852 | ||
2853 | self = self; | |
2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2855 | return NULL; | |
2856 | if (_argo0) { | |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2863 | { | |
2864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2865 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2866 | ||
2867 | wxPyEndAllowThreads(__tstate); | |
2868 | if (PyErr_Occurred()) return NULL; | |
2869 | } _resultobj = Py_BuildValue("i",_result); | |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
2873 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2874 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | bool _result; | |
2877 | wxWindow * _arg0; | |
2878 | wxPoint * _arg1; | |
2879 | PyObject * _argo0 = 0; | |
2880 | wxPoint temp; | |
2881 | PyObject * _obj1 = 0; | |
2882 | char *_kwnames[] = { "self","pt", NULL }; | |
2883 | ||
2884 | self = self; | |
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2886 | return NULL; | |
2887 | if (_argo0) { | |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2891 | return NULL; | |
2892 | } | |
2893 | } | |
2894 | { | |
2895 | _arg1 = &temp; | |
2896 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2897 | return NULL; | |
2898 | } | |
2899 | { | |
2900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2901 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
2902 | ||
2903 | wxPyEndAllowThreads(__tstate); | |
2904 | if (PyErr_Occurred()) return NULL; | |
2905 | } _resultobj = Py_BuildValue("i",_result); | |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
2909 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2910 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | bool _result; | |
2913 | wxWindow * _arg0; | |
2914 | wxRect * _arg1; | |
2915 | PyObject * _argo0 = 0; | |
2916 | wxRect temp; | |
2917 | PyObject * _obj1 = 0; | |
2918 | char *_kwnames[] = { "self","rect", NULL }; | |
2919 | ||
2920 | self = self; | |
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2922 | return NULL; | |
2923 | if (_argo0) { | |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
2931 | _arg1 = &temp; | |
2932 | if (! wxRect_helper(_obj1, &_arg1)) | |
2933 | return NULL; | |
2934 | } | |
2935 | { | |
2936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2937 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
2938 | ||
2939 | wxPyEndAllowThreads(__tstate); | |
2940 | if (PyErr_Occurred()) return NULL; | |
2941 | } _resultobj = Py_BuildValue("i",_result); | |
2942 | return _resultobj; | |
2943 | } | |
2944 | ||
2945 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
2946 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2947 | PyObject * _resultobj; | |
2948 | bool _result; | |
2949 | wxWindow * _arg0; | |
2950 | PyObject * _argo0 = 0; | |
2951 | char *_kwnames[] = { "self", NULL }; | |
2952 | ||
2953 | self = self; | |
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) | |
2955 | return NULL; | |
2956 | if (_argo0) { | |
2957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); | |
2960 | return NULL; | |
2961 | } | |
2962 | } | |
2963 | { | |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2965 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2966 | ||
2967 | wxPyEndAllowThreads(__tstate); | |
2968 | if (PyErr_Occurred()) return NULL; | |
2969 | } _resultobj = Py_BuildValue("i",_result); | |
2970 | return _resultobj; | |
2971 | } | |
2972 | ||
2973 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
2974 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2975 | PyObject * _resultobj; | |
2976 | bool _result; | |
2977 | wxWindow * _arg0; | |
2978 | PyObject * _argo0 = 0; | |
2979 | char *_kwnames[] = { "self", NULL }; | |
2980 | ||
2981 | self = self; | |
2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) | |
2983 | return NULL; | |
2984 | if (_argo0) { | |
2985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); | |
2988 | return NULL; | |
2989 | } | |
2990 | } | |
2991 | { | |
2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2993 | _result = (bool )wxWindow_IsShown(_arg0); | |
2994 | ||
2995 | wxPyEndAllowThreads(__tstate); | |
2996 | if (PyErr_Occurred()) return NULL; | |
2997 | } _resultobj = Py_BuildValue("i",_result); | |
2998 | return _resultobj; | |
2999 | } | |
3000 | ||
3001 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) | |
3002 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject * _resultobj; | |
3004 | bool _result; | |
3005 | wxWindow * _arg0; | |
3006 | PyObject * _argo0 = 0; | |
3007 | char *_kwnames[] = { "self", NULL }; | |
3008 | ||
3009 | self = self; | |
3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) | |
3011 | return NULL; | |
3012 | if (_argo0) { | |
3013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); | |
3016 | return NULL; | |
3017 | } | |
3018 | } | |
3019 | { | |
3020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3021 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
3022 | ||
3023 | wxPyEndAllowThreads(__tstate); | |
3024 | if (PyErr_Occurred()) return NULL; | |
3025 | } _resultobj = Py_BuildValue("i",_result); | |
3026 | return _resultobj; | |
3027 | } | |
3028 | ||
3029 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) | |
3030 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3031 | PyObject * _resultobj; | |
3032 | wxWindow * _arg0; | |
3033 | PyObject * _argo0 = 0; | |
3034 | char *_kwnames[] = { "self", NULL }; | |
3035 | ||
3036 | self = self; | |
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) | |
3038 | return NULL; | |
3039 | if (_argo0) { | |
3040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); | |
3043 | return NULL; | |
3044 | } | |
3045 | } | |
3046 | { | |
3047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3048 | wxWindow_Layout(_arg0); | |
3049 | ||
3050 | wxPyEndAllowThreads(__tstate); | |
3051 | if (PyErr_Occurred()) return NULL; | |
3052 | } Py_INCREF(Py_None); | |
3053 | _resultobj = Py_None; | |
3054 | return _resultobj; | |
3055 | } | |
3056 | ||
3057 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
3058 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3059 | PyObject * _resultobj; | |
3060 | bool _result; | |
3061 | wxWindow * _arg0; | |
3062 | wxWindow * _arg1; | |
3063 | wxString * _arg2; | |
3064 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; | |
3065 | PyObject * _argo0 = 0; | |
3066 | PyObject * _argo1 = 0; | |
3067 | PyObject * _obj2 = 0; | |
3068 | PyObject * _argo3 = 0; | |
3069 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; | |
3070 | ||
3071 | self = self; | |
3072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) | |
3073 | return NULL; | |
3074 | if (_argo0) { | |
3075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
3078 | return NULL; | |
3079 | } | |
3080 | } | |
3081 | if (_argo1) { | |
3082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
3085 | return NULL; | |
3086 | } | |
3087 | } | |
3088 | { | |
3089 | #if PYTHON_API_VERSION >= 1009 | |
3090 | char* tmpPtr; int tmpSize; | |
3091 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3092 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3093 | return NULL; | |
3094 | } | |
3095 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3096 | return NULL; | |
3097 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3098 | #else | |
3099 | if (!PyString_Check(_obj2)) { | |
3100 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3101 | return NULL; | |
3102 | } | |
3103 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3104 | #endif | |
3105 | } | |
3106 | if (_argo3) { | |
3107 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3108 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
3109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); | |
3110 | return NULL; | |
3111 | } | |
3112 | } | |
3113 | { | |
3114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3115 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3116 | ||
3117 | wxPyEndAllowThreads(__tstate); | |
3118 | if (PyErr_Occurred()) return NULL; | |
3119 | } _resultobj = Py_BuildValue("i",_result); | |
3120 | { | |
3121 | if (_obj2) | |
3122 | delete _arg2; | |
3123 | } | |
3124 | return _resultobj; | |
3125 | } | |
3126 | ||
3127 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
3128 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3129 | PyObject * _resultobj; | |
3130 | wxWindow * _arg0; | |
3131 | PyObject * _argo0 = 0; | |
3132 | char *_kwnames[] = { "self", NULL }; | |
3133 | ||
3134 | self = self; | |
3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) | |
3136 | return NULL; | |
3137 | if (_argo0) { | |
3138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); | |
3141 | return NULL; | |
3142 | } | |
3143 | } | |
3144 | { | |
3145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3146 | wxWindow_Lower(_arg0); | |
3147 | ||
3148 | wxPyEndAllowThreads(__tstate); | |
3149 | if (PyErr_Occurred()) return NULL; | |
3150 | } Py_INCREF(Py_None); | |
3151 | _resultobj = Py_None; | |
3152 | return _resultobj; | |
3153 | } | |
3154 | ||
3155 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
3156 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3157 | PyObject * _resultobj; | |
3158 | wxWindow * _arg0; | |
3159 | bool _arg1 = (bool ) TRUE; | |
3160 | PyObject * _argo0 = 0; | |
3161 | int tempbool1 = (int) TRUE; | |
3162 | char *_kwnames[] = { "self","flag", NULL }; | |
3163 | ||
3164 | self = self; | |
3165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
3166 | return NULL; | |
3167 | if (_argo0) { | |
3168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); | |
3171 | return NULL; | |
3172 | } | |
3173 | } | |
3174 | _arg1 = (bool ) tempbool1; | |
3175 | { | |
3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3177 | wxWindow_MakeModal(_arg0,_arg1); | |
3178 | ||
3179 | wxPyEndAllowThreads(__tstate); | |
3180 | if (PyErr_Occurred()) return NULL; | |
3181 | } Py_INCREF(Py_None); | |
3182 | _resultobj = Py_None; | |
3183 | return _resultobj; | |
3184 | } | |
3185 | ||
3186 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3187 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3188 | PyObject * _resultobj; | |
3189 | wxWindow * _arg0; | |
3190 | int _arg1; | |
3191 | int _arg2; | |
3192 | PyObject * _argo0 = 0; | |
3193 | char *_kwnames[] = { "self","x","y", NULL }; | |
3194 | ||
3195 | self = self; | |
3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3197 | return NULL; | |
3198 | if (_argo0) { | |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); | |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
3205 | { | |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3207 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
3208 | ||
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) return NULL; | |
3211 | } Py_INCREF(Py_None); | |
3212 | _resultobj = Py_None; | |
3213 | return _resultobj; | |
3214 | } | |
3215 | ||
3216 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3217 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3218 | PyObject * _resultobj; | |
3219 | wxWindow * _arg0; | |
3220 | wxPoint * _arg1; | |
3221 | PyObject * _argo0 = 0; | |
3222 | wxPoint temp; | |
3223 | PyObject * _obj1 = 0; | |
3224 | char *_kwnames[] = { "self","point", NULL }; | |
3225 | ||
3226 | self = self; | |
3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) | |
3228 | return NULL; | |
3229 | if (_argo0) { | |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); | |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
3236 | { | |
3237 | _arg1 = &temp; | |
3238 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3239 | return NULL; | |
3240 | } | |
3241 | { | |
3242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3243 | wxWindow_Move(_arg0,*_arg1); | |
3244 | ||
3245 | wxPyEndAllowThreads(__tstate); | |
3246 | if (PyErr_Occurred()) return NULL; | |
3247 | } Py_INCREF(Py_None); | |
3248 | _resultobj = Py_None; | |
3249 | return _resultobj; | |
3250 | } | |
3251 | ||
3252 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) | |
3253 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3254 | PyObject * _resultobj; | |
3255 | wxEvtHandler * _result; | |
3256 | wxWindow * _arg0; | |
3257 | bool _arg1 = (bool ) FALSE; | |
3258 | PyObject * _argo0 = 0; | |
3259 | int tempbool1 = (int) FALSE; | |
3260 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3261 | ||
3262 | self = self; | |
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3264 | return NULL; | |
3265 | if (_argo0) { | |
3266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3269 | return NULL; | |
3270 | } | |
3271 | } | |
3272 | _arg1 = (bool ) tempbool1; | |
3273 | { | |
3274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3275 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3276 | ||
3277 | wxPyEndAllowThreads(__tstate); | |
3278 | if (PyErr_Occurred()) return NULL; | |
3279 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3280 | return _resultobj; | |
3281 | } | |
3282 | ||
3283 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3284 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject * _resultobj; | |
3286 | wxWindow * _arg0; | |
3287 | wxEvtHandler * _arg1; | |
3288 | PyObject * _argo0 = 0; | |
3289 | PyObject * _argo1 = 0; | |
3290 | char *_kwnames[] = { "self","handler", NULL }; | |
3291 | ||
3292 | self = self; | |
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3294 | return NULL; | |
3295 | if (_argo0) { | |
3296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3299 | return NULL; | |
3300 | } | |
3301 | } | |
3302 | if (_argo1) { | |
3303 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3304 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3306 | return NULL; | |
3307 | } | |
3308 | } | |
3309 | { | |
3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3311 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3312 | ||
3313 | wxPyEndAllowThreads(__tstate); | |
3314 | if (PyErr_Occurred()) return NULL; | |
3315 | } Py_INCREF(Py_None); | |
3316 | _resultobj = Py_None; | |
3317 | return _resultobj; | |
3318 | } | |
3319 | ||
3320 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) | |
3321 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject * _resultobj; | |
3323 | bool _result; | |
3324 | wxWindow * _arg0; | |
3325 | wxMenu * _arg1; | |
3326 | int _arg2; | |
3327 | int _arg3; | |
3328 | PyObject * _argo0 = 0; | |
3329 | PyObject * _argo1 = 0; | |
3330 | char *_kwnames[] = { "self","menu","x","y", NULL }; | |
3331 | ||
3332 | self = self; | |
3333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
3334 | return NULL; | |
3335 | if (_argo0) { | |
3336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); | |
3339 | return NULL; | |
3340 | } | |
3341 | } | |
3342 | if (_argo1) { | |
3343 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); | |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) return NULL; | |
3355 | } _resultobj = Py_BuildValue("i",_result); | |
3356 | return _resultobj; | |
3357 | } | |
3358 | ||
3359 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
3360 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject * _resultobj; | |
3362 | bool _result; | |
3363 | wxWindow * _arg0; | |
3364 | wxMenu * _arg1; | |
3365 | wxPoint * _arg2; | |
3366 | PyObject * _argo0 = 0; | |
3367 | PyObject * _argo1 = 0; | |
3368 | wxPoint temp; | |
3369 | PyObject * _obj2 = 0; | |
3370 | char *_kwnames[] = { "self","menu","pos", NULL }; | |
3371 | ||
3372 | self = self; | |
3373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3374 | return NULL; | |
3375 | if (_argo0) { | |
3376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); | |
3379 | return NULL; | |
3380 | } | |
3381 | } | |
3382 | if (_argo1) { | |
3383 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3384 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); | |
3386 | return NULL; | |
3387 | } | |
3388 | } | |
3389 | { | |
3390 | _arg2 = &temp; | |
3391 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3392 | return NULL; | |
3393 | } | |
3394 | { | |
3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3396 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); | |
3397 | ||
3398 | wxPyEndAllowThreads(__tstate); | |
3399 | if (PyErr_Occurred()) return NULL; | |
3400 | } _resultobj = Py_BuildValue("i",_result); | |
3401 | return _resultobj; | |
3402 | } | |
3403 | ||
3404 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
3405 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject * _resultobj; | |
3407 | wxWindow * _arg0; | |
3408 | PyObject * _argo0 = 0; | |
3409 | char *_kwnames[] = { "self", NULL }; | |
3410 | ||
3411 | self = self; | |
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) | |
3413 | return NULL; | |
3414 | if (_argo0) { | |
3415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); | |
3418 | return NULL; | |
3419 | } | |
3420 | } | |
3421 | { | |
3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3423 | wxWindow_Raise(_arg0); | |
3424 | ||
3425 | wxPyEndAllowThreads(__tstate); | |
3426 | if (PyErr_Occurred()) return NULL; | |
3427 | } Py_INCREF(Py_None); | |
3428 | _resultobj = Py_None; | |
3429 | return _resultobj; | |
3430 | } | |
3431 | ||
3432 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
3433 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject * _resultobj; | |
3435 | wxWindow * _arg0; | |
3436 | bool _arg1 = (bool ) TRUE; | |
3437 | wxRect * _arg2 = (wxRect *) NULL; | |
3438 | PyObject * _argo0 = 0; | |
3439 | int tempbool1 = (int) TRUE; | |
3440 | wxRect temp; | |
3441 | PyObject * _obj2 = 0; | |
3442 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; | |
3443 | ||
3444 | self = self; | |
3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) | |
3446 | return NULL; | |
3447 | if (_argo0) { | |
3448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); | |
3451 | return NULL; | |
3452 | } | |
3453 | } | |
3454 | _arg1 = (bool ) tempbool1; | |
3455 | if (_obj2) | |
3456 | { | |
3457 | _arg2 = &temp; | |
3458 | if (! wxRect_helper(_obj2, &_arg2)) | |
3459 | return NULL; | |
3460 | } | |
3461 | { | |
3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3463 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3464 | ||
3465 | wxPyEndAllowThreads(__tstate); | |
3466 | if (PyErr_Occurred()) return NULL; | |
3467 | } Py_INCREF(Py_None); | |
3468 | _resultobj = Py_None; | |
3469 | return _resultobj; | |
3470 | } | |
3471 | ||
3472 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) | |
3473 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3474 | PyObject * _resultobj; | |
3475 | wxWindow * _arg0; | |
3476 | wxRect * _arg1; | |
3477 | PyObject * _argo0 = 0; | |
3478 | wxRect temp; | |
3479 | PyObject * _obj1 = 0; | |
3480 | char *_kwnames[] = { "self","rect", NULL }; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | { | |
3493 | _arg1 = &temp; | |
3494 | if (! wxRect_helper(_obj1, &_arg1)) | |
3495 | return NULL; | |
3496 | } | |
3497 | { | |
3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3499 | wxWindow_RefreshRect(_arg0,*_arg1); | |
3500 | ||
3501 | wxPyEndAllowThreads(__tstate); | |
3502 | if (PyErr_Occurred()) return NULL; | |
3503 | } Py_INCREF(Py_None); | |
3504 | _resultobj = Py_None; | |
3505 | return _resultobj; | |
3506 | } | |
3507 | ||
3508 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
3509 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3510 | PyObject * _resultobj; | |
3511 | wxWindow * _arg0; | |
3512 | PyObject * _argo0 = 0; | |
3513 | char *_kwnames[] = { "self", NULL }; | |
3514 | ||
3515 | self = self; | |
3516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
3517 | return NULL; | |
3518 | if (_argo0) { | |
3519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
3522 | return NULL; | |
3523 | } | |
3524 | } | |
3525 | { | |
3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3527 | wxWindow_ReleaseMouse(_arg0); | |
3528 | ||
3529 | wxPyEndAllowThreads(__tstate); | |
3530 | if (PyErr_Occurred()) return NULL; | |
3531 | } Py_INCREF(Py_None); | |
3532 | _resultobj = Py_None; | |
3533 | return _resultobj; | |
3534 | } | |
3535 | ||
3536 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) | |
3537 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3538 | PyObject * _resultobj; | |
3539 | wxWindow * _arg0; | |
3540 | wxWindow * _arg1; | |
3541 | PyObject * _argo0 = 0; | |
3542 | PyObject * _argo1 = 0; | |
3543 | char *_kwnames[] = { "self","child", NULL }; | |
3544 | ||
3545 | self = self; | |
3546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3547 | return NULL; | |
3548 | if (_argo0) { | |
3549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3552 | return NULL; | |
3553 | } | |
3554 | } | |
3555 | if (_argo1) { | |
3556 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3557 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3559 | return NULL; | |
3560 | } | |
3561 | } | |
3562 | { | |
3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3564 | wxWindow_RemoveChild(_arg0,_arg1); | |
3565 | ||
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) return NULL; | |
3568 | } Py_INCREF(Py_None); | |
3569 | _resultobj = Py_None; | |
3570 | return _resultobj; | |
3571 | } | |
3572 | ||
3573 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) | |
3574 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3575 | PyObject * _resultobj; | |
3576 | bool _result; | |
3577 | wxWindow * _arg0; | |
3578 | wxWindow * _arg1; | |
3579 | PyObject * _argo0 = 0; | |
3580 | PyObject * _argo1 = 0; | |
3581 | char *_kwnames[] = { "self","newParent", NULL }; | |
3582 | ||
3583 | self = self; | |
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) | |
3585 | return NULL; | |
3586 | if (_argo0) { | |
3587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3590 | return NULL; | |
3591 | } | |
3592 | } | |
3593 | if (_argo1) { | |
3594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3597 | return NULL; | |
3598 | } | |
3599 | } | |
3600 | { | |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) return NULL; | |
3606 | } _resultobj = Py_BuildValue("i",_result); | |
3607 | return _resultobj; | |
3608 | } | |
3609 | ||
3610 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) | |
3611 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3612 | PyObject * _resultobj; | |
3613 | wxWindow * _arg0; | |
3614 | int * _arg1; | |
3615 | int * _arg2; | |
3616 | PyObject * _argo0 = 0; | |
3617 | int temp; | |
3618 | PyObject * _obj1 = 0; | |
3619 | int temp0; | |
3620 | PyObject * _obj2 = 0; | |
3621 | char *_kwnames[] = { "self","x","y", NULL }; | |
3622 | ||
3623 | self = self; | |
3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3625 | return NULL; | |
3626 | if (_argo0) { | |
3627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); | |
3630 | return NULL; | |
3631 | } | |
3632 | } | |
3633 | { | |
3634 | temp = (int) PyInt_AsLong(_obj1); | |
3635 | _arg1 = &temp; | |
3636 | } | |
3637 | { | |
3638 | temp0 = (int) PyInt_AsLong(_obj2); | |
3639 | _arg2 = &temp0; | |
3640 | } | |
3641 | { | |
3642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3643 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3644 | ||
3645 | wxPyEndAllowThreads(__tstate); | |
3646 | if (PyErr_Occurred()) return NULL; | |
3647 | } Py_INCREF(Py_None); | |
3648 | _resultobj = Py_None; | |
3649 | { | |
3650 | PyObject *o; | |
3651 | o = PyInt_FromLong((long) (*_arg1)); | |
3652 | _resultobj = t_output_helper(_resultobj, o); | |
3653 | } | |
3654 | { | |
3655 | PyObject *o; | |
3656 | o = PyInt_FromLong((long) (*_arg2)); | |
3657 | _resultobj = t_output_helper(_resultobj, o); | |
3658 | } | |
3659 | return _resultobj; | |
3660 | } | |
3661 | ||
3662 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) | |
3663 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3664 | PyObject * _resultobj; | |
3665 | wxPoint * _result; | |
3666 | wxWindow * _arg0; | |
3667 | wxPoint * _arg1; | |
3668 | PyObject * _argo0 = 0; | |
3669 | wxPoint temp; | |
3670 | PyObject * _obj1 = 0; | |
3671 | char *_kwnames[] = { "self","pt", NULL }; | |
3672 | char _ptemp[128]; | |
3673 | ||
3674 | self = self; | |
3675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) | |
3676 | return NULL; | |
3677 | if (_argo0) { | |
3678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); | |
3681 | return NULL; | |
3682 | } | |
3683 | } | |
3684 | { | |
3685 | _arg1 = &temp; | |
3686 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3687 | return NULL; | |
3688 | } | |
3689 | { | |
3690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3691 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3692 | ||
3693 | wxPyEndAllowThreads(__tstate); | |
3694 | if (PyErr_Occurred()) return NULL; | |
3695 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3696 | _resultobj = Py_BuildValue("s",_ptemp); | |
3697 | return _resultobj; | |
3698 | } | |
3699 | ||
3700 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) | |
3701 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject * _resultobj; | |
3703 | wxWindow * _arg0; | |
3704 | int _arg1; | |
3705 | int _arg2; | |
3706 | wxRect * _arg3 = (wxRect *) NULL; | |
3707 | PyObject * _argo0 = 0; | |
3708 | wxRect temp; | |
3709 | PyObject * _obj3 = 0; | |
3710 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; | |
3711 | ||
3712 | self = self; | |
3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3714 | return NULL; | |
3715 | if (_argo0) { | |
3716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); | |
3719 | return NULL; | |
3720 | } | |
3721 | } | |
3722 | if (_obj3) | |
3723 | { | |
3724 | _arg3 = &temp; | |
3725 | if (! wxRect_helper(_obj3, &_arg3)) | |
3726 | return NULL; | |
3727 | } | |
3728 | { | |
3729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3730 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3731 | ||
3732 | wxPyEndAllowThreads(__tstate); | |
3733 | if (PyErr_Occurred()) return NULL; | |
3734 | } Py_INCREF(Py_None); | |
3735 | _resultobj = Py_None; | |
3736 | return _resultobj; | |
3737 | } | |
3738 | ||
3739 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
3740 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3741 | PyObject * _resultobj; | |
3742 | wxWindow * _arg0; | |
3743 | bool _arg1; | |
3744 | PyObject * _argo0 = 0; | |
3745 | int tempbool1; | |
3746 | char *_kwnames[] = { "self","autoLayout", NULL }; | |
3747 | ||
3748 | self = self; | |
3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) | |
3750 | return NULL; | |
3751 | if (_argo0) { | |
3752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); | |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
3758 | _arg1 = (bool ) tempbool1; | |
3759 | { | |
3760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3761 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3762 | ||
3763 | wxPyEndAllowThreads(__tstate); | |
3764 | if (PyErr_Occurred()) return NULL; | |
3765 | } Py_INCREF(Py_None); | |
3766 | _resultobj = Py_None; | |
3767 | return _resultobj; | |
3768 | } | |
3769 | ||
3770 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) | |
3771 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject * _resultobj; | |
3773 | bool _result; | |
3774 | wxWindow * _arg0; | |
3775 | PyObject * _argo0 = 0; | |
3776 | char *_kwnames[] = { "self", NULL }; | |
3777 | ||
3778 | self = self; | |
3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3780 | return NULL; | |
3781 | if (_argo0) { | |
3782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
3788 | { | |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3791 | ||
3792 | wxPyEndAllowThreads(__tstate); | |
3793 | if (PyErr_Occurred()) return NULL; | |
3794 | } _resultobj = Py_BuildValue("i",_result); | |
3795 | return _resultobj; | |
3796 | } | |
3797 | ||
3798 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3799 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3800 | PyObject * _resultobj; | |
3801 | wxWindow * _arg0; | |
3802 | wxColour * _arg1; | |
3803 | PyObject * _argo0 = 0; | |
3804 | wxColour temp; | |
3805 | PyObject * _obj1 = 0; | |
3806 | char *_kwnames[] = { "self","colour", NULL }; | |
3807 | ||
3808 | self = self; | |
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3810 | return NULL; | |
3811 | if (_argo0) { | |
3812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); | |
3815 | return NULL; | |
3816 | } | |
3817 | } | |
3818 | { | |
3819 | _arg1 = &temp; | |
3820 | if (! wxColour_helper(_obj1, &_arg1)) | |
3821 | return NULL; | |
3822 | } | |
3823 | { | |
3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3825 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3826 | ||
3827 | wxPyEndAllowThreads(__tstate); | |
3828 | if (PyErr_Occurred()) return NULL; | |
3829 | } Py_INCREF(Py_None); | |
3830 | _resultobj = Py_None; | |
3831 | return _resultobj; | |
3832 | } | |
3833 | ||
3834 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
3835 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3836 | PyObject * _resultobj; | |
3837 | wxWindow * _arg0; | |
3838 | wxLayoutConstraints * _arg1; | |
3839 | PyObject * _argo0 = 0; | |
3840 | PyObject * _argo1 = 0; | |
3841 | char *_kwnames[] = { "self","constraints", NULL }; | |
3842 | ||
3843 | self = self; | |
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) | |
3845 | return NULL; | |
3846 | if (_argo0) { | |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); | |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
3853 | if (_argo1) { | |
3854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); | |
3857 | return NULL; | |
3858 | } | |
3859 | } | |
3860 | { | |
3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3862 | wxWindow_SetConstraints(_arg0,_arg1); | |
3863 | ||
3864 | wxPyEndAllowThreads(__tstate); | |
3865 | if (PyErr_Occurred()) return NULL; | |
3866 | } Py_INCREF(Py_None); | |
3867 | _resultobj = Py_None; | |
3868 | return _resultobj; | |
3869 | } | |
3870 | ||
3871 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) | |
3872 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject * _resultobj; | |
3874 | wxWindow * _arg0; | |
3875 | wxLayoutConstraints * _arg1; | |
3876 | PyObject * _argo0 = 0; | |
3877 | PyObject * _argo1 = 0; | |
3878 | char *_kwnames[] = { "self","constraints", NULL }; | |
3879 | ||
3880 | self = self; | |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3882 | return NULL; | |
3883 | if (_argo0) { | |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | if (_argo1) { | |
3891 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3892 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3894 | return NULL; | |
3895 | } | |
3896 | } | |
3897 | { | |
3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3899 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3900 | ||
3901 | wxPyEndAllowThreads(__tstate); | |
3902 | if (PyErr_Occurred()) return NULL; | |
3903 | } Py_INCREF(Py_None); | |
3904 | _resultobj = Py_None; | |
3905 | return _resultobj; | |
3906 | } | |
3907 | ||
3908 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) | |
3909 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject * _resultobj; | |
3911 | wxWindow * _arg0; | |
3912 | PyObject * _argo0 = 0; | |
3913 | char *_kwnames[] = { "self", NULL }; | |
3914 | ||
3915 | self = self; | |
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) | |
3917 | return NULL; | |
3918 | if (_argo0) { | |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); | |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
3925 | { | |
3926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3927 | wxWindow_SetFocus(_arg0); | |
3928 | ||
3929 | wxPyEndAllowThreads(__tstate); | |
3930 | if (PyErr_Occurred()) return NULL; | |
3931 | } Py_INCREF(Py_None); | |
3932 | _resultobj = Py_None; | |
3933 | return _resultobj; | |
3934 | } | |
3935 | ||
3936 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) | |
3937 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject * _resultobj; | |
3939 | bool _result; | |
3940 | wxWindow * _arg0; | |
3941 | PyObject * _argo0 = 0; | |
3942 | char *_kwnames[] = { "self", NULL }; | |
3943 | ||
3944 | self = self; | |
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3946 | return NULL; | |
3947 | if (_argo0) { | |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3951 | return NULL; | |
3952 | } | |
3953 | } | |
3954 | { | |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) return NULL; | |
3960 | } _resultobj = Py_BuildValue("i",_result); | |
3961 | return _resultobj; | |
3962 | } | |
3963 | ||
3964 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
3965 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject * _resultobj; | |
3967 | wxWindow * _arg0; | |
3968 | wxFont * _arg1; | |
3969 | PyObject * _argo0 = 0; | |
3970 | PyObject * _argo1 = 0; | |
3971 | char *_kwnames[] = { "self","font", NULL }; | |
3972 | ||
3973 | self = self; | |
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) | |
3975 | return NULL; | |
3976 | if (_argo0) { | |
3977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); | |
3980 | return NULL; | |
3981 | } | |
3982 | } | |
3983 | if (_argo1) { | |
3984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
3986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); | |
3987 | return NULL; | |
3988 | } | |
3989 | } | |
3990 | { | |
3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3992 | wxWindow_SetFont(_arg0,*_arg1); | |
3993 | ||
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) return NULL; | |
3996 | } Py_INCREF(Py_None); | |
3997 | _resultobj = Py_None; | |
3998 | return _resultobj; | |
3999 | } | |
4000 | ||
4001 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
4002 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4003 | PyObject * _resultobj; | |
4004 | wxWindow * _arg0; | |
4005 | wxColour * _arg1; | |
4006 | PyObject * _argo0 = 0; | |
4007 | wxColour temp; | |
4008 | PyObject * _obj1 = 0; | |
4009 | char *_kwnames[] = { "self","colour", NULL }; | |
4010 | ||
4011 | self = self; | |
4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
4013 | return NULL; | |
4014 | if (_argo0) { | |
4015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); | |
4018 | return NULL; | |
4019 | } | |
4020 | } | |
4021 | { | |
4022 | _arg1 = &temp; | |
4023 | if (! wxColour_helper(_obj1, &_arg1)) | |
4024 | return NULL; | |
4025 | } | |
4026 | { | |
4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4028 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
4029 | ||
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) return NULL; | |
4032 | } Py_INCREF(Py_None); | |
4033 | _resultobj = Py_None; | |
4034 | return _resultobj; | |
4035 | } | |
4036 | ||
4037 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
4038 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4039 | PyObject * _resultobj; | |
4040 | wxWindow * _arg0; | |
4041 | int _arg1; | |
4042 | PyObject * _argo0 = 0; | |
4043 | char *_kwnames[] = { "self","id", NULL }; | |
4044 | ||
4045 | self = self; | |
4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) | |
4047 | return NULL; | |
4048 | if (_argo0) { | |
4049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); | |
4052 | return NULL; | |
4053 | } | |
4054 | } | |
4055 | { | |
4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4057 | wxWindow_SetId(_arg0,_arg1); | |
4058 | ||
4059 | wxPyEndAllowThreads(__tstate); | |
4060 | if (PyErr_Occurred()) return NULL; | |
4061 | } Py_INCREF(Py_None); | |
4062 | _resultobj = Py_None; | |
4063 | return _resultobj; | |
4064 | } | |
4065 | ||
4066 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
4067 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject * _resultobj; | |
4069 | wxWindow * _arg0; | |
4070 | wxString * _arg1; | |
4071 | PyObject * _argo0 = 0; | |
4072 | PyObject * _obj1 = 0; | |
4073 | char *_kwnames[] = { "self","name", NULL }; | |
4074 | ||
4075 | self = self; | |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) | |
4077 | return NULL; | |
4078 | if (_argo0) { | |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); | |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
4085 | { | |
4086 | #if PYTHON_API_VERSION >= 1009 | |
4087 | char* tmpPtr; int tmpSize; | |
4088 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4090 | return NULL; | |
4091 | } | |
4092 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4093 | return NULL; | |
4094 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4095 | #else | |
4096 | if (!PyString_Check(_obj1)) { | |
4097 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4098 | return NULL; | |
4099 | } | |
4100 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4101 | #endif | |
4102 | } | |
4103 | { | |
4104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4105 | wxWindow_SetName(_arg0,*_arg1); | |
4106 | ||
4107 | wxPyEndAllowThreads(__tstate); | |
4108 | if (PyErr_Occurred()) return NULL; | |
4109 | } Py_INCREF(Py_None); | |
4110 | _resultobj = Py_None; | |
4111 | { | |
4112 | if (_obj1) | |
4113 | delete _arg1; | |
4114 | } | |
4115 | return _resultobj; | |
4116 | } | |
4117 | ||
4118 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4119 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120 | PyObject * _resultobj; | |
4121 | wxWindow * _arg0; | |
4122 | int _arg1; | |
4123 | int _arg2; | |
4124 | int _arg3; | |
4125 | int _arg4; | |
4126 | int _arg5 = (int ) TRUE; | |
4127 | PyObject * _argo0 = 0; | |
4128 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; | |
4129 | ||
4130 | self = self; | |
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4132 | return NULL; | |
4133 | if (_argo0) { | |
4134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); | |
4137 | return NULL; | |
4138 | } | |
4139 | } | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) return NULL; | |
4146 | } Py_INCREF(Py_None); | |
4147 | _resultobj = Py_None; | |
4148 | return _resultobj; | |
4149 | } | |
4150 | ||
4151 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
4152 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4153 | PyObject * _resultobj; | |
4154 | wxWindow * _arg0; | |
4155 | int _arg1; | |
4156 | int _arg2; | |
4157 | bool _arg3 = (bool ) TRUE; | |
4158 | PyObject * _argo0 = 0; | |
4159 | int tempbool3 = (int) TRUE; | |
4160 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; | |
4161 | ||
4162 | self = self; | |
4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
4164 | return NULL; | |
4165 | if (_argo0) { | |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); | |
4169 | return NULL; | |
4170 | } | |
4171 | } | |
4172 | _arg3 = (bool ) tempbool3; | |
4173 | { | |
4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4175 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4176 | ||
4177 | wxPyEndAllowThreads(__tstate); | |
4178 | if (PyErr_Occurred()) return NULL; | |
4179 | } Py_INCREF(Py_None); | |
4180 | _resultobj = Py_None; | |
4181 | return _resultobj; | |
4182 | } | |
4183 | ||
4184 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4185 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject * _resultobj; | |
4187 | wxWindow * _arg0; | |
4188 | int _arg1; | |
4189 | int _arg2; | |
4190 | int _arg3; | |
4191 | int _arg4; | |
4192 | int _arg5 = (int ) wxSIZE_AUTO; | |
4193 | PyObject * _argo0 = 0; | |
4194 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
4195 | ||
4196 | self = self; | |
4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4198 | return NULL; | |
4199 | if (_argo0) { | |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); | |
4203 | return NULL; | |
4204 | } | |
4205 | } | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) return NULL; | |
4212 | } Py_INCREF(Py_None); | |
4213 | _resultobj = Py_None; | |
4214 | return _resultobj; | |
4215 | } | |
4216 | ||
4217 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
4218 | self->SetSize(size); | |
4219 | } | |
4220 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject * _resultobj; | |
4222 | wxWindow * _arg0; | |
4223 | wxSize * _arg1; | |
4224 | PyObject * _argo0 = 0; | |
4225 | wxSize temp; | |
4226 | PyObject * _obj1 = 0; | |
4227 | char *_kwnames[] = { "self","size", NULL }; | |
4228 | ||
4229 | self = self; | |
4230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) | |
4231 | return NULL; | |
4232 | if (_argo0) { | |
4233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); | |
4236 | return NULL; | |
4237 | } | |
4238 | } | |
4239 | { | |
4240 | _arg1 = &temp; | |
4241 | if (! wxSize_helper(_obj1, &_arg1)) | |
4242 | return NULL; | |
4243 | } | |
4244 | { | |
4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4246 | wxWindow_SetSize(_arg0,*_arg1); | |
4247 | ||
4248 | wxPyEndAllowThreads(__tstate); | |
4249 | if (PyErr_Occurred()) return NULL; | |
4250 | } Py_INCREF(Py_None); | |
4251 | _resultobj = Py_None; | |
4252 | return _resultobj; | |
4253 | } | |
4254 | ||
4255 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
4256 | self->Move(pos); | |
4257 | } | |
4258 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4259 | PyObject * _resultobj; | |
4260 | wxWindow * _arg0; | |
4261 | wxPoint * _arg1; | |
4262 | PyObject * _argo0 = 0; | |
4263 | wxPoint temp; | |
4264 | PyObject * _obj1 = 0; | |
4265 | char *_kwnames[] = { "self","pos", NULL }; | |
4266 | ||
4267 | self = self; | |
4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) | |
4269 | return NULL; | |
4270 | if (_argo0) { | |
4271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); | |
4274 | return NULL; | |
4275 | } | |
4276 | } | |
4277 | { | |
4278 | _arg1 = &temp; | |
4279 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4280 | return NULL; | |
4281 | } | |
4282 | { | |
4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4284 | wxWindow_SetPosition(_arg0,*_arg1); | |
4285 | ||
4286 | wxPyEndAllowThreads(__tstate); | |
4287 | if (PyErr_Occurred()) return NULL; | |
4288 | } Py_INCREF(Py_None); | |
4289 | _resultobj = Py_None; | |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
4293 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { | |
4294 | self->SetSize(rect, sizeFlags); | |
4295 | } | |
4296 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject * _resultobj; | |
4298 | wxWindow * _arg0; | |
4299 | wxRect * _arg1; | |
4300 | int _arg2 = (int ) wxSIZE_AUTO; | |
4301 | PyObject * _argo0 = 0; | |
4302 | wxRect temp; | |
4303 | PyObject * _obj1 = 0; | |
4304 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4305 | ||
4306 | self = self; | |
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4308 | return NULL; | |
4309 | if (_argo0) { | |
4310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
4316 | { | |
4317 | _arg1 = &temp; | |
4318 | if (! wxRect_helper(_obj1, &_arg1)) | |
4319 | return NULL; | |
4320 | } | |
4321 | { | |
4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4323 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4324 | ||
4325 | wxPyEndAllowThreads(__tstate); | |
4326 | if (PyErr_Occurred()) return NULL; | |
4327 | } Py_INCREF(Py_None); | |
4328 | _resultobj = Py_None; | |
4329 | return _resultobj; | |
4330 | } | |
4331 | ||
4332 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4333 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4334 | PyObject * _resultobj; | |
4335 | wxWindow * _arg0; | |
4336 | int _arg1 = (int ) -1; | |
4337 | int _arg2 = (int ) -1; | |
4338 | int _arg3 = (int ) -1; | |
4339 | int _arg4 = (int ) -1; | |
4340 | int _arg5 = (int ) -1; | |
4341 | int _arg6 = (int ) -1; | |
4342 | PyObject * _argo0 = 0; | |
4343 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; | |
4344 | ||
4345 | self = self; | |
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4347 | return NULL; | |
4348 | if (_argo0) { | |
4349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); | |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
4355 | { | |
4356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4357 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4358 | ||
4359 | wxPyEndAllowThreads(__tstate); | |
4360 | if (PyErr_Occurred()) return NULL; | |
4361 | } Py_INCREF(Py_None); | |
4362 | _resultobj = Py_None; | |
4363 | return _resultobj; | |
4364 | } | |
4365 | ||
4366 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) | |
4367 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4368 | PyObject * _resultobj; | |
4369 | wxWindow * _arg0; | |
4370 | int _arg1; | |
4371 | int _arg2; | |
4372 | PyObject * _argo0 = 0; | |
4373 | char *_kwnames[] = { "self","width","height", NULL }; | |
4374 | ||
4375 | self = self; | |
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4377 | return NULL; | |
4378 | if (_argo0) { | |
4379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); | |
4382 | return NULL; | |
4383 | } | |
4384 | } | |
4385 | { | |
4386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4387 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4388 | ||
4389 | wxPyEndAllowThreads(__tstate); | |
4390 | if (PyErr_Occurred()) return NULL; | |
4391 | } Py_INCREF(Py_None); | |
4392 | _resultobj = Py_None; | |
4393 | return _resultobj; | |
4394 | } | |
4395 | ||
4396 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
4397 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4398 | PyObject * _resultobj; | |
4399 | wxWindow * _arg0; | |
4400 | wxSize * _arg1; | |
4401 | PyObject * _argo0 = 0; | |
4402 | wxSize temp; | |
4403 | PyObject * _obj1 = 0; | |
4404 | char *_kwnames[] = { "self","size", NULL }; | |
4405 | ||
4406 | self = self; | |
4407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) | |
4408 | return NULL; | |
4409 | if (_argo0) { | |
4410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); | |
4413 | return NULL; | |
4414 | } | |
4415 | } | |
4416 | { | |
4417 | _arg1 = &temp; | |
4418 | if (! wxSize_helper(_obj1, &_arg1)) | |
4419 | return NULL; | |
4420 | } | |
4421 | { | |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4424 | ||
4425 | wxPyEndAllowThreads(__tstate); | |
4426 | if (PyErr_Occurred()) return NULL; | |
4427 | } Py_INCREF(Py_None); | |
4428 | _resultobj = Py_None; | |
4429 | return _resultobj; | |
4430 | } | |
4431 | ||
4432 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
4433 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject * _resultobj; | |
4435 | wxWindow * _arg0; | |
4436 | wxCursor * _arg1; | |
4437 | PyObject * _argo0 = 0; | |
4438 | PyObject * _argo1 = 0; | |
4439 | char *_kwnames[] = { "self","cursor", NULL }; | |
4440 | ||
4441 | self = self; | |
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) | |
4443 | return NULL; | |
4444 | if (_argo0) { | |
4445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); | |
4448 | return NULL; | |
4449 | } | |
4450 | } | |
4451 | if (_argo1) { | |
4452 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4453 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
4454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); | |
4455 | return NULL; | |
4456 | } | |
4457 | } | |
4458 | { | |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | wxWindow_SetCursor(_arg0,*_arg1); | |
4461 | ||
4462 | wxPyEndAllowThreads(__tstate); | |
4463 | if (PyErr_Occurred()) return NULL; | |
4464 | } Py_INCREF(Py_None); | |
4465 | _resultobj = Py_None; | |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
4469 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
4470 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject * _resultobj; | |
4472 | wxWindow * _arg0; | |
4473 | wxEvtHandler * _arg1; | |
4474 | PyObject * _argo0 = 0; | |
4475 | PyObject * _argo1 = 0; | |
4476 | char *_kwnames[] = { "self","handler", NULL }; | |
4477 | ||
4478 | self = self; | |
4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4480 | return NULL; | |
4481 | if (_argo0) { | |
4482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4485 | return NULL; | |
4486 | } | |
4487 | } | |
4488 | if (_argo1) { | |
4489 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4490 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4492 | return NULL; | |
4493 | } | |
4494 | } | |
4495 | { | |
4496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4497 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4498 | ||
4499 | wxPyEndAllowThreads(__tstate); | |
4500 | if (PyErr_Occurred()) return NULL; | |
4501 | } Py_INCREF(Py_None); | |
4502 | _resultobj = Py_None; | |
4503 | return _resultobj; | |
4504 | } | |
4505 | ||
4506 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) | |
4507 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject * _resultobj; | |
4509 | wxWindow * _arg0; | |
4510 | long _arg1; | |
4511 | PyObject * _argo0 = 0; | |
4512 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4513 | ||
4514 | self = self; | |
4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4516 | return NULL; | |
4517 | if (_argo0) { | |
4518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4521 | return NULL; | |
4522 | } | |
4523 | } | |
4524 | { | |
4525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4526 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4527 | ||
4528 | wxPyEndAllowThreads(__tstate); | |
4529 | if (PyErr_Occurred()) return NULL; | |
4530 | } Py_INCREF(Py_None); | |
4531 | _resultobj = Py_None; | |
4532 | return _resultobj; | |
4533 | } | |
4534 | ||
4535 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
4536 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4537 | PyObject * _resultobj; | |
4538 | wxWindow * _arg0; | |
4539 | wxString * _arg1; | |
4540 | PyObject * _argo0 = 0; | |
4541 | PyObject * _obj1 = 0; | |
4542 | char *_kwnames[] = { "self","title", NULL }; | |
4543 | ||
4544 | self = self; | |
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) | |
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_SetTitle. Expected _wxWindow_p."); | |
4551 | return NULL; | |
4552 | } | |
4553 | } | |
4554 | { | |
4555 | #if PYTHON_API_VERSION >= 1009 | |
4556 | char* tmpPtr; int tmpSize; | |
4557 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4559 | return NULL; | |
4560 | } | |
4561 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4562 | return NULL; | |
4563 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4564 | #else | |
4565 | if (!PyString_Check(_obj1)) { | |
4566 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4567 | return NULL; | |
4568 | } | |
4569 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4570 | #endif | |
4571 | } | |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | wxWindow_SetTitle(_arg0,*_arg1); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) return NULL; | |
4578 | } Py_INCREF(Py_None); | |
4579 | _resultobj = Py_None; | |
4580 | { | |
4581 | if (_obj1) | |
4582 | delete _arg1; | |
4583 | } | |
4584 | return _resultobj; | |
4585 | } | |
4586 | ||
4587 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
4588 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4589 | PyObject * _resultobj; | |
4590 | bool _result; | |
4591 | wxWindow * _arg0; | |
4592 | bool _arg1 = (bool ) TRUE; | |
4593 | PyObject * _argo0 = 0; | |
4594 | int tempbool1 = (int) TRUE; | |
4595 | char *_kwnames[] = { "self","show", NULL }; | |
4596 | ||
4597 | self = self; | |
4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
4599 | return NULL; | |
4600 | if (_argo0) { | |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); | |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
4607 | _arg1 = (bool ) tempbool1; | |
4608 | { | |
4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4610 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4611 | ||
4612 | wxPyEndAllowThreads(__tstate); | |
4613 | if (PyErr_Occurred()) return NULL; | |
4614 | } _resultobj = Py_BuildValue("i",_result); | |
4615 | return _resultobj; | |
4616 | } | |
4617 | ||
4618 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
4619 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject * _resultobj; | |
4621 | bool _result; | |
4622 | wxWindow * _arg0; | |
4623 | PyObject * _argo0 = 0; | |
4624 | char *_kwnames[] = { "self", NULL }; | |
4625 | ||
4626 | self = self; | |
4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) | |
4628 | return NULL; | |
4629 | if (_argo0) { | |
4630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); | |
4633 | return NULL; | |
4634 | } | |
4635 | } | |
4636 | { | |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4638 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4639 | ||
4640 | wxPyEndAllowThreads(__tstate); | |
4641 | if (PyErr_Occurred()) return NULL; | |
4642 | } _resultobj = Py_BuildValue("i",_result); | |
4643 | return _resultobj; | |
4644 | } | |
4645 | ||
4646 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
4647 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4648 | PyObject * _resultobj; | |
4649 | bool _result; | |
4650 | wxWindow * _arg0; | |
4651 | PyObject * _argo0 = 0; | |
4652 | char *_kwnames[] = { "self", NULL }; | |
4653 | ||
4654 | self = self; | |
4655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) | |
4656 | return NULL; | |
4657 | if (_argo0) { | |
4658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); | |
4661 | return NULL; | |
4662 | } | |
4663 | } | |
4664 | { | |
4665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4666 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4667 | ||
4668 | wxPyEndAllowThreads(__tstate); | |
4669 | if (PyErr_Occurred()) return NULL; | |
4670 | } _resultobj = Py_BuildValue("i",_result); | |
4671 | return _resultobj; | |
4672 | } | |
4673 | ||
4674 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
4675 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4676 | PyObject * _resultobj; | |
4677 | bool _result; | |
4678 | wxWindow * _arg0; | |
4679 | PyObject * _argo0 = 0; | |
4680 | char *_kwnames[] = { "self", NULL }; | |
4681 | ||
4682 | self = self; | |
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) | |
4684 | return NULL; | |
4685 | if (_argo0) { | |
4686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); | |
4689 | return NULL; | |
4690 | } | |
4691 | } | |
4692 | { | |
4693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4694 | _result = (bool )wxWindow_Validate(_arg0); | |
4695 | ||
4696 | wxPyEndAllowThreads(__tstate); | |
4697 | if (PyErr_Occurred()) return NULL; | |
4698 | } _resultobj = Py_BuildValue("i",_result); | |
4699 | return _resultobj; | |
4700 | } | |
4701 | ||
4702 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
4703 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4704 | PyObject * _resultobj; | |
4705 | wxWindow * _arg0; | |
4706 | int _arg1; | |
4707 | int _arg2; | |
4708 | PyObject * _argo0 = 0; | |
4709 | char *_kwnames[] = { "self","x","y", NULL }; | |
4710 | ||
4711 | self = self; | |
4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4713 | return NULL; | |
4714 | if (_argo0) { | |
4715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
4718 | return NULL; | |
4719 | } | |
4720 | } | |
4721 | { | |
4722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4723 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4724 | ||
4725 | wxPyEndAllowThreads(__tstate); | |
4726 | if (PyErr_Occurred()) return NULL; | |
4727 | } Py_INCREF(Py_None); | |
4728 | _resultobj = Py_None; | |
4729 | return _resultobj; | |
4730 | } | |
4731 | ||
4732 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4733 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4734 | PyObject * _resultobj; | |
4735 | wxPoint * _result; | |
4736 | wxWindow * _arg0; | |
4737 | wxPoint * _arg1; | |
4738 | PyObject * _argo0 = 0; | |
4739 | wxPoint temp; | |
4740 | PyObject * _obj1 = 0; | |
4741 | char *_kwnames[] = { "self","pt", NULL }; | |
4742 | char _ptemp[128]; | |
4743 | ||
4744 | self = self; | |
4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) | |
4746 | return NULL; | |
4747 | if (_argo0) { | |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); | |
4751 | return NULL; | |
4752 | } | |
4753 | } | |
4754 | { | |
4755 | _arg1 = &temp; | |
4756 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4757 | return NULL; | |
4758 | } | |
4759 | { | |
4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4761 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4762 | ||
4763 | wxPyEndAllowThreads(__tstate); | |
4764 | if (PyErr_Occurred()) return NULL; | |
4765 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4766 | _resultobj = Py_BuildValue("s",_ptemp); | |
4767 | return _resultobj; | |
4768 | } | |
4769 | ||
4770 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4771 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4772 | PyObject * _resultobj; | |
4773 | wxSize * _result; | |
4774 | wxWindow * _arg0; | |
4775 | wxSize * _arg1; | |
4776 | PyObject * _argo0 = 0; | |
4777 | wxSize temp; | |
4778 | PyObject * _obj1 = 0; | |
4779 | char *_kwnames[] = { "self","sz", NULL }; | |
4780 | char _ptemp[128]; | |
4781 | ||
4782 | self = self; | |
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) | |
4784 | return NULL; | |
4785 | if (_argo0) { | |
4786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); | |
4789 | return NULL; | |
4790 | } | |
4791 | } | |
4792 | { | |
4793 | _arg1 = &temp; | |
4794 | if (! wxSize_helper(_obj1, &_arg1)) | |
4795 | return NULL; | |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) return NULL; | |
4803 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4804 | _resultobj = Py_BuildValue("s",_ptemp); | |
4805 | return _resultobj; | |
4806 | } | |
4807 | ||
4808 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4809 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4810 | PyObject * _resultobj; | |
4811 | wxPoint * _result; | |
4812 | wxWindow * _arg0; | |
4813 | wxPoint * _arg1; | |
4814 | PyObject * _argo0 = 0; | |
4815 | wxPoint temp; | |
4816 | PyObject * _obj1 = 0; | |
4817 | char *_kwnames[] = { "self","pt", NULL }; | |
4818 | char _ptemp[128]; | |
4819 | ||
4820 | self = self; | |
4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) | |
4822 | return NULL; | |
4823 | if (_argo0) { | |
4824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); | |
4827 | return NULL; | |
4828 | } | |
4829 | } | |
4830 | { | |
4831 | _arg1 = &temp; | |
4832 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4833 | return NULL; | |
4834 | } | |
4835 | { | |
4836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4837 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4838 | ||
4839 | wxPyEndAllowThreads(__tstate); | |
4840 | if (PyErr_Occurred()) return NULL; | |
4841 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4842 | _resultobj = Py_BuildValue("s",_ptemp); | |
4843 | return _resultobj; | |
4844 | } | |
4845 | ||
4846 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4847 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4848 | PyObject * _resultobj; | |
4849 | wxSize * _result; | |
4850 | wxWindow * _arg0; | |
4851 | wxSize * _arg1; | |
4852 | PyObject * _argo0 = 0; | |
4853 | wxSize temp; | |
4854 | PyObject * _obj1 = 0; | |
4855 | char *_kwnames[] = { "self","sz", NULL }; | |
4856 | char _ptemp[128]; | |
4857 | ||
4858 | self = self; | |
4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) | |
4860 | return NULL; | |
4861 | if (_argo0) { | |
4862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); | |
4865 | return NULL; | |
4866 | } | |
4867 | } | |
4868 | { | |
4869 | _arg1 = &temp; | |
4870 | if (! wxSize_helper(_obj1, &_arg1)) | |
4871 | return NULL; | |
4872 | } | |
4873 | { | |
4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4875 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4876 | ||
4877 | wxPyEndAllowThreads(__tstate); | |
4878 | if (PyErr_Occurred()) return NULL; | |
4879 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4880 | _resultobj = Py_BuildValue("s",_ptemp); | |
4881 | return _resultobj; | |
4882 | } | |
4883 | ||
4884 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4885 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | wxWindow * _arg0; | |
4888 | wxString * _arg1; | |
4889 | PyObject * _argo0 = 0; | |
4890 | PyObject * _obj1 = 0; | |
4891 | char *_kwnames[] = { "self","tip", NULL }; | |
4892 | ||
4893 | self = self; | |
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) | |
4895 | return NULL; | |
4896 | if (_argo0) { | |
4897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); | |
4900 | return NULL; | |
4901 | } | |
4902 | } | |
4903 | { | |
4904 | #if PYTHON_API_VERSION >= 1009 | |
4905 | char* tmpPtr; int tmpSize; | |
4906 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
4907 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4908 | return NULL; | |
4909 | } | |
4910 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
4911 | return NULL; | |
4912 | _arg1 = new wxString(tmpPtr, tmpSize); | |
4913 | #else | |
4914 | if (!PyString_Check(_obj1)) { | |
4915 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4916 | return NULL; | |
4917 | } | |
4918 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
4919 | #endif | |
4920 | } | |
4921 | { | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) return NULL; | |
4927 | } Py_INCREF(Py_None); | |
4928 | _resultobj = Py_None; | |
4929 | { | |
4930 | if (_obj1) | |
4931 | delete _arg1; | |
4932 | } | |
4933 | return _resultobj; | |
4934 | } | |
4935 | ||
4936 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
4937 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4938 | PyObject * _resultobj; | |
4939 | wxWindow * _arg0; | |
4940 | wxToolTip * _arg1; | |
4941 | PyObject * _argo0 = 0; | |
4942 | PyObject * _argo1 = 0; | |
4943 | char *_kwnames[] = { "self","tooltip", NULL }; | |
4944 | ||
4945 | self = self; | |
4946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) | |
4947 | return NULL; | |
4948 | if (_argo0) { | |
4949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); | |
4952 | return NULL; | |
4953 | } | |
4954 | } | |
4955 | if (_argo1) { | |
4956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); | |
4959 | return NULL; | |
4960 | } | |
4961 | } | |
4962 | { | |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | wxWindow_SetToolTip(_arg0,_arg1); | |
4965 | ||
4966 | wxPyEndAllowThreads(__tstate); | |
4967 | if (PyErr_Occurred()) return NULL; | |
4968 | } Py_INCREF(Py_None); | |
4969 | _resultobj = Py_None; | |
4970 | return _resultobj; | |
4971 | } | |
4972 | ||
4973 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
4974 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4975 | PyObject * _resultobj; | |
4976 | wxToolTip * _result; | |
4977 | wxWindow * _arg0; | |
4978 | PyObject * _argo0 = 0; | |
4979 | char *_kwnames[] = { "self", NULL }; | |
4980 | ||
4981 | self = self; | |
4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) | |
4983 | return NULL; | |
4984 | if (_argo0) { | |
4985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); | |
4988 | return NULL; | |
4989 | } | |
4990 | } | |
4991 | { | |
4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4993 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4994 | ||
4995 | wxPyEndAllowThreads(__tstate); | |
4996 | if (PyErr_Occurred()) return NULL; | |
4997 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4998 | return _resultobj; | |
4999 | } | |
5000 | ||
5001 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) | |
5002 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject * _resultobj; | |
5004 | wxWindow * _arg0; | |
5005 | wxSizer * _arg1; | |
5006 | PyObject * _argo0 = 0; | |
5007 | PyObject * _argo1 = 0; | |
5008 | char *_kwnames[] = { "self","sizer", NULL }; | |
5009 | ||
5010 | self = self; | |
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
5012 | return NULL; | |
5013 | if (_argo0) { | |
5014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5017 | return NULL; | |
5018 | } | |
5019 | } | |
5020 | if (_argo1) { | |
5021 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5022 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5024 | return NULL; | |
5025 | } | |
5026 | } | |
5027 | { | |
5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5029 | wxWindow_SetSizer(_arg0,_arg1); | |
5030 | ||
5031 | wxPyEndAllowThreads(__tstate); | |
5032 | if (PyErr_Occurred()) return NULL; | |
5033 | } Py_INCREF(Py_None); | |
5034 | _resultobj = Py_None; | |
5035 | return _resultobj; | |
5036 | } | |
5037 | ||
5038 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) | |
5039 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5040 | PyObject * _resultobj; | |
5041 | wxSizer * _result; | |
5042 | wxWindow * _arg0; | |
5043 | PyObject * _argo0 = 0; | |
5044 | char *_kwnames[] = { "self", NULL }; | |
5045 | ||
5046 | self = self; | |
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5048 | return NULL; | |
5049 | if (_argo0) { | |
5050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5053 | return NULL; | |
5054 | } | |
5055 | } | |
5056 | { | |
5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5058 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
5059 | ||
5060 | wxPyEndAllowThreads(__tstate); | |
5061 | if (PyErr_Occurred()) return NULL; | |
5062 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5063 | return _resultobj; | |
5064 | } | |
5065 | ||
5066 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
5067 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5068 | PyObject * _resultobj; | |
5069 | wxValidator * _result; | |
5070 | wxWindow * _arg0; | |
5071 | PyObject * _argo0 = 0; | |
5072 | char *_kwnames[] = { "self", NULL }; | |
5073 | ||
5074 | self = self; | |
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5076 | return NULL; | |
5077 | if (_argo0) { | |
5078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5086 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5087 | ||
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) return NULL; | |
5090 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5091 | return _resultobj; | |
5092 | } | |
5093 | ||
5094 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5095 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject * _resultobj; | |
5097 | wxWindow * _arg0; | |
5098 | wxValidator * _arg1; | |
5099 | PyObject * _argo0 = 0; | |
5100 | PyObject * _argo1 = 0; | |
5101 | char *_kwnames[] = { "self","validator", NULL }; | |
5102 | ||
5103 | self = self; | |
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5105 | return NULL; | |
5106 | if (_argo0) { | |
5107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5110 | return NULL; | |
5111 | } | |
5112 | } | |
5113 | if (_argo1) { | |
5114 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5115 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5117 | return NULL; | |
5118 | } | |
5119 | } | |
5120 | { | |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | wxWindow_SetValidator(_arg0,*_arg1); | |
5123 | ||
5124 | wxPyEndAllowThreads(__tstate); | |
5125 | if (PyErr_Occurred()) return NULL; | |
5126 | } Py_INCREF(Py_None); | |
5127 | _resultobj = Py_None; | |
5128 | return _resultobj; | |
5129 | } | |
5130 | ||
5131 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) | |
5132 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxWindow * _arg0; | |
5135 | wxDropTarget * _arg1; | |
5136 | PyObject * _argo0 = 0; | |
5137 | PyObject * _argo1 = 0; | |
5138 | char *_kwnames[] = { "self","target", NULL }; | |
5139 | ||
5140 | self = self; | |
5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5142 | return NULL; | |
5143 | if (_argo0) { | |
5144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5147 | return NULL; | |
5148 | } | |
5149 | } | |
5150 | if (_argo1) { | |
5151 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5152 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5154 | return NULL; | |
5155 | } | |
5156 | } | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5159 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5160 | ||
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) return NULL; | |
5163 | } Py_INCREF(Py_None); | |
5164 | _resultobj = Py_None; | |
5165 | return _resultobj; | |
5166 | } | |
5167 | ||
5168 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5169 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject * _resultobj; | |
5171 | wxDropTarget * _result; | |
5172 | wxWindow * _arg0; | |
5173 | PyObject * _argo0 = 0; | |
5174 | char *_kwnames[] = { "self", NULL }; | |
5175 | char _ptemp[128]; | |
5176 | ||
5177 | self = self; | |
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5179 | return NULL; | |
5180 | if (_argo0) { | |
5181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5184 | return NULL; | |
5185 | } | |
5186 | } | |
5187 | { | |
5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5189 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5190 | ||
5191 | wxPyEndAllowThreads(__tstate); | |
5192 | if (PyErr_Occurred()) return NULL; | |
5193 | } if (_result) { | |
5194 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5195 | _resultobj = Py_BuildValue("s",_ptemp); | |
5196 | } else { | |
5197 | Py_INCREF(Py_None); | |
5198 | _resultobj = Py_None; | |
5199 | } | |
5200 | return _resultobj; | |
5201 | } | |
5202 | ||
5203 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) | |
5204 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5205 | PyObject * _resultobj; | |
5206 | wxSize * _result; | |
5207 | wxWindow * _arg0; | |
5208 | PyObject * _argo0 = 0; | |
5209 | char *_kwnames[] = { "self", NULL }; | |
5210 | char _ptemp[128]; | |
5211 | ||
5212 | self = self; | |
5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5214 | return NULL; | |
5215 | if (_argo0) { | |
5216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5219 | return NULL; | |
5220 | } | |
5221 | } | |
5222 | { | |
5223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5224 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5225 | ||
5226 | wxPyEndAllowThreads(__tstate); | |
5227 | if (PyErr_Occurred()) return NULL; | |
5228 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5229 | _resultobj = Py_BuildValue("s",_ptemp); | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
5233 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) | |
5234 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxWindow * _arg0; | |
5237 | wxCaret * _arg1; | |
5238 | PyObject * _argo0 = 0; | |
5239 | PyObject * _argo1 = 0; | |
5240 | char *_kwnames[] = { "self","caret", NULL }; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5244 | return NULL; | |
5245 | if (_argo0) { | |
5246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | if (_argo1) { | |
5253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5256 | return NULL; | |
5257 | } | |
5258 | } | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | wxWindow_SetCaret(_arg0,_arg1); | |
5262 | ||
5263 | wxPyEndAllowThreads(__tstate); | |
5264 | if (PyErr_Occurred()) return NULL; | |
5265 | } Py_INCREF(Py_None); | |
5266 | _resultobj = Py_None; | |
5267 | return _resultobj; | |
5268 | } | |
5269 | ||
5270 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5271 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject * _resultobj; | |
5273 | wxCaret * _result; | |
5274 | wxWindow * _arg0; | |
5275 | PyObject * _argo0 = 0; | |
5276 | char *_kwnames[] = { "self", NULL }; | |
5277 | char _ptemp[128]; | |
5278 | ||
5279 | self = self; | |
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5281 | return NULL; | |
5282 | if (_argo0) { | |
5283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5286 | return NULL; | |
5287 | } | |
5288 | } | |
5289 | { | |
5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5291 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5292 | ||
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) return NULL; | |
5295 | } if (_result) { | |
5296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5297 | _resultobj = Py_BuildValue("s",_ptemp); | |
5298 | } else { | |
5299 | Py_INCREF(Py_None); | |
5300 | _resultobj = Py_None; | |
5301 | } | |
5302 | return _resultobj; | |
5303 | } | |
5304 | ||
5305 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) | |
5306 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5307 | PyObject * _resultobj; | |
5308 | wxWindow * _arg0; | |
5309 | PyObject * _argo0 = 0; | |
5310 | char *_kwnames[] = { "self", NULL }; | |
5311 | ||
5312 | self = self; | |
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5314 | return NULL; | |
5315 | if (_argo0) { | |
5316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5319 | return NULL; | |
5320 | } | |
5321 | } | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | wxWindow_Freeze(_arg0); | |
5325 | ||
5326 | wxPyEndAllowThreads(__tstate); | |
5327 | if (PyErr_Occurred()) return NULL; | |
5328 | } Py_INCREF(Py_None); | |
5329 | _resultobj = Py_None; | |
5330 | return _resultobj; | |
5331 | } | |
5332 | ||
5333 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5334 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5335 | PyObject * _resultobj; | |
5336 | wxWindow * _arg0; | |
5337 | PyObject * _argo0 = 0; | |
5338 | char *_kwnames[] = { "self", NULL }; | |
5339 | ||
5340 | self = self; | |
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5342 | return NULL; | |
5343 | if (_argo0) { | |
5344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5347 | return NULL; | |
5348 | } | |
5349 | } | |
5350 | { | |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | wxWindow_Thaw(_arg0); | |
5353 | ||
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) return NULL; | |
5356 | } Py_INCREF(Py_None); | |
5357 | _resultobj = Py_None; | |
5358 | return _resultobj; | |
5359 | } | |
5360 | ||
5361 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) | |
5362 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5363 | PyObject * _resultobj; | |
5364 | wxWindow * _arg0; | |
5365 | PyObject * _argo0 = 0; | |
5366 | char *_kwnames[] = { "self", NULL }; | |
5367 | ||
5368 | self = self; | |
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5370 | return NULL; | |
5371 | if (_argo0) { | |
5372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5375 | return NULL; | |
5376 | } | |
5377 | } | |
5378 | { | |
5379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5380 | wxWindow_Update(_arg0); | |
5381 | ||
5382 | wxPyEndAllowThreads(__tstate); | |
5383 | if (PyErr_Occurred()) return NULL; | |
5384 | } Py_INCREF(Py_None); | |
5385 | _resultobj = Py_None; | |
5386 | return _resultobj; | |
5387 | } | |
5388 | ||
5389 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) | |
5390 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject * _resultobj; | |
5392 | wxString * _result; | |
5393 | wxWindow * _arg0; | |
5394 | PyObject * _argo0 = 0; | |
5395 | char *_kwnames[] = { "self", NULL }; | |
5396 | ||
5397 | self = self; | |
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5399 | return NULL; | |
5400 | if (_argo0) { | |
5401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
5407 | { | |
5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5409 | _result = new wxString (wxWindow_GetHelpText(_arg0)); | |
5410 | ||
5411 | wxPyEndAllowThreads(__tstate); | |
5412 | if (PyErr_Occurred()) return NULL; | |
5413 | }{ | |
5414 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5415 | } | |
5416 | { | |
5417 | delete _result; | |
5418 | } | |
5419 | return _resultobj; | |
5420 | } | |
5421 | ||
5422 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5423 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject * _resultobj; | |
5425 | wxWindow * _arg0; | |
5426 | wxString * _arg1; | |
5427 | PyObject * _argo0 = 0; | |
5428 | PyObject * _obj1 = 0; | |
5429 | char *_kwnames[] = { "self","helpText", NULL }; | |
5430 | ||
5431 | self = self; | |
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5433 | return NULL; | |
5434 | if (_argo0) { | |
5435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5438 | return NULL; | |
5439 | } | |
5440 | } | |
5441 | { | |
5442 | #if PYTHON_API_VERSION >= 1009 | |
5443 | char* tmpPtr; int tmpSize; | |
5444 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
5445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5446 | return NULL; | |
5447 | } | |
5448 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
5449 | return NULL; | |
5450 | _arg1 = new wxString(tmpPtr, tmpSize); | |
5451 | #else | |
5452 | if (!PyString_Check(_obj1)) { | |
5453 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5454 | return NULL; | |
5455 | } | |
5456 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
5457 | #endif | |
5458 | } | |
5459 | { | |
5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5461 | wxWindow_SetHelpText(_arg0,*_arg1); | |
5462 | ||
5463 | wxPyEndAllowThreads(__tstate); | |
5464 | if (PyErr_Occurred()) return NULL; | |
5465 | } Py_INCREF(Py_None); | |
5466 | _resultobj = Py_None; | |
5467 | { | |
5468 | if (_obj1) | |
5469 | delete _arg1; | |
5470 | } | |
5471 | return _resultobj; | |
5472 | } | |
5473 | ||
5474 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) | |
5475 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5476 | PyObject * _resultobj; | |
5477 | bool _result; | |
5478 | wxWindow * _arg0; | |
5479 | int _arg1; | |
5480 | PyObject * _argo0 = 0; | |
5481 | char *_kwnames[] = { "self","lines", NULL }; | |
5482 | ||
5483 | self = self; | |
5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5485 | return NULL; | |
5486 | if (_argo0) { | |
5487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5495 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); | |
5496 | ||
5497 | wxPyEndAllowThreads(__tstate); | |
5498 | if (PyErr_Occurred()) return NULL; | |
5499 | } _resultobj = Py_BuildValue("i",_result); | |
5500 | return _resultobj; | |
5501 | } | |
5502 | ||
5503 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5504 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5505 | PyObject * _resultobj; | |
5506 | bool _result; | |
5507 | wxWindow * _arg0; | |
5508 | int _arg1; | |
5509 | PyObject * _argo0 = 0; | |
5510 | char *_kwnames[] = { "self","pages", NULL }; | |
5511 | ||
5512 | self = self; | |
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5514 | return NULL; | |
5515 | if (_argo0) { | |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
5522 | { | |
5523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5524 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); | |
5525 | ||
5526 | wxPyEndAllowThreads(__tstate); | |
5527 | if (PyErr_Occurred()) return NULL; | |
5528 | } _resultobj = Py_BuildValue("i",_result); | |
5529 | return _resultobj; | |
5530 | } | |
5531 | ||
5532 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5533 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5534 | PyObject * _resultobj; | |
5535 | bool _result; | |
5536 | wxWindow * _arg0; | |
5537 | PyObject * _argo0 = 0; | |
5538 | char *_kwnames[] = { "self", NULL }; | |
5539 | ||
5540 | self = self; | |
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5542 | return NULL; | |
5543 | if (_argo0) { | |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
5550 | { | |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | _result = (bool )wxWindow_LineUp(_arg0); | |
5553 | ||
5554 | wxPyEndAllowThreads(__tstate); | |
5555 | if (PyErr_Occurred()) return NULL; | |
5556 | } _resultobj = Py_BuildValue("i",_result); | |
5557 | return _resultobj; | |
5558 | } | |
5559 | ||
5560 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5561 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject * _resultobj; | |
5563 | bool _result; | |
5564 | wxWindow * _arg0; | |
5565 | PyObject * _argo0 = 0; | |
5566 | char *_kwnames[] = { "self", NULL }; | |
5567 | ||
5568 | self = self; | |
5569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5570 | return NULL; | |
5571 | if (_argo0) { | |
5572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5575 | return NULL; | |
5576 | } | |
5577 | } | |
5578 | { | |
5579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5580 | _result = (bool )wxWindow_LineDown(_arg0); | |
5581 | ||
5582 | wxPyEndAllowThreads(__tstate); | |
5583 | if (PyErr_Occurred()) return NULL; | |
5584 | } _resultobj = Py_BuildValue("i",_result); | |
5585 | return _resultobj; | |
5586 | } | |
5587 | ||
5588 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5589 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5590 | PyObject * _resultobj; | |
5591 | bool _result; | |
5592 | wxWindow * _arg0; | |
5593 | PyObject * _argo0 = 0; | |
5594 | char *_kwnames[] = { "self", NULL }; | |
5595 | ||
5596 | self = self; | |
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5598 | return NULL; | |
5599 | if (_argo0) { | |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5608 | _result = (bool )wxWindow_PageUp(_arg0); | |
5609 | ||
5610 | wxPyEndAllowThreads(__tstate); | |
5611 | if (PyErr_Occurred()) return NULL; | |
5612 | } _resultobj = Py_BuildValue("i",_result); | |
5613 | return _resultobj; | |
5614 | } | |
5615 | ||
5616 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5617 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject * _resultobj; | |
5619 | bool _result; | |
5620 | wxWindow * _arg0; | |
5621 | PyObject * _argo0 = 0; | |
5622 | char *_kwnames[] = { "self", NULL }; | |
5623 | ||
5624 | self = self; | |
5625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5626 | return NULL; | |
5627 | if (_argo0) { | |
5628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5631 | return NULL; | |
5632 | } | |
5633 | } | |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | _result = (bool )wxWindow_PageDown(_arg0); | |
5637 | ||
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) return NULL; | |
5640 | } _resultobj = Py_BuildValue("i",_result); | |
5641 | return _resultobj; | |
5642 | } | |
5643 | ||
5644 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5645 | PyObject * _resultobj; | |
5646 | wxWindow * _result; | |
5647 | char *_kwnames[] = { NULL }; | |
5648 | ||
5649 | self = self; | |
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5651 | return NULL; | |
5652 | { | |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5654 | _result = (wxWindow *)wxWindow::FindFocus(); | |
5655 | ||
5656 | wxPyEndAllowThreads(__tstate); | |
5657 | if (PyErr_Occurred()) return NULL; | |
5658 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5659 | return _resultobj; | |
5660 | } | |
5661 | ||
5662 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | int _result; | |
5665 | char *_kwnames[] = { NULL }; | |
5666 | ||
5667 | self = self; | |
5668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5669 | return NULL; | |
5670 | { | |
5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5672 | _result = (int )wxWindow::NewControlId(); | |
5673 | ||
5674 | wxPyEndAllowThreads(__tstate); | |
5675 | if (PyErr_Occurred()) return NULL; | |
5676 | } _resultobj = Py_BuildValue("i",_result); | |
5677 | return _resultobj; | |
5678 | } | |
5679 | ||
5680 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5681 | PyObject * _resultobj; | |
5682 | int _result; | |
5683 | int _arg0; | |
5684 | char *_kwnames[] = { "id", NULL }; | |
5685 | ||
5686 | self = self; | |
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5688 | return NULL; | |
5689 | { | |
5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5691 | _result = (int )wxWindow::NextControlId(_arg0); | |
5692 | ||
5693 | wxPyEndAllowThreads(__tstate); | |
5694 | if (PyErr_Occurred()) return NULL; | |
5695 | } _resultobj = Py_BuildValue("i",_result); | |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
5699 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | int _result; | |
5702 | int _arg0; | |
5703 | char *_kwnames[] = { "id", NULL }; | |
5704 | ||
5705 | self = self; | |
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5707 | return NULL; | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | _result = (int )wxWindow::PrevControlId(_arg0); | |
5711 | ||
5712 | wxPyEndAllowThreads(__tstate); | |
5713 | if (PyErr_Occurred()) return NULL; | |
5714 | } _resultobj = Py_BuildValue("i",_result); | |
5715 | return _resultobj; | |
5716 | } | |
5717 | ||
5718 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) | |
5719 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject * _resultobj; | |
5721 | wxWindow * _arg0; | |
5722 | wxAcceleratorTable * _arg1; | |
5723 | PyObject * _argo0 = 0; | |
5724 | PyObject * _argo1 = 0; | |
5725 | char *_kwnames[] = { "self","accel", NULL }; | |
5726 | ||
5727 | self = self; | |
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5729 | return NULL; | |
5730 | if (_argo0) { | |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | if (_argo1) { | |
5738 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5739 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5741 | return NULL; | |
5742 | } | |
5743 | } | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) return NULL; | |
5750 | } Py_INCREF(Py_None); | |
5751 | _resultobj = Py_None; | |
5752 | return _resultobj; | |
5753 | } | |
5754 | ||
5755 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) | |
5756 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5757 | PyObject * _resultobj; | |
5758 | wxAcceleratorTable * _result; | |
5759 | wxWindow * _arg0; | |
5760 | PyObject * _argo0 = 0; | |
5761 | char *_kwnames[] = { "self", NULL }; | |
5762 | char _ptemp[128]; | |
5763 | ||
5764 | self = self; | |
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5766 | return NULL; | |
5767 | if (_argo0) { | |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5771 | return NULL; | |
5772 | } | |
5773 | } | |
5774 | { | |
5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5776 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); | |
5777 | ||
5778 | wxPyEndAllowThreads(__tstate); | |
5779 | if (PyErr_Occurred()) return NULL; | |
5780 | } if (_result) { | |
5781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
5782 | _resultobj = Py_BuildValue("s",_ptemp); | |
5783 | } else { | |
5784 | Py_INCREF(Py_None); | |
5785 | _resultobj = Py_None; | |
5786 | } | |
5787 | return _resultobj; | |
5788 | } | |
5789 | ||
5790 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) | |
5791 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject * _resultobj; | |
5793 | wxWindow * _arg0; | |
5794 | wxPaintEvent * _arg1; | |
5795 | PyObject * _argo0 = 0; | |
5796 | PyObject * _argo1 = 0; | |
5797 | char *_kwnames[] = { "self","event", NULL }; | |
5798 | ||
5799 | self = self; | |
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) | |
5801 | return NULL; | |
5802 | if (_argo0) { | |
5803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); | |
5806 | return NULL; | |
5807 | } | |
5808 | } | |
5809 | if (_argo1) { | |
5810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
5812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); | |
5813 | return NULL; | |
5814 | } | |
5815 | } | |
5816 | { | |
5817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5818 | wxWindow_OnPaint(_arg0,*_arg1); | |
5819 | ||
5820 | wxPyEndAllowThreads(__tstate); | |
5821 | if (PyErr_Occurred()) return NULL; | |
5822 | } Py_INCREF(Py_None); | |
5823 | _resultobj = Py_None; | |
5824 | return _resultobj; | |
5825 | } | |
5826 | ||
5827 | static void *SwigwxPanelTowxWindow(void *ptr) { | |
5828 | wxPanel *src; | |
5829 | wxWindow *dest; | |
5830 | src = (wxPanel *) ptr; | |
5831 | dest = (wxWindow *) src; | |
5832 | return (void *) dest; | |
5833 | } | |
5834 | ||
5835 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
5836 | wxPanel *src; | |
5837 | wxEvtHandler *dest; | |
5838 | src = (wxPanel *) ptr; | |
5839 | dest = (wxEvtHandler *) src; | |
5840 | return (void *) dest; | |
5841 | } | |
5842 | ||
5843 | static void *SwigwxPanelTowxObject(void *ptr) { | |
5844 | wxPanel *src; | |
5845 | wxObject *dest; | |
5846 | src = (wxPanel *) ptr; | |
5847 | dest = (wxObject *) src; | |
5848 | return (void *) dest; | |
5849 | } | |
5850 | ||
5851 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5852 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5853 | PyObject * _resultobj; | |
5854 | wxPanel * _result; | |
5855 | wxWindow * _arg0; | |
5856 | wxWindowID _arg1; | |
5857 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5858 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5859 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
5860 | char * _arg5 = (char *) "panel"; | |
5861 | PyObject * _argo0 = 0; | |
5862 | wxPoint temp; | |
5863 | PyObject * _obj2 = 0; | |
5864 | wxSize temp0; | |
5865 | PyObject * _obj3 = 0; | |
5866 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
5867 | char _ptemp[128]; | |
5868 | ||
5869 | self = self; | |
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
5871 | return NULL; | |
5872 | if (_argo0) { | |
5873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); | |
5876 | return NULL; | |
5877 | } | |
5878 | } | |
5879 | if (_obj2) | |
5880 | { | |
5881 | _arg2 = &temp; | |
5882 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5883 | return NULL; | |
5884 | } | |
5885 | if (_obj3) | |
5886 | { | |
5887 | _arg3 = &temp0; | |
5888 | if (! wxSize_helper(_obj3, &_arg3)) | |
5889 | return NULL; | |
5890 | } | |
5891 | { | |
5892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5893 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
5894 | ||
5895 | wxPyEndAllowThreads(__tstate); | |
5896 | if (PyErr_Occurred()) return NULL; | |
5897 | } if (_result) { | |
5898 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5899 | _resultobj = Py_BuildValue("s",_ptemp); | |
5900 | } else { | |
5901 | Py_INCREF(Py_None); | |
5902 | _resultobj = Py_None; | |
5903 | } | |
5904 | return _resultobj; | |
5905 | } | |
5906 | ||
5907 | #define new_wxPrePanel() (new wxPanel()) | |
5908 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5909 | PyObject * _resultobj; | |
5910 | wxPanel * _result; | |
5911 | char *_kwnames[] = { NULL }; | |
5912 | char _ptemp[128]; | |
5913 | ||
5914 | self = self; | |
5915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
5916 | return NULL; | |
5917 | { | |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | _result = (wxPanel *)new_wxPrePanel(); | |
5920 | ||
5921 | wxPyEndAllowThreads(__tstate); | |
5922 | if (PyErr_Occurred()) return NULL; | |
5923 | } if (_result) { | |
5924 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
5925 | _resultobj = Py_BuildValue("s",_ptemp); | |
5926 | } else { | |
5927 | Py_INCREF(Py_None); | |
5928 | _resultobj = Py_None; | |
5929 | } | |
5930 | return _resultobj; | |
5931 | } | |
5932 | ||
5933 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5934 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5935 | PyObject * _resultobj; | |
5936 | bool _result; | |
5937 | wxPanel * _arg0; | |
5938 | wxWindow * _arg1; | |
5939 | wxWindowID _arg2; | |
5940 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5941 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5942 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
5943 | char * _arg6 = (char *) "panel"; | |
5944 | PyObject * _argo0 = 0; | |
5945 | PyObject * _argo1 = 0; | |
5946 | wxPoint temp; | |
5947 | PyObject * _obj3 = 0; | |
5948 | wxSize temp0; | |
5949 | PyObject * _obj4 = 0; | |
5950 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | if (_argo1) { | |
5963 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | if (_obj3) | |
5970 | { | |
5971 | _arg3 = &temp; | |
5972 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5973 | return NULL; | |
5974 | } | |
5975 | if (_obj4) | |
5976 | { | |
5977 | _arg4 = &temp0; | |
5978 | if (! wxSize_helper(_obj4, &_arg4)) | |
5979 | return NULL; | |
5980 | } | |
5981 | { | |
5982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5983 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
5984 | ||
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) return NULL; | |
5987 | } _resultobj = Py_BuildValue("i",_result); | |
5988 | return _resultobj; | |
5989 | } | |
5990 | ||
5991 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
5992 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5993 | PyObject * _resultobj; | |
5994 | wxPanel * _arg0; | |
5995 | PyObject * _argo0 = 0; | |
5996 | char *_kwnames[] = { "self", NULL }; | |
5997 | ||
5998 | self = self; | |
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) | |
6000 | return NULL; | |
6001 | if (_argo0) { | |
6002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); | |
6005 | return NULL; | |
6006 | } | |
6007 | } | |
6008 | { | |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | wxPanel_InitDialog(_arg0); | |
6011 | ||
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) return NULL; | |
6014 | } Py_INCREF(Py_None); | |
6015 | _resultobj = Py_None; | |
6016 | return _resultobj; | |
6017 | } | |
6018 | ||
6019 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) | |
6020 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6021 | PyObject * _resultobj; | |
6022 | wxButton * _result; | |
6023 | wxPanel * _arg0; | |
6024 | PyObject * _argo0 = 0; | |
6025 | char *_kwnames[] = { "self", NULL }; | |
6026 | ||
6027 | self = self; | |
6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) | |
6029 | return NULL; | |
6030 | if (_argo0) { | |
6031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); | |
6034 | return NULL; | |
6035 | } | |
6036 | } | |
6037 | { | |
6038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6039 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
6040 | ||
6041 | wxPyEndAllowThreads(__tstate); | |
6042 | if (PyErr_Occurred()) return NULL; | |
6043 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6044 | return _resultobj; | |
6045 | } | |
6046 | ||
6047 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6048 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6049 | PyObject * _resultobj; | |
6050 | wxPanel * _arg0; | |
6051 | wxButton * _arg1; | |
6052 | PyObject * _argo0 = 0; | |
6053 | PyObject * _argo1 = 0; | |
6054 | char *_kwnames[] = { "self","btn", NULL }; | |
6055 | ||
6056 | self = self; | |
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6058 | return NULL; | |
6059 | if (_argo0) { | |
6060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); | |
6063 | return NULL; | |
6064 | } | |
6065 | } | |
6066 | if (_argo1) { | |
6067 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6068 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
6069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); | |
6070 | return NULL; | |
6071 | } | |
6072 | } | |
6073 | { | |
6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6075 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
6076 | ||
6077 | wxPyEndAllowThreads(__tstate); | |
6078 | if (PyErr_Occurred()) return NULL; | |
6079 | } Py_INCREF(Py_None); | |
6080 | _resultobj = Py_None; | |
6081 | return _resultobj; | |
6082 | } | |
6083 | ||
6084 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
6085 | wxScrolledWindow *src; | |
6086 | wxPanel *dest; | |
6087 | src = (wxScrolledWindow *) ptr; | |
6088 | dest = (wxPanel *) src; | |
6089 | return (void *) dest; | |
6090 | } | |
6091 | ||
6092 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { | |
6093 | wxScrolledWindow *src; | |
6094 | wxWindow *dest; | |
6095 | src = (wxScrolledWindow *) ptr; | |
6096 | dest = (wxWindow *) src; | |
6097 | return (void *) dest; | |
6098 | } | |
6099 | ||
6100 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6101 | wxScrolledWindow *src; | |
6102 | wxEvtHandler *dest; | |
6103 | src = (wxScrolledWindow *) ptr; | |
6104 | dest = (wxEvtHandler *) src; | |
6105 | return (void *) dest; | |
6106 | } | |
6107 | ||
6108 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { | |
6109 | wxScrolledWindow *src; | |
6110 | wxObject *dest; | |
6111 | src = (wxScrolledWindow *) ptr; | |
6112 | dest = (wxObject *) src; | |
6113 | return (void *) dest; | |
6114 | } | |
6115 | ||
6116 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6117 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject * _resultobj; | |
6119 | wxScrolledWindow * _result; | |
6120 | wxWindow * _arg0; | |
6121 | wxWindowID _arg1 = (wxWindowID ) -1; | |
6122 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6123 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6124 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
6125 | char * _arg5 = (char *) "scrolledWindow"; | |
6126 | PyObject * _argo0 = 0; | |
6127 | wxPoint temp; | |
6128 | PyObject * _obj2 = 0; | |
6129 | wxSize temp0; | |
6130 | PyObject * _obj3 = 0; | |
6131 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
6132 | char _ptemp[128]; | |
6133 | ||
6134 | self = self; | |
6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) | |
6136 | return NULL; | |
6137 | if (_argo0) { | |
6138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); | |
6141 | return NULL; | |
6142 | } | |
6143 | } | |
6144 | if (_obj2) | |
6145 | { | |
6146 | _arg2 = &temp; | |
6147 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6148 | return NULL; | |
6149 | } | |
6150 | if (_obj3) | |
6151 | { | |
6152 | _arg3 = &temp0; | |
6153 | if (! wxSize_helper(_obj3, &_arg3)) | |
6154 | return NULL; | |
6155 | } | |
6156 | { | |
6157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6158 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
6159 | ||
6160 | wxPyEndAllowThreads(__tstate); | |
6161 | if (PyErr_Occurred()) return NULL; | |
6162 | } if (_result) { | |
6163 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6164 | _resultobj = Py_BuildValue("s",_ptemp); | |
6165 | } else { | |
6166 | Py_INCREF(Py_None); | |
6167 | _resultobj = Py_None; | |
6168 | } | |
6169 | return _resultobj; | |
6170 | } | |
6171 | ||
6172 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) | |
6173 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject * _resultobj; | |
6175 | wxScrolledWindow * _result; | |
6176 | char *_kwnames[] = { NULL }; | |
6177 | char _ptemp[128]; | |
6178 | ||
6179 | self = self; | |
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6181 | return NULL; | |
6182 | { | |
6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6184 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); | |
6185 | ||
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) return NULL; | |
6188 | } if (_result) { | |
6189 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6190 | _resultobj = Py_BuildValue("s",_ptemp); | |
6191 | } else { | |
6192 | Py_INCREF(Py_None); | |
6193 | _resultobj = Py_None; | |
6194 | } | |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6199 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject * _resultobj; | |
6201 | bool _result; | |
6202 | wxScrolledWindow * _arg0; | |
6203 | wxWindow * _arg1; | |
6204 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6205 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6206 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6207 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6208 | char * _arg6 = (char *) "scrolledWindow"; | |
6209 | PyObject * _argo0 = 0; | |
6210 | PyObject * _argo1 = 0; | |
6211 | wxPoint temp; | |
6212 | PyObject * _obj3 = 0; | |
6213 | wxSize temp0; | |
6214 | PyObject * _obj4 = 0; | |
6215 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6216 | ||
6217 | self = self; | |
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6219 | return NULL; | |
6220 | if (_argo0) { | |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | if (_argo1) { | |
6228 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | if (_obj3) | |
6235 | { | |
6236 | _arg3 = &temp; | |
6237 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6238 | return NULL; | |
6239 | } | |
6240 | if (_obj4) | |
6241 | { | |
6242 | _arg4 = &temp0; | |
6243 | if (! wxSize_helper(_obj4, &_arg4)) | |
6244 | return NULL; | |
6245 | } | |
6246 | { | |
6247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6248 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
6249 | ||
6250 | wxPyEndAllowThreads(__tstate); | |
6251 | if (PyErr_Occurred()) return NULL; | |
6252 | } _resultobj = Py_BuildValue("i",_result); | |
6253 | return _resultobj; | |
6254 | } | |
6255 | ||
6256 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
6257 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6258 | PyObject * _resultobj; | |
6259 | wxScrolledWindow * _arg0; | |
6260 | bool _arg1; | |
6261 | bool _arg2; | |
6262 | PyObject * _argo0 = 0; | |
6263 | int tempbool1; | |
6264 | int tempbool2; | |
6265 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; | |
6266 | ||
6267 | self = self; | |
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
6269 | return NULL; | |
6270 | if (_argo0) { | |
6271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); | |
6274 | return NULL; | |
6275 | } | |
6276 | } | |
6277 | _arg1 = (bool ) tempbool1; | |
6278 | _arg2 = (bool ) tempbool2; | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) return NULL; | |
6285 | } Py_INCREF(Py_None); | |
6286 | _resultobj = Py_None; | |
6287 | return _resultobj; | |
6288 | } | |
6289 | ||
6290 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) | |
6291 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject * _resultobj; | |
6293 | int _result; | |
6294 | wxScrolledWindow * _arg0; | |
6295 | int _arg1; | |
6296 | PyObject * _argo0 = 0; | |
6297 | char *_kwnames[] = { "self","orient", NULL }; | |
6298 | ||
6299 | self = self; | |
6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6301 | return NULL; | |
6302 | if (_argo0) { | |
6303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6306 | return NULL; | |
6307 | } | |
6308 | } | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) return NULL; | |
6315 | } _resultobj = Py_BuildValue("i",_result); | |
6316 | return _resultobj; | |
6317 | } | |
6318 | ||
6319 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
6320 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6321 | PyObject * _resultobj; | |
6322 | wxScrolledWindow * _arg0; | |
6323 | int * _arg1; | |
6324 | int temp; | |
6325 | int * _arg2; | |
6326 | int temp0; | |
6327 | PyObject * _argo0 = 0; | |
6328 | char *_kwnames[] = { "self", NULL }; | |
6329 | ||
6330 | self = self; | |
6331 | { | |
6332 | _arg1 = &temp; | |
6333 | } | |
6334 | { | |
6335 | _arg2 = &temp0; | |
6336 | } | |
6337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) | |
6338 | return NULL; | |
6339 | if (_argo0) { | |
6340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); | |
6343 | return NULL; | |
6344 | } | |
6345 | } | |
6346 | { | |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6349 | ||
6350 | wxPyEndAllowThreads(__tstate); | |
6351 | if (PyErr_Occurred()) return NULL; | |
6352 | } Py_INCREF(Py_None); | |
6353 | _resultobj = Py_None; | |
6354 | { | |
6355 | PyObject *o; | |
6356 | o = PyInt_FromLong((long) (*_arg1)); | |
6357 | _resultobj = t_output_helper(_resultobj, o); | |
6358 | } | |
6359 | { | |
6360 | PyObject *o; | |
6361 | o = PyInt_FromLong((long) (*_arg2)); | |
6362 | _resultobj = t_output_helper(_resultobj, o); | |
6363 | } | |
6364 | return _resultobj; | |
6365 | } | |
6366 | ||
6367 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) | |
6368 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject * _resultobj; | |
6370 | wxWindow * _result; | |
6371 | wxScrolledWindow * _arg0; | |
6372 | PyObject * _argo0 = 0; | |
6373 | char *_kwnames[] = { "self", NULL }; | |
6374 | ||
6375 | self = self; | |
6376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6377 | return NULL; | |
6378 | if (_argo0) { | |
6379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6382 | return NULL; | |
6383 | } | |
6384 | } | |
6385 | { | |
6386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6387 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6388 | ||
6389 | wxPyEndAllowThreads(__tstate); | |
6390 | if (PyErr_Occurred()) return NULL; | |
6391 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6392 | return _resultobj; | |
6393 | } | |
6394 | ||
6395 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
6396 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6397 | PyObject * _resultobj; | |
6398 | wxScrolledWindow * _arg0; | |
6399 | int * _arg1; | |
6400 | int temp; | |
6401 | int * _arg2; | |
6402 | int temp0; | |
6403 | PyObject * _argo0 = 0; | |
6404 | char *_kwnames[] = { "self", NULL }; | |
6405 | ||
6406 | self = self; | |
6407 | { | |
6408 | _arg1 = &temp; | |
6409 | } | |
6410 | { | |
6411 | _arg2 = &temp0; | |
6412 | } | |
6413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) | |
6414 | return NULL; | |
6415 | if (_argo0) { | |
6416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); | |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
6422 | { | |
6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6424 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6425 | ||
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) return NULL; | |
6428 | } Py_INCREF(Py_None); | |
6429 | _resultobj = Py_None; | |
6430 | { | |
6431 | PyObject *o; | |
6432 | o = PyInt_FromLong((long) (*_arg1)); | |
6433 | _resultobj = t_output_helper(_resultobj, o); | |
6434 | } | |
6435 | { | |
6436 | PyObject *o; | |
6437 | o = PyInt_FromLong((long) (*_arg2)); | |
6438 | _resultobj = t_output_helper(_resultobj, o); | |
6439 | } | |
6440 | return _resultobj; | |
6441 | } | |
6442 | ||
6443 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
6444 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject * _resultobj; | |
6446 | bool _result; | |
6447 | wxScrolledWindow * _arg0; | |
6448 | PyObject * _argo0 = 0; | |
6449 | char *_kwnames[] = { "self", NULL }; | |
6450 | ||
6451 | self = self; | |
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) | |
6453 | return NULL; | |
6454 | if (_argo0) { | |
6455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); | |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6464 | ||
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) return NULL; | |
6467 | } _resultobj = Py_BuildValue("i",_result); | |
6468 | return _resultobj; | |
6469 | } | |
6470 | ||
6471 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
6472 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6473 | PyObject * _resultobj; | |
6474 | wxScrolledWindow * _arg0; | |
6475 | wxDC * _arg1; | |
6476 | PyObject * _argo0 = 0; | |
6477 | PyObject * _argo1 = 0; | |
6478 | char *_kwnames[] = { "self","dc", NULL }; | |
6479 | ||
6480 | self = self; | |
6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) | |
6482 | return NULL; | |
6483 | if (_argo0) { | |
6484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); | |
6487 | return NULL; | |
6488 | } | |
6489 | } | |
6490 | if (_argo1) { | |
6491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); | |
6494 | return NULL; | |
6495 | } | |
6496 | } | |
6497 | { | |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6499 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
6502 | if (PyErr_Occurred()) return NULL; | |
6503 | } Py_INCREF(Py_None); | |
6504 | _resultobj = Py_None; | |
6505 | return _resultobj; | |
6506 | } | |
6507 | ||
6508 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
6509 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6510 | PyObject * _resultobj; | |
6511 | wxScrolledWindow * _arg0; | |
6512 | int _arg1; | |
6513 | int _arg2; | |
6514 | PyObject * _argo0 = 0; | |
6515 | char *_kwnames[] = { "self","x","y", NULL }; | |
6516 | ||
6517 | self = self; | |
6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6519 | return NULL; | |
6520 | if (_argo0) { | |
6521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); | |
6524 | return NULL; | |
6525 | } | |
6526 | } | |
6527 | { | |
6528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6529 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6530 | ||
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) return NULL; | |
6533 | } Py_INCREF(Py_None); | |
6534 | _resultobj = Py_None; | |
6535 | return _resultobj; | |
6536 | } | |
6537 | ||
6538 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6539 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject * _resultobj; | |
6541 | wxScrolledWindow * _arg0; | |
6542 | int _arg1; | |
6543 | int _arg2; | |
6544 | int _arg3; | |
6545 | int _arg4; | |
6546 | int _arg5 = (int ) 0; | |
6547 | int _arg6 = (int ) 0; | |
6548 | int _arg7 = (int ) FALSE; | |
6549 | PyObject * _argo0 = 0; | |
6550 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; | |
6551 | ||
6552 | self = self; | |
6553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
6554 | return NULL; | |
6555 | if (_argo0) { | |
6556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); | |
6559 | return NULL; | |
6560 | } | |
6561 | } | |
6562 | { | |
6563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6564 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
6565 | ||
6566 | wxPyEndAllowThreads(__tstate); | |
6567 | if (PyErr_Occurred()) return NULL; | |
6568 | } Py_INCREF(Py_None); | |
6569 | _resultobj = Py_None; | |
6570 | return _resultobj; | |
6571 | } | |
6572 | ||
6573 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) | |
6574 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject * _resultobj; | |
6576 | wxScrolledWindow * _arg0; | |
6577 | int _arg1; | |
6578 | int _arg2; | |
6579 | PyObject * _argo0 = 0; | |
6580 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6581 | ||
6582 | self = self; | |
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6584 | return NULL; | |
6585 | if (_argo0) { | |
6586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6589 | return NULL; | |
6590 | } | |
6591 | } | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) return NULL; | |
6598 | } Py_INCREF(Py_None); | |
6599 | _resultobj = Py_None; | |
6600 | return _resultobj; | |
6601 | } | |
6602 | ||
6603 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) | |
6604 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject * _resultobj; | |
6606 | wxScrolledWindow * _arg0; | |
6607 | wxWindow * _arg1; | |
6608 | PyObject * _argo0 = 0; | |
6609 | PyObject * _argo1 = 0; | |
6610 | char *_kwnames[] = { "self","window", NULL }; | |
6611 | ||
6612 | self = self; | |
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6614 | return NULL; | |
6615 | if (_argo0) { | |
6616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6619 | return NULL; | |
6620 | } | |
6621 | } | |
6622 | if (_argo1) { | |
6623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6626 | return NULL; | |
6627 | } | |
6628 | } | |
6629 | { | |
6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6631 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) return NULL; | |
6635 | } Py_INCREF(Py_None); | |
6636 | _resultobj = Py_None; | |
6637 | return _resultobj; | |
6638 | } | |
6639 | ||
6640 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) | |
6641 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject * _resultobj; | |
6643 | wxScrolledWindow * _arg0; | |
6644 | int * _arg1; | |
6645 | int temp; | |
6646 | int * _arg2; | |
6647 | int temp0; | |
6648 | PyObject * _argo0 = 0; | |
6649 | char *_kwnames[] = { "self", NULL }; | |
6650 | ||
6651 | self = self; | |
6652 | { | |
6653 | _arg1 = &temp; | |
6654 | } | |
6655 | { | |
6656 | _arg2 = &temp0; | |
6657 | } | |
6658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6659 | return NULL; | |
6660 | if (_argo0) { | |
6661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6664 | return NULL; | |
6665 | } | |
6666 | } | |
6667 | { | |
6668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6669 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6670 | ||
6671 | wxPyEndAllowThreads(__tstate); | |
6672 | if (PyErr_Occurred()) return NULL; | |
6673 | } Py_INCREF(Py_None); | |
6674 | _resultobj = Py_None; | |
6675 | { | |
6676 | PyObject *o; | |
6677 | o = PyInt_FromLong((long) (*_arg1)); | |
6678 | _resultobj = t_output_helper(_resultobj, o); | |
6679 | } | |
6680 | { | |
6681 | PyObject *o; | |
6682 | o = PyInt_FromLong((long) (*_arg2)); | |
6683 | _resultobj = t_output_helper(_resultobj, o); | |
6684 | } | |
6685 | return _resultobj; | |
6686 | } | |
6687 | ||
6688 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6689 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject * _resultobj; | |
6691 | wxScrolledWindow * _arg0; | |
6692 | int _arg1; | |
6693 | int _arg2; | |
6694 | int * _arg3; | |
6695 | int temp; | |
6696 | int * _arg4; | |
6697 | int temp0; | |
6698 | PyObject * _argo0 = 0; | |
6699 | char *_kwnames[] = { "self","x","y", NULL }; | |
6700 | ||
6701 | self = self; | |
6702 | { | |
6703 | _arg3 = &temp; | |
6704 | } | |
6705 | { | |
6706 | _arg4 = &temp0; | |
6707 | } | |
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6709 | return NULL; | |
6710 | if (_argo0) { | |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
6714 | return NULL; | |
6715 | } | |
6716 | } | |
6717 | { | |
6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6719 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6720 | ||
6721 | wxPyEndAllowThreads(__tstate); | |
6722 | if (PyErr_Occurred()) return NULL; | |
6723 | } Py_INCREF(Py_None); | |
6724 | _resultobj = Py_None; | |
6725 | { | |
6726 | PyObject *o; | |
6727 | o = PyInt_FromLong((long) (*_arg3)); | |
6728 | _resultobj = t_output_helper(_resultobj, o); | |
6729 | } | |
6730 | { | |
6731 | PyObject *o; | |
6732 | o = PyInt_FromLong((long) (*_arg4)); | |
6733 | _resultobj = t_output_helper(_resultobj, o); | |
6734 | } | |
6735 | return _resultobj; | |
6736 | } | |
6737 | ||
6738 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6739 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6740 | PyObject * _resultobj; | |
6741 | wxScrolledWindow * _arg0; | |
6742 | int _arg1; | |
6743 | int _arg2; | |
6744 | int * _arg3; | |
6745 | int temp; | |
6746 | int * _arg4; | |
6747 | int temp0; | |
6748 | PyObject * _argo0 = 0; | |
6749 | char *_kwnames[] = { "self","x","y", NULL }; | |
6750 | ||
6751 | self = self; | |
6752 | { | |
6753 | _arg3 = &temp; | |
6754 | } | |
6755 | { | |
6756 | _arg4 = &temp0; | |
6757 | } | |
6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6759 | return NULL; | |
6760 | if (_argo0) { | |
6761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
6764 | return NULL; | |
6765 | } | |
6766 | } | |
6767 | { | |
6768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6769 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
6770 | ||
6771 | wxPyEndAllowThreads(__tstate); | |
6772 | if (PyErr_Occurred()) return NULL; | |
6773 | } Py_INCREF(Py_None); | |
6774 | _resultobj = Py_None; | |
6775 | { | |
6776 | PyObject *o; | |
6777 | o = PyInt_FromLong((long) (*_arg3)); | |
6778 | _resultobj = t_output_helper(_resultobj, o); | |
6779 | } | |
6780 | { | |
6781 | PyObject *o; | |
6782 | o = PyInt_FromLong((long) (*_arg4)); | |
6783 | _resultobj = t_output_helper(_resultobj, o); | |
6784 | } | |
6785 | return _resultobj; | |
6786 | } | |
6787 | ||
6788 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) | |
6789 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject * _resultobj; | |
6791 | wxScrolledWindow * _arg0; | |
6792 | double _arg1; | |
6793 | double _arg2; | |
6794 | PyObject * _argo0 = 0; | |
6795 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
6796 | ||
6797 | self = self; | |
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6799 | return NULL; | |
6800 | if (_argo0) { | |
6801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
6804 | return NULL; | |
6805 | } | |
6806 | } | |
6807 | { | |
6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6809 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
6810 | ||
6811 | wxPyEndAllowThreads(__tstate); | |
6812 | if (PyErr_Occurred()) return NULL; | |
6813 | } Py_INCREF(Py_None); | |
6814 | _resultobj = Py_None; | |
6815 | return _resultobj; | |
6816 | } | |
6817 | ||
6818 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
6819 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject * _resultobj; | |
6821 | double _result; | |
6822 | wxScrolledWindow * _arg0; | |
6823 | PyObject * _argo0 = 0; | |
6824 | char *_kwnames[] = { "self", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | { | |
6837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6838 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
6839 | ||
6840 | wxPyEndAllowThreads(__tstate); | |
6841 | if (PyErr_Occurred()) return NULL; | |
6842 | } _resultobj = Py_BuildValue("d",_result); | |
6843 | return _resultobj; | |
6844 | } | |
6845 | ||
6846 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
6847 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject * _resultobj; | |
6849 | double _result; | |
6850 | wxScrolledWindow * _arg0; | |
6851 | PyObject * _argo0 = 0; | |
6852 | char *_kwnames[] = { "self", NULL }; | |
6853 | ||
6854 | self = self; | |
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
6856 | return NULL; | |
6857 | if (_argo0) { | |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
6864 | { | |
6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6866 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
6867 | ||
6868 | wxPyEndAllowThreads(__tstate); | |
6869 | if (PyErr_Occurred()) return NULL; | |
6870 | } _resultobj = Py_BuildValue("d",_result); | |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
6875 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | wxScrolledWindow * _arg0; | |
6878 | PyObject * _argo0 = 0; | |
6879 | char *_kwnames[] = { "self", NULL }; | |
6880 | ||
6881 | self = self; | |
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
6883 | return NULL; | |
6884 | if (_argo0) { | |
6885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
6888 | return NULL; | |
6889 | } | |
6890 | } | |
6891 | { | |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6893 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
6896 | if (PyErr_Occurred()) return NULL; | |
6897 | } Py_INCREF(Py_None); | |
6898 | _resultobj = Py_None; | |
6899 | return _resultobj; | |
6900 | } | |
6901 | ||
6902 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
6903 | wxMenu *src; | |
6904 | wxEvtHandler *dest; | |
6905 | src = (wxMenu *) ptr; | |
6906 | dest = (wxEvtHandler *) src; | |
6907 | return (void *) dest; | |
6908 | } | |
6909 | ||
6910 | static void *SwigwxMenuTowxObject(void *ptr) { | |
6911 | wxMenu *src; | |
6912 | wxObject *dest; | |
6913 | src = (wxMenu *) ptr; | |
6914 | dest = (wxObject *) src; | |
6915 | return (void *) dest; | |
6916 | } | |
6917 | ||
6918 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
6919 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6920 | PyObject * _resultobj; | |
6921 | wxMenu * _result; | |
6922 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
6923 | long _arg1 = (long ) 0; | |
6924 | PyObject * _obj0 = 0; | |
6925 | char *_kwnames[] = { "title","style", NULL }; | |
6926 | char _ptemp[128]; | |
6927 | ||
6928 | self = self; | |
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
6930 | return NULL; | |
6931 | if (_obj0) | |
6932 | { | |
6933 | #if PYTHON_API_VERSION >= 1009 | |
6934 | char* tmpPtr; int tmpSize; | |
6935 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
6936 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6937 | return NULL; | |
6938 | } | |
6939 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
6940 | return NULL; | |
6941 | _arg0 = new wxString(tmpPtr, tmpSize); | |
6942 | #else | |
6943 | if (!PyString_Check(_obj0)) { | |
6944 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6945 | return NULL; | |
6946 | } | |
6947 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
6948 | #endif | |
6949 | } | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) return NULL; | |
6956 | } if (_result) { | |
6957 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6958 | _resultobj = Py_BuildValue("s",_ptemp); | |
6959 | } else { | |
6960 | Py_INCREF(Py_None); | |
6961 | _resultobj = Py_None; | |
6962 | } | |
6963 | { | |
6964 | if (_obj0) | |
6965 | delete _arg0; | |
6966 | } | |
6967 | return _resultobj; | |
6968 | } | |
6969 | ||
6970 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6971 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6972 | PyObject * _resultobj; | |
6973 | wxMenu * _arg0; | |
6974 | int _arg1; | |
6975 | wxString * _arg2; | |
6976 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
6977 | int _arg4 = (int ) FALSE; | |
6978 | PyObject * _argo0 = 0; | |
6979 | PyObject * _obj2 = 0; | |
6980 | PyObject * _obj3 = 0; | |
6981 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; | |
6982 | ||
6983 | self = self; | |
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
6985 | return NULL; | |
6986 | if (_argo0) { | |
6987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
6990 | return NULL; | |
6991 | } | |
6992 | } | |
6993 | { | |
6994 | #if PYTHON_API_VERSION >= 1009 | |
6995 | char* tmpPtr; int tmpSize; | |
6996 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6997 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6998 | return NULL; | |
6999 | } | |
7000 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7001 | return NULL; | |
7002 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7003 | #else | |
7004 | if (!PyString_Check(_obj2)) { | |
7005 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7006 | return NULL; | |
7007 | } | |
7008 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7009 | #endif | |
7010 | } | |
7011 | if (_obj3) | |
7012 | { | |
7013 | #if PYTHON_API_VERSION >= 1009 | |
7014 | char* tmpPtr; int tmpSize; | |
7015 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7016 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7017 | return NULL; | |
7018 | } | |
7019 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7020 | return NULL; | |
7021 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7022 | #else | |
7023 | if (!PyString_Check(_obj3)) { | |
7024 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7025 | return NULL; | |
7026 | } | |
7027 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
7028 | #endif | |
7029 | } | |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) return NULL; | |
7036 | } Py_INCREF(Py_None); | |
7037 | _resultobj = Py_None; | |
7038 | { | |
7039 | if (_obj2) | |
7040 | delete _arg2; | |
7041 | } | |
7042 | { | |
7043 | if (_obj3) | |
7044 | delete _arg3; | |
7045 | } | |
7046 | return _resultobj; | |
7047 | } | |
7048 | ||
7049 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7050 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7051 | PyObject * _resultobj; | |
7052 | wxMenu * _arg0; | |
7053 | int _arg1; | |
7054 | wxString * _arg2; | |
7055 | wxMenu * _arg3; | |
7056 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; | |
7057 | PyObject * _argo0 = 0; | |
7058 | PyObject * _obj2 = 0; | |
7059 | PyObject * _argo3 = 0; | |
7060 | PyObject * _obj4 = 0; | |
7061 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7062 | ||
7063 | self = self; | |
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7065 | return NULL; | |
7066 | if (_argo0) { | |
7067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7070 | return NULL; | |
7071 | } | |
7072 | } | |
7073 | { | |
7074 | #if PYTHON_API_VERSION >= 1009 | |
7075 | char* tmpPtr; int tmpSize; | |
7076 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7077 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7078 | return NULL; | |
7079 | } | |
7080 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7081 | return NULL; | |
7082 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7083 | #else | |
7084 | if (!PyString_Check(_obj2)) { | |
7085 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7086 | return NULL; | |
7087 | } | |
7088 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7089 | #endif | |
7090 | } | |
7091 | if (_argo3) { | |
7092 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7093 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7095 | return NULL; | |
7096 | } | |
7097 | } | |
7098 | if (_obj4) | |
7099 | { | |
7100 | #if PYTHON_API_VERSION >= 1009 | |
7101 | char* tmpPtr; int tmpSize; | |
7102 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
7103 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7104 | return NULL; | |
7105 | } | |
7106 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
7107 | return NULL; | |
7108 | _arg4 = new wxString(tmpPtr, tmpSize); | |
7109 | #else | |
7110 | if (!PyString_Check(_obj4)) { | |
7111 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7112 | return NULL; | |
7113 | } | |
7114 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); | |
7115 | #endif | |
7116 | } | |
7117 | { | |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7120 | ||
7121 | wxPyEndAllowThreads(__tstate); | |
7122 | if (PyErr_Occurred()) return NULL; | |
7123 | } Py_INCREF(Py_None); | |
7124 | _resultobj = Py_None; | |
7125 | { | |
7126 | if (_obj2) | |
7127 | delete _arg2; | |
7128 | } | |
7129 | { | |
7130 | if (_obj4) | |
7131 | delete _arg4; | |
7132 | } | |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
7136 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7137 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7138 | PyObject * _resultobj; | |
7139 | wxMenu * _arg0; | |
7140 | wxMenuItem * _arg1; | |
7141 | PyObject * _argo0 = 0; | |
7142 | PyObject * _argo1 = 0; | |
7143 | char *_kwnames[] = { "self","item", NULL }; | |
7144 | ||
7145 | self = self; | |
7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7147 | return NULL; | |
7148 | if (_argo0) { | |
7149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7152 | return NULL; | |
7153 | } | |
7154 | } | |
7155 | if (_argo1) { | |
7156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | wxMenu_AppendItem(_arg0,_arg1); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) return NULL; | |
7168 | } Py_INCREF(Py_None); | |
7169 | _resultobj = Py_None; | |
7170 | return _resultobj; | |
7171 | } | |
7172 | ||
7173 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
7174 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject * _resultobj; | |
7176 | wxMenu * _arg0; | |
7177 | PyObject * _argo0 = 0; | |
7178 | char *_kwnames[] = { "self", NULL }; | |
7179 | ||
7180 | self = self; | |
7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
7182 | return NULL; | |
7183 | if (_argo0) { | |
7184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
7187 | return NULL; | |
7188 | } | |
7189 | } | |
7190 | { | |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | wxMenu_AppendSeparator(_arg0); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) return NULL; | |
7196 | } Py_INCREF(Py_None); | |
7197 | _resultobj = Py_None; | |
7198 | return _resultobj; | |
7199 | } | |
7200 | ||
7201 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
7202 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7203 | PyObject * _resultobj; | |
7204 | wxMenu * _arg0; | |
7205 | PyObject * _argo0 = 0; | |
7206 | char *_kwnames[] = { "self", NULL }; | |
7207 | ||
7208 | self = self; | |
7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) | |
7210 | return NULL; | |
7211 | if (_argo0) { | |
7212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); | |
7215 | return NULL; | |
7216 | } | |
7217 | } | |
7218 | { | |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | wxMenu_Break(_arg0); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) return NULL; | |
7224 | } Py_INCREF(Py_None); | |
7225 | _resultobj = Py_None; | |
7226 | return _resultobj; | |
7227 | } | |
7228 | ||
7229 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
7230 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject * _resultobj; | |
7232 | wxMenu * _arg0; | |
7233 | int _arg1; | |
7234 | bool _arg2; | |
7235 | PyObject * _argo0 = 0; | |
7236 | int tempbool2; | |
7237 | char *_kwnames[] = { "self","id","flag", NULL }; | |
7238 | ||
7239 | self = self; | |
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7241 | return NULL; | |
7242 | if (_argo0) { | |
7243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); | |
7246 | return NULL; | |
7247 | } | |
7248 | } | |
7249 | _arg2 = (bool ) tempbool2; | |
7250 | { | |
7251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7252 | wxMenu_Check(_arg0,_arg1,_arg2); | |
7253 | ||
7254 | wxPyEndAllowThreads(__tstate); | |
7255 | if (PyErr_Occurred()) return NULL; | |
7256 | } Py_INCREF(Py_None); | |
7257 | _resultobj = Py_None; | |
7258 | return _resultobj; | |
7259 | } | |
7260 | ||
7261 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
7262 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7263 | PyObject * _resultobj; | |
7264 | bool _result; | |
7265 | wxMenu * _arg0; | |
7266 | int _arg1; | |
7267 | PyObject * _argo0 = 0; | |
7268 | char *_kwnames[] = { "self","id", NULL }; | |
7269 | ||
7270 | self = self; | |
7271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
7272 | return NULL; | |
7273 | if (_argo0) { | |
7274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
7277 | return NULL; | |
7278 | } | |
7279 | } | |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) return NULL; | |
7286 | } _resultobj = Py_BuildValue("i",_result); | |
7287 | return _resultobj; | |
7288 | } | |
7289 | ||
7290 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
7291 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7292 | PyObject * _resultobj; | |
7293 | wxMenu * _arg0; | |
7294 | int _arg1; | |
7295 | bool _arg2; | |
7296 | PyObject * _argo0 = 0; | |
7297 | int tempbool2; | |
7298 | char *_kwnames[] = { "self","id","enable", NULL }; | |
7299 | ||
7300 | self = self; | |
7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
7302 | return NULL; | |
7303 | if (_argo0) { | |
7304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); | |
7307 | return NULL; | |
7308 | } | |
7309 | } | |
7310 | _arg2 = (bool ) tempbool2; | |
7311 | { | |
7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7313 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
7314 | ||
7315 | wxPyEndAllowThreads(__tstate); | |
7316 | if (PyErr_Occurred()) return NULL; | |
7317 | } Py_INCREF(Py_None); | |
7318 | _resultobj = Py_None; | |
7319 | return _resultobj; | |
7320 | } | |
7321 | ||
7322 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
7323 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject * _resultobj; | |
7325 | bool _result; | |
7326 | wxMenu * _arg0; | |
7327 | int _arg1; | |
7328 | PyObject * _argo0 = 0; | |
7329 | char *_kwnames[] = { "self","id", NULL }; | |
7330 | ||
7331 | self = self; | |
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
7333 | return NULL; | |
7334 | if (_argo0) { | |
7335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
7338 | return NULL; | |
7339 | } | |
7340 | } | |
7341 | { | |
7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7343 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
7344 | ||
7345 | wxPyEndAllowThreads(__tstate); | |
7346 | if (PyErr_Occurred()) return NULL; | |
7347 | } _resultobj = Py_BuildValue("i",_result); | |
7348 | return _resultobj; | |
7349 | } | |
7350 | ||
7351 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7352 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject * _resultobj; | |
7354 | int _result; | |
7355 | wxMenu * _arg0; | |
7356 | wxString * _arg1; | |
7357 | PyObject * _argo0 = 0; | |
7358 | PyObject * _obj1 = 0; | |
7359 | char *_kwnames[] = { "self","itemString", NULL }; | |
7360 | ||
7361 | self = self; | |
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) | |
7363 | return NULL; | |
7364 | if (_argo0) { | |
7365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); | |
7368 | return NULL; | |
7369 | } | |
7370 | } | |
7371 | { | |
7372 | #if PYTHON_API_VERSION >= 1009 | |
7373 | char* tmpPtr; int tmpSize; | |
7374 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7375 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7376 | return NULL; | |
7377 | } | |
7378 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7379 | return NULL; | |
7380 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7381 | #else | |
7382 | if (!PyString_Check(_obj1)) { | |
7383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7384 | return NULL; | |
7385 | } | |
7386 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7387 | #endif | |
7388 | } | |
7389 | { | |
7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7391 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
7392 | ||
7393 | wxPyEndAllowThreads(__tstate); | |
7394 | if (PyErr_Occurred()) return NULL; | |
7395 | } _resultobj = Py_BuildValue("i",_result); | |
7396 | { | |
7397 | if (_obj1) | |
7398 | delete _arg1; | |
7399 | } | |
7400 | return _resultobj; | |
7401 | } | |
7402 | ||
7403 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
7404 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject * _resultobj; | |
7406 | wxMenuItem * _result; | |
7407 | wxMenu * _arg0; | |
7408 | int _arg1; | |
7409 | PyObject * _argo0 = 0; | |
7410 | char *_kwnames[] = { "self","id", NULL }; | |
7411 | ||
7412 | self = self; | |
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
7414 | return NULL; | |
7415 | if (_argo0) { | |
7416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
7419 | return NULL; | |
7420 | } | |
7421 | } | |
7422 | { | |
7423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7424 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
7425 | ||
7426 | wxPyEndAllowThreads(__tstate); | |
7427 | if (PyErr_Occurred()) return NULL; | |
7428 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
7429 | return _resultobj; | |
7430 | } | |
7431 | ||
7432 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
7433 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7434 | PyObject * _resultobj; | |
7435 | wxString * _result; | |
7436 | wxMenu * _arg0; | |
7437 | PyObject * _argo0 = 0; | |
7438 | char *_kwnames[] = { "self", NULL }; | |
7439 | ||
7440 | self = self; | |
7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) | |
7442 | return NULL; | |
7443 | if (_argo0) { | |
7444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); | |
7447 | return NULL; | |
7448 | } | |
7449 | } | |
7450 | { | |
7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7452 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
7453 | ||
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) return NULL; | |
7456 | }{ | |
7457 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7458 | } | |
7459 | { | |
7460 | delete _result; | |
7461 | } | |
7462 | return _resultobj; | |
7463 | } | |
7464 | ||
7465 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
7466 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7467 | PyObject * _resultobj; | |
7468 | wxMenu * _arg0; | |
7469 | wxString * _arg1; | |
7470 | PyObject * _argo0 = 0; | |
7471 | PyObject * _obj1 = 0; | |
7472 | char *_kwnames[] = { "self","title", NULL }; | |
7473 | ||
7474 | self = self; | |
7475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) | |
7476 | return NULL; | |
7477 | if (_argo0) { | |
7478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); | |
7481 | return NULL; | |
7482 | } | |
7483 | } | |
7484 | { | |
7485 | #if PYTHON_API_VERSION >= 1009 | |
7486 | char* tmpPtr; int tmpSize; | |
7487 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7488 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7489 | return NULL; | |
7490 | } | |
7491 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7492 | return NULL; | |
7493 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7494 | #else | |
7495 | if (!PyString_Check(_obj1)) { | |
7496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7497 | return NULL; | |
7498 | } | |
7499 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7500 | #endif | |
7501 | } | |
7502 | { | |
7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7504 | wxMenu_SetTitle(_arg0,*_arg1); | |
7505 | ||
7506 | wxPyEndAllowThreads(__tstate); | |
7507 | if (PyErr_Occurred()) return NULL; | |
7508 | } Py_INCREF(Py_None); | |
7509 | _resultobj = Py_None; | |
7510 | { | |
7511 | if (_obj1) | |
7512 | delete _arg1; | |
7513 | } | |
7514 | return _resultobj; | |
7515 | } | |
7516 | ||
7517 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
7518 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject * _resultobj; | |
7520 | wxString * _result; | |
7521 | wxMenu * _arg0; | |
7522 | int _arg1; | |
7523 | PyObject * _argo0 = 0; | |
7524 | char *_kwnames[] = { "self","id", NULL }; | |
7525 | ||
7526 | self = self; | |
7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) | |
7528 | return NULL; | |
7529 | if (_argo0) { | |
7530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); | |
7533 | return NULL; | |
7534 | } | |
7535 | } | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) return NULL; | |
7542 | }{ | |
7543 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7544 | } | |
7545 | { | |
7546 | delete _result; | |
7547 | } | |
7548 | return _resultobj; | |
7549 | } | |
7550 | ||
7551 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
7552 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject * _resultobj; | |
7554 | wxMenu * _arg0; | |
7555 | int _arg1; | |
7556 | wxString * _arg2; | |
7557 | PyObject * _argo0 = 0; | |
7558 | PyObject * _obj2 = 0; | |
7559 | char *_kwnames[] = { "self","id","label", NULL }; | |
7560 | ||
7561 | self = self; | |
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7563 | return NULL; | |
7564 | if (_argo0) { | |
7565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); | |
7568 | return NULL; | |
7569 | } | |
7570 | } | |
7571 | { | |
7572 | #if PYTHON_API_VERSION >= 1009 | |
7573 | char* tmpPtr; int tmpSize; | |
7574 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7575 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7576 | return NULL; | |
7577 | } | |
7578 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7579 | return NULL; | |
7580 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7581 | #else | |
7582 | if (!PyString_Check(_obj2)) { | |
7583 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7584 | return NULL; | |
7585 | } | |
7586 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7587 | #endif | |
7588 | } | |
7589 | { | |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); | |
7592 | ||
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) return NULL; | |
7595 | } Py_INCREF(Py_None); | |
7596 | _resultobj = Py_None; | |
7597 | { | |
7598 | if (_obj2) | |
7599 | delete _arg2; | |
7600 | } | |
7601 | return _resultobj; | |
7602 | } | |
7603 | ||
7604 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
7605 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject * _resultobj; | |
7607 | wxString * _result; | |
7608 | wxMenu * _arg0; | |
7609 | int _arg1; | |
7610 | PyObject * _argo0 = 0; | |
7611 | char *_kwnames[] = { "self","id", NULL }; | |
7612 | ||
7613 | self = self; | |
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
7615 | return NULL; | |
7616 | if (_argo0) { | |
7617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); | |
7620 | return NULL; | |
7621 | } | |
7622 | } | |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) return NULL; | |
7629 | }{ | |
7630 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7631 | } | |
7632 | { | |
7633 | delete _result; | |
7634 | } | |
7635 | return _resultobj; | |
7636 | } | |
7637 | ||
7638 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
7639 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7640 | PyObject * _resultobj; | |
7641 | wxMenu * _arg0; | |
7642 | int _arg1; | |
7643 | wxString * _arg2; | |
7644 | PyObject * _argo0 = 0; | |
7645 | PyObject * _obj2 = 0; | |
7646 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
7647 | ||
7648 | self = self; | |
7649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
7650 | return NULL; | |
7651 | if (_argo0) { | |
7652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); | |
7655 | return NULL; | |
7656 | } | |
7657 | } | |
7658 | { | |
7659 | #if PYTHON_API_VERSION >= 1009 | |
7660 | char* tmpPtr; int tmpSize; | |
7661 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7662 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7663 | return NULL; | |
7664 | } | |
7665 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7666 | return NULL; | |
7667 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7668 | #else | |
7669 | if (!PyString_Check(_obj2)) { | |
7670 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7671 | return NULL; | |
7672 | } | |
7673 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7674 | #endif | |
7675 | } | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) return NULL; | |
7682 | } Py_INCREF(Py_None); | |
7683 | _resultobj = Py_None; | |
7684 | { | |
7685 | if (_obj2) | |
7686 | delete _arg2; | |
7687 | } | |
7688 | return _resultobj; | |
7689 | } | |
7690 | ||
7691 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) | |
7692 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7693 | PyObject * _resultobj; | |
7694 | wxMenu * _arg0; | |
7695 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; | |
7696 | PyObject * _argo0 = 0; | |
7697 | PyObject * _argo1 = 0; | |
7698 | char *_kwnames[] = { "self","source", NULL }; | |
7699 | ||
7700 | self = self; | |
7701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) | |
7702 | return NULL; | |
7703 | if (_argo0) { | |
7704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); | |
7707 | return NULL; | |
7708 | } | |
7709 | } | |
7710 | if (_argo1) { | |
7711 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7712 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
7713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
7714 | return NULL; | |
7715 | } | |
7716 | } | |
7717 | { | |
7718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7719 | wxMenu_UpdateUI(_arg0,_arg1); | |
7720 | ||
7721 | wxPyEndAllowThreads(__tstate); | |
7722 | if (PyErr_Occurred()) return NULL; | |
7723 | } Py_INCREF(Py_None); | |
7724 | _resultobj = Py_None; | |
7725 | return _resultobj; | |
7726 | } | |
7727 | ||
7728 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
7729 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7730 | PyObject * _resultobj; | |
7731 | bool _result; | |
7732 | wxMenu * _arg0; | |
7733 | int _arg1; | |
7734 | PyObject * _argo0 = 0; | |
7735 | char *_kwnames[] = { "self","id", NULL }; | |
7736 | ||
7737 | self = self; | |
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) | |
7739 | return NULL; | |
7740 | if (_argo0) { | |
7741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); | |
7744 | return NULL; | |
7745 | } | |
7746 | } | |
7747 | { | |
7748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7749 | _result = (bool )wxMenu_Delete(_arg0,_arg1); | |
7750 | ||
7751 | wxPyEndAllowThreads(__tstate); | |
7752 | if (PyErr_Occurred()) return NULL; | |
7753 | } _resultobj = Py_BuildValue("i",_result); | |
7754 | return _resultobj; | |
7755 | } | |
7756 | ||
7757 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
7758 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7759 | PyObject * _resultobj; | |
7760 | bool _result; | |
7761 | wxMenu * _arg0; | |
7762 | wxMenuItem * _arg1; | |
7763 | PyObject * _argo0 = 0; | |
7764 | PyObject * _argo1 = 0; | |
7765 | char *_kwnames[] = { "self","item", NULL }; | |
7766 | ||
7767 | self = self; | |
7768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) | |
7769 | return NULL; | |
7770 | if (_argo0) { | |
7771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); | |
7774 | return NULL; | |
7775 | } | |
7776 | } | |
7777 | if (_argo1) { | |
7778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
7781 | return NULL; | |
7782 | } | |
7783 | } | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) return NULL; | |
7790 | } _resultobj = Py_BuildValue("i",_result); | |
7791 | return _resultobj; | |
7792 | } | |
7793 | ||
7794 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) | |
7795 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7796 | PyObject * _resultobj; | |
7797 | bool _result; | |
7798 | wxMenu * _arg0; | |
7799 | size_t _arg1; | |
7800 | wxMenuItem * _arg2; | |
7801 | PyObject * _argo0 = 0; | |
7802 | PyObject * _argo2 = 0; | |
7803 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7804 | ||
7805 | self = self; | |
7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2)) | |
7807 | return NULL; | |
7808 | if (_argo0) { | |
7809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7812 | return NULL; | |
7813 | } | |
7814 | } | |
7815 | if (_argo2) { | |
7816 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p."); | |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) return NULL; | |
7828 | } _resultobj = Py_BuildValue("i",_result); | |
7829 | return _resultobj; | |
7830 | } | |
7831 | ||
7832 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7833 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7834 | PyObject * _resultobj; | |
7835 | wxMenuItem * _result; | |
7836 | wxMenu * _arg0; | |
7837 | int _arg1; | |
7838 | PyObject * _argo0 = 0; | |
7839 | char *_kwnames[] = { "self","id", NULL }; | |
7840 | ||
7841 | self = self; | |
7842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) | |
7843 | return NULL; | |
7844 | if (_argo0) { | |
7845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); | |
7848 | return NULL; | |
7849 | } | |
7850 | } | |
7851 | { | |
7852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7853 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); | |
7854 | ||
7855 | wxPyEndAllowThreads(__tstate); | |
7856 | if (PyErr_Occurred()) return NULL; | |
7857 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
7858 | return _resultobj; | |
7859 | } | |
7860 | ||
7861 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
7862 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7863 | PyObject * _resultobj; | |
7864 | wxMenuItem * _result; | |
7865 | wxMenu * _arg0; | |
7866 | wxMenuItem * _arg1; | |
7867 | PyObject * _argo0 = 0; | |
7868 | PyObject * _argo1 = 0; | |
7869 | char *_kwnames[] = { "self","item", NULL }; | |
7870 | ||
7871 | self = self; | |
7872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) | |
7873 | return NULL; | |
7874 | if (_argo0) { | |
7875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
7878 | return NULL; | |
7879 | } | |
7880 | } | |
7881 | if (_argo1) { | |
7882 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7883 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
7885 | return NULL; | |
7886 | } | |
7887 | } | |
7888 | { | |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) return NULL; | |
7894 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
7895 | return _resultobj; | |
7896 | } | |
7897 | ||
7898 | static void wxMenu_Destroy(wxMenu *self) { delete self; } | |
7899 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject * _resultobj; | |
7901 | wxMenu * _arg0; | |
7902 | PyObject * _argo0 = 0; | |
7903 | char *_kwnames[] = { "self", NULL }; | |
7904 | ||
7905 | self = self; | |
7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
7907 | return NULL; | |
7908 | if (_argo0) { | |
7909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
7912 | return NULL; | |
7913 | } | |
7914 | } | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | wxMenu_Destroy(_arg0); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) return NULL; | |
7921 | } Py_INCREF(Py_None); | |
7922 | _resultobj = Py_None; | |
7923 | return _resultobj; | |
7924 | } | |
7925 | ||
7926 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
7927 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7928 | PyObject * _resultobj; | |
7929 | bool _result; | |
7930 | wxMenu * _arg0; | |
7931 | int _arg1; | |
7932 | PyObject * _argo0 = 0; | |
7933 | char *_kwnames[] = { "self","id", NULL }; | |
7934 | ||
7935 | self = self; | |
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) | |
7937 | return NULL; | |
7938 | if (_argo0) { | |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
7945 | { | |
7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7947 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); | |
7948 | ||
7949 | wxPyEndAllowThreads(__tstate); | |
7950 | if (PyErr_Occurred()) return NULL; | |
7951 | } _resultobj = Py_BuildValue("i",_result); | |
7952 | return _resultobj; | |
7953 | } | |
7954 | ||
7955 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
7956 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7957 | PyObject * _resultobj; | |
7958 | bool _result; | |
7959 | wxMenu * _arg0; | |
7960 | wxMenuItem * _arg1; | |
7961 | PyObject * _argo0 = 0; | |
7962 | PyObject * _argo1 = 0; | |
7963 | char *_kwnames[] = { "self","item", NULL }; | |
7964 | ||
7965 | self = self; | |
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) | |
7967 | return NULL; | |
7968 | if (_argo0) { | |
7969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
7972 | return NULL; | |
7973 | } | |
7974 | } | |
7975 | if (_argo1) { | |
7976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
7979 | return NULL; | |
7980 | } | |
7981 | } | |
7982 | { | |
7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7984 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); | |
7985 | ||
7986 | wxPyEndAllowThreads(__tstate); | |
7987 | if (PyErr_Occurred()) return NULL; | |
7988 | } _resultobj = Py_BuildValue("i",_result); | |
7989 | return _resultobj; | |
7990 | } | |
7991 | ||
7992 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) | |
7993 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject * _resultobj; | |
7995 | size_t _result; | |
7996 | wxMenu * _arg0; | |
7997 | PyObject * _argo0 = 0; | |
7998 | char *_kwnames[] = { "self", NULL }; | |
7999 | ||
8000 | self = self; | |
8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) | |
8002 | return NULL; | |
8003 | if (_argo0) { | |
8004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8007 | return NULL; | |
8008 | } | |
8009 | } | |
8010 | { | |
8011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8012 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); | |
8013 | ||
8014 | wxPyEndAllowThreads(__tstate); | |
8015 | if (PyErr_Occurred()) return NULL; | |
8016 | } _resultobj = Py_BuildValue("i",_result); | |
8017 | return _resultobj; | |
8018 | } | |
8019 | ||
8020 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { | |
8021 | wxMenuItemList& list = self->GetMenuItems(); | |
8022 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8023 | } | |
8024 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8025 | PyObject * _resultobj; | |
8026 | PyObject * _result; | |
8027 | wxMenu * _arg0; | |
8028 | PyObject * _argo0 = 0; | |
8029 | char *_kwnames[] = { "self", NULL }; | |
8030 | ||
8031 | self = self; | |
8032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) | |
8033 | return NULL; | |
8034 | if (_argo0) { | |
8035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8038 | return NULL; | |
8039 | } | |
8040 | } | |
8041 | { | |
8042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8043 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); | |
8044 | ||
8045 | wxPyEndAllowThreads(__tstate); | |
8046 | if (PyErr_Occurred()) return NULL; | |
8047 | }{ | |
8048 | _resultobj = _result; | |
8049 | } | |
8050 | return _resultobj; | |
8051 | } | |
8052 | ||
8053 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
8054 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8055 | PyObject * _resultobj; | |
8056 | wxMenu * _arg0; | |
8057 | wxEvtHandler * _arg1; | |
8058 | PyObject * _argo0 = 0; | |
8059 | PyObject * _argo1 = 0; | |
8060 | char *_kwnames[] = { "self","handler", NULL }; | |
8061 | ||
8062 | self = self; | |
8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
8064 | return NULL; | |
8065 | if (_argo0) { | |
8066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8069 | return NULL; | |
8070 | } | |
8071 | } | |
8072 | if (_argo1) { | |
8073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8076 | return NULL; | |
8077 | } | |
8078 | } | |
8079 | { | |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | wxMenu_SetEventHandler(_arg0,_arg1); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) return NULL; | |
8085 | } Py_INCREF(Py_None); | |
8086 | _resultobj = Py_None; | |
8087 | return _resultobj; | |
8088 | } | |
8089 | ||
8090 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
8091 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8092 | PyObject * _resultobj; | |
8093 | wxEvtHandler * _result; | |
8094 | wxMenu * _arg0; | |
8095 | PyObject * _argo0 = 0; | |
8096 | char *_kwnames[] = { "self", NULL }; | |
8097 | ||
8098 | self = self; | |
8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) | |
8100 | return NULL; | |
8101 | if (_argo0) { | |
8102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8105 | return NULL; | |
8106 | } | |
8107 | } | |
8108 | { | |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8110 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) return NULL; | |
8114 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8115 | return _resultobj; | |
8116 | } | |
8117 | ||
8118 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) | |
8119 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8120 | PyObject * _resultobj; | |
8121 | wxMenu * _arg0; | |
8122 | wxWindow * _arg1; | |
8123 | PyObject * _argo0 = 0; | |
8124 | PyObject * _argo1 = 0; | |
8125 | char *_kwnames[] = { "self","win", NULL }; | |
8126 | ||
8127 | self = self; | |
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) | |
8129 | return NULL; | |
8130 | if (_argo0) { | |
8131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
8134 | return NULL; | |
8135 | } | |
8136 | } | |
8137 | if (_argo1) { | |
8138 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8139 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
8141 | return NULL; | |
8142 | } | |
8143 | } | |
8144 | { | |
8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8146 | wxMenu_SetInvokingWindow(_arg0,_arg1); | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) return NULL; | |
8150 | } Py_INCREF(Py_None); | |
8151 | _resultobj = Py_None; | |
8152 | return _resultobj; | |
8153 | } | |
8154 | ||
8155 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) | |
8156 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8157 | PyObject * _resultobj; | |
8158 | wxWindow * _result; | |
8159 | wxMenu * _arg0; | |
8160 | PyObject * _argo0 = 0; | |
8161 | char *_kwnames[] = { "self", NULL }; | |
8162 | ||
8163 | self = self; | |
8164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) | |
8165 | return NULL; | |
8166 | if (_argo0) { | |
8167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8170 | return NULL; | |
8171 | } | |
8172 | } | |
8173 | { | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); | |
8176 | ||
8177 | wxPyEndAllowThreads(__tstate); | |
8178 | if (PyErr_Occurred()) return NULL; | |
8179 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8180 | return _resultobj; | |
8181 | } | |
8182 | ||
8183 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
8184 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8185 | PyObject * _resultobj; | |
8186 | long _result; | |
8187 | wxMenu * _arg0; | |
8188 | PyObject * _argo0 = 0; | |
8189 | char *_kwnames[] = { "self", NULL }; | |
8190 | ||
8191 | self = self; | |
8192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) | |
8193 | return NULL; | |
8194 | if (_argo0) { | |
8195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8198 | return NULL; | |
8199 | } | |
8200 | } | |
8201 | { | |
8202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8203 | _result = (long )wxMenu_GetStyle(_arg0); | |
8204 | ||
8205 | wxPyEndAllowThreads(__tstate); | |
8206 | if (PyErr_Occurred()) return NULL; | |
8207 | } _resultobj = Py_BuildValue("l",_result); | |
8208 | return _resultobj; | |
8209 | } | |
8210 | ||
8211 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) | |
8212 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8213 | PyObject * _resultobj; | |
8214 | bool _result; | |
8215 | wxMenu * _arg0; | |
8216 | PyObject * _argo0 = 0; | |
8217 | char *_kwnames[] = { "self", NULL }; | |
8218 | ||
8219 | self = self; | |
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) | |
8221 | return NULL; | |
8222 | if (_argo0) { | |
8223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8226 | return NULL; | |
8227 | } | |
8228 | } | |
8229 | { | |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | _result = (bool )wxMenu_IsAttached(_arg0); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) return NULL; | |
8235 | } _resultobj = Py_BuildValue("i",_result); | |
8236 | return _resultobj; | |
8237 | } | |
8238 | ||
8239 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
8240 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8241 | PyObject * _resultobj; | |
8242 | wxMenu * _arg0; | |
8243 | wxMenu * _arg1; | |
8244 | PyObject * _argo0 = 0; | |
8245 | PyObject * _argo1 = 0; | |
8246 | char *_kwnames[] = { "self","parent", NULL }; | |
8247 | ||
8248 | self = self; | |
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) | |
8250 | return NULL; | |
8251 | if (_argo0) { | |
8252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8255 | return NULL; | |
8256 | } | |
8257 | } | |
8258 | if (_argo1) { | |
8259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8262 | return NULL; | |
8263 | } | |
8264 | } | |
8265 | { | |
8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8267 | wxMenu_SetParent(_arg0,_arg1); | |
8268 | ||
8269 | wxPyEndAllowThreads(__tstate); | |
8270 | if (PyErr_Occurred()) return NULL; | |
8271 | } Py_INCREF(Py_None); | |
8272 | _resultobj = Py_None; | |
8273 | return _resultobj; | |
8274 | } | |
8275 | ||
8276 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) | |
8277 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8278 | PyObject * _resultobj; | |
8279 | wxMenu * _result; | |
8280 | wxMenu * _arg0; | |
8281 | PyObject * _argo0 = 0; | |
8282 | char *_kwnames[] = { "self", NULL }; | |
8283 | ||
8284 | self = self; | |
8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) | |
8286 | return NULL; | |
8287 | if (_argo0) { | |
8288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8291 | return NULL; | |
8292 | } | |
8293 | } | |
8294 | { | |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8296 | _result = (wxMenu *)wxMenu_GetParent(_arg0); | |
8297 | ||
8298 | wxPyEndAllowThreads(__tstate); | |
8299 | if (PyErr_Occurred()) return NULL; | |
8300 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8301 | return _resultobj; | |
8302 | } | |
8303 | ||
8304 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
8305 | wxMenuBar *src; | |
8306 | wxWindow *dest; | |
8307 | src = (wxMenuBar *) ptr; | |
8308 | dest = (wxWindow *) src; | |
8309 | return (void *) dest; | |
8310 | } | |
8311 | ||
8312 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
8313 | wxMenuBar *src; | |
8314 | wxEvtHandler *dest; | |
8315 | src = (wxMenuBar *) ptr; | |
8316 | dest = (wxEvtHandler *) src; | |
8317 | return (void *) dest; | |
8318 | } | |
8319 | ||
8320 | static void *SwigwxMenuBarTowxObject(void *ptr) { | |
8321 | wxMenuBar *src; | |
8322 | wxObject *dest; | |
8323 | src = (wxMenuBar *) ptr; | |
8324 | dest = (wxObject *) src; | |
8325 | return (void *) dest; | |
8326 | } | |
8327 | ||
8328 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) | |
8329 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8330 | PyObject * _resultobj; | |
8331 | wxMenuBar * _result; | |
8332 | long _arg0 = (long ) 0; | |
8333 | char *_kwnames[] = { "style", NULL }; | |
8334 | char _ptemp[128]; | |
8335 | ||
8336 | self = self; | |
8337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) | |
8338 | return NULL; | |
8339 | { | |
8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8341 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); | |
8342 | ||
8343 | wxPyEndAllowThreads(__tstate); | |
8344 | if (PyErr_Occurred()) return NULL; | |
8345 | } if (_result) { | |
8346 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
8347 | _resultobj = Py_BuildValue("s",_ptemp); | |
8348 | } else { | |
8349 | Py_INCREF(Py_None); | |
8350 | _resultobj = Py_None; | |
8351 | } | |
8352 | return _resultobj; | |
8353 | } | |
8354 | ||
8355 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
8356 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8357 | PyObject * _resultobj; | |
8358 | bool _result; | |
8359 | wxMenuBar * _arg0; | |
8360 | wxMenu * _arg1; | |
8361 | wxString * _arg2; | |
8362 | PyObject * _argo0 = 0; | |
8363 | PyObject * _argo1 = 0; | |
8364 | PyObject * _obj2 = 0; | |
8365 | char *_kwnames[] = { "self","menu","title", NULL }; | |
8366 | ||
8367 | self = self; | |
8368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) | |
8369 | return NULL; | |
8370 | if (_argo0) { | |
8371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); | |
8374 | return NULL; | |
8375 | } | |
8376 | } | |
8377 | if (_argo1) { | |
8378 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8379 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8381 | return NULL; | |
8382 | } | |
8383 | } | |
8384 | { | |
8385 | #if PYTHON_API_VERSION >= 1009 | |
8386 | char* tmpPtr; int tmpSize; | |
8387 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8388 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8389 | return NULL; | |
8390 | } | |
8391 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8392 | return NULL; | |
8393 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8394 | #else | |
8395 | if (!PyString_Check(_obj2)) { | |
8396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8397 | return NULL; | |
8398 | } | |
8399 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8400 | #endif | |
8401 | } | |
8402 | { | |
8403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8404 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); | |
8405 | ||
8406 | wxPyEndAllowThreads(__tstate); | |
8407 | if (PyErr_Occurred()) return NULL; | |
8408 | } _resultobj = Py_BuildValue("i",_result); | |
8409 | { | |
8410 | if (_obj2) | |
8411 | delete _arg2; | |
8412 | } | |
8413 | return _resultobj; | |
8414 | } | |
8415 | ||
8416 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) | |
8417 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8418 | PyObject * _resultobj; | |
8419 | bool _result; | |
8420 | wxMenuBar * _arg0; | |
8421 | size_t _arg1; | |
8422 | wxMenu * _arg2; | |
8423 | wxString * _arg3; | |
8424 | PyObject * _argo0 = 0; | |
8425 | PyObject * _argo2 = 0; | |
8426 | PyObject * _obj3 = 0; | |
8427 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8428 | ||
8429 | self = self; | |
8430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8431 | return NULL; | |
8432 | if (_argo0) { | |
8433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); | |
8436 | return NULL; | |
8437 | } | |
8438 | } | |
8439 | if (_argo2) { | |
8440 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8441 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8443 | return NULL; | |
8444 | } | |
8445 | } | |
8446 | { | |
8447 | #if PYTHON_API_VERSION >= 1009 | |
8448 | char* tmpPtr; int tmpSize; | |
8449 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8450 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8451 | return NULL; | |
8452 | } | |
8453 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8454 | return NULL; | |
8455 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8456 | #else | |
8457 | if (!PyString_Check(_obj3)) { | |
8458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8459 | return NULL; | |
8460 | } | |
8461 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8462 | #endif | |
8463 | } | |
8464 | { | |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); | |
8467 | ||
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) return NULL; | |
8470 | } _resultobj = Py_BuildValue("i",_result); | |
8471 | { | |
8472 | if (_obj3) | |
8473 | delete _arg3; | |
8474 | } | |
8475 | return _resultobj; | |
8476 | } | |
8477 | ||
8478 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) | |
8479 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8480 | PyObject * _resultobj; | |
8481 | size_t _result; | |
8482 | wxMenuBar * _arg0; | |
8483 | PyObject * _argo0 = 0; | |
8484 | char *_kwnames[] = { "self", NULL }; | |
8485 | ||
8486 | self = self; | |
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) | |
8488 | return NULL; | |
8489 | if (_argo0) { | |
8490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); | |
8493 | return NULL; | |
8494 | } | |
8495 | } | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) return NULL; | |
8502 | } _resultobj = Py_BuildValue("i",_result); | |
8503 | return _resultobj; | |
8504 | } | |
8505 | ||
8506 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
8507 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject * _resultobj; | |
8509 | wxMenu * _result; | |
8510 | wxMenuBar * _arg0; | |
8511 | size_t _arg1; | |
8512 | PyObject * _argo0 = 0; | |
8513 | char *_kwnames[] = { "self","pos", NULL }; | |
8514 | ||
8515 | self = self; | |
8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) | |
8517 | return NULL; | |
8518 | if (_argo0) { | |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); | |
8522 | return NULL; | |
8523 | } | |
8524 | } | |
8525 | { | |
8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8527 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); | |
8528 | ||
8529 | wxPyEndAllowThreads(__tstate); | |
8530 | if (PyErr_Occurred()) return NULL; | |
8531 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8532 | return _resultobj; | |
8533 | } | |
8534 | ||
8535 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
8536 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8537 | PyObject * _resultobj; | |
8538 | wxMenu * _result; | |
8539 | wxMenuBar * _arg0; | |
8540 | size_t _arg1; | |
8541 | wxMenu * _arg2; | |
8542 | wxString * _arg3; | |
8543 | PyObject * _argo0 = 0; | |
8544 | PyObject * _argo2 = 0; | |
8545 | PyObject * _obj3 = 0; | |
8546 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8547 | ||
8548 | self = self; | |
8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
8550 | return NULL; | |
8551 | if (_argo0) { | |
8552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
8555 | return NULL; | |
8556 | } | |
8557 | } | |
8558 | if (_argo2) { | |
8559 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8560 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
8561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
8562 | return NULL; | |
8563 | } | |
8564 | } | |
8565 | { | |
8566 | #if PYTHON_API_VERSION >= 1009 | |
8567 | char* tmpPtr; int tmpSize; | |
8568 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8569 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8570 | return NULL; | |
8571 | } | |
8572 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8573 | return NULL; | |
8574 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8575 | #else | |
8576 | if (!PyString_Check(_obj3)) { | |
8577 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8578 | return NULL; | |
8579 | } | |
8580 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8581 | #endif | |
8582 | } | |
8583 | { | |
8584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8585 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
8586 | ||
8587 | wxPyEndAllowThreads(__tstate); | |
8588 | if (PyErr_Occurred()) return NULL; | |
8589 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8590 | { | |
8591 | if (_obj3) | |
8592 | delete _arg3; | |
8593 | } | |
8594 | return _resultobj; | |
8595 | } | |
8596 | ||
8597 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8598 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8599 | PyObject * _resultobj; | |
8600 | wxMenu * _result; | |
8601 | wxMenuBar * _arg0; | |
8602 | size_t _arg1; | |
8603 | PyObject * _argo0 = 0; | |
8604 | char *_kwnames[] = { "self","pos", NULL }; | |
8605 | ||
8606 | self = self; | |
8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
8608 | return NULL; | |
8609 | if (_argo0) { | |
8610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
8613 | return NULL; | |
8614 | } | |
8615 | } | |
8616 | { | |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
8619 | ||
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) return NULL; | |
8622 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8623 | return _resultobj; | |
8624 | } | |
8625 | ||
8626 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
8627 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8628 | PyObject * _resultobj; | |
8629 | wxMenuBar * _arg0; | |
8630 | size_t _arg1; | |
8631 | bool _arg2; | |
8632 | PyObject * _argo0 = 0; | |
8633 | int tempbool2; | |
8634 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
8635 | ||
8636 | self = self; | |
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8638 | return NULL; | |
8639 | if (_argo0) { | |
8640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
8643 | return NULL; | |
8644 | } | |
8645 | } | |
8646 | _arg2 = (bool ) tempbool2; | |
8647 | { | |
8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8649 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
8650 | ||
8651 | wxPyEndAllowThreads(__tstate); | |
8652 | if (PyErr_Occurred()) return NULL; | |
8653 | } Py_INCREF(Py_None); | |
8654 | _resultobj = Py_None; | |
8655 | return _resultobj; | |
8656 | } | |
8657 | ||
8658 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
8659 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8660 | PyObject * _resultobj; | |
8661 | wxMenuBar * _arg0; | |
8662 | size_t _arg1; | |
8663 | wxString * _arg2; | |
8664 | PyObject * _argo0 = 0; | |
8665 | PyObject * _obj2 = 0; | |
8666 | char *_kwnames[] = { "self","pos","label", NULL }; | |
8667 | ||
8668 | self = self; | |
8669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8670 | return NULL; | |
8671 | if (_argo0) { | |
8672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
8675 | return NULL; | |
8676 | } | |
8677 | } | |
8678 | { | |
8679 | #if PYTHON_API_VERSION >= 1009 | |
8680 | char* tmpPtr; int tmpSize; | |
8681 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8683 | return NULL; | |
8684 | } | |
8685 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8686 | return NULL; | |
8687 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8688 | #else | |
8689 | if (!PyString_Check(_obj2)) { | |
8690 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8691 | return NULL; | |
8692 | } | |
8693 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8694 | #endif | |
8695 | } | |
8696 | { | |
8697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8698 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
8699 | ||
8700 | wxPyEndAllowThreads(__tstate); | |
8701 | if (PyErr_Occurred()) return NULL; | |
8702 | } Py_INCREF(Py_None); | |
8703 | _resultobj = Py_None; | |
8704 | { | |
8705 | if (_obj2) | |
8706 | delete _arg2; | |
8707 | } | |
8708 | return _resultobj; | |
8709 | } | |
8710 | ||
8711 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
8712 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8713 | PyObject * _resultobj; | |
8714 | wxString * _result; | |
8715 | wxMenuBar * _arg0; | |
8716 | size_t _arg1; | |
8717 | PyObject * _argo0 = 0; | |
8718 | char *_kwnames[] = { "self","pos", NULL }; | |
8719 | ||
8720 | self = self; | |
8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
8722 | return NULL; | |
8723 | if (_argo0) { | |
8724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
8727 | return NULL; | |
8728 | } | |
8729 | } | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) return NULL; | |
8736 | }{ | |
8737 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8738 | } | |
8739 | { | |
8740 | delete _result; | |
8741 | } | |
8742 | return _resultobj; | |
8743 | } | |
8744 | ||
8745 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) | |
8746 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8747 | PyObject * _resultobj; | |
8748 | int _result; | |
8749 | wxMenuBar * _arg0; | |
8750 | wxString * _arg1; | |
8751 | PyObject * _argo0 = 0; | |
8752 | PyObject * _obj1 = 0; | |
8753 | char *_kwnames[] = { "self","title", NULL }; | |
8754 | ||
8755 | self = self; | |
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
8757 | return NULL; | |
8758 | if (_argo0) { | |
8759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
8762 | return NULL; | |
8763 | } | |
8764 | } | |
8765 | { | |
8766 | #if PYTHON_API_VERSION >= 1009 | |
8767 | char* tmpPtr; int tmpSize; | |
8768 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8769 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8770 | return NULL; | |
8771 | } | |
8772 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8773 | return NULL; | |
8774 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8775 | #else | |
8776 | if (!PyString_Check(_obj1)) { | |
8777 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8778 | return NULL; | |
8779 | } | |
8780 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8781 | #endif | |
8782 | } | |
8783 | { | |
8784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8785 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
8786 | ||
8787 | wxPyEndAllowThreads(__tstate); | |
8788 | if (PyErr_Occurred()) return NULL; | |
8789 | } _resultobj = Py_BuildValue("i",_result); | |
8790 | { | |
8791 | if (_obj1) | |
8792 | delete _arg1; | |
8793 | } | |
8794 | return _resultobj; | |
8795 | } | |
8796 | ||
8797 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
8798 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject * _resultobj; | |
8800 | int _result; | |
8801 | wxMenuBar * _arg0; | |
8802 | wxString * _arg1; | |
8803 | wxString * _arg2; | |
8804 | PyObject * _argo0 = 0; | |
8805 | PyObject * _obj1 = 0; | |
8806 | PyObject * _obj2 = 0; | |
8807 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
8808 | ||
8809 | self = self; | |
8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8811 | return NULL; | |
8812 | if (_argo0) { | |
8813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
8816 | return NULL; | |
8817 | } | |
8818 | } | |
8819 | { | |
8820 | #if PYTHON_API_VERSION >= 1009 | |
8821 | char* tmpPtr; int tmpSize; | |
8822 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8823 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8824 | return NULL; | |
8825 | } | |
8826 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8827 | return NULL; | |
8828 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8829 | #else | |
8830 | if (!PyString_Check(_obj1)) { | |
8831 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8832 | return NULL; | |
8833 | } | |
8834 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8835 | #endif | |
8836 | } | |
8837 | { | |
8838 | #if PYTHON_API_VERSION >= 1009 | |
8839 | char* tmpPtr; int tmpSize; | |
8840 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8842 | return NULL; | |
8843 | } | |
8844 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8845 | return NULL; | |
8846 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8847 | #else | |
8848 | if (!PyString_Check(_obj2)) { | |
8849 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8850 | return NULL; | |
8851 | } | |
8852 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8853 | #endif | |
8854 | } | |
8855 | { | |
8856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8857 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
8858 | ||
8859 | wxPyEndAllowThreads(__tstate); | |
8860 | if (PyErr_Occurred()) return NULL; | |
8861 | } _resultobj = Py_BuildValue("i",_result); | |
8862 | { | |
8863 | if (_obj1) | |
8864 | delete _arg1; | |
8865 | } | |
8866 | { | |
8867 | if (_obj2) | |
8868 | delete _arg2; | |
8869 | } | |
8870 | return _resultobj; | |
8871 | } | |
8872 | ||
8873 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8874 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8875 | PyObject * _resultobj; | |
8876 | wxMenuItem * _result; | |
8877 | wxMenuBar * _arg0; | |
8878 | int _arg1; | |
8879 | PyObject * _argo0 = 0; | |
8880 | char *_kwnames[] = { "self","id", NULL }; | |
8881 | ||
8882 | self = self; | |
8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8884 | return NULL; | |
8885 | if (_argo0) { | |
8886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
8889 | return NULL; | |
8890 | } | |
8891 | } | |
8892 | { | |
8893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8894 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); | |
8895 | ||
8896 | wxPyEndAllowThreads(__tstate); | |
8897 | if (PyErr_Occurred()) return NULL; | |
8898 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8899 | return _resultobj; | |
8900 | } | |
8901 | ||
8902 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8903 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8904 | PyObject * _resultobj; | |
8905 | wxMenuBar * _arg0; | |
8906 | int _arg1; | |
8907 | bool _arg2; | |
8908 | PyObject * _argo0 = 0; | |
8909 | int tempbool2; | |
8910 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8911 | ||
8912 | self = self; | |
8913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8914 | return NULL; | |
8915 | if (_argo0) { | |
8916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
8919 | return NULL; | |
8920 | } | |
8921 | } | |
8922 | _arg2 = (bool ) tempbool2; | |
8923 | { | |
8924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8925 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
8926 | ||
8927 | wxPyEndAllowThreads(__tstate); | |
8928 | if (PyErr_Occurred()) return NULL; | |
8929 | } Py_INCREF(Py_None); | |
8930 | _resultobj = Py_None; | |
8931 | return _resultobj; | |
8932 | } | |
8933 | ||
8934 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8935 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8936 | PyObject * _resultobj; | |
8937 | wxMenuBar * _arg0; | |
8938 | int _arg1; | |
8939 | bool _arg2; | |
8940 | PyObject * _argo0 = 0; | |
8941 | int tempbool2; | |
8942 | char *_kwnames[] = { "self","id","check", NULL }; | |
8943 | ||
8944 | self = self; | |
8945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8946 | return NULL; | |
8947 | if (_argo0) { | |
8948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
8951 | return NULL; | |
8952 | } | |
8953 | } | |
8954 | _arg2 = (bool ) tempbool2; | |
8955 | { | |
8956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8957 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
8958 | ||
8959 | wxPyEndAllowThreads(__tstate); | |
8960 | if (PyErr_Occurred()) return NULL; | |
8961 | } Py_INCREF(Py_None); | |
8962 | _resultobj = Py_None; | |
8963 | return _resultobj; | |
8964 | } | |
8965 | ||
8966 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
8967 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8968 | PyObject * _resultobj; | |
8969 | bool _result; | |
8970 | wxMenuBar * _arg0; | |
8971 | int _arg1; | |
8972 | PyObject * _argo0 = 0; | |
8973 | char *_kwnames[] = { "self","id", NULL }; | |
8974 | ||
8975 | self = self; | |
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8977 | return NULL; | |
8978 | if (_argo0) { | |
8979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
8981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8982 | return NULL; | |
8983 | } | |
8984 | } | |
8985 | { | |
8986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8987 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); | |
8988 | ||
8989 | wxPyEndAllowThreads(__tstate); | |
8990 | if (PyErr_Occurred()) return NULL; | |
8991 | } _resultobj = Py_BuildValue("i",_result); | |
8992 | return _resultobj; | |
8993 | } | |
8994 | ||
8995 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
8996 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject * _resultobj; | |
8998 | bool _result; | |
8999 | wxMenuBar * _arg0; | |
9000 | int _arg1; | |
9001 | PyObject * _argo0 = 0; | |
9002 | char *_kwnames[] = { "self","id", NULL }; | |
9003 | ||
9004 | self = self; | |
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
9006 | return NULL; | |
9007 | if (_argo0) { | |
9008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
9011 | return NULL; | |
9012 | } | |
9013 | } | |
9014 | { | |
9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9016 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); | |
9017 | ||
9018 | wxPyEndAllowThreads(__tstate); | |
9019 | if (PyErr_Occurred()) return NULL; | |
9020 | } _resultobj = Py_BuildValue("i",_result); | |
9021 | return _resultobj; | |
9022 | } | |
9023 | ||
9024 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
9025 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9026 | PyObject * _resultobj; | |
9027 | wxMenuBar * _arg0; | |
9028 | int _arg1; | |
9029 | wxString * _arg2; | |
9030 | PyObject * _argo0 = 0; | |
9031 | PyObject * _obj2 = 0; | |
9032 | char *_kwnames[] = { "self","id","label", NULL }; | |
9033 | ||
9034 | self = self; | |
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9036 | return NULL; | |
9037 | if (_argo0) { | |
9038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
9041 | return NULL; | |
9042 | } | |
9043 | } | |
9044 | { | |
9045 | #if PYTHON_API_VERSION >= 1009 | |
9046 | char* tmpPtr; int tmpSize; | |
9047 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9048 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9049 | return NULL; | |
9050 | } | |
9051 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9052 | return NULL; | |
9053 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9054 | #else | |
9055 | if (!PyString_Check(_obj2)) { | |
9056 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9057 | return NULL; | |
9058 | } | |
9059 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9060 | #endif | |
9061 | } | |
9062 | { | |
9063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9064 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | |
9065 | ||
9066 | wxPyEndAllowThreads(__tstate); | |
9067 | if (PyErr_Occurred()) return NULL; | |
9068 | } Py_INCREF(Py_None); | |
9069 | _resultobj = Py_None; | |
9070 | { | |
9071 | if (_obj2) | |
9072 | delete _arg2; | |
9073 | } | |
9074 | return _resultobj; | |
9075 | } | |
9076 | ||
9077 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
9078 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9079 | PyObject * _resultobj; | |
9080 | wxString * _result; | |
9081 | wxMenuBar * _arg0; | |
9082 | int _arg1; | |
9083 | PyObject * _argo0 = 0; | |
9084 | char *_kwnames[] = { "self","id", NULL }; | |
9085 | ||
9086 | self = self; | |
9087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
9088 | return NULL; | |
9089 | if (_argo0) { | |
9090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9093 | return NULL; | |
9094 | } | |
9095 | } | |
9096 | { | |
9097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9098 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
9099 | ||
9100 | wxPyEndAllowThreads(__tstate); | |
9101 | if (PyErr_Occurred()) return NULL; | |
9102 | }{ | |
9103 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9104 | } | |
9105 | { | |
9106 | delete _result; | |
9107 | } | |
9108 | return _resultobj; | |
9109 | } | |
9110 | ||
9111 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9112 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9113 | PyObject * _resultobj; | |
9114 | wxMenuBar * _arg0; | |
9115 | int _arg1; | |
9116 | wxString * _arg2; | |
9117 | PyObject * _argo0 = 0; | |
9118 | PyObject * _obj2 = 0; | |
9119 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9120 | ||
9121 | self = self; | |
9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9123 | return NULL; | |
9124 | if (_argo0) { | |
9125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9128 | return NULL; | |
9129 | } | |
9130 | } | |
9131 | { | |
9132 | #if PYTHON_API_VERSION >= 1009 | |
9133 | char* tmpPtr; int tmpSize; | |
9134 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9135 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9136 | return NULL; | |
9137 | } | |
9138 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9139 | return NULL; | |
9140 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9141 | #else | |
9142 | if (!PyString_Check(_obj2)) { | |
9143 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9144 | return NULL; | |
9145 | } | |
9146 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9147 | #endif | |
9148 | } | |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
9152 | ||
9153 | wxPyEndAllowThreads(__tstate); | |
9154 | if (PyErr_Occurred()) return NULL; | |
9155 | } Py_INCREF(Py_None); | |
9156 | _resultobj = Py_None; | |
9157 | { | |
9158 | if (_obj2) | |
9159 | delete _arg2; | |
9160 | } | |
9161 | return _resultobj; | |
9162 | } | |
9163 | ||
9164 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9165 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject * _resultobj; | |
9167 | wxString * _result; | |
9168 | wxMenuBar * _arg0; | |
9169 | int _arg1; | |
9170 | PyObject * _argo0 = 0; | |
9171 | char *_kwnames[] = { "self","id", NULL }; | |
9172 | ||
9173 | self = self; | |
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9175 | return NULL; | |
9176 | if (_argo0) { | |
9177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
9180 | return NULL; | |
9181 | } | |
9182 | } | |
9183 | { | |
9184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9185 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | |
9186 | ||
9187 | wxPyEndAllowThreads(__tstate); | |
9188 | if (PyErr_Occurred()) return NULL; | |
9189 | }{ | |
9190 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9191 | } | |
9192 | { | |
9193 | delete _result; | |
9194 | } | |
9195 | return _resultobj; | |
9196 | } | |
9197 | ||
9198 | static void *SwigwxMenuItemTowxObject(void *ptr) { | |
9199 | wxMenuItem *src; | |
9200 | wxObject *dest; | |
9201 | src = (wxMenuItem *) ptr; | |
9202 | dest = (wxObject *) src; | |
9203 | return (void *) dest; | |
9204 | } | |
9205 | ||
9206 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
9207 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9208 | PyObject * _resultobj; | |
9209 | wxMenuItem * _result; | |
9210 | wxMenu * _arg0 = (wxMenu *) NULL; | |
9211 | int _arg1 = (int ) wxID_SEPARATOR; | |
9212 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
9213 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
9214 | bool _arg4 = (bool ) FALSE; | |
9215 | wxMenu * _arg5 = (wxMenu *) NULL; | |
9216 | PyObject * _argo0 = 0; | |
9217 | PyObject * _obj2 = 0; | |
9218 | PyObject * _obj3 = 0; | |
9219 | int tempbool4 = (int) FALSE; | |
9220 | PyObject * _argo5 = 0; | |
9221 | char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL }; | |
9222 | char _ptemp[128]; | |
9223 | ||
9224 | self = self; | |
9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5)) | |
9226 | return NULL; | |
9227 | if (_argo0) { | |
9228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9231 | return NULL; | |
9232 | } | |
9233 | } | |
9234 | if (_obj2) | |
9235 | { | |
9236 | #if PYTHON_API_VERSION >= 1009 | |
9237 | char* tmpPtr; int tmpSize; | |
9238 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9239 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9240 | return NULL; | |
9241 | } | |
9242 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9243 | return NULL; | |
9244 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9245 | #else | |
9246 | if (!PyString_Check(_obj2)) { | |
9247 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9248 | return NULL; | |
9249 | } | |
9250 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9251 | #endif | |
9252 | } | |
9253 | if (_obj3) | |
9254 | { | |
9255 | #if PYTHON_API_VERSION >= 1009 | |
9256 | char* tmpPtr; int tmpSize; | |
9257 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
9258 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9259 | return NULL; | |
9260 | } | |
9261 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
9262 | return NULL; | |
9263 | _arg3 = new wxString(tmpPtr, tmpSize); | |
9264 | #else | |
9265 | if (!PyString_Check(_obj3)) { | |
9266 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9267 | return NULL; | |
9268 | } | |
9269 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
9270 | #endif | |
9271 | } | |
9272 | _arg4 = (bool ) tempbool4; | |
9273 | if (_argo5) { | |
9274 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
9275 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
9276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
9277 | return NULL; | |
9278 | } | |
9279 | } | |
9280 | { | |
9281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9282 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
9283 | ||
9284 | wxPyEndAllowThreads(__tstate); | |
9285 | if (PyErr_Occurred()) return NULL; | |
9286 | } if (_result) { | |
9287 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
9288 | _resultobj = Py_BuildValue("s",_ptemp); | |
9289 | } else { | |
9290 | Py_INCREF(Py_None); | |
9291 | _resultobj = Py_None; | |
9292 | } | |
9293 | { | |
9294 | if (_obj2) | |
9295 | delete _arg2; | |
9296 | } | |
9297 | { | |
9298 | if (_obj3) | |
9299 | delete _arg3; | |
9300 | } | |
9301 | return _resultobj; | |
9302 | } | |
9303 | ||
9304 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) | |
9305 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9306 | PyObject * _resultobj; | |
9307 | wxMenu * _result; | |
9308 | wxMenuItem * _arg0; | |
9309 | PyObject * _argo0 = 0; | |
9310 | char *_kwnames[] = { "self", NULL }; | |
9311 | ||
9312 | self = self; | |
9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) | |
9314 | return NULL; | |
9315 | if (_argo0) { | |
9316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); | |
9319 | return NULL; | |
9320 | } | |
9321 | } | |
9322 | { | |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) return NULL; | |
9328 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9329 | return _resultobj; | |
9330 | } | |
9331 | ||
9332 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
9333 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9334 | PyObject * _resultobj; | |
9335 | wxMenuItem * _arg0; | |
9336 | int _arg1; | |
9337 | PyObject * _argo0 = 0; | |
9338 | char *_kwnames[] = { "self","id", NULL }; | |
9339 | ||
9340 | self = self; | |
9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) | |
9342 | return NULL; | |
9343 | if (_argo0) { | |
9344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); | |
9347 | return NULL; | |
9348 | } | |
9349 | } | |
9350 | { | |
9351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9352 | wxMenuItem_SetId(_arg0,_arg1); | |
9353 | ||
9354 | wxPyEndAllowThreads(__tstate); | |
9355 | if (PyErr_Occurred()) return NULL; | |
9356 | } Py_INCREF(Py_None); | |
9357 | _resultobj = Py_None; | |
9358 | return _resultobj; | |
9359 | } | |
9360 | ||
9361 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
9362 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9363 | PyObject * _resultobj; | |
9364 | int _result; | |
9365 | wxMenuItem * _arg0; | |
9366 | PyObject * _argo0 = 0; | |
9367 | char *_kwnames[] = { "self", NULL }; | |
9368 | ||
9369 | self = self; | |
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) | |
9371 | return NULL; | |
9372 | if (_argo0) { | |
9373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); | |
9376 | return NULL; | |
9377 | } | |
9378 | } | |
9379 | { | |
9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9381 | _result = (int )wxMenuItem_GetId(_arg0); | |
9382 | ||
9383 | wxPyEndAllowThreads(__tstate); | |
9384 | if (PyErr_Occurred()) return NULL; | |
9385 | } _resultobj = Py_BuildValue("i",_result); | |
9386 | return _resultobj; | |
9387 | } | |
9388 | ||
9389 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
9390 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9391 | PyObject * _resultobj; | |
9392 | bool _result; | |
9393 | wxMenuItem * _arg0; | |
9394 | PyObject * _argo0 = 0; | |
9395 | char *_kwnames[] = { "self", NULL }; | |
9396 | ||
9397 | self = self; | |
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) | |
9399 | return NULL; | |
9400 | if (_argo0) { | |
9401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); | |
9404 | return NULL; | |
9405 | } | |
9406 | } | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | _result = (bool )wxMenuItem_IsSeparator(_arg0); | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) return NULL; | |
9413 | } _resultobj = Py_BuildValue("i",_result); | |
9414 | return _resultobj; | |
9415 | } | |
9416 | ||
9417 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
9418 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9419 | PyObject * _resultobj; | |
9420 | wxMenuItem * _arg0; | |
9421 | wxString * _arg1; | |
9422 | PyObject * _argo0 = 0; | |
9423 | PyObject * _obj1 = 0; | |
9424 | char *_kwnames[] = { "self","str", NULL }; | |
9425 | ||
9426 | self = self; | |
9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) | |
9428 | return NULL; | |
9429 | if (_argo0) { | |
9430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); | |
9433 | return NULL; | |
9434 | } | |
9435 | } | |
9436 | { | |
9437 | #if PYTHON_API_VERSION >= 1009 | |
9438 | char* tmpPtr; int tmpSize; | |
9439 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9440 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9441 | return NULL; | |
9442 | } | |
9443 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9444 | return NULL; | |
9445 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9446 | #else | |
9447 | if (!PyString_Check(_obj1)) { | |
9448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9449 | return NULL; | |
9450 | } | |
9451 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9452 | #endif | |
9453 | } | |
9454 | { | |
9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9456 | wxMenuItem_SetText(_arg0,*_arg1); | |
9457 | ||
9458 | wxPyEndAllowThreads(__tstate); | |
9459 | if (PyErr_Occurred()) return NULL; | |
9460 | } Py_INCREF(Py_None); | |
9461 | _resultobj = Py_None; | |
9462 | { | |
9463 | if (_obj1) | |
9464 | delete _arg1; | |
9465 | } | |
9466 | return _resultobj; | |
9467 | } | |
9468 | ||
9469 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
9470 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9471 | PyObject * _resultobj; | |
9472 | wxString * _result; | |
9473 | wxMenuItem * _arg0; | |
9474 | PyObject * _argo0 = 0; | |
9475 | char *_kwnames[] = { "self", NULL }; | |
9476 | ||
9477 | self = self; | |
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) | |
9479 | return NULL; | |
9480 | if (_argo0) { | |
9481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); | |
9484 | return NULL; | |
9485 | } | |
9486 | } | |
9487 | { | |
9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9489 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); | |
9490 | ||
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) return NULL; | |
9493 | }{ | |
9494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9495 | } | |
9496 | { | |
9497 | delete _result; | |
9498 | } | |
9499 | return _resultobj; | |
9500 | } | |
9501 | ||
9502 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) | |
9503 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9504 | PyObject * _resultobj; | |
9505 | wxString * _result; | |
9506 | wxMenuItem * _arg0; | |
9507 | PyObject * _argo0 = 0; | |
9508 | char *_kwnames[] = { "self", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | { | |
9521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9522 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); | |
9523 | _result = (wxString *) &_result_ref; | |
9524 | ||
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) return NULL; | |
9527 | }{ | |
9528 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9529 | } | |
9530 | return _resultobj; | |
9531 | } | |
9532 | ||
9533 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) | |
9534 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9535 | PyObject * _resultobj; | |
9536 | wxMenuItem * _arg0; | |
9537 | bool _arg1; | |
9538 | PyObject * _argo0 = 0; | |
9539 | int tempbool1; | |
9540 | char *_kwnames[] = { "self","checkable", NULL }; | |
9541 | ||
9542 | self = self; | |
9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) | |
9544 | return NULL; | |
9545 | if (_argo0) { | |
9546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); | |
9549 | return NULL; | |
9550 | } | |
9551 | } | |
9552 | _arg1 = (bool ) tempbool1; | |
9553 | { | |
9554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9555 | wxMenuItem_SetCheckable(_arg0,_arg1); | |
9556 | ||
9557 | wxPyEndAllowThreads(__tstate); | |
9558 | if (PyErr_Occurred()) return NULL; | |
9559 | } Py_INCREF(Py_None); | |
9560 | _resultobj = Py_None; | |
9561 | return _resultobj; | |
9562 | } | |
9563 | ||
9564 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
9565 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject * _resultobj; | |
9567 | bool _result; | |
9568 | wxMenuItem * _arg0; | |
9569 | PyObject * _argo0 = 0; | |
9570 | char *_kwnames[] = { "self", NULL }; | |
9571 | ||
9572 | self = self; | |
9573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) | |
9574 | return NULL; | |
9575 | if (_argo0) { | |
9576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); | |
9579 | return NULL; | |
9580 | } | |
9581 | } | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9584 | _result = (bool )wxMenuItem_IsCheckable(_arg0); | |
9585 | ||
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) return NULL; | |
9588 | } _resultobj = Py_BuildValue("i",_result); | |
9589 | return _resultobj; | |
9590 | } | |
9591 | ||
9592 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) | |
9593 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9594 | PyObject * _resultobj; | |
9595 | bool _result; | |
9596 | wxMenuItem * _arg0; | |
9597 | PyObject * _argo0 = 0; | |
9598 | char *_kwnames[] = { "self", NULL }; | |
9599 | ||
9600 | self = self; | |
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) | |
9602 | return NULL; | |
9603 | if (_argo0) { | |
9604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); | |
9607 | return NULL; | |
9608 | } | |
9609 | } | |
9610 | { | |
9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9612 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); | |
9613 | ||
9614 | wxPyEndAllowThreads(__tstate); | |
9615 | if (PyErr_Occurred()) return NULL; | |
9616 | } _resultobj = Py_BuildValue("i",_result); | |
9617 | return _resultobj; | |
9618 | } | |
9619 | ||
9620 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) | |
9621 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9622 | PyObject * _resultobj; | |
9623 | wxMenuItem * _arg0; | |
9624 | wxMenu * _arg1; | |
9625 | PyObject * _argo0 = 0; | |
9626 | PyObject * _argo1 = 0; | |
9627 | char *_kwnames[] = { "self","menu", NULL }; | |
9628 | ||
9629 | self = self; | |
9630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) | |
9631 | return NULL; | |
9632 | if (_argo0) { | |
9633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); | |
9636 | return NULL; | |
9637 | } | |
9638 | } | |
9639 | if (_argo1) { | |
9640 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9641 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
9643 | return NULL; | |
9644 | } | |
9645 | } | |
9646 | { | |
9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9648 | wxMenuItem_SetSubMenu(_arg0,_arg1); | |
9649 | ||
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) return NULL; | |
9652 | } Py_INCREF(Py_None); | |
9653 | _resultobj = Py_None; | |
9654 | return _resultobj; | |
9655 | } | |
9656 | ||
9657 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
9658 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9659 | PyObject * _resultobj; | |
9660 | wxMenu * _result; | |
9661 | wxMenuItem * _arg0; | |
9662 | PyObject * _argo0 = 0; | |
9663 | char *_kwnames[] = { "self", NULL }; | |
9664 | ||
9665 | self = self; | |
9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) | |
9667 | return NULL; | |
9668 | if (_argo0) { | |
9669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); | |
9672 | return NULL; | |
9673 | } | |
9674 | } | |
9675 | { | |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
9678 | ||
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) return NULL; | |
9681 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9682 | return _resultobj; | |
9683 | } | |
9684 | ||
9685 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
9686 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9687 | PyObject * _resultobj; | |
9688 | wxMenuItem * _arg0; | |
9689 | bool _arg1 = (bool ) TRUE; | |
9690 | PyObject * _argo0 = 0; | |
9691 | int tempbool1 = (int) TRUE; | |
9692 | char *_kwnames[] = { "self","enable", NULL }; | |
9693 | ||
9694 | self = self; | |
9695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
9696 | return NULL; | |
9697 | if (_argo0) { | |
9698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
9701 | return NULL; | |
9702 | } | |
9703 | } | |
9704 | _arg1 = (bool ) tempbool1; | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | wxMenuItem_Enable(_arg0,_arg1); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) return NULL; | |
9711 | } Py_INCREF(Py_None); | |
9712 | _resultobj = Py_None; | |
9713 | return _resultobj; | |
9714 | } | |
9715 | ||
9716 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
9717 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject * _resultobj; | |
9719 | bool _result; | |
9720 | wxMenuItem * _arg0; | |
9721 | PyObject * _argo0 = 0; | |
9722 | char *_kwnames[] = { "self", NULL }; | |
9723 | ||
9724 | self = self; | |
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) | |
9726 | return NULL; | |
9727 | if (_argo0) { | |
9728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); | |
9731 | return NULL; | |
9732 | } | |
9733 | } | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | _result = (bool )wxMenuItem_IsEnabled(_arg0); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) return NULL; | |
9740 | } _resultobj = Py_BuildValue("i",_result); | |
9741 | return _resultobj; | |
9742 | } | |
9743 | ||
9744 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
9745 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9746 | PyObject * _resultobj; | |
9747 | wxMenuItem * _arg0; | |
9748 | bool _arg1 = (bool ) TRUE; | |
9749 | PyObject * _argo0 = 0; | |
9750 | int tempbool1 = (int) TRUE; | |
9751 | char *_kwnames[] = { "self","check", NULL }; | |
9752 | ||
9753 | self = self; | |
9754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) | |
9755 | return NULL; | |
9756 | if (_argo0) { | |
9757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); | |
9760 | return NULL; | |
9761 | } | |
9762 | } | |
9763 | _arg1 = (bool ) tempbool1; | |
9764 | { | |
9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9766 | wxMenuItem_Check(_arg0,_arg1); | |
9767 | ||
9768 | wxPyEndAllowThreads(__tstate); | |
9769 | if (PyErr_Occurred()) return NULL; | |
9770 | } Py_INCREF(Py_None); | |
9771 | _resultobj = Py_None; | |
9772 | return _resultobj; | |
9773 | } | |
9774 | ||
9775 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
9776 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject * _resultobj; | |
9778 | bool _result; | |
9779 | wxMenuItem * _arg0; | |
9780 | PyObject * _argo0 = 0; | |
9781 | char *_kwnames[] = { "self", NULL }; | |
9782 | ||
9783 | self = self; | |
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) | |
9785 | return NULL; | |
9786 | if (_argo0) { | |
9787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); | |
9790 | return NULL; | |
9791 | } | |
9792 | } | |
9793 | { | |
9794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9795 | _result = (bool )wxMenuItem_IsChecked(_arg0); | |
9796 | ||
9797 | wxPyEndAllowThreads(__tstate); | |
9798 | if (PyErr_Occurred()) return NULL; | |
9799 | } _resultobj = Py_BuildValue("i",_result); | |
9800 | return _resultobj; | |
9801 | } | |
9802 | ||
9803 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) | |
9804 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9805 | PyObject * _resultobj; | |
9806 | wxMenuItem * _arg0; | |
9807 | PyObject * _argo0 = 0; | |
9808 | char *_kwnames[] = { "self", NULL }; | |
9809 | ||
9810 | self = self; | |
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) | |
9812 | return NULL; | |
9813 | if (_argo0) { | |
9814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); | |
9817 | return NULL; | |
9818 | } | |
9819 | } | |
9820 | { | |
9821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9822 | wxMenuItem_Toggle(_arg0); | |
9823 | ||
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) return NULL; | |
9826 | } Py_INCREF(Py_None); | |
9827 | _resultobj = Py_None; | |
9828 | return _resultobj; | |
9829 | } | |
9830 | ||
9831 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
9832 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9833 | PyObject * _resultobj; | |
9834 | wxMenuItem * _arg0; | |
9835 | wxString * _arg1; | |
9836 | PyObject * _argo0 = 0; | |
9837 | PyObject * _obj1 = 0; | |
9838 | char *_kwnames[] = { "self","str", NULL }; | |
9839 | ||
9840 | self = self; | |
9841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) | |
9842 | return NULL; | |
9843 | if (_argo0) { | |
9844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); | |
9847 | return NULL; | |
9848 | } | |
9849 | } | |
9850 | { | |
9851 | #if PYTHON_API_VERSION >= 1009 | |
9852 | char* tmpPtr; int tmpSize; | |
9853 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9855 | return NULL; | |
9856 | } | |
9857 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9858 | return NULL; | |
9859 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9860 | #else | |
9861 | if (!PyString_Check(_obj1)) { | |
9862 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9863 | return NULL; | |
9864 | } | |
9865 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9866 | #endif | |
9867 | } | |
9868 | { | |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | wxMenuItem_SetHelp(_arg0,*_arg1); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) return NULL; | |
9874 | } Py_INCREF(Py_None); | |
9875 | _resultobj = Py_None; | |
9876 | { | |
9877 | if (_obj1) | |
9878 | delete _arg1; | |
9879 | } | |
9880 | return _resultobj; | |
9881 | } | |
9882 | ||
9883 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) | |
9884 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject * _resultobj; | |
9886 | wxString * _result; | |
9887 | wxMenuItem * _arg0; | |
9888 | PyObject * _argo0 = 0; | |
9889 | char *_kwnames[] = { "self", NULL }; | |
9890 | ||
9891 | self = self; | |
9892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) | |
9893 | return NULL; | |
9894 | if (_argo0) { | |
9895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); | |
9898 | return NULL; | |
9899 | } | |
9900 | } | |
9901 | { | |
9902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9903 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); | |
9904 | _result = (wxString *) &_result_ref; | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) return NULL; | |
9908 | }{ | |
9909 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9910 | } | |
9911 | return _resultobj; | |
9912 | } | |
9913 | ||
9914 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) | |
9915 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9916 | PyObject * _resultobj; | |
9917 | wxAcceleratorEntry * _result; | |
9918 | wxMenuItem * _arg0; | |
9919 | PyObject * _argo0 = 0; | |
9920 | char *_kwnames[] = { "self", NULL }; | |
9921 | char _ptemp[128]; | |
9922 | ||
9923 | self = self; | |
9924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) | |
9925 | return NULL; | |
9926 | if (_argo0) { | |
9927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); | |
9930 | return NULL; | |
9931 | } | |
9932 | } | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) return NULL; | |
9939 | } if (_result) { | |
9940 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
9941 | _resultobj = Py_BuildValue("s",_ptemp); | |
9942 | } else { | |
9943 | Py_INCREF(Py_None); | |
9944 | _resultobj = Py_None; | |
9945 | } | |
9946 | return _resultobj; | |
9947 | } | |
9948 | ||
9949 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) | |
9950 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9951 | PyObject * _resultobj; | |
9952 | wxMenuItem * _arg0; | |
9953 | wxAcceleratorEntry * _arg1; | |
9954 | PyObject * _argo0 = 0; | |
9955 | PyObject * _argo1 = 0; | |
9956 | char *_kwnames[] = { "self","accel", NULL }; | |
9957 | ||
9958 | self = self; | |
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) | |
9960 | return NULL; | |
9961 | if (_argo0) { | |
9962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
9964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); | |
9965 | return NULL; | |
9966 | } | |
9967 | } | |
9968 | if (_argo1) { | |
9969 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9970 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { | |
9971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
9972 | return NULL; | |
9973 | } | |
9974 | } | |
9975 | { | |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | wxMenuItem_SetAccel(_arg0,_arg1); | |
9978 | ||
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) return NULL; | |
9981 | } Py_INCREF(Py_None); | |
9982 | _resultobj = Py_None; | |
9983 | return _resultobj; | |
9984 | } | |
9985 | ||
9986 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9987 | PyObject * _resultobj; | |
9988 | wxString * _result; | |
9989 | wxString * _arg0; | |
9990 | PyObject * _obj0 = 0; | |
9991 | char *_kwnames[] = { "text", NULL }; | |
9992 | ||
9993 | self = self; | |
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
9995 | return NULL; | |
9996 | { | |
9997 | #if PYTHON_API_VERSION >= 1009 | |
9998 | char* tmpPtr; int tmpSize; | |
9999 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
10000 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10001 | return NULL; | |
10002 | } | |
10003 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
10004 | return NULL; | |
10005 | _arg0 = new wxString(tmpPtr, tmpSize); | |
10006 | #else | |
10007 | if (!PyString_Check(_obj0)) { | |
10008 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10009 | return NULL; | |
10010 | } | |
10011 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
10012 | #endif | |
10013 | } | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) return NULL; | |
10020 | }{ | |
10021 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10022 | } | |
10023 | { | |
10024 | if (_obj0) | |
10025 | delete _arg0; | |
10026 | } | |
10027 | { | |
10028 | delete _result; | |
10029 | } | |
10030 | return _resultobj; | |
10031 | } | |
10032 | ||
10033 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
10034 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10035 | PyObject * _resultobj; | |
10036 | wxMenuItem * _arg0; | |
10037 | wxFont * _arg1; | |
10038 | PyObject * _argo0 = 0; | |
10039 | PyObject * _argo1 = 0; | |
10040 | char *_kwnames[] = { "self","font", NULL }; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
10044 | return NULL; | |
10045 | if (_argo0) { | |
10046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | if (_argo1) { | |
10053 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10054 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10056 | return NULL; | |
10057 | } | |
10058 | } | |
10059 | { | |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | wxMenuItem_SetFont(_arg0,*_arg1); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) return NULL; | |
10065 | } Py_INCREF(Py_None); | |
10066 | _resultobj = Py_None; | |
10067 | return _resultobj; | |
10068 | } | |
10069 | ||
10070 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10071 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject * _resultobj; | |
10073 | wxFont * _result; | |
10074 | wxMenuItem * _arg0; | |
10075 | PyObject * _argo0 = 0; | |
10076 | char *_kwnames[] = { "self", NULL }; | |
10077 | char _ptemp[128]; | |
10078 | ||
10079 | self = self; | |
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10081 | return NULL; | |
10082 | if (_argo0) { | |
10083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10086 | return NULL; | |
10087 | } | |
10088 | } | |
10089 | { | |
10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10091 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); | |
10092 | ||
10093 | wxPyEndAllowThreads(__tstate); | |
10094 | if (PyErr_Occurred()) return NULL; | |
10095 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
10096 | _resultobj = Py_BuildValue("s",_ptemp); | |
10097 | return _resultobj; | |
10098 | } | |
10099 | ||
10100 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10101 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10102 | PyObject * _resultobj; | |
10103 | wxMenuItem * _arg0; | |
10104 | wxColour * _arg1; | |
10105 | PyObject * _argo0 = 0; | |
10106 | wxColour temp; | |
10107 | PyObject * _obj1 = 0; | |
10108 | char *_kwnames[] = { "self","colText", NULL }; | |
10109 | ||
10110 | self = self; | |
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10112 | return NULL; | |
10113 | if (_argo0) { | |
10114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10117 | return NULL; | |
10118 | } | |
10119 | } | |
10120 | { | |
10121 | _arg1 = &temp; | |
10122 | if (! wxColour_helper(_obj1, &_arg1)) | |
10123 | return NULL; | |
10124 | } | |
10125 | { | |
10126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10127 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
10128 | ||
10129 | wxPyEndAllowThreads(__tstate); | |
10130 | if (PyErr_Occurred()) return NULL; | |
10131 | } Py_INCREF(Py_None); | |
10132 | _resultobj = Py_None; | |
10133 | return _resultobj; | |
10134 | } | |
10135 | ||
10136 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10137 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10138 | PyObject * _resultobj; | |
10139 | wxColour * _result; | |
10140 | wxMenuItem * _arg0; | |
10141 | PyObject * _argo0 = 0; | |
10142 | char *_kwnames[] = { "self", NULL }; | |
10143 | char _ptemp[128]; | |
10144 | ||
10145 | self = self; | |
10146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10147 | return NULL; | |
10148 | if (_argo0) { | |
10149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10152 | return NULL; | |
10153 | } | |
10154 | } | |
10155 | { | |
10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10157 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); | |
10158 | ||
10159 | wxPyEndAllowThreads(__tstate); | |
10160 | if (PyErr_Occurred()) return NULL; | |
10161 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10162 | _resultobj = Py_BuildValue("s",_ptemp); | |
10163 | return _resultobj; | |
10164 | } | |
10165 | ||
10166 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10167 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10168 | PyObject * _resultobj; | |
10169 | wxMenuItem * _arg0; | |
10170 | wxColour * _arg1; | |
10171 | PyObject * _argo0 = 0; | |
10172 | wxColour temp; | |
10173 | PyObject * _obj1 = 0; | |
10174 | char *_kwnames[] = { "self","colBack", NULL }; | |
10175 | ||
10176 | self = self; | |
10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10178 | return NULL; | |
10179 | if (_argo0) { | |
10180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10183 | return NULL; | |
10184 | } | |
10185 | } | |
10186 | { | |
10187 | _arg1 = &temp; | |
10188 | if (! wxColour_helper(_obj1, &_arg1)) | |
10189 | return NULL; | |
10190 | } | |
10191 | { | |
10192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10193 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
10194 | ||
10195 | wxPyEndAllowThreads(__tstate); | |
10196 | if (PyErr_Occurred()) return NULL; | |
10197 | } Py_INCREF(Py_None); | |
10198 | _resultobj = Py_None; | |
10199 | return _resultobj; | |
10200 | } | |
10201 | ||
10202 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10203 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10204 | PyObject * _resultobj; | |
10205 | wxColour * _result; | |
10206 | wxMenuItem * _arg0; | |
10207 | PyObject * _argo0 = 0; | |
10208 | char *_kwnames[] = { "self", NULL }; | |
10209 | char _ptemp[128]; | |
10210 | ||
10211 | self = self; | |
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10213 | return NULL; | |
10214 | if (_argo0) { | |
10215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10218 | return NULL; | |
10219 | } | |
10220 | } | |
10221 | { | |
10222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10223 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); | |
10224 | ||
10225 | wxPyEndAllowThreads(__tstate); | |
10226 | if (PyErr_Occurred()) return NULL; | |
10227 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10228 | _resultobj = Py_BuildValue("s",_ptemp); | |
10229 | return _resultobj; | |
10230 | } | |
10231 | ||
10232 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10233 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject * _resultobj; | |
10235 | wxMenuItem * _arg0; | |
10236 | wxBitmap * _arg1; | |
10237 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10238 | PyObject * _argo0 = 0; | |
10239 | PyObject * _argo1 = 0; | |
10240 | PyObject * _argo2 = 0; | |
10241 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
10242 | ||
10243 | self = self; | |
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10245 | return NULL; | |
10246 | if (_argo0) { | |
10247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
10250 | return NULL; | |
10251 | } | |
10252 | } | |
10253 | if (_argo1) { | |
10254 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10255 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10257 | return NULL; | |
10258 | } | |
10259 | } | |
10260 | if (_argo2) { | |
10261 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10262 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
10264 | return NULL; | |
10265 | } | |
10266 | } | |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) return NULL; | |
10273 | } Py_INCREF(Py_None); | |
10274 | _resultobj = Py_None; | |
10275 | return _resultobj; | |
10276 | } | |
10277 | ||
10278 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
10279 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject * _resultobj; | |
10281 | wxMenuItem * _arg0; | |
10282 | wxBitmap * _arg1; | |
10283 | PyObject * _argo0 = 0; | |
10284 | PyObject * _argo1 = 0; | |
10285 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
10286 | ||
10287 | self = self; | |
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
10289 | return NULL; | |
10290 | if (_argo0) { | |
10291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
10294 | return NULL; | |
10295 | } | |
10296 | } | |
10297 | if (_argo1) { | |
10298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
10301 | return NULL; | |
10302 | } | |
10303 | } | |
10304 | { | |
10305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10306 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
10307 | ||
10308 | wxPyEndAllowThreads(__tstate); | |
10309 | if (PyErr_Occurred()) return NULL; | |
10310 | } Py_INCREF(Py_None); | |
10311 | _resultobj = Py_None; | |
10312 | return _resultobj; | |
10313 | } | |
10314 | ||
10315 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
10316 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject * _resultobj; | |
10318 | wxBitmap * _result; | |
10319 | wxMenuItem * _arg0; | |
10320 | bool _arg1 = (bool ) TRUE; | |
10321 | PyObject * _argo0 = 0; | |
10322 | int tempbool1 = (int) TRUE; | |
10323 | char *_kwnames[] = { "self","bChecked", NULL }; | |
10324 | char _ptemp[128]; | |
10325 | ||
10326 | self = self; | |
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
10328 | return NULL; | |
10329 | if (_argo0) { | |
10330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
10333 | return NULL; | |
10334 | } | |
10335 | } | |
10336 | _arg1 = (bool ) tempbool1; | |
10337 | { | |
10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10339 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); | |
10340 | ||
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) return NULL; | |
10343 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
10344 | _resultobj = Py_BuildValue("s",_ptemp); | |
10345 | return _resultobj; | |
10346 | } | |
10347 | ||
10348 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
10349 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10350 | PyObject * _resultobj; | |
10351 | wxMenuItem * _arg0; | |
10352 | int _arg1; | |
10353 | PyObject * _argo0 = 0; | |
10354 | char *_kwnames[] = { "self","nWidth", NULL }; | |
10355 | ||
10356 | self = self; | |
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
10358 | return NULL; | |
10359 | if (_argo0) { | |
10360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
10363 | return NULL; | |
10364 | } | |
10365 | } | |
10366 | { | |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
10369 | ||
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) return NULL; | |
10372 | } Py_INCREF(Py_None); | |
10373 | _resultobj = Py_None; | |
10374 | return _resultobj; | |
10375 | } | |
10376 | ||
10377 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
10378 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10379 | PyObject * _resultobj; | |
10380 | int _result; | |
10381 | wxMenuItem * _arg0; | |
10382 | PyObject * _argo0 = 0; | |
10383 | char *_kwnames[] = { "self", NULL }; | |
10384 | ||
10385 | self = self; | |
10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
10387 | return NULL; | |
10388 | if (_argo0) { | |
10389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
10392 | return NULL; | |
10393 | } | |
10394 | } | |
10395 | { | |
10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10397 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
10398 | ||
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) return NULL; | |
10401 | } _resultobj = Py_BuildValue("i",_result); | |
10402 | return _resultobj; | |
10403 | } | |
10404 | ||
10405 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10406 | PyObject * _resultobj; | |
10407 | int _result; | |
10408 | char *_kwnames[] = { NULL }; | |
10409 | ||
10410 | self = self; | |
10411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
10412 | return NULL; | |
10413 | { | |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) return NULL; | |
10419 | } _resultobj = Py_BuildValue("i",_result); | |
10420 | return _resultobj; | |
10421 | } | |
10422 | ||
10423 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
10424 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10425 | PyObject * _resultobj; | |
10426 | bool _result; | |
10427 | wxMenuItem * _arg0; | |
10428 | PyObject * _argo0 = 0; | |
10429 | char *_kwnames[] = { "self", NULL }; | |
10430 | ||
10431 | self = self; | |
10432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
10433 | return NULL; | |
10434 | if (_argo0) { | |
10435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
10438 | return NULL; | |
10439 | } | |
10440 | } | |
10441 | { | |
10442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10443 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
10444 | ||
10445 | wxPyEndAllowThreads(__tstate); | |
10446 | if (PyErr_Occurred()) return NULL; | |
10447 | } _resultobj = Py_BuildValue("i",_result); | |
10448 | return _resultobj; | |
10449 | } | |
10450 | ||
10451 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
10452 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject * _resultobj; | |
10454 | wxMenuItem * _arg0; | |
10455 | PyObject * _argo0 = 0; | |
10456 | char *_kwnames[] = { "self", NULL }; | |
10457 | ||
10458 | self = self; | |
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
10460 | return NULL; | |
10461 | if (_argo0) { | |
10462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
10465 | return NULL; | |
10466 | } | |
10467 | } | |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10470 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
10471 | ||
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) return NULL; | |
10474 | } Py_INCREF(Py_None); | |
10475 | _resultobj = Py_None; | |
10476 | return _resultobj; | |
10477 | } | |
10478 | ||
10479 | static PyMethodDef windowscMethods[] = { | |
10480 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10481 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
10482 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10483 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10484 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
10485 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
10488 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10490 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10491 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10492 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10493 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10494 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
10495 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10496 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10497 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10498 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10499 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10500 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10501 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
10502 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10503 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
10507 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
10508 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10513 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10514 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10515 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10516 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10517 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10518 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10519 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10520 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10521 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10522 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10523 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
10524 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10525 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10526 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10527 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
10528 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10529 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10530 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10531 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10532 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10533 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10534 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10535 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10536 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
10537 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10538 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10539 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10540 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10541 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10542 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10543 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10544 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10545 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10546 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10547 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10548 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10549 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
10550 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10551 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
10552 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10553 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
10554 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10555 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10556 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
10557 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10558 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
10559 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10560 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10561 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10562 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10563 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10564 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10565 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10566 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10567 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
10568 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
10569 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
10570 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10571 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10572 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10573 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10574 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
10575 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
10576 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10577 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10578 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
10579 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
10580 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
10581 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
10582 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10583 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10584 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
10585 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10586 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10587 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10588 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
10589 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10590 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
10591 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
10592 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
10593 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
10594 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
10595 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
10596 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10597 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
10598 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10599 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, | |
10600 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
10601 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
10602 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
10603 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10604 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
10605 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
10606 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10607 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10608 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
10609 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
10610 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10611 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10612 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10613 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10614 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
10615 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
10616 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
10617 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, | |
10618 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
10619 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
10620 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
10621 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
10622 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
10623 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
10624 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
10625 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
10626 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
10627 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
10628 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
10629 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10630 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10631 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10632 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10633 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10634 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10635 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10636 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10637 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10638 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10639 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
10640 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
10641 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10642 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10643 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10644 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
10645 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10646 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
10647 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10648 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10649 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
10650 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
10651 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10652 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10653 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10654 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10655 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10656 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10657 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10658 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10659 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10660 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
10661 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
10662 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
10663 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
10664 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10665 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
10666 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
10667 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
10668 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10669 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10670 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
10671 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
10672 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
10673 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
10674 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
10675 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10676 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10677 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
10678 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10679 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10680 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | |
10681 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10682 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10683 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10684 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10685 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10686 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10687 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10688 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10689 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
10690 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10691 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
10692 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10693 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
10694 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10695 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
10696 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10697 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10698 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10699 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10700 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10701 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10702 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10703 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10704 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
10705 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10706 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
10707 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
10708 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10709 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10710 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
10711 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
10712 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10713 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10714 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10715 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
10716 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
10717 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10718 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10719 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10720 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
10721 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10722 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10723 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
10724 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
10725 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
10726 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10727 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
10728 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10729 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
10730 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10731 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
10732 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
10733 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
10734 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10735 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
10736 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
10737 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
10738 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, | |
10739 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
10740 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { NULL, NULL } | |
10771 | }; | |
10772 | #ifdef __cplusplus | |
10773 | } | |
10774 | #endif | |
10775 | /* | |
10776 | * This table is used by the pointer type-checker | |
10777 | */ | |
10778 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
10779 | { "_signed_long","_long",0}, | |
10780 | { "_wxPrintQuality","_wxCoord",0}, | |
10781 | { "_wxPrintQuality","_int",0}, | |
10782 | { "_wxPrintQuality","_signed_int",0}, | |
10783 | { "_wxPrintQuality","_unsigned_int",0}, | |
10784 | { "_wxPrintQuality","_wxWindowID",0}, | |
10785 | { "_wxPrintQuality","_uint",0}, | |
10786 | { "_wxPrintQuality","_EBool",0}, | |
10787 | { "_wxPrintQuality","_size_t",0}, | |
10788 | { "_wxPrintQuality","_time_t",0}, | |
10789 | { "_byte","_unsigned_char",0}, | |
10790 | { "_long","_unsigned_long",0}, | |
10791 | { "_long","_signed_long",0}, | |
10792 | { "_size_t","_wxCoord",0}, | |
10793 | { "_size_t","_wxPrintQuality",0}, | |
10794 | { "_size_t","_time_t",0}, | |
10795 | { "_size_t","_unsigned_int",0}, | |
10796 | { "_size_t","_int",0}, | |
10797 | { "_size_t","_wxWindowID",0}, | |
10798 | { "_size_t","_uint",0}, | |
10799 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
10800 | { "_uint","_wxCoord",0}, | |
10801 | { "_uint","_wxPrintQuality",0}, | |
10802 | { "_uint","_time_t",0}, | |
10803 | { "_uint","_size_t",0}, | |
10804 | { "_uint","_unsigned_int",0}, | |
10805 | { "_uint","_int",0}, | |
10806 | { "_uint","_wxWindowID",0}, | |
10807 | { "_wxChar","_char",0}, | |
10808 | { "_char","_wxChar",0}, | |
10809 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
10810 | { "_EBool","_wxCoord",0}, | |
10811 | { "_EBool","_wxPrintQuality",0}, | |
10812 | { "_EBool","_signed_int",0}, | |
10813 | { "_EBool","_int",0}, | |
10814 | { "_EBool","_wxWindowID",0}, | |
10815 | { "_unsigned_long","_long",0}, | |
10816 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
10817 | { "_signed_int","_wxCoord",0}, | |
10818 | { "_signed_int","_wxPrintQuality",0}, | |
10819 | { "_signed_int","_EBool",0}, | |
10820 | { "_signed_int","_wxWindowID",0}, | |
10821 | { "_signed_int","_int",0}, | |
10822 | { "_WXTYPE","_short",0}, | |
10823 | { "_WXTYPE","_signed_short",0}, | |
10824 | { "_WXTYPE","_unsigned_short",0}, | |
10825 | { "_unsigned_short","_WXTYPE",0}, | |
10826 | { "_unsigned_short","_short",0}, | |
10827 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
10828 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
10829 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
10830 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
10831 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
10832 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
10833 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
10834 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
10835 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
10836 | { "_signed_short","_WXTYPE",0}, | |
10837 | { "_signed_short","_short",0}, | |
10838 | { "_unsigned_char","_byte",0}, | |
10839 | { "_unsigned_int","_wxCoord",0}, | |
10840 | { "_unsigned_int","_wxPrintQuality",0}, | |
10841 | { "_unsigned_int","_time_t",0}, | |
10842 | { "_unsigned_int","_size_t",0}, | |
10843 | { "_unsigned_int","_uint",0}, | |
10844 | { "_unsigned_int","_wxWindowID",0}, | |
10845 | { "_unsigned_int","_int",0}, | |
10846 | { "_short","_WXTYPE",0}, | |
10847 | { "_short","_unsigned_short",0}, | |
10848 | { "_short","_signed_short",0}, | |
10849 | { "_wxWindowID","_wxCoord",0}, | |
10850 | { "_wxWindowID","_wxPrintQuality",0}, | |
10851 | { "_wxWindowID","_time_t",0}, | |
10852 | { "_wxWindowID","_size_t",0}, | |
10853 | { "_wxWindowID","_EBool",0}, | |
10854 | { "_wxWindowID","_uint",0}, | |
10855 | { "_wxWindowID","_int",0}, | |
10856 | { "_wxWindowID","_signed_int",0}, | |
10857 | { "_wxWindowID","_unsigned_int",0}, | |
10858 | { "_int","_wxCoord",0}, | |
10859 | { "_int","_wxPrintQuality",0}, | |
10860 | { "_int","_time_t",0}, | |
10861 | { "_int","_size_t",0}, | |
10862 | { "_int","_EBool",0}, | |
10863 | { "_int","_uint",0}, | |
10864 | { "_int","_wxWindowID",0}, | |
10865 | { "_int","_unsigned_int",0}, | |
10866 | { "_int","_signed_int",0}, | |
10867 | { "_time_t","_wxCoord",0}, | |
10868 | { "_time_t","_wxPrintQuality",0}, | |
10869 | { "_time_t","_unsigned_int",0}, | |
10870 | { "_time_t","_int",0}, | |
10871 | { "_time_t","_wxWindowID",0}, | |
10872 | { "_time_t","_uint",0}, | |
10873 | { "_time_t","_size_t",0}, | |
10874 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
10875 | { "_wxCoord","_int",0}, | |
10876 | { "_wxCoord","_signed_int",0}, | |
10877 | { "_wxCoord","_unsigned_int",0}, | |
10878 | { "_wxCoord","_wxWindowID",0}, | |
10879 | { "_wxCoord","_uint",0}, | |
10880 | { "_wxCoord","_EBool",0}, | |
10881 | { "_wxCoord","_size_t",0}, | |
10882 | { "_wxCoord","_time_t",0}, | |
10883 | { "_wxCoord","_wxPrintQuality",0}, | |
10884 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
10885 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
10886 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
10887 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
10888 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
10889 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
10890 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
10891 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
10892 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
10893 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
10894 | {0,0,0}}; | |
10895 | ||
10896 | static PyObject *SWIG_globals; | |
10897 | #ifdef __cplusplus | |
10898 | extern "C" | |
10899 | #endif | |
10900 | SWIGEXPORT(void) initwindowsc() { | |
10901 | PyObject *m, *d; | |
10902 | SWIG_globals = SWIG_newvarlink(); | |
10903 | m = Py_InitModule("windowsc", windowscMethods); | |
10904 | d = PyModule_GetDict(m); | |
10905 | { | |
10906 | int i; | |
10907 | for (i = 0; _swig_mapping[i].n1; i++) | |
10908 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10909 | } | |
10910 | } |