]>
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 | // Put some wx default wxChar* values into wxStrings. | |
90 | DECLARE_DEF_STRING(PanelNameStr); | |
91 | static const wxString wxPyEmptyString(wxT("")); | |
92 | ||
93 | class wxPyValidator : public wxValidator { | |
94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
95 | public: | |
96 | wxPyValidator() { | |
97 | } | |
98 | ||
99 | ~wxPyValidator() { | |
100 | } | |
101 | ||
102 | wxObject* Clone() const { | |
103 | wxPyValidator* ptr = NULL; | |
104 | wxPyValidator* self = (wxPyValidator*)this; | |
105 | ||
106 | wxPyBeginBlockThreads(); | |
107 | if (self->m_myInst.findCallback("Clone")) { | |
108 | PyObject* ro; | |
109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
110 | if (ro) { | |
111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
112 | Py_DECREF(ro); | |
113 | } | |
114 | } | |
115 | wxPyEndBlockThreads(); | |
116 | ||
117 | // This is very dangerous!!! But is the only way I could find | |
118 | // to squash a memory leak. Currently it is okay, but if the | |
119 | // validator architecture in wxWindows ever changes, problems | |
120 | // could arise. | |
121 | delete self; | |
122 | return ptr; | |
123 | } | |
124 | ||
125 | ||
126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
129 | ||
130 | PYPRIVATE; | |
131 | }; | |
132 | ||
133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
136 | ||
137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
138 | ||
139 | ||
140 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
141 | wxWindow* win = new wxWindow; | |
142 | win->SetHWND(hWnd); | |
143 | win->SubclassWin(hWnd); | |
144 | return win; | |
145 | } | |
146 | #ifdef __cplusplus | |
147 | extern "C" { | |
148 | #endif | |
149 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
150 | PyObject * _resultobj; | |
151 | wxWindow * _result; | |
152 | unsigned long _arg0; | |
153 | char *_kwnames[] = { "hWnd", NULL }; | |
154 | ||
155 | self = self; | |
156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
157 | return NULL; | |
158 | { | |
159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
160 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); | |
161 | ||
162 | wxPyEndAllowThreads(__tstate); | |
163 | if (PyErr_Occurred()) return NULL; | |
164 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
165 | return _resultobj; | |
166 | } | |
167 | ||
168 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { | |
169 | wxEvtHandler *src; | |
170 | wxObject *dest; | |
171 | src = (wxEvtHandler *) ptr; | |
172 | dest = (wxObject *) src; | |
173 | return (void *) dest; | |
174 | } | |
175 | ||
176 | #define new_wxEvtHandler() (new wxEvtHandler()) | |
177 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
178 | PyObject * _resultobj; | |
179 | wxEvtHandler * _result; | |
180 | char *_kwnames[] = { NULL }; | |
181 | char _ptemp[128]; | |
182 | ||
183 | self = self; | |
184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
185 | return NULL; | |
186 | { | |
187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
188 | _result = (wxEvtHandler *)new_wxEvtHandler(); | |
189 | ||
190 | wxPyEndAllowThreads(__tstate); | |
191 | if (PyErr_Occurred()) return NULL; | |
192 | } if (_result) { | |
193 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
194 | _resultobj = Py_BuildValue("s",_ptemp); | |
195 | } else { | |
196 | Py_INCREF(Py_None); | |
197 | _resultobj = Py_None; | |
198 | } | |
199 | return _resultobj; | |
200 | } | |
201 | ||
202 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) | |
203 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
204 | PyObject * _resultobj; | |
205 | bool _result; | |
206 | wxEvtHandler * _arg0; | |
207 | wxEvent * _arg1; | |
208 | PyObject * _argo0 = 0; | |
209 | PyObject * _argo1 = 0; | |
210 | char *_kwnames[] = { "self","event", NULL }; | |
211 | ||
212 | self = self; | |
213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
214 | return NULL; | |
215 | if (_argo0) { | |
216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
219 | return NULL; | |
220 | } | |
221 | } | |
222 | if (_argo1) { | |
223 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
224 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
226 | return NULL; | |
227 | } | |
228 | } | |
229 | { | |
230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
231 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
232 | ||
233 | wxPyEndAllowThreads(__tstate); | |
234 | if (PyErr_Occurred()) return NULL; | |
235 | } _resultobj = Py_BuildValue("i",_result); | |
236 | return _resultobj; | |
237 | } | |
238 | ||
239 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) | |
240 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
241 | PyObject * _resultobj; | |
242 | wxEvtHandler * _arg0; | |
243 | wxEvent * _arg1; | |
244 | PyObject * _argo0 = 0; | |
245 | PyObject * _argo1 = 0; | |
246 | char *_kwnames[] = { "self","event", NULL }; | |
247 | ||
248 | self = self; | |
249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
250 | return NULL; | |
251 | if (_argo0) { | |
252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
255 | return NULL; | |
256 | } | |
257 | } | |
258 | if (_argo1) { | |
259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
262 | return NULL; | |
263 | } | |
264 | } | |
265 | { | |
266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
267 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); | |
268 | ||
269 | wxPyEndAllowThreads(__tstate); | |
270 | if (PyErr_Occurred()) return NULL; | |
271 | } Py_INCREF(Py_None); | |
272 | _resultobj = Py_None; | |
273 | return _resultobj; | |
274 | } | |
275 | ||
276 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) | |
277 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
278 | PyObject * _resultobj; | |
279 | bool _result; | |
280 | wxEvtHandler * _arg0; | |
281 | PyObject * _argo0 = 0; | |
282 | char *_kwnames[] = { "self", NULL }; | |
283 | ||
284 | self = self; | |
285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
286 | return NULL; | |
287 | if (_argo0) { | |
288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
291 | return NULL; | |
292 | } | |
293 | } | |
294 | { | |
295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
296 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
297 | ||
298 | wxPyEndAllowThreads(__tstate); | |
299 | if (PyErr_Occurred()) return NULL; | |
300 | } _resultobj = Py_BuildValue("i",_result); | |
301 | return _resultobj; | |
302 | } | |
303 | ||
304 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
305 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
306 | PyObject * _resultobj; | |
307 | wxEvtHandler * _arg0; | |
308 | bool _arg1; | |
309 | PyObject * _argo0 = 0; | |
310 | int tempbool1; | |
311 | char *_kwnames[] = { "self","enabled", NULL }; | |
312 | ||
313 | self = self; | |
314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
315 | return NULL; | |
316 | if (_argo0) { | |
317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
320 | return NULL; | |
321 | } | |
322 | } | |
323 | _arg1 = (bool ) tempbool1; | |
324 | { | |
325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
326 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
327 | ||
328 | wxPyEndAllowThreads(__tstate); | |
329 | if (PyErr_Occurred()) return NULL; | |
330 | } Py_INCREF(Py_None); | |
331 | _resultobj = Py_None; | |
332 | return _resultobj; | |
333 | } | |
334 | ||
335 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
336 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
337 | PyObject * _resultobj; | |
338 | wxEvtHandler * _result; | |
339 | wxEvtHandler * _arg0; | |
340 | PyObject * _argo0 = 0; | |
341 | char *_kwnames[] = { "self", NULL }; | |
342 | ||
343 | self = self; | |
344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
345 | return NULL; | |
346 | if (_argo0) { | |
347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
350 | return NULL; | |
351 | } | |
352 | } | |
353 | { | |
354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
355 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
356 | ||
357 | wxPyEndAllowThreads(__tstate); | |
358 | if (PyErr_Occurred()) return NULL; | |
359 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
360 | return _resultobj; | |
361 | } | |
362 | ||
363 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
364 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
365 | PyObject * _resultobj; | |
366 | wxEvtHandler * _result; | |
367 | wxEvtHandler * _arg0; | |
368 | PyObject * _argo0 = 0; | |
369 | char *_kwnames[] = { "self", NULL }; | |
370 | ||
371 | self = self; | |
372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
373 | return NULL; | |
374 | if (_argo0) { | |
375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | { | |
382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
383 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
384 | ||
385 | wxPyEndAllowThreads(__tstate); | |
386 | if (PyErr_Occurred()) return NULL; | |
387 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
388 | return _resultobj; | |
389 | } | |
390 | ||
391 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
392 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
393 | PyObject * _resultobj; | |
394 | wxEvtHandler * _arg0; | |
395 | wxEvtHandler * _arg1; | |
396 | PyObject * _argo0 = 0; | |
397 | PyObject * _argo1 = 0; | |
398 | char *_kwnames[] = { "self","handler", NULL }; | |
399 | ||
400 | self = self; | |
401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
402 | return NULL; | |
403 | if (_argo0) { | |
404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
407 | return NULL; | |
408 | } | |
409 | } | |
410 | if (_argo1) { | |
411 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | { | |
418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
419 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
420 | ||
421 | wxPyEndAllowThreads(__tstate); | |
422 | if (PyErr_Occurred()) return NULL; | |
423 | } Py_INCREF(Py_None); | |
424 | _resultobj = Py_None; | |
425 | return _resultobj; | |
426 | } | |
427 | ||
428 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
429 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
430 | PyObject * _resultobj; | |
431 | wxEvtHandler * _arg0; | |
432 | wxEvtHandler * _arg1; | |
433 | PyObject * _argo0 = 0; | |
434 | PyObject * _argo1 = 0; | |
435 | char *_kwnames[] = { "self","handler", NULL }; | |
436 | ||
437 | self = self; | |
438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
439 | return NULL; | |
440 | if (_argo0) { | |
441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
444 | return NULL; | |
445 | } | |
446 | } | |
447 | if (_argo1) { | |
448 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
449 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
451 | return NULL; | |
452 | } | |
453 | } | |
454 | { | |
455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
456 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
457 | ||
458 | wxPyEndAllowThreads(__tstate); | |
459 | if (PyErr_Occurred()) return NULL; | |
460 | } Py_INCREF(Py_None); | |
461 | _resultobj = Py_None; | |
462 | return _resultobj; | |
463 | } | |
464 | ||
465 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
466 | if (PyCallable_Check(func)) { | |
467 | self->Connect(id, lastId, eventType, | |
468 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
469 | new wxPyCallback(func)); | |
470 | } | |
471 | else if (func == Py_None) { | |
472 | self->Disconnect(id, lastId, eventType, | |
473 | (wxObjectEventFunction) | |
474 | &wxPyCallback::EventThunker); | |
475 | } | |
476 | else { | |
477 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
478 | } | |
479 | } | |
480 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
481 | PyObject * _resultobj; | |
482 | wxEvtHandler * _arg0; | |
483 | int _arg1; | |
484 | int _arg2; | |
485 | int _arg3; | |
486 | PyObject * _arg4; | |
487 | PyObject * _argo0 = 0; | |
488 | PyObject * _obj4 = 0; | |
489 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
493 | return NULL; | |
494 | if (_argo0) { | |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
498 | return NULL; | |
499 | } | |
500 | } | |
501 | { | |
502 | _arg4 = _obj4; | |
503 | } | |
504 | { | |
505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
506 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
507 | ||
508 | wxPyEndAllowThreads(__tstate); | |
509 | if (PyErr_Occurred()) return NULL; | |
510 | } Py_INCREF(Py_None); | |
511 | _resultobj = Py_None; | |
512 | return _resultobj; | |
513 | } | |
514 | ||
515 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { | |
516 | return self->Disconnect(id, lastId, eventType, | |
517 | (wxObjectEventFunction) | |
518 | &wxPyCallback::EventThunker); | |
519 | } | |
520 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
521 | PyObject * _resultobj; | |
522 | bool _result; | |
523 | wxEvtHandler * _arg0; | |
524 | int _arg1; | |
525 | int _arg2 = (int ) -1; | |
526 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
527 | PyObject * _argo0 = 0; | |
528 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
529 | ||
530 | self = self; | |
531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
532 | return NULL; | |
533 | if (_argo0) { | |
534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
537 | return NULL; | |
538 | } | |
539 | } | |
540 | { | |
541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
542 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); | |
543 | ||
544 | wxPyEndAllowThreads(__tstate); | |
545 | if (PyErr_Occurred()) return NULL; | |
546 | } _resultobj = Py_BuildValue("i",_result); | |
547 | return _resultobj; | |
548 | } | |
549 | ||
550 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { | |
551 | self->SetClientObject(new wxPyClientData(_self)); | |
552 | } | |
553 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
554 | PyObject * _resultobj; | |
555 | wxEvtHandler * _arg0; | |
556 | PyObject * _arg1; | |
557 | PyObject * _argo0 = 0; | |
558 | PyObject * _obj1 = 0; | |
559 | char *_kwnames[] = { "self","_self", NULL }; | |
560 | ||
561 | self = self; | |
562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
563 | return NULL; | |
564 | if (_argo0) { | |
565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
568 | return NULL; | |
569 | } | |
570 | } | |
571 | { | |
572 | _arg1 = _obj1; | |
573 | } | |
574 | { | |
575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
576 | wxEvtHandler__setOORInfo(_arg0,_arg1); | |
577 | ||
578 | wxPyEndAllowThreads(__tstate); | |
579 | if (PyErr_Occurred()) return NULL; | |
580 | } Py_INCREF(Py_None); | |
581 | _resultobj = Py_None; | |
582 | return _resultobj; | |
583 | } | |
584 | ||
585 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { | |
586 | wxValidator *src; | |
587 | wxEvtHandler *dest; | |
588 | src = (wxValidator *) ptr; | |
589 | dest = (wxEvtHandler *) src; | |
590 | return (void *) dest; | |
591 | } | |
592 | ||
593 | static void *SwigwxValidatorTowxObject(void *ptr) { | |
594 | wxValidator *src; | |
595 | wxObject *dest; | |
596 | src = (wxValidator *) ptr; | |
597 | dest = (wxObject *) src; | |
598 | return (void *) dest; | |
599 | } | |
600 | ||
601 | #define new_wxValidator() (new wxValidator()) | |
602 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
603 | PyObject * _resultobj; | |
604 | wxValidator * _result; | |
605 | char *_kwnames[] = { NULL }; | |
606 | char _ptemp[128]; | |
607 | ||
608 | self = self; | |
609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
610 | return NULL; | |
611 | { | |
612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
613 | _result = (wxValidator *)new_wxValidator(); | |
614 | ||
615 | wxPyEndAllowThreads(__tstate); | |
616 | if (PyErr_Occurred()) return NULL; | |
617 | } if (_result) { | |
618 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
619 | _resultobj = Py_BuildValue("s",_ptemp); | |
620 | } else { | |
621 | Py_INCREF(Py_None); | |
622 | _resultobj = Py_None; | |
623 | } | |
624 | return _resultobj; | |
625 | } | |
626 | ||
627 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
628 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
629 | PyObject * _resultobj; | |
630 | wxValidator * _result; | |
631 | wxValidator * _arg0; | |
632 | PyObject * _argo0 = 0; | |
633 | char *_kwnames[] = { "self", NULL }; | |
634 | ||
635 | self = self; | |
636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
637 | return NULL; | |
638 | if (_argo0) { | |
639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
642 | return NULL; | |
643 | } | |
644 | } | |
645 | { | |
646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
647 | _result = (wxValidator *)wxValidator_Clone(_arg0); | |
648 | ||
649 | wxPyEndAllowThreads(__tstate); | |
650 | if (PyErr_Occurred()) return NULL; | |
651 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
652 | return _resultobj; | |
653 | } | |
654 | ||
655 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
656 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
657 | PyObject * _resultobj; | |
658 | wxWindow * _result; | |
659 | wxValidator * _arg0; | |
660 | PyObject * _argo0 = 0; | |
661 | char *_kwnames[] = { "self", NULL }; | |
662 | ||
663 | self = self; | |
664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
665 | return NULL; | |
666 | if (_argo0) { | |
667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
670 | return NULL; | |
671 | } | |
672 | } | |
673 | { | |
674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
675 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); | |
676 | ||
677 | wxPyEndAllowThreads(__tstate); | |
678 | if (PyErr_Occurred()) return NULL; | |
679 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
680 | return _resultobj; | |
681 | } | |
682 | ||
683 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
684 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
685 | PyObject * _resultobj; | |
686 | wxValidator * _arg0; | |
687 | wxWindow * _arg1; | |
688 | PyObject * _argo0 = 0; | |
689 | PyObject * _argo1 = 0; | |
690 | char *_kwnames[] = { "self","window", NULL }; | |
691 | ||
692 | self = self; | |
693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
694 | return NULL; | |
695 | if (_argo0) { | |
696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
699 | return NULL; | |
700 | } | |
701 | } | |
702 | if (_argo1) { | |
703 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
704 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
706 | return NULL; | |
707 | } | |
708 | } | |
709 | { | |
710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
711 | wxValidator_SetWindow(_arg0,_arg1); | |
712 | ||
713 | wxPyEndAllowThreads(__tstate); | |
714 | if (PyErr_Occurred()) return NULL; | |
715 | } Py_INCREF(Py_None); | |
716 | _resultobj = Py_None; | |
717 | return _resultobj; | |
718 | } | |
719 | ||
720 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
721 | PyObject * _resultobj; | |
722 | bool _result; | |
723 | char *_kwnames[] = { NULL }; | |
724 | ||
725 | self = self; | |
726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
727 | return NULL; | |
728 | { | |
729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
730 | _result = (bool )wxValidator::IsSilent(); | |
731 | ||
732 | wxPyEndAllowThreads(__tstate); | |
733 | if (PyErr_Occurred()) return NULL; | |
734 | } _resultobj = Py_BuildValue("i",_result); | |
735 | return _resultobj; | |
736 | } | |
737 | ||
738 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
739 | PyObject * _resultobj; | |
740 | int _arg0 = (int ) TRUE; | |
741 | char *_kwnames[] = { "doIt", NULL }; | |
742 | ||
743 | self = self; | |
744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
745 | return NULL; | |
746 | { | |
747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
748 | wxValidator::SetBellOnError(_arg0); | |
749 | ||
750 | wxPyEndAllowThreads(__tstate); | |
751 | if (PyErr_Occurred()) return NULL; | |
752 | } Py_INCREF(Py_None); | |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
757 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
758 | wxPyValidator *src; | |
759 | wxValidator *dest; | |
760 | src = (wxPyValidator *) ptr; | |
761 | dest = (wxValidator *) src; | |
762 | return (void *) dest; | |
763 | } | |
764 | ||
765 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
766 | wxPyValidator *src; | |
767 | wxEvtHandler *dest; | |
768 | src = (wxPyValidator *) ptr; | |
769 | dest = (wxEvtHandler *) src; | |
770 | return (void *) dest; | |
771 | } | |
772 | ||
773 | static void *SwigwxPyValidatorTowxObject(void *ptr) { | |
774 | wxPyValidator *src; | |
775 | wxObject *dest; | |
776 | src = (wxPyValidator *) ptr; | |
777 | dest = (wxObject *) src; | |
778 | return (void *) dest; | |
779 | } | |
780 | ||
781 | #define new_wxPyValidator() (new wxPyValidator()) | |
782 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
783 | PyObject * _resultobj; | |
784 | wxPyValidator * _result; | |
785 | char *_kwnames[] = { NULL }; | |
786 | char _ptemp[128]; | |
787 | ||
788 | self = self; | |
789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
790 | return NULL; | |
791 | { | |
792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
793 | _result = (wxPyValidator *)new_wxPyValidator(); | |
794 | ||
795 | wxPyEndAllowThreads(__tstate); | |
796 | if (PyErr_Occurred()) return NULL; | |
797 | } if (_result) { | |
798 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
799 | _resultobj = Py_BuildValue("s",_ptemp); | |
800 | } else { | |
801 | Py_INCREF(Py_None); | |
802 | _resultobj = Py_None; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
807 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) | |
808 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
809 | PyObject * _resultobj; | |
810 | wxPyValidator * _arg0; | |
811 | PyObject * _arg1; | |
812 | PyObject * _arg2; | |
813 | int _arg3 = (int ) TRUE; | |
814 | PyObject * _argo0 = 0; | |
815 | PyObject * _obj1 = 0; | |
816 | PyObject * _obj2 = 0; | |
817 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
818 | ||
819 | self = self; | |
820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) | |
821 | return NULL; | |
822 | if (_argo0) { | |
823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); | |
826 | return NULL; | |
827 | } | |
828 | } | |
829 | { | |
830 | _arg1 = _obj1; | |
831 | } | |
832 | { | |
833 | _arg2 = _obj2; | |
834 | } | |
835 | { | |
836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
837 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); | |
838 | ||
839 | wxPyEndAllowThreads(__tstate); | |
840 | if (PyErr_Occurred()) return NULL; | |
841 | } Py_INCREF(Py_None); | |
842 | _resultobj = Py_None; | |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
847 | wxWindow *src; | |
848 | wxEvtHandler *dest; | |
849 | src = (wxWindow *) ptr; | |
850 | dest = (wxEvtHandler *) src; | |
851 | return (void *) dest; | |
852 | } | |
853 | ||
854 | static void *SwigwxWindowTowxObject(void *ptr) { | |
855 | wxWindow *src; | |
856 | wxObject *dest; | |
857 | src = (wxWindow *) ptr; | |
858 | dest = (wxObject *) src; | |
859 | return (void *) dest; | |
860 | } | |
861 | ||
862 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
863 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
864 | PyObject * _resultobj; | |
865 | wxWindow * _result; | |
866 | wxWindow * _arg0; | |
867 | wxWindowID _arg1; | |
868 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
869 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
870 | long _arg4 = (long ) 0; | |
871 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; | |
872 | PyObject * _argo0 = 0; | |
873 | wxPoint temp; | |
874 | PyObject * _obj2 = 0; | |
875 | wxSize temp0; | |
876 | PyObject * _obj3 = 0; | |
877 | PyObject * _obj5 = 0; | |
878 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
879 | char _ptemp[128]; | |
880 | ||
881 | self = self; | |
882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
883 | return NULL; | |
884 | if (_argo0) { | |
885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); | |
888 | return NULL; | |
889 | } | |
890 | } | |
891 | if (_obj2) | |
892 | { | |
893 | _arg2 = &temp; | |
894 | if (! wxPoint_helper(_obj2, &_arg2)) | |
895 | return NULL; | |
896 | } | |
897 | if (_obj3) | |
898 | { | |
899 | _arg3 = &temp0; | |
900 | if (! wxSize_helper(_obj3, &_arg3)) | |
901 | return NULL; | |
902 | } | |
903 | if (_obj5) | |
904 | { | |
905 | _arg5 = wxString_in_helper(_obj5); | |
906 | if (_arg5 == NULL) | |
907 | return NULL; | |
908 | } | |
909 | { | |
910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
911 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
912 | ||
913 | wxPyEndAllowThreads(__tstate); | |
914 | if (PyErr_Occurred()) return NULL; | |
915 | } if (_result) { | |
916 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
917 | _resultobj = Py_BuildValue("s",_ptemp); | |
918 | } else { | |
919 | Py_INCREF(Py_None); | |
920 | _resultobj = Py_None; | |
921 | } | |
922 | { | |
923 | if (_obj5) | |
924 | delete _arg5; | |
925 | } | |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define new_wxPreWindow() (new wxWindow()) | |
930 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxWindow * _result; | |
933 | char *_kwnames[] = { NULL }; | |
934 | char _ptemp[128]; | |
935 | ||
936 | self = self; | |
937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
938 | return NULL; | |
939 | { | |
940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
941 | _result = (wxWindow *)new_wxPreWindow(); | |
942 | ||
943 | wxPyEndAllowThreads(__tstate); | |
944 | if (PyErr_Occurred()) return NULL; | |
945 | } if (_result) { | |
946 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
947 | _resultobj = Py_BuildValue("s",_ptemp); | |
948 | } else { | |
949 | Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | } | |
952 | return _resultobj; | |
953 | } | |
954 | ||
955 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
956 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
957 | PyObject * _resultobj; | |
958 | bool _result; | |
959 | wxWindow * _arg0; | |
960 | wxWindow * _arg1; | |
961 | wxWindowID _arg2; | |
962 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
963 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
964 | long _arg5 = (long ) 0; | |
965 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; | |
966 | PyObject * _argo0 = 0; | |
967 | PyObject * _argo1 = 0; | |
968 | wxPoint temp; | |
969 | PyObject * _obj3 = 0; | |
970 | wxSize temp0; | |
971 | PyObject * _obj4 = 0; | |
972 | PyObject * _obj6 = 0; | |
973 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
974 | ||
975 | self = self; | |
976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
977 | return NULL; | |
978 | if (_argo0) { | |
979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
982 | return NULL; | |
983 | } | |
984 | } | |
985 | if (_argo1) { | |
986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
989 | return NULL; | |
990 | } | |
991 | } | |
992 | if (_obj3) | |
993 | { | |
994 | _arg3 = &temp; | |
995 | if (! wxPoint_helper(_obj3, &_arg3)) | |
996 | return NULL; | |
997 | } | |
998 | if (_obj4) | |
999 | { | |
1000 | _arg4 = &temp0; | |
1001 | if (! wxSize_helper(_obj4, &_arg4)) | |
1002 | return NULL; | |
1003 | } | |
1004 | if (_obj6) | |
1005 | { | |
1006 | _arg6 = wxString_in_helper(_obj6); | |
1007 | if (_arg6 == NULL) | |
1008 | return NULL; | |
1009 | } | |
1010 | { | |
1011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1012 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
1013 | ||
1014 | wxPyEndAllowThreads(__tstate); | |
1015 | if (PyErr_Occurred()) return NULL; | |
1016 | } _resultobj = Py_BuildValue("i",_result); | |
1017 | { | |
1018 | if (_obj6) | |
1019 | delete _arg6; | |
1020 | } | |
1021 | return _resultobj; | |
1022 | } | |
1023 | ||
1024 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
1025 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1026 | PyObject * _resultobj; | |
1027 | wxWindow * _arg0; | |
1028 | PyObject * _argo0 = 0; | |
1029 | char *_kwnames[] = { "self", NULL }; | |
1030 | ||
1031 | self = self; | |
1032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
1033 | return NULL; | |
1034 | if (_argo0) { | |
1035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
1038 | return NULL; | |
1039 | } | |
1040 | } | |
1041 | { | |
1042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1043 | wxWindow_CaptureMouse(_arg0); | |
1044 | ||
1045 | wxPyEndAllowThreads(__tstate); | |
1046 | if (PyErr_Occurred()) return NULL; | |
1047 | } Py_INCREF(Py_None); | |
1048 | _resultobj = Py_None; | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
1052 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
1053 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1054 | PyObject * _resultobj; | |
1055 | wxWindow * _arg0; | |
1056 | int _arg1 = (int ) wxBOTH; | |
1057 | PyObject * _argo0 = 0; | |
1058 | char *_kwnames[] = { "self","direction", NULL }; | |
1059 | ||
1060 | self = self; | |
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) | |
1062 | return NULL; | |
1063 | if (_argo0) { | |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); | |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | { | |
1071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1072 | wxWindow_Center(_arg0,_arg1); | |
1073 | ||
1074 | wxPyEndAllowThreads(__tstate); | |
1075 | if (PyErr_Occurred()) return NULL; | |
1076 | } Py_INCREF(Py_None); | |
1077 | _resultobj = Py_None; | |
1078 | return _resultobj; | |
1079 | } | |
1080 | ||
1081 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
1082 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1083 | PyObject * _resultobj; | |
1084 | wxWindow * _arg0; | |
1085 | int _arg1 = (int ) wxBOTH; | |
1086 | PyObject * _argo0 = 0; | |
1087 | char *_kwnames[] = { "self","direction", NULL }; | |
1088 | ||
1089 | self = self; | |
1090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) | |
1091 | return NULL; | |
1092 | if (_argo0) { | |
1093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); | |
1096 | return NULL; | |
1097 | } | |
1098 | } | |
1099 | { | |
1100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1101 | wxWindow_Centre(_arg0,_arg1); | |
1102 | ||
1103 | wxPyEndAllowThreads(__tstate); | |
1104 | if (PyErr_Occurred()) return NULL; | |
1105 | } Py_INCREF(Py_None); | |
1106 | _resultobj = Py_None; | |
1107 | return _resultobj; | |
1108 | } | |
1109 | ||
1110 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) | |
1111 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1112 | PyObject * _resultobj; | |
1113 | wxWindow * _arg0; | |
1114 | int _arg1 = (int ) wxBOTH; | |
1115 | PyObject * _argo0 = 0; | |
1116 | char *_kwnames[] = { "self","direction", NULL }; | |
1117 | ||
1118 | self = self; | |
1119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) | |
1120 | return NULL; | |
1121 | if (_argo0) { | |
1122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); | |
1125 | return NULL; | |
1126 | } | |
1127 | } | |
1128 | { | |
1129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1130 | wxWindow_CentreOnParent(_arg0,_arg1); | |
1131 | ||
1132 | wxPyEndAllowThreads(__tstate); | |
1133 | if (PyErr_Occurred()) return NULL; | |
1134 | } Py_INCREF(Py_None); | |
1135 | _resultobj = Py_None; | |
1136 | return _resultobj; | |
1137 | } | |
1138 | ||
1139 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
1140 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1141 | PyObject * _resultobj; | |
1142 | wxWindow * _arg0; | |
1143 | int _arg1 = (int ) wxBOTH; | |
1144 | PyObject * _argo0 = 0; | |
1145 | char *_kwnames[] = { "self","direction", NULL }; | |
1146 | ||
1147 | self = self; | |
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) | |
1149 | return NULL; | |
1150 | if (_argo0) { | |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); | |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
1157 | { | |
1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1159 | wxWindow_CenterOnParent(_arg0,_arg1); | |
1160 | ||
1161 | wxPyEndAllowThreads(__tstate); | |
1162 | if (PyErr_Occurred()) return NULL; | |
1163 | } Py_INCREF(Py_None); | |
1164 | _resultobj = Py_None; | |
1165 | return _resultobj; | |
1166 | } | |
1167 | ||
1168 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) | |
1169 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1170 | PyObject * _resultobj; | |
1171 | wxWindow * _arg0; | |
1172 | int _arg1 = (int ) wxBOTH; | |
1173 | PyObject * _argo0 = 0; | |
1174 | char *_kwnames[] = { "self","direction", NULL }; | |
1175 | ||
1176 | self = self; | |
1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1178 | return NULL; | |
1179 | if (_argo0) { | |
1180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1183 | return NULL; | |
1184 | } | |
1185 | } | |
1186 | { | |
1187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1188 | wxWindow_CentreOnScreen(_arg0,_arg1); | |
1189 | ||
1190 | wxPyEndAllowThreads(__tstate); | |
1191 | if (PyErr_Occurred()) return NULL; | |
1192 | } Py_INCREF(Py_None); | |
1193 | _resultobj = Py_None; | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
1197 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1198 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject * _resultobj; | |
1200 | wxWindow * _arg0; | |
1201 | int _arg1 = (int ) wxBOTH; | |
1202 | PyObject * _argo0 = 0; | |
1203 | char *_kwnames[] = { "self","direction", NULL }; | |
1204 | ||
1205 | self = self; | |
1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1207 | return NULL; | |
1208 | if (_argo0) { | |
1209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1212 | return NULL; | |
1213 | } | |
1214 | } | |
1215 | { | |
1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1217 | wxWindow_CenterOnScreen(_arg0,_arg1); | |
1218 | ||
1219 | wxPyEndAllowThreads(__tstate); | |
1220 | if (PyErr_Occurred()) return NULL; | |
1221 | } Py_INCREF(Py_None); | |
1222 | _resultobj = Py_None; | |
1223 | return _resultobj; | |
1224 | } | |
1225 | ||
1226 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) | |
1227 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1228 | PyObject * _resultobj; | |
1229 | wxWindow * _arg0; | |
1230 | PyObject * _argo0 = 0; | |
1231 | char *_kwnames[] = { "self", NULL }; | |
1232 | ||
1233 | self = self; | |
1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1235 | return NULL; | |
1236 | if (_argo0) { | |
1237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
1243 | { | |
1244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1245 | wxWindow_Clear(_arg0); | |
1246 | ||
1247 | wxPyEndAllowThreads(__tstate); | |
1248 | if (PyErr_Occurred()) return NULL; | |
1249 | } Py_INCREF(Py_None); | |
1250 | _resultobj = Py_None; | |
1251 | return _resultobj; | |
1252 | } | |
1253 | ||
1254 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) | |
1255 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1256 | PyObject * _resultobj; | |
1257 | wxWindow * _arg0; | |
1258 | int * _arg1; | |
1259 | int * _arg2; | |
1260 | PyObject * _argo0 = 0; | |
1261 | int temp; | |
1262 | PyObject * _obj1 = 0; | |
1263 | int temp0; | |
1264 | PyObject * _obj2 = 0; | |
1265 | char *_kwnames[] = { "self","x","y", NULL }; | |
1266 | ||
1267 | self = self; | |
1268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1269 | return NULL; | |
1270 | if (_argo0) { | |
1271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); | |
1274 | return NULL; | |
1275 | } | |
1276 | } | |
1277 | { | |
1278 | temp = (int) PyInt_AsLong(_obj1); | |
1279 | _arg1 = &temp; | |
1280 | } | |
1281 | { | |
1282 | temp0 = (int) PyInt_AsLong(_obj2); | |
1283 | _arg2 = &temp0; | |
1284 | } | |
1285 | { | |
1286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1287 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
1288 | ||
1289 | wxPyEndAllowThreads(__tstate); | |
1290 | if (PyErr_Occurred()) return NULL; | |
1291 | } Py_INCREF(Py_None); | |
1292 | _resultobj = Py_None; | |
1293 | { | |
1294 | PyObject *o; | |
1295 | o = PyInt_FromLong((long) (*_arg1)); | |
1296 | _resultobj = t_output_helper(_resultobj, o); | |
1297 | } | |
1298 | { | |
1299 | PyObject *o; | |
1300 | o = PyInt_FromLong((long) (*_arg2)); | |
1301 | _resultobj = t_output_helper(_resultobj, o); | |
1302 | } | |
1303 | return _resultobj; | |
1304 | } | |
1305 | ||
1306 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) | |
1307 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1308 | PyObject * _resultobj; | |
1309 | wxPoint * _result; | |
1310 | wxWindow * _arg0; | |
1311 | wxPoint * _arg1; | |
1312 | PyObject * _argo0 = 0; | |
1313 | wxPoint temp; | |
1314 | PyObject * _obj1 = 0; | |
1315 | char *_kwnames[] = { "self","pt", NULL }; | |
1316 | char _ptemp[128]; | |
1317 | ||
1318 | self = self; | |
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) | |
1320 | return NULL; | |
1321 | if (_argo0) { | |
1322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); | |
1325 | return NULL; | |
1326 | } | |
1327 | } | |
1328 | { | |
1329 | _arg1 = &temp; | |
1330 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1331 | return NULL; | |
1332 | } | |
1333 | { | |
1334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1335 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
1336 | ||
1337 | wxPyEndAllowThreads(__tstate); | |
1338 | if (PyErr_Occurred()) return NULL; | |
1339 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1340 | _resultobj = Py_BuildValue("s",_ptemp); | |
1341 | return _resultobj; | |
1342 | } | |
1343 | ||
1344 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) | |
1345 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject * _resultobj; | |
1347 | bool _result; | |
1348 | wxWindow * _arg0; | |
1349 | int _arg1 = (int ) FALSE; | |
1350 | PyObject * _argo0 = 0; | |
1351 | char *_kwnames[] = { "self","force", NULL }; | |
1352 | ||
1353 | self = self; | |
1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) | |
1355 | return NULL; | |
1356 | if (_argo0) { | |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); | |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
1363 | { | |
1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1365 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1366 | ||
1367 | wxPyEndAllowThreads(__tstate); | |
1368 | if (PyErr_Occurred()) return NULL; | |
1369 | } _resultobj = Py_BuildValue("i",_result); | |
1370 | return _resultobj; | |
1371 | } | |
1372 | ||
1373 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
1374 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1375 | PyObject * _resultobj; | |
1376 | bool _result; | |
1377 | wxWindow * _arg0; | |
1378 | PyObject * _argo0 = 0; | |
1379 | char *_kwnames[] = { "self", NULL }; | |
1380 | ||
1381 | self = self; | |
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) | |
1383 | return NULL; | |
1384 | if (_argo0) { | |
1385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); | |
1388 | return NULL; | |
1389 | } | |
1390 | } | |
1391 | { | |
1392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1393 | _result = (bool )wxWindow_Destroy(_arg0); | |
1394 | ||
1395 | wxPyEndAllowThreads(__tstate); | |
1396 | if (PyErr_Occurred()) return NULL; | |
1397 | } _resultobj = Py_BuildValue("i",_result); | |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
1401 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
1402 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject * _resultobj; | |
1404 | wxWindow * _arg0; | |
1405 | PyObject * _argo0 = 0; | |
1406 | char *_kwnames[] = { "self", NULL }; | |
1407 | ||
1408 | self = self; | |
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) | |
1410 | return NULL; | |
1411 | if (_argo0) { | |
1412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); | |
1415 | return NULL; | |
1416 | } | |
1417 | } | |
1418 | { | |
1419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1420 | wxWindow_DestroyChildren(_arg0); | |
1421 | ||
1422 | wxPyEndAllowThreads(__tstate); | |
1423 | if (PyErr_Occurred()) return NULL; | |
1424 | } Py_INCREF(Py_None); | |
1425 | _resultobj = Py_None; | |
1426 | return _resultobj; | |
1427 | } | |
1428 | ||
1429 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) | |
1430 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1431 | PyObject * _resultobj; | |
1432 | bool _result; | |
1433 | wxWindow * _arg0; | |
1434 | PyObject * _argo0 = 0; | |
1435 | char *_kwnames[] = { "self", NULL }; | |
1436 | ||
1437 | self = self; | |
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1439 | return NULL; | |
1440 | if (_argo0) { | |
1441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1444 | return NULL; | |
1445 | } | |
1446 | } | |
1447 | { | |
1448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1449 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); | |
1450 | ||
1451 | wxPyEndAllowThreads(__tstate); | |
1452 | if (PyErr_Occurred()) return NULL; | |
1453 | } _resultobj = Py_BuildValue("i",_result); | |
1454 | return _resultobj; | |
1455 | } | |
1456 | ||
1457 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) | |
1458 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1459 | PyObject * _resultobj; | |
1460 | wxWindow * _arg0; | |
1461 | bool _arg1; | |
1462 | PyObject * _argo0 = 0; | |
1463 | int tempbool1; | |
1464 | char *_kwnames[] = { "self","accept", NULL }; | |
1465 | ||
1466 | self = self; | |
1467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) | |
1468 | return NULL; | |
1469 | if (_argo0) { | |
1470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); | |
1473 | return NULL; | |
1474 | } | |
1475 | } | |
1476 | _arg1 = (bool ) tempbool1; | |
1477 | { | |
1478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1479 | wxWindow_DragAcceptFiles(_arg0,_arg1); | |
1480 | ||
1481 | wxPyEndAllowThreads(__tstate); | |
1482 | if (PyErr_Occurred()) return NULL; | |
1483 | } Py_INCREF(Py_None); | |
1484 | _resultobj = Py_None; | |
1485 | return _resultobj; | |
1486 | } | |
1487 | ||
1488 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
1489 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1490 | PyObject * _resultobj; | |
1491 | wxWindow * _arg0; | |
1492 | bool _arg1; | |
1493 | PyObject * _argo0 = 0; | |
1494 | int tempbool1; | |
1495 | char *_kwnames[] = { "self","enable", NULL }; | |
1496 | ||
1497 | self = self; | |
1498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) | |
1499 | return NULL; | |
1500 | if (_argo0) { | |
1501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); | |
1504 | return NULL; | |
1505 | } | |
1506 | } | |
1507 | _arg1 = (bool ) tempbool1; | |
1508 | { | |
1509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1510 | wxWindow_Enable(_arg0,_arg1); | |
1511 | ||
1512 | wxPyEndAllowThreads(__tstate); | |
1513 | if (PyErr_Occurred()) return NULL; | |
1514 | } Py_INCREF(Py_None); | |
1515 | _resultobj = Py_None; | |
1516 | return _resultobj; | |
1517 | } | |
1518 | ||
1519 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1520 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1521 | PyObject * _resultobj; | |
1522 | wxWindow * _result; | |
1523 | wxWindow * _arg0; | |
1524 | long _arg1; | |
1525 | PyObject * _argo0 = 0; | |
1526 | char *_kwnames[] = { "self","id", NULL }; | |
1527 | ||
1528 | self = self; | |
1529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) | |
1530 | return NULL; | |
1531 | if (_argo0) { | |
1532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); | |
1535 | return NULL; | |
1536 | } | |
1537 | } | |
1538 | { | |
1539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1540 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1541 | ||
1542 | wxPyEndAllowThreads(__tstate); | |
1543 | if (PyErr_Occurred()) return NULL; | |
1544 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1545 | return _resultobj; | |
1546 | } | |
1547 | ||
1548 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
1549 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | wxWindow * _result; | |
1552 | wxWindow * _arg0; | |
1553 | wxString * _arg1; | |
1554 | PyObject * _argo0 = 0; | |
1555 | PyObject * _obj1 = 0; | |
1556 | char *_kwnames[] = { "self","name", NULL }; | |
1557 | ||
1558 | self = self; | |
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) | |
1560 | return NULL; | |
1561 | if (_argo0) { | |
1562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); | |
1565 | return NULL; | |
1566 | } | |
1567 | } | |
1568 | { | |
1569 | _arg1 = wxString_in_helper(_obj1); | |
1570 | if (_arg1 == NULL) | |
1571 | return NULL; | |
1572 | } | |
1573 | { | |
1574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1575 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1576 | ||
1577 | wxPyEndAllowThreads(__tstate); | |
1578 | if (PyErr_Occurred()) return NULL; | |
1579 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1580 | { | |
1581 | if (_obj1) | |
1582 | delete _arg1; | |
1583 | } | |
1584 | return _resultobj; | |
1585 | } | |
1586 | ||
1587 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
1588 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject * _resultobj; | |
1590 | wxWindow * _arg0; | |
1591 | PyObject * _argo0 = 0; | |
1592 | char *_kwnames[] = { "self", NULL }; | |
1593 | ||
1594 | self = self; | |
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) | |
1596 | return NULL; | |
1597 | if (_argo0) { | |
1598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); | |
1601 | return NULL; | |
1602 | } | |
1603 | } | |
1604 | { | |
1605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1606 | wxWindow_Fit(_arg0); | |
1607 | ||
1608 | wxPyEndAllowThreads(__tstate); | |
1609 | if (PyErr_Occurred()) return NULL; | |
1610 | } Py_INCREF(Py_None); | |
1611 | _resultobj = Py_None; | |
1612 | return _resultobj; | |
1613 | } | |
1614 | ||
1615 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1616 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject * _resultobj; | |
1618 | wxColour * _result; | |
1619 | wxWindow * _arg0; | |
1620 | PyObject * _argo0 = 0; | |
1621 | char *_kwnames[] = { "self", NULL }; | |
1622 | char _ptemp[128]; | |
1623 | ||
1624 | self = self; | |
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) | |
1626 | return NULL; | |
1627 | if (_argo0) { | |
1628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); | |
1631 | return NULL; | |
1632 | } | |
1633 | } | |
1634 | { | |
1635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1636 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1637 | ||
1638 | wxPyEndAllowThreads(__tstate); | |
1639 | if (PyErr_Occurred()) return NULL; | |
1640 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1641 | _resultobj = Py_BuildValue("s",_ptemp); | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) | |
1646 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject * _resultobj; | |
1648 | wxBorder _result; | |
1649 | wxWindow * _arg0; | |
1650 | PyObject * _argo0 = 0; | |
1651 | char *_kwnames[] = { "self", NULL }; | |
1652 | ||
1653 | self = self; | |
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1655 | return NULL; | |
1656 | if (_argo0) { | |
1657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1660 | return NULL; | |
1661 | } | |
1662 | } | |
1663 | { | |
1664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1665 | _result = (wxBorder )wxWindow_GetBorder(_arg0); | |
1666 | ||
1667 | wxPyEndAllowThreads(__tstate); | |
1668 | if (PyErr_Occurred()) return NULL; | |
1669 | } _resultobj = Py_BuildValue("i",_result); | |
1670 | return _resultobj; | |
1671 | } | |
1672 | ||
1673 | static PyObject * wxWindow_GetChildren(wxWindow *self) { | |
1674 | wxWindowList& list = self->GetChildren(); | |
1675 | return wxPy_ConvertList(&list, "wxWindow"); | |
1676 | } | |
1677 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject * _resultobj; | |
1679 | PyObject * _result; | |
1680 | wxWindow * _arg0; | |
1681 | PyObject * _argo0 = 0; | |
1682 | char *_kwnames[] = { "self", NULL }; | |
1683 | ||
1684 | self = self; | |
1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1686 | return NULL; | |
1687 | if (_argo0) { | |
1688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1691 | return NULL; | |
1692 | } | |
1693 | } | |
1694 | { | |
1695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1696 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1697 | ||
1698 | wxPyEndAllowThreads(__tstate); | |
1699 | if (PyErr_Occurred()) return NULL; | |
1700 | }{ | |
1701 | _resultobj = _result; | |
1702 | } | |
1703 | return _resultobj; | |
1704 | } | |
1705 | ||
1706 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1707 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject * _resultobj; | |
1709 | int _result; | |
1710 | wxWindow * _arg0; | |
1711 | PyObject * _argo0 = 0; | |
1712 | char *_kwnames[] = { "self", NULL }; | |
1713 | ||
1714 | self = self; | |
1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) | |
1716 | return NULL; | |
1717 | if (_argo0) { | |
1718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); | |
1721 | return NULL; | |
1722 | } | |
1723 | } | |
1724 | { | |
1725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1726 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1727 | ||
1728 | wxPyEndAllowThreads(__tstate); | |
1729 | if (PyErr_Occurred()) return NULL; | |
1730 | } _resultobj = Py_BuildValue("i",_result); | |
1731 | return _resultobj; | |
1732 | } | |
1733 | ||
1734 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1735 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1736 | PyObject * _resultobj; | |
1737 | int _result; | |
1738 | wxWindow * _arg0; | |
1739 | PyObject * _argo0 = 0; | |
1740 | char *_kwnames[] = { "self", NULL }; | |
1741 | ||
1742 | self = self; | |
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) | |
1744 | return NULL; | |
1745 | if (_argo0) { | |
1746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); | |
1749 | return NULL; | |
1750 | } | |
1751 | } | |
1752 | { | |
1753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1754 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1755 | ||
1756 | wxPyEndAllowThreads(__tstate); | |
1757 | if (PyErr_Occurred()) return NULL; | |
1758 | } _resultobj = Py_BuildValue("i",_result); | |
1759 | return _resultobj; | |
1760 | } | |
1761 | ||
1762 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) | |
1763 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject * _resultobj; | |
1765 | wxWindow * _arg0; | |
1766 | int * _arg1; | |
1767 | int temp; | |
1768 | int * _arg2; | |
1769 | int temp0; | |
1770 | PyObject * _argo0 = 0; | |
1771 | char *_kwnames[] = { "self", NULL }; | |
1772 | ||
1773 | self = self; | |
1774 | { | |
1775 | _arg1 = &temp; | |
1776 | } | |
1777 | { | |
1778 | _arg2 = &temp0; | |
1779 | } | |
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) | |
1781 | return NULL; | |
1782 | if (_argo0) { | |
1783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); | |
1786 | return NULL; | |
1787 | } | |
1788 | } | |
1789 | { | |
1790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1791 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1792 | ||
1793 | wxPyEndAllowThreads(__tstate); | |
1794 | if (PyErr_Occurred()) return NULL; | |
1795 | } Py_INCREF(Py_None); | |
1796 | _resultobj = Py_None; | |
1797 | { | |
1798 | PyObject *o; | |
1799 | o = PyInt_FromLong((long) (*_arg1)); | |
1800 | _resultobj = t_output_helper(_resultobj, o); | |
1801 | } | |
1802 | { | |
1803 | PyObject *o; | |
1804 | o = PyInt_FromLong((long) (*_arg2)); | |
1805 | _resultobj = t_output_helper(_resultobj, o); | |
1806 | } | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
1810 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) | |
1811 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject * _resultobj; | |
1813 | wxSize * _result; | |
1814 | wxWindow * _arg0; | |
1815 | PyObject * _argo0 = 0; | |
1816 | char *_kwnames[] = { "self", NULL }; | |
1817 | char _ptemp[128]; | |
1818 | ||
1819 | self = self; | |
1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) | |
1821 | return NULL; | |
1822 | if (_argo0) { | |
1823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); | |
1826 | return NULL; | |
1827 | } | |
1828 | } | |
1829 | { | |
1830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1831 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1832 | ||
1833 | wxPyEndAllowThreads(__tstate); | |
1834 | if (PyErr_Occurred()) return NULL; | |
1835 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1836 | _resultobj = Py_BuildValue("s",_ptemp); | |
1837 | return _resultobj; | |
1838 | } | |
1839 | ||
1840 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) | |
1841 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1842 | PyObject * _resultobj; | |
1843 | wxPoint * _result; | |
1844 | wxWindow * _arg0; | |
1845 | PyObject * _argo0 = 0; | |
1846 | char *_kwnames[] = { "self", NULL }; | |
1847 | char _ptemp[128]; | |
1848 | ||
1849 | self = self; | |
1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1851 | return NULL; | |
1852 | if (_argo0) { | |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
1859 | { | |
1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1861 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); | |
1862 | ||
1863 | wxPyEndAllowThreads(__tstate); | |
1864 | if (PyErr_Occurred()) return NULL; | |
1865 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1866 | _resultobj = Py_BuildValue("s",_ptemp); | |
1867 | return _resultobj; | |
1868 | } | |
1869 | ||
1870 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1871 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject * _resultobj; | |
1873 | wxRect * _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_GetClientRect",_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_GetClientRect. Expected _wxWindow_p."); | |
1886 | return NULL; | |
1887 | } | |
1888 | } | |
1889 | { | |
1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1891 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); | |
1892 | ||
1893 | wxPyEndAllowThreads(__tstate); | |
1894 | if (PyErr_Occurred()) return NULL; | |
1895 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1896 | _resultobj = Py_BuildValue("s",_ptemp); | |
1897 | return _resultobj; | |
1898 | } | |
1899 | ||
1900 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) | |
1901 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | wxLayoutConstraints * _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_GetConstraints",_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_GetConstraints. Expected _wxWindow_p."); | |
1916 | return NULL; | |
1917 | } | |
1918 | } | |
1919 | { | |
1920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1921 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1922 | ||
1923 | wxPyEndAllowThreads(__tstate); | |
1924 | if (PyErr_Occurred()) return NULL; | |
1925 | } if (_result) { | |
1926 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1927 | _resultobj = Py_BuildValue("s",_ptemp); | |
1928 | } else { | |
1929 | Py_INCREF(Py_None); | |
1930 | _resultobj = Py_None; | |
1931 | } | |
1932 | return _resultobj; | |
1933 | } | |
1934 | ||
1935 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
1936 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1937 | PyObject * _resultobj; | |
1938 | wxEvtHandler * _result; | |
1939 | wxWindow * _arg0; | |
1940 | PyObject * _argo0 = 0; | |
1941 | char *_kwnames[] = { "self", NULL }; | |
1942 | ||
1943 | self = self; | |
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1945 | return NULL; | |
1946 | if (_argo0) { | |
1947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1950 | return NULL; | |
1951 | } | |
1952 | } | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) return NULL; | |
1959 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1960 | return _resultobj; | |
1961 | } | |
1962 | ||
1963 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) | |
1964 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1965 | PyObject * _resultobj; | |
1966 | wxFont * _result; | |
1967 | wxWindow * _arg0; | |
1968 | PyObject * _argo0 = 0; | |
1969 | char *_kwnames[] = { "self", NULL }; | |
1970 | char _ptemp[128]; | |
1971 | ||
1972 | self = self; | |
1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) | |
1974 | return NULL; | |
1975 | if (_argo0) { | |
1976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); | |
1979 | return NULL; | |
1980 | } | |
1981 | } | |
1982 | { | |
1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1984 | _result = new wxFont (wxWindow_GetFont(_arg0)); | |
1985 | ||
1986 | wxPyEndAllowThreads(__tstate); | |
1987 | if (PyErr_Occurred()) return NULL; | |
1988 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1989 | _resultobj = Py_BuildValue("s",_ptemp); | |
1990 | return _resultobj; | |
1991 | } | |
1992 | ||
1993 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
1994 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject * _resultobj; | |
1996 | wxColour * _result; | |
1997 | wxWindow * _arg0; | |
1998 | PyObject * _argo0 = 0; | |
1999 | char *_kwnames[] = { "self", NULL }; | |
2000 | char _ptemp[128]; | |
2001 | ||
2002 | self = self; | |
2003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) | |
2004 | return NULL; | |
2005 | if (_argo0) { | |
2006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); | |
2009 | return NULL; | |
2010 | } | |
2011 | } | |
2012 | { | |
2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2014 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
2015 | ||
2016 | wxPyEndAllowThreads(__tstate); | |
2017 | if (PyErr_Occurred()) return NULL; | |
2018 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2019 | _resultobj = Py_BuildValue("s",_ptemp); | |
2020 | return _resultobj; | |
2021 | } | |
2022 | ||
2023 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
2024 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2025 | PyObject * _resultobj; | |
2026 | wxWindow * _result; | |
2027 | wxWindow * _arg0; | |
2028 | PyObject * _argo0 = 0; | |
2029 | char *_kwnames[] = { "self", NULL }; | |
2030 | ||
2031 | self = self; | |
2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) | |
2033 | return NULL; | |
2034 | if (_argo0) { | |
2035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); | |
2038 | return NULL; | |
2039 | } | |
2040 | } | |
2041 | { | |
2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2043 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
2044 | ||
2045 | wxPyEndAllowThreads(__tstate); | |
2046 | if (PyErr_Occurred()) return NULL; | |
2047 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2048 | return _resultobj; | |
2049 | } | |
2050 | ||
2051 | static long wxWindow_GetHandle(wxWindow *self) { | |
2052 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); | |
2053 | } | |
2054 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2055 | PyObject * _resultobj; | |
2056 | long _result; | |
2057 | wxWindow * _arg0; | |
2058 | PyObject * _argo0 = 0; | |
2059 | char *_kwnames[] = { "self", NULL }; | |
2060 | ||
2061 | self = self; | |
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2063 | return NULL; | |
2064 | if (_argo0) { | |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
2071 | { | |
2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2073 | _result = (long )wxWindow_GetHandle(_arg0); | |
2074 | ||
2075 | wxPyEndAllowThreads(__tstate); | |
2076 | if (PyErr_Occurred()) return NULL; | |
2077 | } _resultobj = Py_BuildValue("l",_result); | |
2078 | return _resultobj; | |
2079 | } | |
2080 | ||
2081 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
2082 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2083 | PyObject * _resultobj; | |
2084 | int _result; | |
2085 | wxWindow * _arg0; | |
2086 | PyObject * _argo0 = 0; | |
2087 | char *_kwnames[] = { "self", NULL }; | |
2088 | ||
2089 | self = self; | |
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) | |
2091 | return NULL; | |
2092 | if (_argo0) { | |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); | |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
2099 | { | |
2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2101 | _result = (int )wxWindow_GetId(_arg0); | |
2102 | ||
2103 | wxPyEndAllowThreads(__tstate); | |
2104 | if (PyErr_Occurred()) return NULL; | |
2105 | } _resultobj = Py_BuildValue("i",_result); | |
2106 | return _resultobj; | |
2107 | } | |
2108 | ||
2109 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2110 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject * _resultobj; | |
2112 | wxString * _result; | |
2113 | wxWindow * _arg0; | |
2114 | PyObject * _argo0 = 0; | |
2115 | char *_kwnames[] = { "self", NULL }; | |
2116 | ||
2117 | self = self; | |
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) | |
2119 | return NULL; | |
2120 | if (_argo0) { | |
2121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); | |
2124 | return NULL; | |
2125 | } | |
2126 | } | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) return NULL; | |
2133 | }{ | |
2134 | #if wxUSE_UNICODE | |
2135 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2136 | #else | |
2137 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2138 | #endif | |
2139 | } | |
2140 | { | |
2141 | delete _result; | |
2142 | } | |
2143 | return _resultobj; | |
2144 | } | |
2145 | ||
2146 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) | |
2147 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2148 | PyObject * _resultobj; | |
2149 | wxWindow * _arg0; | |
2150 | wxString * _arg1; | |
2151 | PyObject * _argo0 = 0; | |
2152 | PyObject * _obj1 = 0; | |
2153 | char *_kwnames[] = { "self","label", NULL }; | |
2154 | ||
2155 | self = self; | |
2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) | |
2157 | return NULL; | |
2158 | if (_argo0) { | |
2159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); | |
2162 | return NULL; | |
2163 | } | |
2164 | } | |
2165 | { | |
2166 | _arg1 = wxString_in_helper(_obj1); | |
2167 | if (_arg1 == NULL) | |
2168 | return NULL; | |
2169 | } | |
2170 | { | |
2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2172 | wxWindow_SetLabel(_arg0,*_arg1); | |
2173 | ||
2174 | wxPyEndAllowThreads(__tstate); | |
2175 | if (PyErr_Occurred()) return NULL; | |
2176 | } Py_INCREF(Py_None); | |
2177 | _resultobj = Py_None; | |
2178 | { | |
2179 | if (_obj1) | |
2180 | delete _arg1; | |
2181 | } | |
2182 | return _resultobj; | |
2183 | } | |
2184 | ||
2185 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) | |
2186 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject * _resultobj; | |
2188 | wxString * _result; | |
2189 | wxWindow * _arg0; | |
2190 | PyObject * _argo0 = 0; | |
2191 | char *_kwnames[] = { "self", NULL }; | |
2192 | ||
2193 | self = self; | |
2194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) | |
2195 | return NULL; | |
2196 | if (_argo0) { | |
2197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); | |
2200 | return NULL; | |
2201 | } | |
2202 | } | |
2203 | { | |
2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2205 | _result = new wxString (wxWindow_GetName(_arg0)); | |
2206 | ||
2207 | wxPyEndAllowThreads(__tstate); | |
2208 | if (PyErr_Occurred()) return NULL; | |
2209 | }{ | |
2210 | #if wxUSE_UNICODE | |
2211 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2212 | #else | |
2213 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2214 | #endif | |
2215 | } | |
2216 | { | |
2217 | delete _result; | |
2218 | } | |
2219 | return _resultobj; | |
2220 | } | |
2221 | ||
2222 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
2223 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject * _resultobj; | |
2225 | wxWindow * _result; | |
2226 | wxWindow * _arg0; | |
2227 | PyObject * _argo0 = 0; | |
2228 | char *_kwnames[] = { "self", NULL }; | |
2229 | ||
2230 | self = self; | |
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) | |
2232 | return NULL; | |
2233 | if (_argo0) { | |
2234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); | |
2237 | return NULL; | |
2238 | } | |
2239 | } | |
2240 | { | |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) return NULL; | |
2246 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2247 | return _resultobj; | |
2248 | } | |
2249 | ||
2250 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2251 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2252 | PyObject * _resultobj; | |
2253 | wxWindow * _arg0; | |
2254 | int * _arg1; | |
2255 | int temp; | |
2256 | int * _arg2; | |
2257 | int temp0; | |
2258 | PyObject * _argo0 = 0; | |
2259 | char *_kwnames[] = { "self", NULL }; | |
2260 | ||
2261 | self = self; | |
2262 | { | |
2263 | _arg1 = &temp; | |
2264 | } | |
2265 | { | |
2266 | _arg2 = &temp0; | |
2267 | } | |
2268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) | |
2269 | return NULL; | |
2270 | if (_argo0) { | |
2271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); | |
2274 | return NULL; | |
2275 | } | |
2276 | } | |
2277 | { | |
2278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2279 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
2280 | ||
2281 | wxPyEndAllowThreads(__tstate); | |
2282 | if (PyErr_Occurred()) return NULL; | |
2283 | } Py_INCREF(Py_None); | |
2284 | _resultobj = Py_None; | |
2285 | { | |
2286 | PyObject *o; | |
2287 | o = PyInt_FromLong((long) (*_arg1)); | |
2288 | _resultobj = t_output_helper(_resultobj, o); | |
2289 | } | |
2290 | { | |
2291 | PyObject *o; | |
2292 | o = PyInt_FromLong((long) (*_arg2)); | |
2293 | _resultobj = t_output_helper(_resultobj, o); | |
2294 | } | |
2295 | return _resultobj; | |
2296 | } | |
2297 | ||
2298 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2299 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject * _resultobj; | |
2301 | wxPoint * _result; | |
2302 | wxWindow * _arg0; | |
2303 | PyObject * _argo0 = 0; | |
2304 | char *_kwnames[] = { "self", NULL }; | |
2305 | char _ptemp[128]; | |
2306 | ||
2307 | self = self; | |
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) | |
2309 | return NULL; | |
2310 | if (_argo0) { | |
2311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); | |
2314 | return NULL; | |
2315 | } | |
2316 | } | |
2317 | { | |
2318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2319 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
2320 | ||
2321 | wxPyEndAllowThreads(__tstate); | |
2322 | if (PyErr_Occurred()) return NULL; | |
2323 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2324 | _resultobj = Py_BuildValue("s",_ptemp); | |
2325 | return _resultobj; | |
2326 | } | |
2327 | ||
2328 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
2329 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2330 | PyObject * _resultobj; | |
2331 | wxRect * _result; | |
2332 | wxWindow * _arg0; | |
2333 | PyObject * _argo0 = 0; | |
2334 | char *_kwnames[] = { "self", NULL }; | |
2335 | char _ptemp[128]; | |
2336 | ||
2337 | self = self; | |
2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) | |
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_GetRect. Expected _wxWindow_p."); | |
2344 | return NULL; | |
2345 | } | |
2346 | } | |
2347 | { | |
2348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2349 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
2350 | ||
2351 | wxPyEndAllowThreads(__tstate); | |
2352 | if (PyErr_Occurred()) return NULL; | |
2353 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2354 | _resultobj = Py_BuildValue("s",_ptemp); | |
2355 | return _resultobj; | |
2356 | } | |
2357 | ||
2358 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) | |
2359 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2360 | PyObject * _resultobj; | |
2361 | int _result; | |
2362 | wxWindow * _arg0; | |
2363 | int _arg1; | |
2364 | PyObject * _argo0 = 0; | |
2365 | char *_kwnames[] = { "self","orientation", NULL }; | |
2366 | ||
2367 | self = self; | |
2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) | |
2369 | return NULL; | |
2370 | if (_argo0) { | |
2371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); | |
2374 | return NULL; | |
2375 | } | |
2376 | } | |
2377 | { | |
2378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2379 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
2380 | ||
2381 | wxPyEndAllowThreads(__tstate); | |
2382 | if (PyErr_Occurred()) return NULL; | |
2383 | } _resultobj = Py_BuildValue("i",_result); | |
2384 | return _resultobj; | |
2385 | } | |
2386 | ||
2387 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
2388 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2389 | PyObject * _resultobj; | |
2390 | int _result; | |
2391 | wxWindow * _arg0; | |
2392 | int _arg1; | |
2393 | PyObject * _argo0 = 0; | |
2394 | char *_kwnames[] = { "self","orientation", NULL }; | |
2395 | ||
2396 | self = self; | |
2397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) | |
2398 | return NULL; | |
2399 | if (_argo0) { | |
2400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); | |
2403 | return NULL; | |
2404 | } | |
2405 | } | |
2406 | { | |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2408 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
2409 | ||
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) return NULL; | |
2412 | } _resultobj = Py_BuildValue("i",_result); | |
2413 | return _resultobj; | |
2414 | } | |
2415 | ||
2416 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
2417 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2418 | PyObject * _resultobj; | |
2419 | int _result; | |
2420 | wxWindow * _arg0; | |
2421 | int _arg1; | |
2422 | PyObject * _argo0 = 0; | |
2423 | char *_kwnames[] = { "self","orientation", NULL }; | |
2424 | ||
2425 | self = self; | |
2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) | |
2427 | return NULL; | |
2428 | if (_argo0) { | |
2429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); | |
2432 | return NULL; | |
2433 | } | |
2434 | } | |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) return NULL; | |
2441 | } _resultobj = Py_BuildValue("i",_result); | |
2442 | return _resultobj; | |
2443 | } | |
2444 | ||
2445 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2446 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2447 | PyObject * _resultobj; | |
2448 | wxWindow * _arg0; | |
2449 | int * _arg1; | |
2450 | int temp; | |
2451 | int * _arg2; | |
2452 | int temp0; | |
2453 | PyObject * _argo0 = 0; | |
2454 | char *_kwnames[] = { "self", NULL }; | |
2455 | ||
2456 | self = self; | |
2457 | { | |
2458 | _arg1 = &temp; | |
2459 | } | |
2460 | { | |
2461 | _arg2 = &temp0; | |
2462 | } | |
2463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) | |
2464 | return NULL; | |
2465 | if (_argo0) { | |
2466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); | |
2469 | return NULL; | |
2470 | } | |
2471 | } | |
2472 | { | |
2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2474 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
2475 | ||
2476 | wxPyEndAllowThreads(__tstate); | |
2477 | if (PyErr_Occurred()) return NULL; | |
2478 | } Py_INCREF(Py_None); | |
2479 | _resultobj = Py_None; | |
2480 | { | |
2481 | PyObject *o; | |
2482 | o = PyInt_FromLong((long) (*_arg1)); | |
2483 | _resultobj = t_output_helper(_resultobj, o); | |
2484 | } | |
2485 | { | |
2486 | PyObject *o; | |
2487 | o = PyInt_FromLong((long) (*_arg2)); | |
2488 | _resultobj = t_output_helper(_resultobj, o); | |
2489 | } | |
2490 | return _resultobj; | |
2491 | } | |
2492 | ||
2493 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) | |
2494 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2495 | PyObject * _resultobj; | |
2496 | wxSize * _result; | |
2497 | wxWindow * _arg0; | |
2498 | PyObject * _argo0 = 0; | |
2499 | char *_kwnames[] = { "self", NULL }; | |
2500 | char _ptemp[128]; | |
2501 | ||
2502 | self = self; | |
2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) | |
2504 | return NULL; | |
2505 | if (_argo0) { | |
2506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); | |
2509 | return NULL; | |
2510 | } | |
2511 | } | |
2512 | { | |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2514 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2515 | ||
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) return NULL; | |
2518 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2519 | _resultobj = Py_BuildValue("s",_ptemp); | |
2520 | return _resultobj; | |
2521 | } | |
2522 | ||
2523 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
2524 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject * _resultobj; | |
2526 | wxWindow * _arg0; | |
2527 | wxString * _arg1; | |
2528 | int * _arg2; | |
2529 | int temp; | |
2530 | int * _arg3; | |
2531 | int temp0; | |
2532 | PyObject * _argo0 = 0; | |
2533 | PyObject * _obj1 = 0; | |
2534 | char *_kwnames[] = { "self","string", NULL }; | |
2535 | ||
2536 | self = self; | |
2537 | { | |
2538 | _arg2 = &temp; | |
2539 | } | |
2540 | { | |
2541 | _arg3 = &temp0; | |
2542 | } | |
2543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
2544 | return NULL; | |
2545 | if (_argo0) { | |
2546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); | |
2549 | return NULL; | |
2550 | } | |
2551 | } | |
2552 | { | |
2553 | _arg1 = wxString_in_helper(_obj1); | |
2554 | if (_arg1 == NULL) | |
2555 | return NULL; | |
2556 | } | |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) return NULL; | |
2563 | } Py_INCREF(Py_None); | |
2564 | _resultobj = Py_None; | |
2565 | { | |
2566 | PyObject *o; | |
2567 | o = PyInt_FromLong((long) (*_arg2)); | |
2568 | _resultobj = t_output_helper(_resultobj, o); | |
2569 | } | |
2570 | { | |
2571 | PyObject *o; | |
2572 | o = PyInt_FromLong((long) (*_arg3)); | |
2573 | _resultobj = t_output_helper(_resultobj, o); | |
2574 | } | |
2575 | { | |
2576 | if (_obj1) | |
2577 | delete _arg1; | |
2578 | } | |
2579 | return _resultobj; | |
2580 | } | |
2581 | ||
2582 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2583 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2584 | PyObject * _resultobj; | |
2585 | wxWindow * _arg0; | |
2586 | wxString * _arg1; | |
2587 | int * _arg2; | |
2588 | int temp; | |
2589 | int * _arg3; | |
2590 | int temp0; | |
2591 | int * _arg4; | |
2592 | int temp1; | |
2593 | int * _arg5; | |
2594 | int temp2; | |
2595 | wxFont * _arg6 = (wxFont *) NULL; | |
2596 | PyObject * _argo0 = 0; | |
2597 | PyObject * _obj1 = 0; | |
2598 | PyObject * _argo6 = 0; | |
2599 | char *_kwnames[] = { "self","string","font", NULL }; | |
2600 | ||
2601 | self = self; | |
2602 | { | |
2603 | _arg2 = &temp; | |
2604 | } | |
2605 | { | |
2606 | _arg3 = &temp0; | |
2607 | } | |
2608 | { | |
2609 | _arg4 = &temp1; | |
2610 | } | |
2611 | { | |
2612 | _arg5 = &temp2; | |
2613 | } | |
2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
2615 | return NULL; | |
2616 | if (_argo0) { | |
2617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); | |
2620 | return NULL; | |
2621 | } | |
2622 | } | |
2623 | { | |
2624 | _arg1 = wxString_in_helper(_obj1); | |
2625 | if (_arg1 == NULL) | |
2626 | return NULL; | |
2627 | } | |
2628 | if (_argo6) { | |
2629 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2630 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
2631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); | |
2632 | return NULL; | |
2633 | } | |
2634 | } | |
2635 | { | |
2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2637 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2638 | ||
2639 | wxPyEndAllowThreads(__tstate); | |
2640 | if (PyErr_Occurred()) return NULL; | |
2641 | } Py_INCREF(Py_None); | |
2642 | _resultobj = Py_None; | |
2643 | { | |
2644 | PyObject *o; | |
2645 | o = PyInt_FromLong((long) (*_arg2)); | |
2646 | _resultobj = t_output_helper(_resultobj, o); | |
2647 | } | |
2648 | { | |
2649 | PyObject *o; | |
2650 | o = PyInt_FromLong((long) (*_arg3)); | |
2651 | _resultobj = t_output_helper(_resultobj, o); | |
2652 | } | |
2653 | { | |
2654 | PyObject *o; | |
2655 | o = PyInt_FromLong((long) (*_arg4)); | |
2656 | _resultobj = t_output_helper(_resultobj, o); | |
2657 | } | |
2658 | { | |
2659 | PyObject *o; | |
2660 | o = PyInt_FromLong((long) (*_arg5)); | |
2661 | _resultobj = t_output_helper(_resultobj, o); | |
2662 | } | |
2663 | { | |
2664 | if (_obj1) | |
2665 | delete _arg1; | |
2666 | } | |
2667 | return _resultobj; | |
2668 | } | |
2669 | ||
2670 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
2671 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2672 | PyObject * _resultobj; | |
2673 | wxString * _result; | |
2674 | wxWindow * _arg0; | |
2675 | PyObject * _argo0 = 0; | |
2676 | char *_kwnames[] = { "self", NULL }; | |
2677 | ||
2678 | self = self; | |
2679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) | |
2680 | return NULL; | |
2681 | if (_argo0) { | |
2682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); | |
2685 | return NULL; | |
2686 | } | |
2687 | } | |
2688 | { | |
2689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2690 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2691 | ||
2692 | wxPyEndAllowThreads(__tstate); | |
2693 | if (PyErr_Occurred()) return NULL; | |
2694 | }{ | |
2695 | #if wxUSE_UNICODE | |
2696 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2697 | #else | |
2698 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2699 | #endif | |
2700 | } | |
2701 | { | |
2702 | delete _result; | |
2703 | } | |
2704 | return _resultobj; | |
2705 | } | |
2706 | ||
2707 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) | |
2708 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2709 | PyObject * _resultobj; | |
2710 | wxRegion * _result; | |
2711 | wxWindow * _arg0; | |
2712 | PyObject * _argo0 = 0; | |
2713 | char *_kwnames[] = { "self", NULL }; | |
2714 | char _ptemp[128]; | |
2715 | ||
2716 | self = self; | |
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) | |
2718 | return NULL; | |
2719 | if (_argo0) { | |
2720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); | |
2723 | return NULL; | |
2724 | } | |
2725 | } | |
2726 | { | |
2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2728 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2729 | ||
2730 | wxPyEndAllowThreads(__tstate); | |
2731 | if (PyErr_Occurred()) return NULL; | |
2732 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2733 | _resultobj = Py_BuildValue("s",_ptemp); | |
2734 | return _resultobj; | |
2735 | } | |
2736 | ||
2737 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) | |
2738 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject * _resultobj; | |
2740 | long _result; | |
2741 | wxWindow * _arg0; | |
2742 | PyObject * _argo0 = 0; | |
2743 | char *_kwnames[] = { "self", NULL }; | |
2744 | ||
2745 | self = self; | |
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) | |
2747 | return NULL; | |
2748 | if (_argo0) { | |
2749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); | |
2752 | return NULL; | |
2753 | } | |
2754 | } | |
2755 | { | |
2756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2757 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2758 | ||
2759 | wxPyEndAllowThreads(__tstate); | |
2760 | if (PyErr_Occurred()) return NULL; | |
2761 | } _resultobj = Py_BuildValue("l",_result); | |
2762 | return _resultobj; | |
2763 | } | |
2764 | ||
2765 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
2766 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2767 | PyObject * _resultobj; | |
2768 | wxWindow * _arg0; | |
2769 | long _arg1; | |
2770 | PyObject * _argo0 = 0; | |
2771 | char *_kwnames[] = { "self","style", NULL }; | |
2772 | ||
2773 | self = self; | |
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2775 | return NULL; | |
2776 | if (_argo0) { | |
2777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2780 | return NULL; | |
2781 | } | |
2782 | } | |
2783 | { | |
2784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2785 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); | |
2786 | ||
2787 | wxPyEndAllowThreads(__tstate); | |
2788 | if (PyErr_Occurred()) return NULL; | |
2789 | } Py_INCREF(Py_None); | |
2790 | _resultobj = Py_None; | |
2791 | return _resultobj; | |
2792 | } | |
2793 | ||
2794 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2795 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2796 | PyObject * _resultobj; | |
2797 | wxWindow * _arg0; | |
2798 | long _arg1; | |
2799 | PyObject * _argo0 = 0; | |
2800 | char *_kwnames[] = { "self","style", NULL }; | |
2801 | ||
2802 | self = self; | |
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2804 | return NULL; | |
2805 | if (_argo0) { | |
2806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2809 | return NULL; | |
2810 | } | |
2811 | } | |
2812 | { | |
2813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2814 | wxWindow_SetWindowStyle(_arg0,_arg1); | |
2815 | ||
2816 | wxPyEndAllowThreads(__tstate); | |
2817 | if (PyErr_Occurred()) return NULL; | |
2818 | } Py_INCREF(Py_None); | |
2819 | _resultobj = Py_None; | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
2823 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) | |
2824 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | bool _result; | |
2827 | wxWindow * _arg0; | |
2828 | int _arg1; | |
2829 | PyObject * _argo0 = 0; | |
2830 | char *_kwnames[] = { "self","orient", NULL }; | |
2831 | ||
2832 | self = self; | |
2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2834 | return NULL; | |
2835 | if (_argo0) { | |
2836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2839 | return NULL; | |
2840 | } | |
2841 | } | |
2842 | { | |
2843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2844 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); | |
2845 | ||
2846 | wxPyEndAllowThreads(__tstate); | |
2847 | if (PyErr_Occurred()) return NULL; | |
2848 | } _resultobj = Py_BuildValue("i",_result); | |
2849 | return _resultobj; | |
2850 | } | |
2851 | ||
2852 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) | |
2853 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2854 | PyObject * _resultobj; | |
2855 | bool _result; | |
2856 | wxWindow * _arg0; | |
2857 | PyObject * _argo0 = 0; | |
2858 | char *_kwnames[] = { "self", NULL }; | |
2859 | ||
2860 | self = self; | |
2861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) | |
2862 | return NULL; | |
2863 | if (_argo0) { | |
2864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); | |
2867 | return NULL; | |
2868 | } | |
2869 | } | |
2870 | { | |
2871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2872 | _result = (bool )wxWindow_Hide(_arg0); | |
2873 | ||
2874 | wxPyEndAllowThreads(__tstate); | |
2875 | if (PyErr_Occurred()) return NULL; | |
2876 | } _resultobj = Py_BuildValue("i",_result); | |
2877 | return _resultobj; | |
2878 | } | |
2879 | ||
2880 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) | |
2881 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2882 | PyObject * _resultobj; | |
2883 | wxHitTest _result; | |
2884 | wxWindow * _arg0; | |
2885 | wxPoint * _arg1; | |
2886 | PyObject * _argo0 = 0; | |
2887 | wxPoint temp; | |
2888 | PyObject * _obj1 = 0; | |
2889 | char *_kwnames[] = { "self","pt", NULL }; | |
2890 | ||
2891 | self = self; | |
2892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2893 | return NULL; | |
2894 | if (_argo0) { | |
2895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2898 | return NULL; | |
2899 | } | |
2900 | } | |
2901 | { | |
2902 | _arg1 = &temp; | |
2903 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2904 | return NULL; | |
2905 | } | |
2906 | { | |
2907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2908 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); | |
2909 | ||
2910 | wxPyEndAllowThreads(__tstate); | |
2911 | if (PyErr_Occurred()) return NULL; | |
2912 | } _resultobj = Py_BuildValue("i",_result); | |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
2916 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
2917 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2918 | PyObject * _resultobj; | |
2919 | wxWindow * _arg0; | |
2920 | PyObject * _argo0 = 0; | |
2921 | char *_kwnames[] = { "self", NULL }; | |
2922 | ||
2923 | self = self; | |
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) | |
2925 | return NULL; | |
2926 | if (_argo0) { | |
2927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); | |
2930 | return NULL; | |
2931 | } | |
2932 | } | |
2933 | { | |
2934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2935 | wxWindow_InitDialog(_arg0); | |
2936 | ||
2937 | wxPyEndAllowThreads(__tstate); | |
2938 | if (PyErr_Occurred()) return NULL; | |
2939 | } Py_INCREF(Py_None); | |
2940 | _resultobj = Py_None; | |
2941 | return _resultobj; | |
2942 | } | |
2943 | ||
2944 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
2945 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject * _resultobj; | |
2947 | bool _result; | |
2948 | wxWindow * _arg0; | |
2949 | PyObject * _argo0 = 0; | |
2950 | char *_kwnames[] = { "self", NULL }; | |
2951 | ||
2952 | self = self; | |
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) | |
2954 | return NULL; | |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); | |
2959 | return NULL; | |
2960 | } | |
2961 | } | |
2962 | { | |
2963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2964 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2965 | ||
2966 | wxPyEndAllowThreads(__tstate); | |
2967 | if (PyErr_Occurred()) return NULL; | |
2968 | } _resultobj = Py_BuildValue("i",_result); | |
2969 | return _resultobj; | |
2970 | } | |
2971 | ||
2972 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2973 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject * _resultobj; | |
2975 | bool _result; | |
2976 | wxWindow * _arg0; | |
2977 | int _arg1; | |
2978 | int _arg2; | |
2979 | int _arg3 = (int ) 0; | |
2980 | int _arg4 = (int ) 0; | |
2981 | PyObject * _argo0 = 0; | |
2982 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2983 | ||
2984 | self = self; | |
2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2986 | return NULL; | |
2987 | if (_argo0) { | |
2988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2991 | return NULL; | |
2992 | } | |
2993 | } | |
2994 | { | |
2995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2996 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2997 | ||
2998 | wxPyEndAllowThreads(__tstate); | |
2999 | if (PyErr_Occurred()) return NULL; | |
3000 | } _resultobj = Py_BuildValue("i",_result); | |
3001 | return _resultobj; | |
3002 | } | |
3003 | ||
3004 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3005 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3006 | PyObject * _resultobj; | |
3007 | bool _result; | |
3008 | wxWindow * _arg0; | |
3009 | wxPoint * _arg1; | |
3010 | PyObject * _argo0 = 0; | |
3011 | wxPoint temp; | |
3012 | PyObject * _obj1 = 0; | |
3013 | char *_kwnames[] = { "self","pt", NULL }; | |
3014 | ||
3015 | self = self; | |
3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
3017 | return NULL; | |
3018 | if (_argo0) { | |
3019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
3022 | return NULL; | |
3023 | } | |
3024 | } | |
3025 | { | |
3026 | _arg1 = &temp; | |
3027 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3028 | return NULL; | |
3029 | } | |
3030 | { | |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3032 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
3035 | if (PyErr_Occurred()) return NULL; | |
3036 | } _resultobj = Py_BuildValue("i",_result); | |
3037 | return _resultobj; | |
3038 | } | |
3039 | ||
3040 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3041 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3042 | PyObject * _resultobj; | |
3043 | bool _result; | |
3044 | wxWindow * _arg0; | |
3045 | wxRect * _arg1; | |
3046 | PyObject * _argo0 = 0; | |
3047 | wxRect temp; | |
3048 | PyObject * _obj1 = 0; | |
3049 | char *_kwnames[] = { "self","rect", NULL }; | |
3050 | ||
3051 | self = self; | |
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3053 | return NULL; | |
3054 | if (_argo0) { | |
3055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3058 | return NULL; | |
3059 | } | |
3060 | } | |
3061 | { | |
3062 | _arg1 = &temp; | |
3063 | if (! wxRect_helper(_obj1, &_arg1)) | |
3064 | return NULL; | |
3065 | } | |
3066 | { | |
3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3068 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); | |
3069 | ||
3070 | wxPyEndAllowThreads(__tstate); | |
3071 | if (PyErr_Occurred()) return NULL; | |
3072 | } _resultobj = Py_BuildValue("i",_result); | |
3073 | return _resultobj; | |
3074 | } | |
3075 | ||
3076 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
3077 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3078 | PyObject * _resultobj; | |
3079 | bool _result; | |
3080 | wxWindow * _arg0; | |
3081 | PyObject * _argo0 = 0; | |
3082 | char *_kwnames[] = { "self", NULL }; | |
3083 | ||
3084 | self = self; | |
3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) | |
3086 | return NULL; | |
3087 | if (_argo0) { | |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); | |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
3094 | { | |
3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3096 | _result = (bool )wxWindow_IsRetained(_arg0); | |
3097 | ||
3098 | wxPyEndAllowThreads(__tstate); | |
3099 | if (PyErr_Occurred()) return NULL; | |
3100 | } _resultobj = Py_BuildValue("i",_result); | |
3101 | return _resultobj; | |
3102 | } | |
3103 | ||
3104 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
3105 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3106 | PyObject * _resultobj; | |
3107 | bool _result; | |
3108 | wxWindow * _arg0; | |
3109 | PyObject * _argo0 = 0; | |
3110 | char *_kwnames[] = { "self", NULL }; | |
3111 | ||
3112 | self = self; | |
3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) | |
3114 | return NULL; | |
3115 | if (_argo0) { | |
3116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); | |
3119 | return NULL; | |
3120 | } | |
3121 | } | |
3122 | { | |
3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3124 | _result = (bool )wxWindow_IsShown(_arg0); | |
3125 | ||
3126 | wxPyEndAllowThreads(__tstate); | |
3127 | if (PyErr_Occurred()) return NULL; | |
3128 | } _resultobj = Py_BuildValue("i",_result); | |
3129 | return _resultobj; | |
3130 | } | |
3131 | ||
3132 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) | |
3133 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3134 | PyObject * _resultobj; | |
3135 | bool _result; | |
3136 | wxWindow * _arg0; | |
3137 | PyObject * _argo0 = 0; | |
3138 | char *_kwnames[] = { "self", NULL }; | |
3139 | ||
3140 | self = self; | |
3141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) | |
3142 | return NULL; | |
3143 | if (_argo0) { | |
3144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); | |
3147 | return NULL; | |
3148 | } | |
3149 | } | |
3150 | { | |
3151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3152 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
3153 | ||
3154 | wxPyEndAllowThreads(__tstate); | |
3155 | if (PyErr_Occurred()) return NULL; | |
3156 | } _resultobj = Py_BuildValue("i",_result); | |
3157 | return _resultobj; | |
3158 | } | |
3159 | ||
3160 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) | |
3161 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3162 | PyObject * _resultobj; | |
3163 | wxWindow * _arg0; | |
3164 | PyObject * _argo0 = 0; | |
3165 | char *_kwnames[] = { "self", NULL }; | |
3166 | ||
3167 | self = self; | |
3168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) | |
3169 | return NULL; | |
3170 | if (_argo0) { | |
3171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); | |
3174 | return NULL; | |
3175 | } | |
3176 | } | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | wxWindow_Layout(_arg0); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) return NULL; | |
3183 | } Py_INCREF(Py_None); | |
3184 | _resultobj = Py_None; | |
3185 | return _resultobj; | |
3186 | } | |
3187 | ||
3188 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
3189 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3190 | PyObject * _resultobj; | |
3191 | bool _result; | |
3192 | wxWindow * _arg0; | |
3193 | wxWindow * _arg1; | |
3194 | wxString * _arg2; | |
3195 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; | |
3196 | PyObject * _argo0 = 0; | |
3197 | PyObject * _argo1 = 0; | |
3198 | PyObject * _obj2 = 0; | |
3199 | PyObject * _argo3 = 0; | |
3200 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; | |
3201 | ||
3202 | self = self; | |
3203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) | |
3204 | return NULL; | |
3205 | if (_argo0) { | |
3206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
3209 | return NULL; | |
3210 | } | |
3211 | } | |
3212 | if (_argo1) { | |
3213 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3214 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); | |
3216 | return NULL; | |
3217 | } | |
3218 | } | |
3219 | { | |
3220 | _arg2 = wxString_in_helper(_obj2); | |
3221 | if (_arg2 == NULL) | |
3222 | return NULL; | |
3223 | } | |
3224 | if (_argo3) { | |
3225 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3226 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
3227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); | |
3228 | return NULL; | |
3229 | } | |
3230 | } | |
3231 | { | |
3232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3233 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
3234 | ||
3235 | wxPyEndAllowThreads(__tstate); | |
3236 | if (PyErr_Occurred()) return NULL; | |
3237 | } _resultobj = Py_BuildValue("i",_result); | |
3238 | { | |
3239 | if (_obj2) | |
3240 | delete _arg2; | |
3241 | } | |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
3246 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject * _resultobj; | |
3248 | wxWindow * _arg0; | |
3249 | PyObject * _argo0 = 0; | |
3250 | char *_kwnames[] = { "self", NULL }; | |
3251 | ||
3252 | self = self; | |
3253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) | |
3254 | return NULL; | |
3255 | if (_argo0) { | |
3256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); | |
3259 | return NULL; | |
3260 | } | |
3261 | } | |
3262 | { | |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | wxWindow_Lower(_arg0); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) return NULL; | |
3268 | } Py_INCREF(Py_None); | |
3269 | _resultobj = Py_None; | |
3270 | return _resultobj; | |
3271 | } | |
3272 | ||
3273 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
3274 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3275 | PyObject * _resultobj; | |
3276 | wxWindow * _arg0; | |
3277 | bool _arg1 = (bool ) TRUE; | |
3278 | PyObject * _argo0 = 0; | |
3279 | int tempbool1 = (int) TRUE; | |
3280 | char *_kwnames[] = { "self","flag", NULL }; | |
3281 | ||
3282 | self = self; | |
3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
3284 | return NULL; | |
3285 | if (_argo0) { | |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); | |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | _arg1 = (bool ) tempbool1; | |
3293 | { | |
3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3295 | wxWindow_MakeModal(_arg0,_arg1); | |
3296 | ||
3297 | wxPyEndAllowThreads(__tstate); | |
3298 | if (PyErr_Occurred()) return NULL; | |
3299 | } Py_INCREF(Py_None); | |
3300 | _resultobj = Py_None; | |
3301 | return _resultobj; | |
3302 | } | |
3303 | ||
3304 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) | |
3305 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3306 | PyObject * _resultobj; | |
3307 | wxWindow * _arg0; | |
3308 | int _arg1; | |
3309 | int _arg2; | |
3310 | int _arg3 = (int ) wxSIZE_USE_EXISTING; | |
3311 | PyObject * _argo0 = 0; | |
3312 | char *_kwnames[] = { "self","x","y","flags", NULL }; | |
3313 | ||
3314 | self = self; | |
3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3316 | return NULL; | |
3317 | if (_argo0) { | |
3318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); | |
3321 | return NULL; | |
3322 | } | |
3323 | } | |
3324 | { | |
3325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3326 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); | |
3327 | ||
3328 | wxPyEndAllowThreads(__tstate); | |
3329 | if (PyErr_Occurred()) return NULL; | |
3330 | } Py_INCREF(Py_None); | |
3331 | _resultobj = Py_None; | |
3332 | return _resultobj; | |
3333 | } | |
3334 | ||
3335 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3336 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3337 | PyObject * _resultobj; | |
3338 | wxWindow * _arg0; | |
3339 | wxPoint * _arg1; | |
3340 | int _arg2 = (int ) wxSIZE_USE_EXISTING; | |
3341 | PyObject * _argo0 = 0; | |
3342 | wxPoint temp; | |
3343 | PyObject * _obj1 = 0; | |
3344 | char *_kwnames[] = { "self","point","flags", NULL }; | |
3345 | ||
3346 | self = self; | |
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) | |
3348 | return NULL; | |
3349 | if (_argo0) { | |
3350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); | |
3353 | return NULL; | |
3354 | } | |
3355 | } | |
3356 | { | |
3357 | _arg1 = &temp; | |
3358 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3359 | return NULL; | |
3360 | } | |
3361 | { | |
3362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3363 | wxWindow_Move(_arg0,*_arg1,_arg2); | |
3364 | ||
3365 | wxPyEndAllowThreads(__tstate); | |
3366 | if (PyErr_Occurred()) return NULL; | |
3367 | } Py_INCREF(Py_None); | |
3368 | _resultobj = Py_None; | |
3369 | return _resultobj; | |
3370 | } | |
3371 | ||
3372 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) | |
3373 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3374 | PyObject * _resultobj; | |
3375 | wxEvtHandler * _result; | |
3376 | wxWindow * _arg0; | |
3377 | bool _arg1 = (bool ) FALSE; | |
3378 | PyObject * _argo0 = 0; | |
3379 | int tempbool1 = (int) FALSE; | |
3380 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
3381 | ||
3382 | self = self; | |
3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3384 | return NULL; | |
3385 | if (_argo0) { | |
3386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3389 | return NULL; | |
3390 | } | |
3391 | } | |
3392 | _arg1 = (bool ) tempbool1; | |
3393 | { | |
3394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3395 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
3396 | ||
3397 | wxPyEndAllowThreads(__tstate); | |
3398 | if (PyErr_Occurred()) return NULL; | |
3399 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3400 | return _resultobj; | |
3401 | } | |
3402 | ||
3403 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3404 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3405 | PyObject * _resultobj; | |
3406 | wxWindow * _arg0; | |
3407 | wxEvtHandler * _arg1; | |
3408 | PyObject * _argo0 = 0; | |
3409 | PyObject * _argo1 = 0; | |
3410 | char *_kwnames[] = { "self","handler", NULL }; | |
3411 | ||
3412 | self = self; | |
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3414 | return NULL; | |
3415 | if (_argo0) { | |
3416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3419 | return NULL; | |
3420 | } | |
3421 | } | |
3422 | if (_argo1) { | |
3423 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3424 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3426 | return NULL; | |
3427 | } | |
3428 | } | |
3429 | { | |
3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3431 | wxWindow_PushEventHandler(_arg0,_arg1); | |
3432 | ||
3433 | wxPyEndAllowThreads(__tstate); | |
3434 | if (PyErr_Occurred()) return NULL; | |
3435 | } Py_INCREF(Py_None); | |
3436 | _resultobj = Py_None; | |
3437 | return _resultobj; | |
3438 | } | |
3439 | ||
3440 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) | |
3441 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3442 | PyObject * _resultobj; | |
3443 | bool _result; | |
3444 | wxWindow * _arg0; | |
3445 | wxEvtHandler * _arg1; | |
3446 | PyObject * _argo0 = 0; | |
3447 | PyObject * _argo1 = 0; | |
3448 | char *_kwnames[] = { "self","handler", NULL }; | |
3449 | ||
3450 | self = self; | |
3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3452 | return NULL; | |
3453 | if (_argo0) { | |
3454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3457 | return NULL; | |
3458 | } | |
3459 | } | |
3460 | if (_argo1) { | |
3461 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3462 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3464 | return NULL; | |
3465 | } | |
3466 | } | |
3467 | { | |
3468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3469 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); | |
3470 | ||
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) return NULL; | |
3473 | } _resultobj = Py_BuildValue("i",_result); | |
3474 | return _resultobj; | |
3475 | } | |
3476 | ||
3477 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) | |
3478 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3479 | PyObject * _resultobj; | |
3480 | bool _result; | |
3481 | wxWindow * _arg0; | |
3482 | wxMenu * _arg1; | |
3483 | int _arg2; | |
3484 | int _arg3; | |
3485 | PyObject * _argo0 = 0; | |
3486 | PyObject * _argo1 = 0; | |
3487 | char *_kwnames[] = { "self","menu","x","y", NULL }; | |
3488 | ||
3489 | self = self; | |
3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
3491 | return NULL; | |
3492 | if (_argo0) { | |
3493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); | |
3496 | return NULL; | |
3497 | } | |
3498 | } | |
3499 | if (_argo1) { | |
3500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); | |
3503 | return NULL; | |
3504 | } | |
3505 | } | |
3506 | { | |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) return NULL; | |
3512 | } _resultobj = Py_BuildValue("i",_result); | |
3513 | return _resultobj; | |
3514 | } | |
3515 | ||
3516 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
3517 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3518 | PyObject * _resultobj; | |
3519 | bool _result; | |
3520 | wxWindow * _arg0; | |
3521 | wxMenu * _arg1; | |
3522 | wxPoint * _arg2; | |
3523 | PyObject * _argo0 = 0; | |
3524 | PyObject * _argo1 = 0; | |
3525 | wxPoint temp; | |
3526 | PyObject * _obj2 = 0; | |
3527 | char *_kwnames[] = { "self","menu","pos", NULL }; | |
3528 | ||
3529 | self = self; | |
3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3531 | return NULL; | |
3532 | if (_argo0) { | |
3533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); | |
3536 | return NULL; | |
3537 | } | |
3538 | } | |
3539 | if (_argo1) { | |
3540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
3542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); | |
3543 | return NULL; | |
3544 | } | |
3545 | } | |
3546 | { | |
3547 | _arg2 = &temp; | |
3548 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3549 | return NULL; | |
3550 | } | |
3551 | { | |
3552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3553 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); | |
3554 | ||
3555 | wxPyEndAllowThreads(__tstate); | |
3556 | if (PyErr_Occurred()) return NULL; | |
3557 | } _resultobj = Py_BuildValue("i",_result); | |
3558 | return _resultobj; | |
3559 | } | |
3560 | ||
3561 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
3562 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3563 | PyObject * _resultobj; | |
3564 | wxWindow * _arg0; | |
3565 | PyObject * _argo0 = 0; | |
3566 | char *_kwnames[] = { "self", NULL }; | |
3567 | ||
3568 | self = self; | |
3569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) | |
3570 | return NULL; | |
3571 | if (_argo0) { | |
3572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); | |
3575 | return NULL; | |
3576 | } | |
3577 | } | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | wxWindow_Raise(_arg0); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) return NULL; | |
3584 | } Py_INCREF(Py_None); | |
3585 | _resultobj = Py_None; | |
3586 | return _resultobj; | |
3587 | } | |
3588 | ||
3589 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
3590 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3591 | PyObject * _resultobj; | |
3592 | wxWindow * _arg0; | |
3593 | bool _arg1 = (bool ) TRUE; | |
3594 | wxRect * _arg2 = (wxRect *) NULL; | |
3595 | PyObject * _argo0 = 0; | |
3596 | int tempbool1 = (int) TRUE; | |
3597 | wxRect temp; | |
3598 | PyObject * _obj2 = 0; | |
3599 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; | |
3600 | ||
3601 | self = self; | |
3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) | |
3603 | return NULL; | |
3604 | if (_argo0) { | |
3605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); | |
3608 | return NULL; | |
3609 | } | |
3610 | } | |
3611 | _arg1 = (bool ) tempbool1; | |
3612 | if (_obj2) | |
3613 | { | |
3614 | _arg2 = &temp; | |
3615 | if (! wxRect_helper(_obj2, &_arg2)) | |
3616 | return NULL; | |
3617 | } | |
3618 | { | |
3619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3620 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
3621 | ||
3622 | wxPyEndAllowThreads(__tstate); | |
3623 | if (PyErr_Occurred()) return NULL; | |
3624 | } Py_INCREF(Py_None); | |
3625 | _resultobj = Py_None; | |
3626 | return _resultobj; | |
3627 | } | |
3628 | ||
3629 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) | |
3630 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3631 | PyObject * _resultobj; | |
3632 | wxWindow * _arg0; | |
3633 | wxRect * _arg1; | |
3634 | PyObject * _argo0 = 0; | |
3635 | wxRect temp; | |
3636 | PyObject * _obj1 = 0; | |
3637 | char *_kwnames[] = { "self","rect", NULL }; | |
3638 | ||
3639 | self = self; | |
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3641 | return NULL; | |
3642 | if (_argo0) { | |
3643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3646 | return NULL; | |
3647 | } | |
3648 | } | |
3649 | { | |
3650 | _arg1 = &temp; | |
3651 | if (! wxRect_helper(_obj1, &_arg1)) | |
3652 | return NULL; | |
3653 | } | |
3654 | { | |
3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3656 | wxWindow_RefreshRect(_arg0,*_arg1); | |
3657 | ||
3658 | wxPyEndAllowThreads(__tstate); | |
3659 | if (PyErr_Occurred()) return NULL; | |
3660 | } Py_INCREF(Py_None); | |
3661 | _resultobj = Py_None; | |
3662 | return _resultobj; | |
3663 | } | |
3664 | ||
3665 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
3666 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3667 | PyObject * _resultobj; | |
3668 | wxWindow * _arg0; | |
3669 | PyObject * _argo0 = 0; | |
3670 | char *_kwnames[] = { "self", NULL }; | |
3671 | ||
3672 | self = self; | |
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
3674 | return NULL; | |
3675 | if (_argo0) { | |
3676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
3679 | return NULL; | |
3680 | } | |
3681 | } | |
3682 | { | |
3683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3684 | wxWindow_ReleaseMouse(_arg0); | |
3685 | ||
3686 | wxPyEndAllowThreads(__tstate); | |
3687 | if (PyErr_Occurred()) return NULL; | |
3688 | } Py_INCREF(Py_None); | |
3689 | _resultobj = Py_None; | |
3690 | return _resultobj; | |
3691 | } | |
3692 | ||
3693 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) | |
3694 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3695 | PyObject * _resultobj; | |
3696 | wxWindow * _arg0; | |
3697 | wxWindow * _arg1; | |
3698 | PyObject * _argo0 = 0; | |
3699 | PyObject * _argo1 = 0; | |
3700 | char *_kwnames[] = { "self","child", NULL }; | |
3701 | ||
3702 | self = self; | |
3703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3704 | return NULL; | |
3705 | if (_argo0) { | |
3706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3709 | return NULL; | |
3710 | } | |
3711 | } | |
3712 | if (_argo1) { | |
3713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3716 | return NULL; | |
3717 | } | |
3718 | } | |
3719 | { | |
3720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3721 | wxWindow_RemoveChild(_arg0,_arg1); | |
3722 | ||
3723 | wxPyEndAllowThreads(__tstate); | |
3724 | if (PyErr_Occurred()) return NULL; | |
3725 | } Py_INCREF(Py_None); | |
3726 | _resultobj = Py_None; | |
3727 | return _resultobj; | |
3728 | } | |
3729 | ||
3730 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) | |
3731 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject * _resultobj; | |
3733 | bool _result; | |
3734 | wxWindow * _arg0; | |
3735 | wxWindow * _arg1; | |
3736 | PyObject * _argo0 = 0; | |
3737 | PyObject * _argo1 = 0; | |
3738 | char *_kwnames[] = { "self","newParent", NULL }; | |
3739 | ||
3740 | self = self; | |
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) | |
3742 | return NULL; | |
3743 | if (_argo0) { | |
3744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3747 | return NULL; | |
3748 | } | |
3749 | } | |
3750 | if (_argo1) { | |
3751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); | |
3754 | return NULL; | |
3755 | } | |
3756 | } | |
3757 | { | |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3759 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
3762 | if (PyErr_Occurred()) return NULL; | |
3763 | } _resultobj = Py_BuildValue("i",_result); | |
3764 | return _resultobj; | |
3765 | } | |
3766 | ||
3767 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) | |
3768 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3769 | PyObject * _resultobj; | |
3770 | wxWindow * _arg0; | |
3771 | int * _arg1; | |
3772 | int * _arg2; | |
3773 | PyObject * _argo0 = 0; | |
3774 | int temp; | |
3775 | PyObject * _obj1 = 0; | |
3776 | int temp0; | |
3777 | PyObject * _obj2 = 0; | |
3778 | char *_kwnames[] = { "self","x","y", NULL }; | |
3779 | ||
3780 | self = self; | |
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3782 | return NULL; | |
3783 | if (_argo0) { | |
3784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); | |
3787 | return NULL; | |
3788 | } | |
3789 | } | |
3790 | { | |
3791 | temp = (int) PyInt_AsLong(_obj1); | |
3792 | _arg1 = &temp; | |
3793 | } | |
3794 | { | |
3795 | temp0 = (int) PyInt_AsLong(_obj2); | |
3796 | _arg2 = &temp0; | |
3797 | } | |
3798 | { | |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3800 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
3801 | ||
3802 | wxPyEndAllowThreads(__tstate); | |
3803 | if (PyErr_Occurred()) return NULL; | |
3804 | } Py_INCREF(Py_None); | |
3805 | _resultobj = Py_None; | |
3806 | { | |
3807 | PyObject *o; | |
3808 | o = PyInt_FromLong((long) (*_arg1)); | |
3809 | _resultobj = t_output_helper(_resultobj, o); | |
3810 | } | |
3811 | { | |
3812 | PyObject *o; | |
3813 | o = PyInt_FromLong((long) (*_arg2)); | |
3814 | _resultobj = t_output_helper(_resultobj, o); | |
3815 | } | |
3816 | return _resultobj; | |
3817 | } | |
3818 | ||
3819 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) | |
3820 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3821 | PyObject * _resultobj; | |
3822 | wxPoint * _result; | |
3823 | wxWindow * _arg0; | |
3824 | wxPoint * _arg1; | |
3825 | PyObject * _argo0 = 0; | |
3826 | wxPoint temp; | |
3827 | PyObject * _obj1 = 0; | |
3828 | char *_kwnames[] = { "self","pt", NULL }; | |
3829 | char _ptemp[128]; | |
3830 | ||
3831 | self = self; | |
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) | |
3833 | return NULL; | |
3834 | if (_argo0) { | |
3835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); | |
3838 | return NULL; | |
3839 | } | |
3840 | } | |
3841 | { | |
3842 | _arg1 = &temp; | |
3843 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3844 | return NULL; | |
3845 | } | |
3846 | { | |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3848 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) return NULL; | |
3852 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3853 | _resultobj = Py_BuildValue("s",_ptemp); | |
3854 | return _resultobj; | |
3855 | } | |
3856 | ||
3857 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) | |
3858 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3859 | PyObject * _resultobj; | |
3860 | wxWindow * _arg0; | |
3861 | int _arg1; | |
3862 | int _arg2; | |
3863 | wxRect * _arg3 = (wxRect *) NULL; | |
3864 | PyObject * _argo0 = 0; | |
3865 | wxRect temp; | |
3866 | PyObject * _obj3 = 0; | |
3867 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; | |
3868 | ||
3869 | self = self; | |
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) | |
3871 | return NULL; | |
3872 | if (_argo0) { | |
3873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); | |
3876 | return NULL; | |
3877 | } | |
3878 | } | |
3879 | if (_obj3) | |
3880 | { | |
3881 | _arg3 = &temp; | |
3882 | if (! wxRect_helper(_obj3, &_arg3)) | |
3883 | return NULL; | |
3884 | } | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) return NULL; | |
3891 | } Py_INCREF(Py_None); | |
3892 | _resultobj = Py_None; | |
3893 | return _resultobj; | |
3894 | } | |
3895 | ||
3896 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
3897 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject * _resultobj; | |
3899 | wxWindow * _arg0; | |
3900 | bool _arg1; | |
3901 | PyObject * _argo0 = 0; | |
3902 | int tempbool1; | |
3903 | char *_kwnames[] = { "self","autoLayout", NULL }; | |
3904 | ||
3905 | self = self; | |
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) | |
3907 | return NULL; | |
3908 | if (_argo0) { | |
3909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); | |
3912 | return NULL; | |
3913 | } | |
3914 | } | |
3915 | _arg1 = (bool ) tempbool1; | |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) return NULL; | |
3922 | } Py_INCREF(Py_None); | |
3923 | _resultobj = Py_None; | |
3924 | return _resultobj; | |
3925 | } | |
3926 | ||
3927 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) | |
3928 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject * _resultobj; | |
3930 | bool _result; | |
3931 | wxWindow * _arg0; | |
3932 | PyObject * _argo0 = 0; | |
3933 | char *_kwnames[] = { "self", NULL }; | |
3934 | ||
3935 | self = self; | |
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3937 | return NULL; | |
3938 | if (_argo0) { | |
3939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3942 | return NULL; | |
3943 | } | |
3944 | } | |
3945 | { | |
3946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3947 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3948 | ||
3949 | wxPyEndAllowThreads(__tstate); | |
3950 | if (PyErr_Occurred()) return NULL; | |
3951 | } _resultobj = Py_BuildValue("i",_result); | |
3952 | return _resultobj; | |
3953 | } | |
3954 | ||
3955 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3956 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3957 | PyObject * _resultobj; | |
3958 | wxWindow * _arg0; | |
3959 | wxColour * _arg1; | |
3960 | PyObject * _argo0 = 0; | |
3961 | wxColour temp; | |
3962 | PyObject * _obj1 = 0; | |
3963 | char *_kwnames[] = { "self","colour", NULL }; | |
3964 | ||
3965 | self = self; | |
3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3967 | return NULL; | |
3968 | if (_argo0) { | |
3969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); | |
3972 | return NULL; | |
3973 | } | |
3974 | } | |
3975 | { | |
3976 | _arg1 = &temp; | |
3977 | if (! wxColour_helper(_obj1, &_arg1)) | |
3978 | return NULL; | |
3979 | } | |
3980 | { | |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3983 | ||
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) return NULL; | |
3986 | } Py_INCREF(Py_None); | |
3987 | _resultobj = Py_None; | |
3988 | return _resultobj; | |
3989 | } | |
3990 | ||
3991 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
3992 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3993 | PyObject * _resultobj; | |
3994 | wxWindow * _arg0; | |
3995 | wxLayoutConstraints * _arg1; | |
3996 | PyObject * _argo0 = 0; | |
3997 | PyObject * _argo1 = 0; | |
3998 | char *_kwnames[] = { "self","constraints", NULL }; | |
3999 | ||
4000 | self = self; | |
4001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) | |
4002 | return NULL; | |
4003 | if (_argo0) { | |
4004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); | |
4007 | return NULL; | |
4008 | } | |
4009 | } | |
4010 | if (_argo1) { | |
4011 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4012 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); | |
4014 | return NULL; | |
4015 | } | |
4016 | } | |
4017 | { | |
4018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4019 | wxWindow_SetConstraints(_arg0,_arg1); | |
4020 | ||
4021 | wxPyEndAllowThreads(__tstate); | |
4022 | if (PyErr_Occurred()) return NULL; | |
4023 | } Py_INCREF(Py_None); | |
4024 | _resultobj = Py_None; | |
4025 | return _resultobj; | |
4026 | } | |
4027 | ||
4028 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) | |
4029 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject * _resultobj; | |
4031 | wxWindow * _arg0; | |
4032 | wxLayoutConstraints * _arg1; | |
4033 | PyObject * _argo0 = 0; | |
4034 | PyObject * _argo1 = 0; | |
4035 | char *_kwnames[] = { "self","constraints", NULL }; | |
4036 | ||
4037 | self = self; | |
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
4039 | return NULL; | |
4040 | if (_argo0) { | |
4041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4044 | return NULL; | |
4045 | } | |
4046 | } | |
4047 | if (_argo1) { | |
4048 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) return NULL; | |
4060 | } Py_INCREF(Py_None); | |
4061 | _resultobj = Py_None; | |
4062 | return _resultobj; | |
4063 | } | |
4064 | ||
4065 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) | |
4066 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject * _resultobj; | |
4068 | wxWindow * _arg0; | |
4069 | PyObject * _argo0 = 0; | |
4070 | char *_kwnames[] = { "self", NULL }; | |
4071 | ||
4072 | self = self; | |
4073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) | |
4074 | return NULL; | |
4075 | if (_argo0) { | |
4076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); | |
4079 | return NULL; | |
4080 | } | |
4081 | } | |
4082 | { | |
4083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4084 | wxWindow_SetFocus(_arg0); | |
4085 | ||
4086 | wxPyEndAllowThreads(__tstate); | |
4087 | if (PyErr_Occurred()) return NULL; | |
4088 | } Py_INCREF(Py_None); | |
4089 | _resultobj = Py_None; | |
4090 | return _resultobj; | |
4091 | } | |
4092 | ||
4093 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) | |
4094 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4095 | PyObject * _resultobj; | |
4096 | bool _result; | |
4097 | wxWindow * _arg0; | |
4098 | PyObject * _argo0 = 0; | |
4099 | char *_kwnames[] = { "self", NULL }; | |
4100 | ||
4101 | self = self; | |
4102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4103 | return NULL; | |
4104 | if (_argo0) { | |
4105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4108 | return NULL; | |
4109 | } | |
4110 | } | |
4111 | { | |
4112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4113 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
4114 | ||
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) return NULL; | |
4117 | } _resultobj = Py_BuildValue("i",_result); | |
4118 | return _resultobj; | |
4119 | } | |
4120 | ||
4121 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
4122 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4123 | PyObject * _resultobj; | |
4124 | wxWindow * _arg0; | |
4125 | wxFont * _arg1; | |
4126 | PyObject * _argo0 = 0; | |
4127 | PyObject * _argo1 = 0; | |
4128 | char *_kwnames[] = { "self","font", NULL }; | |
4129 | ||
4130 | self = self; | |
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) | |
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_SetFont. Expected _wxWindow_p."); | |
4137 | return NULL; | |
4138 | } | |
4139 | } | |
4140 | if (_argo1) { | |
4141 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4142 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); | |
4144 | return NULL; | |
4145 | } | |
4146 | } | |
4147 | { | |
4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4149 | wxWindow_SetFont(_arg0,*_arg1); | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
4152 | if (PyErr_Occurred()) return NULL; | |
4153 | } Py_INCREF(Py_None); | |
4154 | _resultobj = Py_None; | |
4155 | return _resultobj; | |
4156 | } | |
4157 | ||
4158 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
4159 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4160 | PyObject * _resultobj; | |
4161 | wxWindow * _arg0; | |
4162 | wxColour * _arg1; | |
4163 | PyObject * _argo0 = 0; | |
4164 | wxColour temp; | |
4165 | PyObject * _obj1 = 0; | |
4166 | char *_kwnames[] = { "self","colour", NULL }; | |
4167 | ||
4168 | self = self; | |
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
4170 | return NULL; | |
4171 | if (_argo0) { | |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); | |
4175 | return NULL; | |
4176 | } | |
4177 | } | |
4178 | { | |
4179 | _arg1 = &temp; | |
4180 | if (! wxColour_helper(_obj1, &_arg1)) | |
4181 | return NULL; | |
4182 | } | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
4186 | ||
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) return NULL; | |
4189 | } Py_INCREF(Py_None); | |
4190 | _resultobj = Py_None; | |
4191 | return _resultobj; | |
4192 | } | |
4193 | ||
4194 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
4195 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject * _resultobj; | |
4197 | wxWindow * _arg0; | |
4198 | int _arg1; | |
4199 | PyObject * _argo0 = 0; | |
4200 | char *_kwnames[] = { "self","id", NULL }; | |
4201 | ||
4202 | self = self; | |
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) | |
4204 | return NULL; | |
4205 | if (_argo0) { | |
4206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); | |
4209 | return NULL; | |
4210 | } | |
4211 | } | |
4212 | { | |
4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4214 | wxWindow_SetId(_arg0,_arg1); | |
4215 | ||
4216 | wxPyEndAllowThreads(__tstate); | |
4217 | if (PyErr_Occurred()) return NULL; | |
4218 | } Py_INCREF(Py_None); | |
4219 | _resultobj = Py_None; | |
4220 | return _resultobj; | |
4221 | } | |
4222 | ||
4223 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
4224 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4225 | PyObject * _resultobj; | |
4226 | wxWindow * _arg0; | |
4227 | wxString * _arg1; | |
4228 | PyObject * _argo0 = 0; | |
4229 | PyObject * _obj1 = 0; | |
4230 | char *_kwnames[] = { "self","name", NULL }; | |
4231 | ||
4232 | self = self; | |
4233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) | |
4234 | return NULL; | |
4235 | if (_argo0) { | |
4236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); | |
4239 | return NULL; | |
4240 | } | |
4241 | } | |
4242 | { | |
4243 | _arg1 = wxString_in_helper(_obj1); | |
4244 | if (_arg1 == NULL) | |
4245 | return NULL; | |
4246 | } | |
4247 | { | |
4248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4249 | wxWindow_SetName(_arg0,*_arg1); | |
4250 | ||
4251 | wxPyEndAllowThreads(__tstate); | |
4252 | if (PyErr_Occurred()) return NULL; | |
4253 | } Py_INCREF(Py_None); | |
4254 | _resultobj = Py_None; | |
4255 | { | |
4256 | if (_obj1) | |
4257 | delete _arg1; | |
4258 | } | |
4259 | return _resultobj; | |
4260 | } | |
4261 | ||
4262 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4263 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4264 | PyObject * _resultobj; | |
4265 | wxWindow * _arg0; | |
4266 | int _arg1; | |
4267 | int _arg2; | |
4268 | int _arg3; | |
4269 | int _arg4; | |
4270 | int _arg5 = (int ) TRUE; | |
4271 | PyObject * _argo0 = 0; | |
4272 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; | |
4273 | ||
4274 | self = self; | |
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4276 | return NULL; | |
4277 | if (_argo0) { | |
4278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); | |
4281 | return NULL; | |
4282 | } | |
4283 | } | |
4284 | { | |
4285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4286 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4287 | ||
4288 | wxPyEndAllowThreads(__tstate); | |
4289 | if (PyErr_Occurred()) return NULL; | |
4290 | } Py_INCREF(Py_None); | |
4291 | _resultobj = Py_None; | |
4292 | return _resultobj; | |
4293 | } | |
4294 | ||
4295 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
4296 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject * _resultobj; | |
4298 | wxWindow * _arg0; | |
4299 | int _arg1; | |
4300 | int _arg2; | |
4301 | bool _arg3 = (bool ) TRUE; | |
4302 | PyObject * _argo0 = 0; | |
4303 | int tempbool3 = (int) TRUE; | |
4304 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; | |
4305 | ||
4306 | self = self; | |
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) | |
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_SetScrollPos. Expected _wxWindow_p."); | |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
4316 | _arg3 = (bool ) tempbool3; | |
4317 | { | |
4318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4319 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
4320 | ||
4321 | wxPyEndAllowThreads(__tstate); | |
4322 | if (PyErr_Occurred()) return NULL; | |
4323 | } Py_INCREF(Py_None); | |
4324 | _resultobj = Py_None; | |
4325 | return _resultobj; | |
4326 | } | |
4327 | ||
4328 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
4329 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4330 | PyObject * _resultobj; | |
4331 | wxWindow * _arg0; | |
4332 | int _arg1; | |
4333 | int _arg2; | |
4334 | int _arg3; | |
4335 | int _arg4; | |
4336 | int _arg5 = (int ) wxSIZE_AUTO; | |
4337 | PyObject * _argo0 = 0; | |
4338 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; | |
4339 | ||
4340 | self = self; | |
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
4342 | return NULL; | |
4343 | if (_argo0) { | |
4344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); | |
4347 | return NULL; | |
4348 | } | |
4349 | } | |
4350 | { | |
4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4352 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
4353 | ||
4354 | wxPyEndAllowThreads(__tstate); | |
4355 | if (PyErr_Occurred()) return NULL; | |
4356 | } Py_INCREF(Py_None); | |
4357 | _resultobj = Py_None; | |
4358 | return _resultobj; | |
4359 | } | |
4360 | ||
4361 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
4362 | self->SetSize(size); | |
4363 | } | |
4364 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4365 | PyObject * _resultobj; | |
4366 | wxWindow * _arg0; | |
4367 | wxSize * _arg1; | |
4368 | PyObject * _argo0 = 0; | |
4369 | wxSize temp; | |
4370 | PyObject * _obj1 = 0; | |
4371 | char *_kwnames[] = { "self","size", NULL }; | |
4372 | ||
4373 | self = self; | |
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) | |
4375 | return NULL; | |
4376 | if (_argo0) { | |
4377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); | |
4380 | return NULL; | |
4381 | } | |
4382 | } | |
4383 | { | |
4384 | _arg1 = &temp; | |
4385 | if (! wxSize_helper(_obj1, &_arg1)) | |
4386 | return NULL; | |
4387 | } | |
4388 | { | |
4389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4390 | wxWindow_SetSize(_arg0,*_arg1); | |
4391 | ||
4392 | wxPyEndAllowThreads(__tstate); | |
4393 | if (PyErr_Occurred()) return NULL; | |
4394 | } Py_INCREF(Py_None); | |
4395 | _resultobj = Py_None; | |
4396 | return _resultobj; | |
4397 | } | |
4398 | ||
4399 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { | |
4400 | self->Move(pos, flags); | |
4401 | } | |
4402 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4403 | PyObject * _resultobj; | |
4404 | wxWindow * _arg0; | |
4405 | wxPoint * _arg1; | |
4406 | int _arg2 = (int ) wxSIZE_USE_EXISTING; | |
4407 | PyObject * _argo0 = 0; | |
4408 | wxPoint temp; | |
4409 | PyObject * _obj1 = 0; | |
4410 | char *_kwnames[] = { "self","pos","flags", NULL }; | |
4411 | ||
4412 | self = self; | |
4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4414 | return NULL; | |
4415 | if (_argo0) { | |
4416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); | |
4419 | return NULL; | |
4420 | } | |
4421 | } | |
4422 | { | |
4423 | _arg1 = &temp; | |
4424 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4425 | return NULL; | |
4426 | } | |
4427 | { | |
4428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4429 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); | |
4430 | ||
4431 | wxPyEndAllowThreads(__tstate); | |
4432 | if (PyErr_Occurred()) return NULL; | |
4433 | } Py_INCREF(Py_None); | |
4434 | _resultobj = Py_None; | |
4435 | return _resultobj; | |
4436 | } | |
4437 | ||
4438 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { | |
4439 | self->SetSize(rect, sizeFlags); | |
4440 | } | |
4441 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject * _resultobj; | |
4443 | wxWindow * _arg0; | |
4444 | wxRect * _arg1; | |
4445 | int _arg2 = (int ) wxSIZE_AUTO; | |
4446 | PyObject * _argo0 = 0; | |
4447 | wxRect temp; | |
4448 | PyObject * _obj1 = 0; | |
4449 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4450 | ||
4451 | self = self; | |
4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4453 | return NULL; | |
4454 | if (_argo0) { | |
4455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4458 | return NULL; | |
4459 | } | |
4460 | } | |
4461 | { | |
4462 | _arg1 = &temp; | |
4463 | if (! wxRect_helper(_obj1, &_arg1)) | |
4464 | return NULL; | |
4465 | } | |
4466 | { | |
4467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4468 | wxWindow_SetRect(_arg0,*_arg1,_arg2); | |
4469 | ||
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) return NULL; | |
4472 | } Py_INCREF(Py_None); | |
4473 | _resultobj = Py_None; | |
4474 | return _resultobj; | |
4475 | } | |
4476 | ||
4477 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4478 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4479 | PyObject * _resultobj; | |
4480 | wxWindow * _arg0; | |
4481 | int _arg1 = (int ) -1; | |
4482 | int _arg2 = (int ) -1; | |
4483 | int _arg3 = (int ) -1; | |
4484 | int _arg4 = (int ) -1; | |
4485 | int _arg5 = (int ) -1; | |
4486 | int _arg6 = (int ) -1; | |
4487 | PyObject * _argo0 = 0; | |
4488 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; | |
4489 | ||
4490 | self = self; | |
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4492 | return NULL; | |
4493 | if (_argo0) { | |
4494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); | |
4497 | return NULL; | |
4498 | } | |
4499 | } | |
4500 | { | |
4501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4502 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
4503 | ||
4504 | wxPyEndAllowThreads(__tstate); | |
4505 | if (PyErr_Occurred()) return NULL; | |
4506 | } Py_INCREF(Py_None); | |
4507 | _resultobj = Py_None; | |
4508 | return _resultobj; | |
4509 | } | |
4510 | ||
4511 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) | |
4512 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4513 | PyObject * _resultobj; | |
4514 | wxWindow * _arg0; | |
4515 | int _arg1; | |
4516 | int _arg2; | |
4517 | PyObject * _argo0 = 0; | |
4518 | char *_kwnames[] = { "self","width","height", NULL }; | |
4519 | ||
4520 | self = self; | |
4521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4522 | return NULL; | |
4523 | if (_argo0) { | |
4524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); | |
4527 | return NULL; | |
4528 | } | |
4529 | } | |
4530 | { | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) return NULL; | |
4536 | } Py_INCREF(Py_None); | |
4537 | _resultobj = Py_None; | |
4538 | return _resultobj; | |
4539 | } | |
4540 | ||
4541 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
4542 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4543 | PyObject * _resultobj; | |
4544 | wxWindow * _arg0; | |
4545 | wxSize * _arg1; | |
4546 | PyObject * _argo0 = 0; | |
4547 | wxSize temp; | |
4548 | PyObject * _obj1 = 0; | |
4549 | char *_kwnames[] = { "self","size", NULL }; | |
4550 | ||
4551 | self = self; | |
4552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) | |
4553 | return NULL; | |
4554 | if (_argo0) { | |
4555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); | |
4558 | return NULL; | |
4559 | } | |
4560 | } | |
4561 | { | |
4562 | _arg1 = &temp; | |
4563 | if (! wxSize_helper(_obj1, &_arg1)) | |
4564 | return NULL; | |
4565 | } | |
4566 | { | |
4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4568 | wxWindow_SetClientSize(_arg0,*_arg1); | |
4569 | ||
4570 | wxPyEndAllowThreads(__tstate); | |
4571 | if (PyErr_Occurred()) return NULL; | |
4572 | } Py_INCREF(Py_None); | |
4573 | _resultobj = Py_None; | |
4574 | return _resultobj; | |
4575 | } | |
4576 | ||
4577 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
4578 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4579 | PyObject * _resultobj; | |
4580 | wxWindow * _arg0; | |
4581 | wxCursor * _arg1; | |
4582 | PyObject * _argo0 = 0; | |
4583 | PyObject * _argo1 = 0; | |
4584 | char *_kwnames[] = { "self","cursor", NULL }; | |
4585 | ||
4586 | self = self; | |
4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) | |
4588 | return NULL; | |
4589 | if (_argo0) { | |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); | |
4593 | return NULL; | |
4594 | } | |
4595 | } | |
4596 | if (_argo1) { | |
4597 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4598 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
4599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); | |
4600 | return NULL; | |
4601 | } | |
4602 | } | |
4603 | { | |
4604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4605 | wxWindow_SetCursor(_arg0,*_arg1); | |
4606 | ||
4607 | wxPyEndAllowThreads(__tstate); | |
4608 | if (PyErr_Occurred()) return NULL; | |
4609 | } Py_INCREF(Py_None); | |
4610 | _resultobj = Py_None; | |
4611 | return _resultobj; | |
4612 | } | |
4613 | ||
4614 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
4615 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4616 | PyObject * _resultobj; | |
4617 | wxWindow * _arg0; | |
4618 | wxEvtHandler * _arg1; | |
4619 | PyObject * _argo0 = 0; | |
4620 | PyObject * _argo1 = 0; | |
4621 | char *_kwnames[] = { "self","handler", NULL }; | |
4622 | ||
4623 | self = self; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4625 | return NULL; | |
4626 | if (_argo0) { | |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | if (_argo1) { | |
4634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4637 | return NULL; | |
4638 | } | |
4639 | } | |
4640 | { | |
4641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4642 | wxWindow_SetEventHandler(_arg0,_arg1); | |
4643 | ||
4644 | wxPyEndAllowThreads(__tstate); | |
4645 | if (PyErr_Occurred()) return NULL; | |
4646 | } Py_INCREF(Py_None); | |
4647 | _resultobj = Py_None; | |
4648 | return _resultobj; | |
4649 | } | |
4650 | ||
4651 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) | |
4652 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4653 | PyObject * _resultobj; | |
4654 | wxWindow * _arg0; | |
4655 | long _arg1; | |
4656 | PyObject * _argo0 = 0; | |
4657 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4658 | ||
4659 | self = self; | |
4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4661 | return NULL; | |
4662 | if (_argo0) { | |
4663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4666 | return NULL; | |
4667 | } | |
4668 | } | |
4669 | { | |
4670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4671 | wxWindow_SetExtraStyle(_arg0,_arg1); | |
4672 | ||
4673 | wxPyEndAllowThreads(__tstate); | |
4674 | if (PyErr_Occurred()) return NULL; | |
4675 | } Py_INCREF(Py_None); | |
4676 | _resultobj = Py_None; | |
4677 | return _resultobj; | |
4678 | } | |
4679 | ||
4680 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
4681 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4682 | PyObject * _resultobj; | |
4683 | wxWindow * _arg0; | |
4684 | wxString * _arg1; | |
4685 | PyObject * _argo0 = 0; | |
4686 | PyObject * _obj1 = 0; | |
4687 | char *_kwnames[] = { "self","title", NULL }; | |
4688 | ||
4689 | self = self; | |
4690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) | |
4691 | return NULL; | |
4692 | if (_argo0) { | |
4693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); | |
4696 | return NULL; | |
4697 | } | |
4698 | } | |
4699 | { | |
4700 | _arg1 = wxString_in_helper(_obj1); | |
4701 | if (_arg1 == NULL) | |
4702 | return NULL; | |
4703 | } | |
4704 | { | |
4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4706 | wxWindow_SetTitle(_arg0,*_arg1); | |
4707 | ||
4708 | wxPyEndAllowThreads(__tstate); | |
4709 | if (PyErr_Occurred()) return NULL; | |
4710 | } Py_INCREF(Py_None); | |
4711 | _resultobj = Py_None; | |
4712 | { | |
4713 | if (_obj1) | |
4714 | delete _arg1; | |
4715 | } | |
4716 | return _resultobj; | |
4717 | } | |
4718 | ||
4719 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
4720 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4721 | PyObject * _resultobj; | |
4722 | bool _result; | |
4723 | wxWindow * _arg0; | |
4724 | bool _arg1 = (bool ) TRUE; | |
4725 | PyObject * _argo0 = 0; | |
4726 | int tempbool1 = (int) TRUE; | |
4727 | char *_kwnames[] = { "self","show", NULL }; | |
4728 | ||
4729 | self = self; | |
4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
4731 | return NULL; | |
4732 | if (_argo0) { | |
4733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); | |
4736 | return NULL; | |
4737 | } | |
4738 | } | |
4739 | _arg1 = (bool ) tempbool1; | |
4740 | { | |
4741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4742 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
4743 | ||
4744 | wxPyEndAllowThreads(__tstate); | |
4745 | if (PyErr_Occurred()) return NULL; | |
4746 | } _resultobj = Py_BuildValue("i",_result); | |
4747 | return _resultobj; | |
4748 | } | |
4749 | ||
4750 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
4751 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject * _resultobj; | |
4753 | bool _result; | |
4754 | wxWindow * _arg0; | |
4755 | PyObject * _argo0 = 0; | |
4756 | char *_kwnames[] = { "self", NULL }; | |
4757 | ||
4758 | self = self; | |
4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) | |
4760 | return NULL; | |
4761 | if (_argo0) { | |
4762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); | |
4765 | return NULL; | |
4766 | } | |
4767 | } | |
4768 | { | |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) return NULL; | |
4774 | } _resultobj = Py_BuildValue("i",_result); | |
4775 | return _resultobj; | |
4776 | } | |
4777 | ||
4778 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
4779 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4780 | PyObject * _resultobj; | |
4781 | bool _result; | |
4782 | wxWindow * _arg0; | |
4783 | PyObject * _argo0 = 0; | |
4784 | char *_kwnames[] = { "self", NULL }; | |
4785 | ||
4786 | self = self; | |
4787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) | |
4788 | return NULL; | |
4789 | if (_argo0) { | |
4790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); | |
4793 | return NULL; | |
4794 | } | |
4795 | } | |
4796 | { | |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
4799 | ||
4800 | wxPyEndAllowThreads(__tstate); | |
4801 | if (PyErr_Occurred()) return NULL; | |
4802 | } _resultobj = Py_BuildValue("i",_result); | |
4803 | return _resultobj; | |
4804 | } | |
4805 | ||
4806 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) | |
4807 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4808 | PyObject * _resultobj; | |
4809 | wxWindow * _arg0; | |
4810 | PyObject * _argo0 = 0; | |
4811 | char *_kwnames[] = { "self", NULL }; | |
4812 | ||
4813 | self = self; | |
4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4815 | return NULL; | |
4816 | if (_argo0) { | |
4817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4820 | return NULL; | |
4821 | } | |
4822 | } | |
4823 | { | |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | wxWindow_UpdateWindowUI(_arg0); | |
4826 | ||
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) return NULL; | |
4829 | } Py_INCREF(Py_None); | |
4830 | _resultobj = Py_None; | |
4831 | return _resultobj; | |
4832 | } | |
4833 | ||
4834 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
4835 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject * _resultobj; | |
4837 | bool _result; | |
4838 | wxWindow * _arg0; | |
4839 | PyObject * _argo0 = 0; | |
4840 | char *_kwnames[] = { "self", NULL }; | |
4841 | ||
4842 | self = self; | |
4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) | |
4844 | return NULL; | |
4845 | if (_argo0) { | |
4846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); | |
4849 | return NULL; | |
4850 | } | |
4851 | } | |
4852 | { | |
4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4854 | _result = (bool )wxWindow_Validate(_arg0); | |
4855 | ||
4856 | wxPyEndAllowThreads(__tstate); | |
4857 | if (PyErr_Occurred()) return NULL; | |
4858 | } _resultobj = Py_BuildValue("i",_result); | |
4859 | return _resultobj; | |
4860 | } | |
4861 | ||
4862 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
4863 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject * _resultobj; | |
4865 | wxWindow * _arg0; | |
4866 | int _arg1; | |
4867 | int _arg2; | |
4868 | PyObject * _argo0 = 0; | |
4869 | char *_kwnames[] = { "self","x","y", NULL }; | |
4870 | ||
4871 | self = self; | |
4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4873 | return NULL; | |
4874 | if (_argo0) { | |
4875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
4878 | return NULL; | |
4879 | } | |
4880 | } | |
4881 | { | |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
4884 | ||
4885 | wxPyEndAllowThreads(__tstate); | |
4886 | if (PyErr_Occurred()) return NULL; | |
4887 | } Py_INCREF(Py_None); | |
4888 | _resultobj = Py_None; | |
4889 | return _resultobj; | |
4890 | } | |
4891 | ||
4892 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4893 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4894 | PyObject * _resultobj; | |
4895 | wxPoint * _result; | |
4896 | wxWindow * _arg0; | |
4897 | wxPoint * _arg1; | |
4898 | PyObject * _argo0 = 0; | |
4899 | wxPoint temp; | |
4900 | PyObject * _obj1 = 0; | |
4901 | char *_kwnames[] = { "self","pt", NULL }; | |
4902 | char _ptemp[128]; | |
4903 | ||
4904 | self = self; | |
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) | |
4906 | return NULL; | |
4907 | if (_argo0) { | |
4908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); | |
4911 | return NULL; | |
4912 | } | |
4913 | } | |
4914 | { | |
4915 | _arg1 = &temp; | |
4916 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4917 | return NULL; | |
4918 | } | |
4919 | { | |
4920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4921 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
4922 | ||
4923 | wxPyEndAllowThreads(__tstate); | |
4924 | if (PyErr_Occurred()) return NULL; | |
4925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
4926 | _resultobj = Py_BuildValue("s",_ptemp); | |
4927 | return _resultobj; | |
4928 | } | |
4929 | ||
4930 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
4931 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
4933 | wxSize * _result; | |
4934 | wxWindow * _arg0; | |
4935 | wxSize * _arg1; | |
4936 | PyObject * _argo0 = 0; | |
4937 | wxSize temp; | |
4938 | PyObject * _obj1 = 0; | |
4939 | char *_kwnames[] = { "self","sz", NULL }; | |
4940 | char _ptemp[128]; | |
4941 | ||
4942 | self = self; | |
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) | |
4944 | return NULL; | |
4945 | if (_argo0) { | |
4946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); | |
4949 | return NULL; | |
4950 | } | |
4951 | } | |
4952 | { | |
4953 | _arg1 = &temp; | |
4954 | if (! wxSize_helper(_obj1, &_arg1)) | |
4955 | return NULL; | |
4956 | } | |
4957 | { | |
4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4959 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4960 | ||
4961 | wxPyEndAllowThreads(__tstate); | |
4962 | if (PyErr_Occurred()) return NULL; | |
4963 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4964 | _resultobj = Py_BuildValue("s",_ptemp); | |
4965 | return _resultobj; | |
4966 | } | |
4967 | ||
4968 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
4969 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4970 | PyObject * _resultobj; | |
4971 | wxPoint * _result; | |
4972 | wxWindow * _arg0; | |
4973 | wxPoint * _arg1; | |
4974 | PyObject * _argo0 = 0; | |
4975 | wxPoint temp; | |
4976 | PyObject * _obj1 = 0; | |
4977 | char *_kwnames[] = { "self","pt", NULL }; | |
4978 | char _ptemp[128]; | |
4979 | ||
4980 | self = self; | |
4981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) | |
4982 | return NULL; | |
4983 | if (_argo0) { | |
4984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); | |
4987 | return NULL; | |
4988 | } | |
4989 | } | |
4990 | { | |
4991 | _arg1 = &temp; | |
4992 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4993 | return NULL; | |
4994 | } | |
4995 | { | |
4996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4997 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4998 | ||
4999 | wxPyEndAllowThreads(__tstate); | |
5000 | if (PyErr_Occurred()) return NULL; | |
5001 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
5002 | _resultobj = Py_BuildValue("s",_ptemp); | |
5003 | return _resultobj; | |
5004 | } | |
5005 | ||
5006 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
5007 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject * _resultobj; | |
5009 | wxSize * _result; | |
5010 | wxWindow * _arg0; | |
5011 | wxSize * _arg1; | |
5012 | PyObject * _argo0 = 0; | |
5013 | wxSize temp; | |
5014 | PyObject * _obj1 = 0; | |
5015 | char *_kwnames[] = { "self","sz", NULL }; | |
5016 | char _ptemp[128]; | |
5017 | ||
5018 | self = self; | |
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) | |
5020 | return NULL; | |
5021 | if (_argo0) { | |
5022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); | |
5025 | return NULL; | |
5026 | } | |
5027 | } | |
5028 | { | |
5029 | _arg1 = &temp; | |
5030 | if (! wxSize_helper(_obj1, &_arg1)) | |
5031 | return NULL; | |
5032 | } | |
5033 | { | |
5034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5035 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
5036 | ||
5037 | wxPyEndAllowThreads(__tstate); | |
5038 | if (PyErr_Occurred()) return NULL; | |
5039 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5040 | _resultobj = Py_BuildValue("s",_ptemp); | |
5041 | return _resultobj; | |
5042 | } | |
5043 | ||
5044 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
5045 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5046 | PyObject * _resultobj; | |
5047 | wxWindow * _arg0; | |
5048 | wxString * _arg1; | |
5049 | PyObject * _argo0 = 0; | |
5050 | PyObject * _obj1 = 0; | |
5051 | char *_kwnames[] = { "self","tip", NULL }; | |
5052 | ||
5053 | self = self; | |
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) | |
5055 | return NULL; | |
5056 | if (_argo0) { | |
5057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); | |
5060 | return NULL; | |
5061 | } | |
5062 | } | |
5063 | { | |
5064 | _arg1 = wxString_in_helper(_obj1); | |
5065 | if (_arg1 == NULL) | |
5066 | return NULL; | |
5067 | } | |
5068 | { | |
5069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5070 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
5071 | ||
5072 | wxPyEndAllowThreads(__tstate); | |
5073 | if (PyErr_Occurred()) return NULL; | |
5074 | } Py_INCREF(Py_None); | |
5075 | _resultobj = Py_None; | |
5076 | { | |
5077 | if (_obj1) | |
5078 | delete _arg1; | |
5079 | } | |
5080 | return _resultobj; | |
5081 | } | |
5082 | ||
5083 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
5084 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5085 | PyObject * _resultobj; | |
5086 | wxWindow * _arg0; | |
5087 | wxToolTip * _arg1; | |
5088 | PyObject * _argo0 = 0; | |
5089 | PyObject * _argo1 = 0; | |
5090 | char *_kwnames[] = { "self","tooltip", NULL }; | |
5091 | ||
5092 | self = self; | |
5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) | |
5094 | return NULL; | |
5095 | if (_argo0) { | |
5096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); | |
5099 | return NULL; | |
5100 | } | |
5101 | } | |
5102 | if (_argo1) { | |
5103 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5104 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
5105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); | |
5106 | return NULL; | |
5107 | } | |
5108 | } | |
5109 | { | |
5110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5111 | wxWindow_SetToolTip(_arg0,_arg1); | |
5112 | ||
5113 | wxPyEndAllowThreads(__tstate); | |
5114 | if (PyErr_Occurred()) return NULL; | |
5115 | } Py_INCREF(Py_None); | |
5116 | _resultobj = Py_None; | |
5117 | return _resultobj; | |
5118 | } | |
5119 | ||
5120 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
5121 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5122 | PyObject * _resultobj; | |
5123 | wxToolTip * _result; | |
5124 | wxWindow * _arg0; | |
5125 | PyObject * _argo0 = 0; | |
5126 | char *_kwnames[] = { "self", NULL }; | |
5127 | ||
5128 | self = self; | |
5129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) | |
5130 | return NULL; | |
5131 | if (_argo0) { | |
5132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); | |
5135 | return NULL; | |
5136 | } | |
5137 | } | |
5138 | { | |
5139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5140 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
5141 | ||
5142 | wxPyEndAllowThreads(__tstate); | |
5143 | if (PyErr_Occurred()) return NULL; | |
5144 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5145 | return _resultobj; | |
5146 | } | |
5147 | ||
5148 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) | |
5149 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5150 | PyObject * _resultobj; | |
5151 | wxWindow * _arg0; | |
5152 | wxSizer * _arg1; | |
5153 | bool _arg2 = (bool ) TRUE; | |
5154 | PyObject * _argo0 = 0; | |
5155 | PyObject * _argo1 = 0; | |
5156 | int tempbool2 = (int) TRUE; | |
5157 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5158 | ||
5159 | self = self; | |
5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
5161 | return NULL; | |
5162 | if (_argo0) { | |
5163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5166 | return NULL; | |
5167 | } | |
5168 | } | |
5169 | if (_argo1) { | |
5170 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5171 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5173 | return NULL; | |
5174 | } | |
5175 | } | |
5176 | _arg2 = (bool ) tempbool2; | |
5177 | { | |
5178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5179 | wxWindow_SetSizer(_arg0,_arg1,_arg2); | |
5180 | ||
5181 | wxPyEndAllowThreads(__tstate); | |
5182 | if (PyErr_Occurred()) return NULL; | |
5183 | } Py_INCREF(Py_None); | |
5184 | _resultobj = Py_None; | |
5185 | return _resultobj; | |
5186 | } | |
5187 | ||
5188 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) | |
5189 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5190 | PyObject * _resultobj; | |
5191 | wxSizer * _result; | |
5192 | wxWindow * _arg0; | |
5193 | PyObject * _argo0 = 0; | |
5194 | char *_kwnames[] = { "self", NULL }; | |
5195 | ||
5196 | self = self; | |
5197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5198 | return NULL; | |
5199 | if (_argo0) { | |
5200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5203 | return NULL; | |
5204 | } | |
5205 | } | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) return NULL; | |
5212 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5213 | return _resultobj; | |
5214 | } | |
5215 | ||
5216 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) | |
5217 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5218 | PyObject * _resultobj; | |
5219 | wxWindow * _arg0; | |
5220 | wxSizer * _arg1; | |
5221 | PyObject * _argo0 = 0; | |
5222 | PyObject * _argo1 = 0; | |
5223 | char *_kwnames[] = { "self","sizer", NULL }; | |
5224 | ||
5225 | self = self; | |
5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5227 | return NULL; | |
5228 | if (_argo0) { | |
5229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5232 | return NULL; | |
5233 | } | |
5234 | } | |
5235 | if (_argo1) { | |
5236 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5237 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5239 | return NULL; | |
5240 | } | |
5241 | } | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5244 | wxWindow_SetContainingSizer(_arg0,_arg1); | |
5245 | ||
5246 | wxPyEndAllowThreads(__tstate); | |
5247 | if (PyErr_Occurred()) return NULL; | |
5248 | } Py_INCREF(Py_None); | |
5249 | _resultobj = Py_None; | |
5250 | return _resultobj; | |
5251 | } | |
5252 | ||
5253 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5254 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5255 | PyObject * _resultobj; | |
5256 | wxSizer * _result; | |
5257 | wxWindow * _arg0; | |
5258 | PyObject * _argo0 = 0; | |
5259 | char *_kwnames[] = { "self", NULL }; | |
5260 | ||
5261 | self = self; | |
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5263 | return NULL; | |
5264 | if (_argo0) { | |
5265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5268 | return NULL; | |
5269 | } | |
5270 | } | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); | |
5274 | ||
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) return NULL; | |
5277 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5278 | return _resultobj; | |
5279 | } | |
5280 | ||
5281 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
5282 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject * _resultobj; | |
5284 | wxValidator * _result; | |
5285 | wxWindow * _arg0; | |
5286 | PyObject * _argo0 = 0; | |
5287 | char *_kwnames[] = { "self", NULL }; | |
5288 | ||
5289 | self = self; | |
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5291 | return NULL; | |
5292 | if (_argo0) { | |
5293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5296 | return NULL; | |
5297 | } | |
5298 | } | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) return NULL; | |
5305 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
5309 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5310 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject * _resultobj; | |
5312 | wxWindow * _arg0; | |
5313 | wxValidator * _arg1; | |
5314 | PyObject * _argo0 = 0; | |
5315 | PyObject * _argo1 = 0; | |
5316 | char *_kwnames[] = { "self","validator", NULL }; | |
5317 | ||
5318 | self = self; | |
5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5320 | return NULL; | |
5321 | if (_argo0) { | |
5322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5325 | return NULL; | |
5326 | } | |
5327 | } | |
5328 | if (_argo1) { | |
5329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5332 | return NULL; | |
5333 | } | |
5334 | } | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | wxWindow_SetValidator(_arg0,*_arg1); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) return NULL; | |
5341 | } Py_INCREF(Py_None); | |
5342 | _resultobj = Py_None; | |
5343 | return _resultobj; | |
5344 | } | |
5345 | ||
5346 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) | |
5347 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5348 | PyObject * _resultobj; | |
5349 | wxWindow * _arg0; | |
5350 | wxDropTarget * _arg1; | |
5351 | PyObject * _argo0 = 0; | |
5352 | PyObject * _argo1 = 0; | |
5353 | char *_kwnames[] = { "self","target", NULL }; | |
5354 | ||
5355 | self = self; | |
5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5357 | return NULL; | |
5358 | if (_argo0) { | |
5359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5362 | return NULL; | |
5363 | } | |
5364 | } | |
5365 | if (_argo1) { | |
5366 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5367 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5369 | return NULL; | |
5370 | } | |
5371 | } | |
5372 | { | |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5374 | wxWindow_SetDropTarget(_arg0,_arg1); | |
5375 | ||
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) return NULL; | |
5378 | } Py_INCREF(Py_None); | |
5379 | _resultobj = Py_None; | |
5380 | return _resultobj; | |
5381 | } | |
5382 | ||
5383 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5384 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject * _resultobj; | |
5386 | wxDropTarget * _result; | |
5387 | wxWindow * _arg0; | |
5388 | PyObject * _argo0 = 0; | |
5389 | char *_kwnames[] = { "self", NULL }; | |
5390 | char _ptemp[128]; | |
5391 | ||
5392 | self = self; | |
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5394 | return NULL; | |
5395 | if (_argo0) { | |
5396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5399 | return NULL; | |
5400 | } | |
5401 | } | |
5402 | { | |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5404 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); | |
5405 | ||
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) return NULL; | |
5408 | } if (_result) { | |
5409 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5410 | _resultobj = Py_BuildValue("s",_ptemp); | |
5411 | } else { | |
5412 | Py_INCREF(Py_None); | |
5413 | _resultobj = Py_None; | |
5414 | } | |
5415 | return _resultobj; | |
5416 | } | |
5417 | ||
5418 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) | |
5419 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5420 | PyObject * _resultobj; | |
5421 | wxSize * _result; | |
5422 | wxWindow * _arg0; | |
5423 | PyObject * _argo0 = 0; | |
5424 | char *_kwnames[] = { "self", NULL }; | |
5425 | char _ptemp[128]; | |
5426 | ||
5427 | self = self; | |
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5429 | return NULL; | |
5430 | if (_argo0) { | |
5431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5434 | return NULL; | |
5435 | } | |
5436 | } | |
5437 | { | |
5438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5439 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); | |
5440 | ||
5441 | wxPyEndAllowThreads(__tstate); | |
5442 | if (PyErr_Occurred()) return NULL; | |
5443 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5444 | _resultobj = Py_BuildValue("s",_ptemp); | |
5445 | return _resultobj; | |
5446 | } | |
5447 | ||
5448 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) | |
5449 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject * _resultobj; | |
5451 | wxSize * _result; | |
5452 | wxWindow * _arg0; | |
5453 | PyObject * _argo0 = 0; | |
5454 | char *_kwnames[] = { "self", NULL }; | |
5455 | char _ptemp[128]; | |
5456 | ||
5457 | self = self; | |
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5459 | return NULL; | |
5460 | if (_argo0) { | |
5461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5464 | return NULL; | |
5465 | } | |
5466 | } | |
5467 | { | |
5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5469 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5470 | ||
5471 | wxPyEndAllowThreads(__tstate); | |
5472 | if (PyErr_Occurred()) return NULL; | |
5473 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5474 | _resultobj = Py_BuildValue("s",_ptemp); | |
5475 | return _resultobj; | |
5476 | } | |
5477 | ||
5478 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) | |
5479 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject * _resultobj; | |
5481 | wxWindow * _arg0; | |
5482 | wxCaret * _arg1; | |
5483 | PyObject * _argo0 = 0; | |
5484 | PyObject * _argo1 = 0; | |
5485 | char *_kwnames[] = { "self","caret", NULL }; | |
5486 | ||
5487 | self = self; | |
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5489 | return NULL; | |
5490 | if (_argo0) { | |
5491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
5497 | if (_argo1) { | |
5498 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5499 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5501 | return NULL; | |
5502 | } | |
5503 | } | |
5504 | { | |
5505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5506 | wxWindow_SetCaret(_arg0,_arg1); | |
5507 | ||
5508 | wxPyEndAllowThreads(__tstate); | |
5509 | if (PyErr_Occurred()) return NULL; | |
5510 | } Py_INCREF(Py_None); | |
5511 | _resultobj = Py_None; | |
5512 | return _resultobj; | |
5513 | } | |
5514 | ||
5515 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5516 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5517 | PyObject * _resultobj; | |
5518 | wxCaret * _result; | |
5519 | wxWindow * _arg0; | |
5520 | PyObject * _argo0 = 0; | |
5521 | char *_kwnames[] = { "self", NULL }; | |
5522 | char _ptemp[128]; | |
5523 | ||
5524 | self = self; | |
5525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5526 | return NULL; | |
5527 | if (_argo0) { | |
5528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5531 | return NULL; | |
5532 | } | |
5533 | } | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) return NULL; | |
5540 | } if (_result) { | |
5541 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5542 | _resultobj = Py_BuildValue("s",_ptemp); | |
5543 | } else { | |
5544 | Py_INCREF(Py_None); | |
5545 | _resultobj = Py_None; | |
5546 | } | |
5547 | return _resultobj; | |
5548 | } | |
5549 | ||
5550 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) | |
5551 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5552 | PyObject * _resultobj; | |
5553 | wxWindow * _arg0; | |
5554 | PyObject * _argo0 = 0; | |
5555 | char *_kwnames[] = { "self", NULL }; | |
5556 | ||
5557 | self = self; | |
5558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5559 | return NULL; | |
5560 | if (_argo0) { | |
5561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5564 | return NULL; | |
5565 | } | |
5566 | } | |
5567 | { | |
5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5569 | wxWindow_Freeze(_arg0); | |
5570 | ||
5571 | wxPyEndAllowThreads(__tstate); | |
5572 | if (PyErr_Occurred()) return NULL; | |
5573 | } Py_INCREF(Py_None); | |
5574 | _resultobj = Py_None; | |
5575 | return _resultobj; | |
5576 | } | |
5577 | ||
5578 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5579 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5580 | PyObject * _resultobj; | |
5581 | wxWindow * _arg0; | |
5582 | PyObject * _argo0 = 0; | |
5583 | char *_kwnames[] = { "self", NULL }; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5587 | return NULL; | |
5588 | if (_argo0) { | |
5589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5592 | return NULL; | |
5593 | } | |
5594 | } | |
5595 | { | |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | wxWindow_Thaw(_arg0); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
5600 | if (PyErr_Occurred()) return NULL; | |
5601 | } Py_INCREF(Py_None); | |
5602 | _resultobj = Py_None; | |
5603 | return _resultobj; | |
5604 | } | |
5605 | ||
5606 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) | |
5607 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5608 | PyObject * _resultobj; | |
5609 | wxWindow * _arg0; | |
5610 | PyObject * _argo0 = 0; | |
5611 | char *_kwnames[] = { "self", NULL }; | |
5612 | ||
5613 | self = self; | |
5614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5615 | return NULL; | |
5616 | if (_argo0) { | |
5617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5620 | return NULL; | |
5621 | } | |
5622 | } | |
5623 | { | |
5624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5625 | wxWindow_Update(_arg0); | |
5626 | ||
5627 | wxPyEndAllowThreads(__tstate); | |
5628 | if (PyErr_Occurred()) return NULL; | |
5629 | } Py_INCREF(Py_None); | |
5630 | _resultobj = Py_None; | |
5631 | return _resultobj; | |
5632 | } | |
5633 | ||
5634 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) | |
5635 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject * _resultobj; | |
5637 | wxString * _result; | |
5638 | wxWindow * _arg0; | |
5639 | PyObject * _argo0 = 0; | |
5640 | char *_kwnames[] = { "self", NULL }; | |
5641 | ||
5642 | self = self; | |
5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5644 | return NULL; | |
5645 | if (_argo0) { | |
5646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5649 | return NULL; | |
5650 | } | |
5651 | } | |
5652 | { | |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5654 | _result = new wxString (wxWindow_GetHelpText(_arg0)); | |
5655 | ||
5656 | wxPyEndAllowThreads(__tstate); | |
5657 | if (PyErr_Occurred()) return NULL; | |
5658 | }{ | |
5659 | #if wxUSE_UNICODE | |
5660 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5661 | #else | |
5662 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5663 | #endif | |
5664 | } | |
5665 | { | |
5666 | delete _result; | |
5667 | } | |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
5671 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5672 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | wxWindow * _arg0; | |
5675 | wxString * _arg1; | |
5676 | PyObject * _argo0 = 0; | |
5677 | PyObject * _obj1 = 0; | |
5678 | char *_kwnames[] = { "self","helpText", NULL }; | |
5679 | ||
5680 | self = self; | |
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5682 | return NULL; | |
5683 | if (_argo0) { | |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
5690 | { | |
5691 | _arg1 = wxString_in_helper(_obj1); | |
5692 | if (_arg1 == NULL) | |
5693 | return NULL; | |
5694 | } | |
5695 | { | |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5697 | wxWindow_SetHelpText(_arg0,*_arg1); | |
5698 | ||
5699 | wxPyEndAllowThreads(__tstate); | |
5700 | if (PyErr_Occurred()) return NULL; | |
5701 | } Py_INCREF(Py_None); | |
5702 | _resultobj = Py_None; | |
5703 | { | |
5704 | if (_obj1) | |
5705 | delete _arg1; | |
5706 | } | |
5707 | return _resultobj; | |
5708 | } | |
5709 | ||
5710 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) | |
5711 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5712 | PyObject * _resultobj; | |
5713 | wxWindow * _arg0; | |
5714 | wxString * _arg1; | |
5715 | PyObject * _argo0 = 0; | |
5716 | PyObject * _obj1 = 0; | |
5717 | char *_kwnames[] = { "self","text", NULL }; | |
5718 | ||
5719 | self = self; | |
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5721 | return NULL; | |
5722 | if (_argo0) { | |
5723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5726 | return NULL; | |
5727 | } | |
5728 | } | |
5729 | { | |
5730 | _arg1 = wxString_in_helper(_obj1); | |
5731 | if (_arg1 == NULL) | |
5732 | return NULL; | |
5733 | } | |
5734 | { | |
5735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5736 | wxWindow_SetHelpTextForId(_arg0,*_arg1); | |
5737 | ||
5738 | wxPyEndAllowThreads(__tstate); | |
5739 | if (PyErr_Occurred()) return NULL; | |
5740 | } Py_INCREF(Py_None); | |
5741 | _resultobj = Py_None; | |
5742 | { | |
5743 | if (_obj1) | |
5744 | delete _arg1; | |
5745 | } | |
5746 | return _resultobj; | |
5747 | } | |
5748 | ||
5749 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) | |
5750 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject * _resultobj; | |
5752 | bool _result; | |
5753 | wxWindow * _arg0; | |
5754 | int _arg1; | |
5755 | PyObject * _argo0 = 0; | |
5756 | char *_kwnames[] = { "self","lines", NULL }; | |
5757 | ||
5758 | self = self; | |
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5760 | return NULL; | |
5761 | if (_argo0) { | |
5762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5765 | return NULL; | |
5766 | } | |
5767 | } | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); | |
5771 | ||
5772 | wxPyEndAllowThreads(__tstate); | |
5773 | if (PyErr_Occurred()) return NULL; | |
5774 | } _resultobj = Py_BuildValue("i",_result); | |
5775 | return _resultobj; | |
5776 | } | |
5777 | ||
5778 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5779 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject * _resultobj; | |
5781 | bool _result; | |
5782 | wxWindow * _arg0; | |
5783 | int _arg1; | |
5784 | PyObject * _argo0 = 0; | |
5785 | char *_kwnames[] = { "self","pages", NULL }; | |
5786 | ||
5787 | self = self; | |
5788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5789 | return NULL; | |
5790 | if (_argo0) { | |
5791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5794 | return NULL; | |
5795 | } | |
5796 | } | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); | |
5800 | ||
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) return NULL; | |
5803 | } _resultobj = Py_BuildValue("i",_result); | |
5804 | return _resultobj; | |
5805 | } | |
5806 | ||
5807 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5808 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5809 | PyObject * _resultobj; | |
5810 | bool _result; | |
5811 | wxWindow * _arg0; | |
5812 | PyObject * _argo0 = 0; | |
5813 | char *_kwnames[] = { "self", NULL }; | |
5814 | ||
5815 | self = self; | |
5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5817 | return NULL; | |
5818 | if (_argo0) { | |
5819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5822 | return NULL; | |
5823 | } | |
5824 | } | |
5825 | { | |
5826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5827 | _result = (bool )wxWindow_LineUp(_arg0); | |
5828 | ||
5829 | wxPyEndAllowThreads(__tstate); | |
5830 | if (PyErr_Occurred()) return NULL; | |
5831 | } _resultobj = Py_BuildValue("i",_result); | |
5832 | return _resultobj; | |
5833 | } | |
5834 | ||
5835 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5836 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5837 | PyObject * _resultobj; | |
5838 | bool _result; | |
5839 | wxWindow * _arg0; | |
5840 | PyObject * _argo0 = 0; | |
5841 | char *_kwnames[] = { "self", NULL }; | |
5842 | ||
5843 | self = self; | |
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5845 | return NULL; | |
5846 | if (_argo0) { | |
5847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5850 | return NULL; | |
5851 | } | |
5852 | } | |
5853 | { | |
5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5855 | _result = (bool )wxWindow_LineDown(_arg0); | |
5856 | ||
5857 | wxPyEndAllowThreads(__tstate); | |
5858 | if (PyErr_Occurred()) return NULL; | |
5859 | } _resultobj = Py_BuildValue("i",_result); | |
5860 | return _resultobj; | |
5861 | } | |
5862 | ||
5863 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5864 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject * _resultobj; | |
5866 | bool _result; | |
5867 | wxWindow * _arg0; | |
5868 | PyObject * _argo0 = 0; | |
5869 | char *_kwnames[] = { "self", NULL }; | |
5870 | ||
5871 | self = self; | |
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5873 | return NULL; | |
5874 | if (_argo0) { | |
5875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5878 | return NULL; | |
5879 | } | |
5880 | } | |
5881 | { | |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | _result = (bool )wxWindow_PageUp(_arg0); | |
5884 | ||
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) return NULL; | |
5887 | } _resultobj = Py_BuildValue("i",_result); | |
5888 | return _resultobj; | |
5889 | } | |
5890 | ||
5891 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5892 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5893 | PyObject * _resultobj; | |
5894 | bool _result; | |
5895 | wxWindow * _arg0; | |
5896 | PyObject * _argo0 = 0; | |
5897 | char *_kwnames[] = { "self", NULL }; | |
5898 | ||
5899 | self = self; | |
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5901 | return NULL; | |
5902 | if (_argo0) { | |
5903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5906 | return NULL; | |
5907 | } | |
5908 | } | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | _result = (bool )wxWindow_PageDown(_arg0); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) return NULL; | |
5915 | } _resultobj = Py_BuildValue("i",_result); | |
5916 | return _resultobj; | |
5917 | } | |
5918 | ||
5919 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5920 | PyObject * _resultobj; | |
5921 | wxWindow * _result; | |
5922 | char *_kwnames[] = { NULL }; | |
5923 | ||
5924 | self = self; | |
5925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5926 | return NULL; | |
5927 | { | |
5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5929 | _result = (wxWindow *)wxWindow::FindFocus(); | |
5930 | ||
5931 | wxPyEndAllowThreads(__tstate); | |
5932 | if (PyErr_Occurred()) return NULL; | |
5933 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5934 | return _resultobj; | |
5935 | } | |
5936 | ||
5937 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject * _resultobj; | |
5939 | int _result; | |
5940 | char *_kwnames[] = { NULL }; | |
5941 | ||
5942 | self = self; | |
5943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5944 | return NULL; | |
5945 | { | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | _result = (int )wxWindow::NewControlId(); | |
5948 | ||
5949 | wxPyEndAllowThreads(__tstate); | |
5950 | if (PyErr_Occurred()) return NULL; | |
5951 | } _resultobj = Py_BuildValue("i",_result); | |
5952 | return _resultobj; | |
5953 | } | |
5954 | ||
5955 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5956 | PyObject * _resultobj; | |
5957 | int _result; | |
5958 | int _arg0; | |
5959 | char *_kwnames[] = { "id", NULL }; | |
5960 | ||
5961 | self = self; | |
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5963 | return NULL; | |
5964 | { | |
5965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5966 | _result = (int )wxWindow::NextControlId(_arg0); | |
5967 | ||
5968 | wxPyEndAllowThreads(__tstate); | |
5969 | if (PyErr_Occurred()) return NULL; | |
5970 | } _resultobj = Py_BuildValue("i",_result); | |
5971 | return _resultobj; | |
5972 | } | |
5973 | ||
5974 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject * _resultobj; | |
5976 | int _result; | |
5977 | int _arg0; | |
5978 | char *_kwnames[] = { "id", NULL }; | |
5979 | ||
5980 | self = self; | |
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5982 | return NULL; | |
5983 | { | |
5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5985 | _result = (int )wxWindow::PrevControlId(_arg0); | |
5986 | ||
5987 | wxPyEndAllowThreads(__tstate); | |
5988 | if (PyErr_Occurred()) return NULL; | |
5989 | } _resultobj = Py_BuildValue("i",_result); | |
5990 | return _resultobj; | |
5991 | } | |
5992 | ||
5993 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) | |
5994 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject * _resultobj; | |
5996 | wxWindow * _arg0; | |
5997 | wxAcceleratorTable * _arg1; | |
5998 | PyObject * _argo0 = 0; | |
5999 | PyObject * _argo1 = 0; | |
6000 | char *_kwnames[] = { "self","accel", NULL }; | |
6001 | ||
6002 | self = self; | |
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6004 | return NULL; | |
6005 | if (_argo0) { | |
6006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6009 | return NULL; | |
6010 | } | |
6011 | } | |
6012 | if (_argo1) { | |
6013 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6014 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
6015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
6016 | return NULL; | |
6017 | } | |
6018 | } | |
6019 | { | |
6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6021 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
6022 | ||
6023 | wxPyEndAllowThreads(__tstate); | |
6024 | if (PyErr_Occurred()) return NULL; | |
6025 | } Py_INCREF(Py_None); | |
6026 | _resultobj = Py_None; | |
6027 | return _resultobj; | |
6028 | } | |
6029 | ||
6030 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) | |
6031 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6032 | PyObject * _resultobj; | |
6033 | wxAcceleratorTable * _result; | |
6034 | wxWindow * _arg0; | |
6035 | PyObject * _argo0 = 0; | |
6036 | char *_kwnames[] = { "self", NULL }; | |
6037 | char _ptemp[128]; | |
6038 | ||
6039 | self = self; | |
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6041 | return NULL; | |
6042 | if (_argo0) { | |
6043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6046 | return NULL; | |
6047 | } | |
6048 | } | |
6049 | { | |
6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6051 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); | |
6052 | ||
6053 | wxPyEndAllowThreads(__tstate); | |
6054 | if (PyErr_Occurred()) return NULL; | |
6055 | } if (_result) { | |
6056 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6057 | _resultobj = Py_BuildValue("s",_ptemp); | |
6058 | } else { | |
6059 | Py_INCREF(Py_None); | |
6060 | _resultobj = Py_None; | |
6061 | } | |
6062 | return _resultobj; | |
6063 | } | |
6064 | ||
6065 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) | |
6066 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject * _resultobj; | |
6068 | wxWindow * _arg0; | |
6069 | wxPaintEvent * _arg1; | |
6070 | PyObject * _argo0 = 0; | |
6071 | PyObject * _argo1 = 0; | |
6072 | char *_kwnames[] = { "self","event", NULL }; | |
6073 | ||
6074 | self = self; | |
6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) | |
6076 | return NULL; | |
6077 | if (_argo0) { | |
6078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); | |
6081 | return NULL; | |
6082 | } | |
6083 | } | |
6084 | if (_argo1) { | |
6085 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6086 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
6087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); | |
6088 | return NULL; | |
6089 | } | |
6090 | } | |
6091 | { | |
6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6093 | wxWindow_OnPaint(_arg0,*_arg1); | |
6094 | ||
6095 | wxPyEndAllowThreads(__tstate); | |
6096 | if (PyErr_Occurred()) return NULL; | |
6097 | } Py_INCREF(Py_None); | |
6098 | _resultobj = Py_None; | |
6099 | return _resultobj; | |
6100 | } | |
6101 | ||
6102 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) | |
6103 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6104 | PyObject * _resultobj; | |
6105 | wxWindow * _result; | |
6106 | wxWindow * _arg0; | |
6107 | PyObject * _argo0 = 0; | |
6108 | char *_kwnames[] = { "self", NULL }; | |
6109 | ||
6110 | self = self; | |
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6112 | return NULL; | |
6113 | if (_argo0) { | |
6114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6117 | return NULL; | |
6118 | } | |
6119 | } | |
6120 | { | |
6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6122 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); | |
6123 | ||
6124 | wxPyEndAllowThreads(__tstate); | |
6125 | if (PyErr_Occurred()) return NULL; | |
6126 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6127 | return _resultobj; | |
6128 | } | |
6129 | ||
6130 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6131 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6132 | PyObject * _resultobj; | |
6133 | wxWindow * _result; | |
6134 | wxWindow * _arg0; | |
6135 | wxWindow * _arg1; | |
6136 | PyObject * _argo0 = 0; | |
6137 | PyObject * _argo1 = 0; | |
6138 | char *_kwnames[] = { "self","btn", NULL }; | |
6139 | ||
6140 | self = self; | |
6141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6142 | return NULL; | |
6143 | if (_argo0) { | |
6144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6147 | return NULL; | |
6148 | } | |
6149 | } | |
6150 | if (_argo1) { | |
6151 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6152 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6154 | return NULL; | |
6155 | } | |
6156 | } | |
6157 | { | |
6158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6159 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); | |
6160 | ||
6161 | wxPyEndAllowThreads(__tstate); | |
6162 | if (PyErr_Occurred()) return NULL; | |
6163 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6164 | return _resultobj; | |
6165 | } | |
6166 | ||
6167 | static void *SwigwxPanelTowxWindow(void *ptr) { | |
6168 | wxPanel *src; | |
6169 | wxWindow *dest; | |
6170 | src = (wxPanel *) ptr; | |
6171 | dest = (wxWindow *) src; | |
6172 | return (void *) dest; | |
6173 | } | |
6174 | ||
6175 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6176 | wxPanel *src; | |
6177 | wxEvtHandler *dest; | |
6178 | src = (wxPanel *) ptr; | |
6179 | dest = (wxEvtHandler *) src; | |
6180 | return (void *) dest; | |
6181 | } | |
6182 | ||
6183 | static void *SwigwxPanelTowxObject(void *ptr) { | |
6184 | wxPanel *src; | |
6185 | wxObject *dest; | |
6186 | src = (wxPanel *) ptr; | |
6187 | dest = (wxObject *) src; | |
6188 | return (void *) dest; | |
6189 | } | |
6190 | ||
6191 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6192 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6193 | PyObject * _resultobj; | |
6194 | wxPanel * _result; | |
6195 | wxWindow * _arg0; | |
6196 | wxWindowID _arg1; | |
6197 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6198 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6199 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
6200 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; | |
6201 | PyObject * _argo0 = 0; | |
6202 | wxPoint temp; | |
6203 | PyObject * _obj2 = 0; | |
6204 | wxSize temp0; | |
6205 | PyObject * _obj3 = 0; | |
6206 | PyObject * _obj5 = 0; | |
6207 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
6208 | char _ptemp[128]; | |
6209 | ||
6210 | self = self; | |
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
6212 | return NULL; | |
6213 | if (_argo0) { | |
6214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); | |
6217 | return NULL; | |
6218 | } | |
6219 | } | |
6220 | if (_obj2) | |
6221 | { | |
6222 | _arg2 = &temp; | |
6223 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6224 | return NULL; | |
6225 | } | |
6226 | if (_obj3) | |
6227 | { | |
6228 | _arg3 = &temp0; | |
6229 | if (! wxSize_helper(_obj3, &_arg3)) | |
6230 | return NULL; | |
6231 | } | |
6232 | if (_obj5) | |
6233 | { | |
6234 | _arg5 = wxString_in_helper(_obj5); | |
6235 | if (_arg5 == NULL) | |
6236 | return NULL; | |
6237 | } | |
6238 | { | |
6239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6240 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
6241 | ||
6242 | wxPyEndAllowThreads(__tstate); | |
6243 | if (PyErr_Occurred()) return NULL; | |
6244 | } if (_result) { | |
6245 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6246 | _resultobj = Py_BuildValue("s",_ptemp); | |
6247 | } else { | |
6248 | Py_INCREF(Py_None); | |
6249 | _resultobj = Py_None; | |
6250 | } | |
6251 | { | |
6252 | if (_obj5) | |
6253 | delete _arg5; | |
6254 | } | |
6255 | return _resultobj; | |
6256 | } | |
6257 | ||
6258 | #define new_wxPrePanel() (new wxPanel()) | |
6259 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6260 | PyObject * _resultobj; | |
6261 | wxPanel * _result; | |
6262 | char *_kwnames[] = { NULL }; | |
6263 | char _ptemp[128]; | |
6264 | ||
6265 | self = self; | |
6266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6267 | return NULL; | |
6268 | { | |
6269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6270 | _result = (wxPanel *)new_wxPrePanel(); | |
6271 | ||
6272 | wxPyEndAllowThreads(__tstate); | |
6273 | if (PyErr_Occurred()) return NULL; | |
6274 | } if (_result) { | |
6275 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6276 | _resultobj = Py_BuildValue("s",_ptemp); | |
6277 | } else { | |
6278 | Py_INCREF(Py_None); | |
6279 | _resultobj = Py_None; | |
6280 | } | |
6281 | return _resultobj; | |
6282 | } | |
6283 | ||
6284 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6285 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject * _resultobj; | |
6287 | bool _result; | |
6288 | wxPanel * _arg0; | |
6289 | wxWindow * _arg1; | |
6290 | wxWindowID _arg2; | |
6291 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6292 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6293 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
6294 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; | |
6295 | PyObject * _argo0 = 0; | |
6296 | PyObject * _argo1 = 0; | |
6297 | wxPoint temp; | |
6298 | PyObject * _obj3 = 0; | |
6299 | wxSize temp0; | |
6300 | PyObject * _obj4 = 0; | |
6301 | PyObject * _obj6 = 0; | |
6302 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6303 | ||
6304 | self = self; | |
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
6306 | return NULL; | |
6307 | if (_argo0) { | |
6308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6311 | return NULL; | |
6312 | } | |
6313 | } | |
6314 | if (_argo1) { | |
6315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6318 | return NULL; | |
6319 | } | |
6320 | } | |
6321 | if (_obj3) | |
6322 | { | |
6323 | _arg3 = &temp; | |
6324 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6325 | return NULL; | |
6326 | } | |
6327 | if (_obj4) | |
6328 | { | |
6329 | _arg4 = &temp0; | |
6330 | if (! wxSize_helper(_obj4, &_arg4)) | |
6331 | return NULL; | |
6332 | } | |
6333 | if (_obj6) | |
6334 | { | |
6335 | _arg6 = wxString_in_helper(_obj6); | |
6336 | if (_arg6 == NULL) | |
6337 | return NULL; | |
6338 | } | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
6342 | ||
6343 | wxPyEndAllowThreads(__tstate); | |
6344 | if (PyErr_Occurred()) return NULL; | |
6345 | } _resultobj = Py_BuildValue("i",_result); | |
6346 | { | |
6347 | if (_obj6) | |
6348 | delete _arg6; | |
6349 | } | |
6350 | return _resultobj; | |
6351 | } | |
6352 | ||
6353 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
6354 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6355 | PyObject * _resultobj; | |
6356 | wxPanel * _arg0; | |
6357 | PyObject * _argo0 = 0; | |
6358 | char *_kwnames[] = { "self", NULL }; | |
6359 | ||
6360 | self = self; | |
6361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) | |
6362 | return NULL; | |
6363 | if (_argo0) { | |
6364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); | |
6367 | return NULL; | |
6368 | } | |
6369 | } | |
6370 | { | |
6371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6372 | wxPanel_InitDialog(_arg0); | |
6373 | ||
6374 | wxPyEndAllowThreads(__tstate); | |
6375 | if (PyErr_Occurred()) return NULL; | |
6376 | } Py_INCREF(Py_None); | |
6377 | _resultobj = Py_None; | |
6378 | return _resultobj; | |
6379 | } | |
6380 | ||
6381 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { | |
6382 | wxScrolledWindow *src; | |
6383 | wxPanel *dest; | |
6384 | src = (wxScrolledWindow *) ptr; | |
6385 | dest = (wxPanel *) src; | |
6386 | return (void *) dest; | |
6387 | } | |
6388 | ||
6389 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { | |
6390 | wxScrolledWindow *src; | |
6391 | wxWindow *dest; | |
6392 | src = (wxScrolledWindow *) ptr; | |
6393 | dest = (wxWindow *) src; | |
6394 | return (void *) dest; | |
6395 | } | |
6396 | ||
6397 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6398 | wxScrolledWindow *src; | |
6399 | wxEvtHandler *dest; | |
6400 | src = (wxScrolledWindow *) ptr; | |
6401 | dest = (wxEvtHandler *) src; | |
6402 | return (void *) dest; | |
6403 | } | |
6404 | ||
6405 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { | |
6406 | wxScrolledWindow *src; | |
6407 | wxObject *dest; | |
6408 | src = (wxScrolledWindow *) ptr; | |
6409 | dest = (wxObject *) src; | |
6410 | return (void *) dest; | |
6411 | } | |
6412 | ||
6413 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6414 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6415 | PyObject * _resultobj; | |
6416 | wxScrolledWindow * _result; | |
6417 | wxWindow * _arg0; | |
6418 | wxWindowID _arg1 = (wxWindowID ) -1; | |
6419 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6420 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6421 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
6422 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; | |
6423 | PyObject * _argo0 = 0; | |
6424 | wxPoint temp; | |
6425 | PyObject * _obj2 = 0; | |
6426 | wxSize temp0; | |
6427 | PyObject * _obj3 = 0; | |
6428 | PyObject * _obj5 = 0; | |
6429 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
6430 | char _ptemp[128]; | |
6431 | ||
6432 | self = self; | |
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
6434 | return NULL; | |
6435 | if (_argo0) { | |
6436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); | |
6439 | return NULL; | |
6440 | } | |
6441 | } | |
6442 | if (_obj2) | |
6443 | { | |
6444 | _arg2 = &temp; | |
6445 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6446 | return NULL; | |
6447 | } | |
6448 | if (_obj3) | |
6449 | { | |
6450 | _arg3 = &temp0; | |
6451 | if (! wxSize_helper(_obj3, &_arg3)) | |
6452 | return NULL; | |
6453 | } | |
6454 | if (_obj5) | |
6455 | { | |
6456 | _arg5 = wxString_in_helper(_obj5); | |
6457 | if (_arg5 == NULL) | |
6458 | return NULL; | |
6459 | } | |
6460 | { | |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
6463 | ||
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) return NULL; | |
6466 | } if (_result) { | |
6467 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6468 | _resultobj = Py_BuildValue("s",_ptemp); | |
6469 | } else { | |
6470 | Py_INCREF(Py_None); | |
6471 | _resultobj = Py_None; | |
6472 | } | |
6473 | { | |
6474 | if (_obj5) | |
6475 | delete _arg5; | |
6476 | } | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
6480 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) | |
6481 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject * _resultobj; | |
6483 | wxScrolledWindow * _result; | |
6484 | char *_kwnames[] = { NULL }; | |
6485 | char _ptemp[128]; | |
6486 | ||
6487 | self = self; | |
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6489 | return NULL; | |
6490 | { | |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6492 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) return NULL; | |
6496 | } if (_result) { | |
6497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6498 | _resultobj = Py_BuildValue("s",_ptemp); | |
6499 | } else { | |
6500 | Py_INCREF(Py_None); | |
6501 | _resultobj = Py_None; | |
6502 | } | |
6503 | return _resultobj; | |
6504 | } | |
6505 | ||
6506 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6507 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject * _resultobj; | |
6509 | bool _result; | |
6510 | wxScrolledWindow * _arg0; | |
6511 | wxWindow * _arg1; | |
6512 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6513 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6514 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6515 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6516 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; | |
6517 | PyObject * _argo0 = 0; | |
6518 | PyObject * _argo1 = 0; | |
6519 | wxPoint temp; | |
6520 | PyObject * _obj3 = 0; | |
6521 | wxSize temp0; | |
6522 | PyObject * _obj4 = 0; | |
6523 | PyObject * _obj6 = 0; | |
6524 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6525 | ||
6526 | self = self; | |
6527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
6528 | return NULL; | |
6529 | if (_argo0) { | |
6530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6533 | return NULL; | |
6534 | } | |
6535 | } | |
6536 | if (_argo1) { | |
6537 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6538 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6540 | return NULL; | |
6541 | } | |
6542 | } | |
6543 | if (_obj3) | |
6544 | { | |
6545 | _arg3 = &temp; | |
6546 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6547 | return NULL; | |
6548 | } | |
6549 | if (_obj4) | |
6550 | { | |
6551 | _arg4 = &temp0; | |
6552 | if (! wxSize_helper(_obj4, &_arg4)) | |
6553 | return NULL; | |
6554 | } | |
6555 | if (_obj6) | |
6556 | { | |
6557 | _arg6 = wxString_in_helper(_obj6); | |
6558 | if (_arg6 == NULL) | |
6559 | return NULL; | |
6560 | } | |
6561 | { | |
6562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6563 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
6564 | ||
6565 | wxPyEndAllowThreads(__tstate); | |
6566 | if (PyErr_Occurred()) return NULL; | |
6567 | } _resultobj = Py_BuildValue("i",_result); | |
6568 | { | |
6569 | if (_obj6) | |
6570 | delete _arg6; | |
6571 | } | |
6572 | return _resultobj; | |
6573 | } | |
6574 | ||
6575 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
6576 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6577 | PyObject * _resultobj; | |
6578 | wxScrolledWindow * _arg0; | |
6579 | bool _arg1; | |
6580 | bool _arg2; | |
6581 | PyObject * _argo0 = 0; | |
6582 | int tempbool1; | |
6583 | int tempbool2; | |
6584 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; | |
6585 | ||
6586 | self = self; | |
6587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
6588 | return NULL; | |
6589 | if (_argo0) { | |
6590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); | |
6593 | return NULL; | |
6594 | } | |
6595 | } | |
6596 | _arg1 = (bool ) tempbool1; | |
6597 | _arg2 = (bool ) tempbool2; | |
6598 | { | |
6599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6600 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
6601 | ||
6602 | wxPyEndAllowThreads(__tstate); | |
6603 | if (PyErr_Occurred()) return NULL; | |
6604 | } Py_INCREF(Py_None); | |
6605 | _resultobj = Py_None; | |
6606 | return _resultobj; | |
6607 | } | |
6608 | ||
6609 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) | |
6610 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6611 | PyObject * _resultobj; | |
6612 | int _result; | |
6613 | wxScrolledWindow * _arg0; | |
6614 | int _arg1; | |
6615 | PyObject * _argo0 = 0; | |
6616 | char *_kwnames[] = { "self","orient", NULL }; | |
6617 | ||
6618 | self = self; | |
6619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6620 | return NULL; | |
6621 | if (_argo0) { | |
6622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6625 | return NULL; | |
6626 | } | |
6627 | } | |
6628 | { | |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); | |
6631 | ||
6632 | wxPyEndAllowThreads(__tstate); | |
6633 | if (PyErr_Occurred()) return NULL; | |
6634 | } _resultobj = Py_BuildValue("i",_result); | |
6635 | return _resultobj; | |
6636 | } | |
6637 | ||
6638 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
6639 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6640 | PyObject * _resultobj; | |
6641 | wxScrolledWindow * _arg0; | |
6642 | int * _arg1; | |
6643 | int temp; | |
6644 | int * _arg2; | |
6645 | int temp0; | |
6646 | PyObject * _argo0 = 0; | |
6647 | char *_kwnames[] = { "self", NULL }; | |
6648 | ||
6649 | self = self; | |
6650 | { | |
6651 | _arg1 = &temp; | |
6652 | } | |
6653 | { | |
6654 | _arg2 = &temp0; | |
6655 | } | |
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) | |
6657 | return NULL; | |
6658 | if (_argo0) { | |
6659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); | |
6662 | return NULL; | |
6663 | } | |
6664 | } | |
6665 | { | |
6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6667 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
6668 | ||
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) return NULL; | |
6671 | } Py_INCREF(Py_None); | |
6672 | _resultobj = Py_None; | |
6673 | { | |
6674 | PyObject *o; | |
6675 | o = PyInt_FromLong((long) (*_arg1)); | |
6676 | _resultobj = t_output_helper(_resultobj, o); | |
6677 | } | |
6678 | { | |
6679 | PyObject *o; | |
6680 | o = PyInt_FromLong((long) (*_arg2)); | |
6681 | _resultobj = t_output_helper(_resultobj, o); | |
6682 | } | |
6683 | return _resultobj; | |
6684 | } | |
6685 | ||
6686 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) | |
6687 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject * _resultobj; | |
6689 | wxWindow * _result; | |
6690 | wxScrolledWindow * _arg0; | |
6691 | PyObject * _argo0 = 0; | |
6692 | char *_kwnames[] = { "self", NULL }; | |
6693 | ||
6694 | self = self; | |
6695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6696 | return NULL; | |
6697 | if (_argo0) { | |
6698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6701 | return NULL; | |
6702 | } | |
6703 | } | |
6704 | { | |
6705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6706 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); | |
6707 | ||
6708 | wxPyEndAllowThreads(__tstate); | |
6709 | if (PyErr_Occurred()) return NULL; | |
6710 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6711 | return _resultobj; | |
6712 | } | |
6713 | ||
6714 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
6715 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject * _resultobj; | |
6717 | wxScrolledWindow * _arg0; | |
6718 | int * _arg1; | |
6719 | int temp; | |
6720 | int * _arg2; | |
6721 | int temp0; | |
6722 | PyObject * _argo0 = 0; | |
6723 | char *_kwnames[] = { "self", NULL }; | |
6724 | ||
6725 | self = self; | |
6726 | { | |
6727 | _arg1 = &temp; | |
6728 | } | |
6729 | { | |
6730 | _arg2 = &temp0; | |
6731 | } | |
6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) | |
6733 | return NULL; | |
6734 | if (_argo0) { | |
6735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); | |
6738 | return NULL; | |
6739 | } | |
6740 | } | |
6741 | { | |
6742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6743 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
6744 | ||
6745 | wxPyEndAllowThreads(__tstate); | |
6746 | if (PyErr_Occurred()) return NULL; | |
6747 | } Py_INCREF(Py_None); | |
6748 | _resultobj = Py_None; | |
6749 | { | |
6750 | PyObject *o; | |
6751 | o = PyInt_FromLong((long) (*_arg1)); | |
6752 | _resultobj = t_output_helper(_resultobj, o); | |
6753 | } | |
6754 | { | |
6755 | PyObject *o; | |
6756 | o = PyInt_FromLong((long) (*_arg2)); | |
6757 | _resultobj = t_output_helper(_resultobj, o); | |
6758 | } | |
6759 | return _resultobj; | |
6760 | } | |
6761 | ||
6762 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
6763 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6764 | PyObject * _resultobj; | |
6765 | bool _result; | |
6766 | wxScrolledWindow * _arg0; | |
6767 | PyObject * _argo0 = 0; | |
6768 | char *_kwnames[] = { "self", NULL }; | |
6769 | ||
6770 | self = self; | |
6771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) | |
6772 | return NULL; | |
6773 | if (_argo0) { | |
6774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); | |
6777 | return NULL; | |
6778 | } | |
6779 | } | |
6780 | { | |
6781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6782 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
6783 | ||
6784 | wxPyEndAllowThreads(__tstate); | |
6785 | if (PyErr_Occurred()) return NULL; | |
6786 | } _resultobj = Py_BuildValue("i",_result); | |
6787 | return _resultobj; | |
6788 | } | |
6789 | ||
6790 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
6791 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6792 | PyObject * _resultobj; | |
6793 | wxScrolledWindow * _arg0; | |
6794 | wxDC * _arg1; | |
6795 | PyObject * _argo0 = 0; | |
6796 | PyObject * _argo1 = 0; | |
6797 | char *_kwnames[] = { "self","dc", NULL }; | |
6798 | ||
6799 | self = self; | |
6800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) | |
6801 | return NULL; | |
6802 | if (_argo0) { | |
6803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); | |
6806 | return NULL; | |
6807 | } | |
6808 | } | |
6809 | if (_argo1) { | |
6810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
6812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); | |
6813 | return NULL; | |
6814 | } | |
6815 | } | |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) return NULL; | |
6822 | } Py_INCREF(Py_None); | |
6823 | _resultobj = Py_None; | |
6824 | return _resultobj; | |
6825 | } | |
6826 | ||
6827 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
6828 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6829 | PyObject * _resultobj; | |
6830 | wxScrolledWindow * _arg0; | |
6831 | int _arg1; | |
6832 | int _arg2; | |
6833 | PyObject * _argo0 = 0; | |
6834 | char *_kwnames[] = { "self","x","y", NULL }; | |
6835 | ||
6836 | self = self; | |
6837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6838 | return NULL; | |
6839 | if (_argo0) { | |
6840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); | |
6843 | return NULL; | |
6844 | } | |
6845 | } | |
6846 | { | |
6847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6848 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
6849 | ||
6850 | wxPyEndAllowThreads(__tstate); | |
6851 | if (PyErr_Occurred()) return NULL; | |
6852 | } Py_INCREF(Py_None); | |
6853 | _resultobj = Py_None; | |
6854 | return _resultobj; | |
6855 | } | |
6856 | ||
6857 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6858 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6859 | PyObject * _resultobj; | |
6860 | wxScrolledWindow * _arg0; | |
6861 | int _arg1; | |
6862 | int _arg2; | |
6863 | int _arg3; | |
6864 | int _arg4; | |
6865 | int _arg5 = (int ) 0; | |
6866 | int _arg6 = (int ) 0; | |
6867 | int _arg7 = (int ) FALSE; | |
6868 | PyObject * _argo0 = 0; | |
6869 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; | |
6870 | ||
6871 | self = self; | |
6872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
6873 | return NULL; | |
6874 | if (_argo0) { | |
6875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); | |
6878 | return NULL; | |
6879 | } | |
6880 | } | |
6881 | { | |
6882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6883 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
6884 | ||
6885 | wxPyEndAllowThreads(__tstate); | |
6886 | if (PyErr_Occurred()) return NULL; | |
6887 | } Py_INCREF(Py_None); | |
6888 | _resultobj = Py_None; | |
6889 | return _resultobj; | |
6890 | } | |
6891 | ||
6892 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) | |
6893 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6894 | PyObject * _resultobj; | |
6895 | wxScrolledWindow * _arg0; | |
6896 | int _arg1; | |
6897 | int _arg2; | |
6898 | PyObject * _argo0 = 0; | |
6899 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6900 | ||
6901 | self = self; | |
6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6903 | return NULL; | |
6904 | if (_argo0) { | |
6905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6908 | return NULL; | |
6909 | } | |
6910 | } | |
6911 | { | |
6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6913 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); | |
6914 | ||
6915 | wxPyEndAllowThreads(__tstate); | |
6916 | if (PyErr_Occurred()) return NULL; | |
6917 | } Py_INCREF(Py_None); | |
6918 | _resultobj = Py_None; | |
6919 | return _resultobj; | |
6920 | } | |
6921 | ||
6922 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) | |
6923 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6924 | PyObject * _resultobj; | |
6925 | wxScrolledWindow * _arg0; | |
6926 | wxWindow * _arg1; | |
6927 | PyObject * _argo0 = 0; | |
6928 | PyObject * _argo1 = 0; | |
6929 | char *_kwnames[] = { "self","window", NULL }; | |
6930 | ||
6931 | self = self; | |
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6933 | return NULL; | |
6934 | if (_argo0) { | |
6935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6938 | return NULL; | |
6939 | } | |
6940 | } | |
6941 | if (_argo1) { | |
6942 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6943 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6945 | return NULL; | |
6946 | } | |
6947 | } | |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) return NULL; | |
6954 | } Py_INCREF(Py_None); | |
6955 | _resultobj = Py_None; | |
6956 | return _resultobj; | |
6957 | } | |
6958 | ||
6959 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) | |
6960 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6961 | PyObject * _resultobj; | |
6962 | wxScrolledWindow * _arg0; | |
6963 | int * _arg1; | |
6964 | int temp; | |
6965 | int * _arg2; | |
6966 | int temp0; | |
6967 | PyObject * _argo0 = 0; | |
6968 | char *_kwnames[] = { "self", NULL }; | |
6969 | ||
6970 | self = self; | |
6971 | { | |
6972 | _arg1 = &temp; | |
6973 | } | |
6974 | { | |
6975 | _arg2 = &temp0; | |
6976 | } | |
6977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6978 | return NULL; | |
6979 | if (_argo0) { | |
6980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6983 | return NULL; | |
6984 | } | |
6985 | } | |
6986 | { | |
6987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6988 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); | |
6989 | ||
6990 | wxPyEndAllowThreads(__tstate); | |
6991 | if (PyErr_Occurred()) return NULL; | |
6992 | } Py_INCREF(Py_None); | |
6993 | _resultobj = Py_None; | |
6994 | { | |
6995 | PyObject *o; | |
6996 | o = PyInt_FromLong((long) (*_arg1)); | |
6997 | _resultobj = t_output_helper(_resultobj, o); | |
6998 | } | |
6999 | { | |
7000 | PyObject *o; | |
7001 | o = PyInt_FromLong((long) (*_arg2)); | |
7002 | _resultobj = t_output_helper(_resultobj, o); | |
7003 | } | |
7004 | return _resultobj; | |
7005 | } | |
7006 | ||
7007 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) | |
7008 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7009 | PyObject * _resultobj; | |
7010 | wxPoint * _result; | |
7011 | wxScrolledWindow * _arg0; | |
7012 | wxPoint * _arg1; | |
7013 | PyObject * _argo0 = 0; | |
7014 | wxPoint temp; | |
7015 | PyObject * _obj1 = 0; | |
7016 | char *_kwnames[] = { "self","pt", NULL }; | |
7017 | char _ptemp[128]; | |
7018 | ||
7019 | self = self; | |
7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7021 | return NULL; | |
7022 | if (_argo0) { | |
7023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7026 | return NULL; | |
7027 | } | |
7028 | } | |
7029 | { | |
7030 | _arg1 = &temp; | |
7031 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7032 | return NULL; | |
7033 | } | |
7034 | { | |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7037 | ||
7038 | wxPyEndAllowThreads(__tstate); | |
7039 | if (PyErr_Occurred()) return NULL; | |
7040 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7041 | _resultobj = Py_BuildValue("s",_ptemp); | |
7042 | return _resultobj; | |
7043 | } | |
7044 | ||
7045 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7046 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7047 | PyObject * _resultobj; | |
7048 | wxScrolledWindow * _arg0; | |
7049 | int _arg1; | |
7050 | int _arg2; | |
7051 | int * _arg3; | |
7052 | int temp; | |
7053 | int * _arg4; | |
7054 | int temp0; | |
7055 | PyObject * _argo0 = 0; | |
7056 | char *_kwnames[] = { "self","x","y", NULL }; | |
7057 | ||
7058 | self = self; | |
7059 | { | |
7060 | _arg3 = &temp; | |
7061 | } | |
7062 | { | |
7063 | _arg4 = &temp0; | |
7064 | } | |
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7066 | return NULL; | |
7067 | if (_argo0) { | |
7068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); | |
7071 | return NULL; | |
7072 | } | |
7073 | } | |
7074 | { | |
7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7076 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7077 | ||
7078 | wxPyEndAllowThreads(__tstate); | |
7079 | if (PyErr_Occurred()) return NULL; | |
7080 | } Py_INCREF(Py_None); | |
7081 | _resultobj = Py_None; | |
7082 | { | |
7083 | PyObject *o; | |
7084 | o = PyInt_FromLong((long) (*_arg3)); | |
7085 | _resultobj = t_output_helper(_resultobj, o); | |
7086 | } | |
7087 | { | |
7088 | PyObject *o; | |
7089 | o = PyInt_FromLong((long) (*_arg4)); | |
7090 | _resultobj = t_output_helper(_resultobj, o); | |
7091 | } | |
7092 | return _resultobj; | |
7093 | } | |
7094 | ||
7095 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) | |
7096 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7097 | PyObject * _resultobj; | |
7098 | wxPoint * _result; | |
7099 | wxScrolledWindow * _arg0; | |
7100 | wxPoint * _arg1; | |
7101 | PyObject * _argo0 = 0; | |
7102 | wxPoint temp; | |
7103 | PyObject * _obj1 = 0; | |
7104 | char *_kwnames[] = { "self","pt", NULL }; | |
7105 | char _ptemp[128]; | |
7106 | ||
7107 | self = self; | |
7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7109 | return NULL; | |
7110 | if (_argo0) { | |
7111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | { | |
7118 | _arg1 = &temp; | |
7119 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7120 | return NULL; | |
7121 | } | |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) return NULL; | |
7128 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7129 | _resultobj = Py_BuildValue("s",_ptemp); | |
7130 | return _resultobj; | |
7131 | } | |
7132 | ||
7133 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7134 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7135 | PyObject * _resultobj; | |
7136 | wxScrolledWindow * _arg0; | |
7137 | int _arg1; | |
7138 | int _arg2; | |
7139 | int * _arg3; | |
7140 | int temp; | |
7141 | int * _arg4; | |
7142 | int temp0; | |
7143 | PyObject * _argo0 = 0; | |
7144 | char *_kwnames[] = { "self","x","y", NULL }; | |
7145 | ||
7146 | self = self; | |
7147 | { | |
7148 | _arg3 = &temp; | |
7149 | } | |
7150 | { | |
7151 | _arg4 = &temp0; | |
7152 | } | |
7153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7154 | return NULL; | |
7155 | if (_argo0) { | |
7156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); | |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) return NULL; | |
7168 | } Py_INCREF(Py_None); | |
7169 | _resultobj = Py_None; | |
7170 | { | |
7171 | PyObject *o; | |
7172 | o = PyInt_FromLong((long) (*_arg3)); | |
7173 | _resultobj = t_output_helper(_resultobj, o); | |
7174 | } | |
7175 | { | |
7176 | PyObject *o; | |
7177 | o = PyInt_FromLong((long) (*_arg4)); | |
7178 | _resultobj = t_output_helper(_resultobj, o); | |
7179 | } | |
7180 | return _resultobj; | |
7181 | } | |
7182 | ||
7183 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) | |
7184 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7185 | PyObject * _resultobj; | |
7186 | wxScrolledWindow * _arg0; | |
7187 | double _arg1; | |
7188 | double _arg2; | |
7189 | PyObject * _argo0 = 0; | |
7190 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7191 | ||
7192 | self = self; | |
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7194 | return NULL; | |
7195 | if (_argo0) { | |
7196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7199 | return NULL; | |
7200 | } | |
7201 | } | |
7202 | { | |
7203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7204 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); | |
7205 | ||
7206 | wxPyEndAllowThreads(__tstate); | |
7207 | if (PyErr_Occurred()) return NULL; | |
7208 | } Py_INCREF(Py_None); | |
7209 | _resultobj = Py_None; | |
7210 | return _resultobj; | |
7211 | } | |
7212 | ||
7213 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7214 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7215 | PyObject * _resultobj; | |
7216 | double _result; | |
7217 | wxScrolledWindow * _arg0; | |
7218 | PyObject * _argo0 = 0; | |
7219 | char *_kwnames[] = { "self", NULL }; | |
7220 | ||
7221 | self = self; | |
7222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7223 | return NULL; | |
7224 | if (_argo0) { | |
7225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7228 | return NULL; | |
7229 | } | |
7230 | } | |
7231 | { | |
7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7233 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); | |
7234 | ||
7235 | wxPyEndAllowThreads(__tstate); | |
7236 | if (PyErr_Occurred()) return NULL; | |
7237 | } _resultobj = Py_BuildValue("d",_result); | |
7238 | return _resultobj; | |
7239 | } | |
7240 | ||
7241 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7242 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7243 | PyObject * _resultobj; | |
7244 | double _result; | |
7245 | wxScrolledWindow * _arg0; | |
7246 | PyObject * _argo0 = 0; | |
7247 | char *_kwnames[] = { "self", NULL }; | |
7248 | ||
7249 | self = self; | |
7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7251 | return NULL; | |
7252 | if (_argo0) { | |
7253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7256 | return NULL; | |
7257 | } | |
7258 | } | |
7259 | { | |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) return NULL; | |
7265 | } _resultobj = Py_BuildValue("d",_result); | |
7266 | return _resultobj; | |
7267 | } | |
7268 | ||
7269 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7270 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7271 | PyObject * _resultobj; | |
7272 | wxScrolledWindow * _arg0; | |
7273 | PyObject * _argo0 = 0; | |
7274 | char *_kwnames[] = { "self", NULL }; | |
7275 | ||
7276 | self = self; | |
7277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7278 | return NULL; | |
7279 | if (_argo0) { | |
7280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7283 | return NULL; | |
7284 | } | |
7285 | } | |
7286 | { | |
7287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7288 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7289 | ||
7290 | wxPyEndAllowThreads(__tstate); | |
7291 | if (PyErr_Occurred()) return NULL; | |
7292 | } Py_INCREF(Py_None); | |
7293 | _resultobj = Py_None; | |
7294 | return _resultobj; | |
7295 | } | |
7296 | ||
7297 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7298 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7299 | PyObject * _resultobj; | |
7300 | bool _result; | |
7301 | wxScrolledWindow * _arg0; | |
7302 | PyObject * _argo0 = 0; | |
7303 | char *_kwnames[] = { "self", NULL }; | |
7304 | ||
7305 | self = self; | |
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7307 | return NULL; | |
7308 | if (_argo0) { | |
7309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7312 | return NULL; | |
7313 | } | |
7314 | } | |
7315 | { | |
7316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7317 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7318 | ||
7319 | wxPyEndAllowThreads(__tstate); | |
7320 | if (PyErr_Occurred()) return NULL; | |
7321 | } _resultobj = Py_BuildValue("i",_result); | |
7322 | return _resultobj; | |
7323 | } | |
7324 | ||
7325 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
7326 | wxMenu *src; | |
7327 | wxEvtHandler *dest; | |
7328 | src = (wxMenu *) ptr; | |
7329 | dest = (wxEvtHandler *) src; | |
7330 | return (void *) dest; | |
7331 | } | |
7332 | ||
7333 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7334 | wxMenu *src; | |
7335 | wxObject *dest; | |
7336 | src = (wxMenu *) ptr; | |
7337 | dest = (wxObject *) src; | |
7338 | return (void *) dest; | |
7339 | } | |
7340 | ||
7341 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7342 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7343 | PyObject * _resultobj; | |
7344 | wxMenu * _result; | |
7345 | wxString * _arg0 = (wxString *) &wxPyEmptyString; | |
7346 | long _arg1 = (long ) 0; | |
7347 | PyObject * _obj0 = 0; | |
7348 | char *_kwnames[] = { "title","style", NULL }; | |
7349 | char _ptemp[128]; | |
7350 | ||
7351 | self = self; | |
7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7353 | return NULL; | |
7354 | if (_obj0) | |
7355 | { | |
7356 | _arg0 = wxString_in_helper(_obj0); | |
7357 | if (_arg0 == NULL) | |
7358 | return NULL; | |
7359 | } | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7363 | ||
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) return NULL; | |
7366 | } if (_result) { | |
7367 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7368 | _resultobj = Py_BuildValue("s",_ptemp); | |
7369 | } else { | |
7370 | Py_INCREF(Py_None); | |
7371 | _resultobj = Py_None; | |
7372 | } | |
7373 | { | |
7374 | if (_obj0) | |
7375 | delete _arg0; | |
7376 | } | |
7377 | return _resultobj; | |
7378 | } | |
7379 | ||
7380 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7381 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject * _resultobj; | |
7383 | wxMenu * _arg0; | |
7384 | int _arg1; | |
7385 | wxString * _arg2; | |
7386 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
7387 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; | |
7388 | PyObject * _argo0 = 0; | |
7389 | PyObject * _obj2 = 0; | |
7390 | PyObject * _obj3 = 0; | |
7391 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7392 | ||
7393 | self = self; | |
7394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7395 | return NULL; | |
7396 | if (_argo0) { | |
7397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7400 | return NULL; | |
7401 | } | |
7402 | } | |
7403 | { | |
7404 | _arg2 = wxString_in_helper(_obj2); | |
7405 | if (_arg2 == NULL) | |
7406 | return NULL; | |
7407 | } | |
7408 | if (_obj3) | |
7409 | { | |
7410 | _arg3 = wxString_in_helper(_obj3); | |
7411 | if (_arg3 == NULL) | |
7412 | return NULL; | |
7413 | } | |
7414 | { | |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) return NULL; | |
7420 | } Py_INCREF(Py_None); | |
7421 | _resultobj = Py_None; | |
7422 | { | |
7423 | if (_obj2) | |
7424 | delete _arg2; | |
7425 | } | |
7426 | { | |
7427 | if (_obj3) | |
7428 | delete _arg3; | |
7429 | } | |
7430 | return _resultobj; | |
7431 | } | |
7432 | ||
7433 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7434 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject * _resultobj; | |
7436 | wxMenu * _arg0; | |
7437 | int _arg1; | |
7438 | wxString * _arg2; | |
7439 | wxMenu * _arg3; | |
7440 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
7441 | PyObject * _argo0 = 0; | |
7442 | PyObject * _obj2 = 0; | |
7443 | PyObject * _argo3 = 0; | |
7444 | PyObject * _obj4 = 0; | |
7445 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7446 | ||
7447 | self = self; | |
7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7449 | return NULL; | |
7450 | if (_argo0) { | |
7451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7454 | return NULL; | |
7455 | } | |
7456 | } | |
7457 | { | |
7458 | _arg2 = wxString_in_helper(_obj2); | |
7459 | if (_arg2 == NULL) | |
7460 | return NULL; | |
7461 | } | |
7462 | if (_argo3) { | |
7463 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7464 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7466 | return NULL; | |
7467 | } | |
7468 | } | |
7469 | if (_obj4) | |
7470 | { | |
7471 | _arg4 = wxString_in_helper(_obj4); | |
7472 | if (_arg4 == NULL) | |
7473 | return NULL; | |
7474 | } | |
7475 | { | |
7476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7477 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7478 | ||
7479 | wxPyEndAllowThreads(__tstate); | |
7480 | if (PyErr_Occurred()) return NULL; | |
7481 | } Py_INCREF(Py_None); | |
7482 | _resultobj = Py_None; | |
7483 | { | |
7484 | if (_obj2) | |
7485 | delete _arg2; | |
7486 | } | |
7487 | { | |
7488 | if (_obj4) | |
7489 | delete _arg4; | |
7490 | } | |
7491 | return _resultobj; | |
7492 | } | |
7493 | ||
7494 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7495 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7496 | PyObject * _resultobj; | |
7497 | wxMenu * _arg0; | |
7498 | wxMenuItem * _arg1; | |
7499 | PyObject * _argo0 = 0; | |
7500 | PyObject * _argo1 = 0; | |
7501 | char *_kwnames[] = { "self","item", NULL }; | |
7502 | ||
7503 | self = self; | |
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7505 | return NULL; | |
7506 | if (_argo0) { | |
7507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7510 | return NULL; | |
7511 | } | |
7512 | } | |
7513 | if (_argo1) { | |
7514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7517 | return NULL; | |
7518 | } | |
7519 | } | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | wxMenu_AppendItem(_arg0,_arg1); | |
7523 | ||
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) return NULL; | |
7526 | } Py_INCREF(Py_None); | |
7527 | _resultobj = Py_None; | |
7528 | return _resultobj; | |
7529 | } | |
7530 | ||
7531 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7532 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7533 | PyObject * _resultobj; | |
7534 | wxMenu * _arg0; | |
7535 | int _arg1; | |
7536 | wxString * _arg2; | |
7537 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
7538 | PyObject * _argo0 = 0; | |
7539 | PyObject * _obj2 = 0; | |
7540 | PyObject * _obj3 = 0; | |
7541 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7542 | ||
7543 | self = self; | |
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7545 | return NULL; | |
7546 | if (_argo0) { | |
7547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
7550 | return NULL; | |
7551 | } | |
7552 | } | |
7553 | { | |
7554 | _arg2 = wxString_in_helper(_obj2); | |
7555 | if (_arg2 == NULL) | |
7556 | return NULL; | |
7557 | } | |
7558 | if (_obj3) | |
7559 | { | |
7560 | _arg3 = wxString_in_helper(_obj3); | |
7561 | if (_arg3 == NULL) | |
7562 | return NULL; | |
7563 | } | |
7564 | { | |
7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7566 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7567 | ||
7568 | wxPyEndAllowThreads(__tstate); | |
7569 | if (PyErr_Occurred()) return NULL; | |
7570 | } Py_INCREF(Py_None); | |
7571 | _resultobj = Py_None; | |
7572 | { | |
7573 | if (_obj2) | |
7574 | delete _arg2; | |
7575 | } | |
7576 | { | |
7577 | if (_obj3) | |
7578 | delete _arg3; | |
7579 | } | |
7580 | return _resultobj; | |
7581 | } | |
7582 | ||
7583 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7584 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject * _resultobj; | |
7586 | wxMenu * _arg0; | |
7587 | int _arg1; | |
7588 | wxString * _arg2; | |
7589 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
7590 | PyObject * _argo0 = 0; | |
7591 | PyObject * _obj2 = 0; | |
7592 | PyObject * _obj3 = 0; | |
7593 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7594 | ||
7595 | self = self; | |
7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7597 | return NULL; | |
7598 | if (_argo0) { | |
7599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
7602 | return NULL; | |
7603 | } | |
7604 | } | |
7605 | { | |
7606 | _arg2 = wxString_in_helper(_obj2); | |
7607 | if (_arg2 == NULL) | |
7608 | return NULL; | |
7609 | } | |
7610 | if (_obj3) | |
7611 | { | |
7612 | _arg3 = wxString_in_helper(_obj3); | |
7613 | if (_arg3 == NULL) | |
7614 | return NULL; | |
7615 | } | |
7616 | { | |
7617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7618 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
7619 | ||
7620 | wxPyEndAllowThreads(__tstate); | |
7621 | if (PyErr_Occurred()) return NULL; | |
7622 | } Py_INCREF(Py_None); | |
7623 | _resultobj = Py_None; | |
7624 | { | |
7625 | if (_obj2) | |
7626 | delete _arg2; | |
7627 | } | |
7628 | { | |
7629 | if (_obj3) | |
7630 | delete _arg3; | |
7631 | } | |
7632 | return _resultobj; | |
7633 | } | |
7634 | ||
7635 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
7636 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7637 | PyObject * _resultobj; | |
7638 | wxMenu * _arg0; | |
7639 | PyObject * _argo0 = 0; | |
7640 | char *_kwnames[] = { "self", NULL }; | |
7641 | ||
7642 | self = self; | |
7643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
7644 | return NULL; | |
7645 | if (_argo0) { | |
7646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
7649 | return NULL; | |
7650 | } | |
7651 | } | |
7652 | { | |
7653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7654 | wxMenu_AppendSeparator(_arg0); | |
7655 | ||
7656 | wxPyEndAllowThreads(__tstate); | |
7657 | if (PyErr_Occurred()) return NULL; | |
7658 | } Py_INCREF(Py_None); | |
7659 | _resultobj = Py_None; | |
7660 | return _resultobj; | |
7661 | } | |
7662 | ||
7663 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7664 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject * _resultobj; | |
7666 | wxMenu * _arg0; | |
7667 | size_t _arg1; | |
7668 | int _arg2; | |
7669 | wxString * _arg3; | |
7670 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
7671 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; | |
7672 | PyObject * _argo0 = 0; | |
7673 | PyObject * _obj3 = 0; | |
7674 | PyObject * _obj4 = 0; | |
7675 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
7676 | ||
7677 | self = self; | |
7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
7679 | return NULL; | |
7680 | if (_argo0) { | |
7681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7684 | return NULL; | |
7685 | } | |
7686 | } | |
7687 | { | |
7688 | _arg3 = wxString_in_helper(_obj3); | |
7689 | if (_arg3 == NULL) | |
7690 | return NULL; | |
7691 | } | |
7692 | if (_obj4) | |
7693 | { | |
7694 | _arg4 = wxString_in_helper(_obj4); | |
7695 | if (_arg4 == NULL) | |
7696 | return NULL; | |
7697 | } | |
7698 | { | |
7699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7700 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
7701 | ||
7702 | wxPyEndAllowThreads(__tstate); | |
7703 | if (PyErr_Occurred()) return NULL; | |
7704 | } Py_INCREF(Py_None); | |
7705 | _resultobj = Py_None; | |
7706 | { | |
7707 | if (_obj3) | |
7708 | delete _arg3; | |
7709 | } | |
7710 | { | |
7711 | if (_obj4) | |
7712 | delete _arg4; | |
7713 | } | |
7714 | return _resultobj; | |
7715 | } | |
7716 | ||
7717 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
7718 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7719 | PyObject * _resultobj; | |
7720 | wxMenu * _arg0; | |
7721 | size_t _arg1; | |
7722 | PyObject * _argo0 = 0; | |
7723 | char *_kwnames[] = { "self","pos", NULL }; | |
7724 | ||
7725 | self = self; | |
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
7727 | return NULL; | |
7728 | if (_argo0) { | |
7729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
7732 | return NULL; | |
7733 | } | |
7734 | } | |
7735 | { | |
7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7737 | wxMenu_InsertSeparator(_arg0,_arg1); | |
7738 | ||
7739 | wxPyEndAllowThreads(__tstate); | |
7740 | if (PyErr_Occurred()) return NULL; | |
7741 | } Py_INCREF(Py_None); | |
7742 | _resultobj = Py_None; | |
7743 | return _resultobj; | |
7744 | } | |
7745 | ||
7746 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7747 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7748 | PyObject * _resultobj; | |
7749 | wxMenu * _arg0; | |
7750 | size_t _arg1; | |
7751 | int _arg2; | |
7752 | wxString * _arg3; | |
7753 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
7754 | PyObject * _argo0 = 0; | |
7755 | PyObject * _obj3 = 0; | |
7756 | PyObject * _obj4 = 0; | |
7757 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7758 | ||
7759 | self = self; | |
7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7761 | return NULL; | |
7762 | if (_argo0) { | |
7763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
7766 | return NULL; | |
7767 | } | |
7768 | } | |
7769 | { | |
7770 | _arg3 = wxString_in_helper(_obj3); | |
7771 | if (_arg3 == NULL) | |
7772 | return NULL; | |
7773 | } | |
7774 | if (_obj4) | |
7775 | { | |
7776 | _arg4 = wxString_in_helper(_obj4); | |
7777 | if (_arg4 == NULL) | |
7778 | return NULL; | |
7779 | } | |
7780 | { | |
7781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7782 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7783 | ||
7784 | wxPyEndAllowThreads(__tstate); | |
7785 | if (PyErr_Occurred()) return NULL; | |
7786 | } Py_INCREF(Py_None); | |
7787 | _resultobj = Py_None; | |
7788 | { | |
7789 | if (_obj3) | |
7790 | delete _arg3; | |
7791 | } | |
7792 | { | |
7793 | if (_obj4) | |
7794 | delete _arg4; | |
7795 | } | |
7796 | return _resultobj; | |
7797 | } | |
7798 | ||
7799 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7800 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7801 | PyObject * _resultobj; | |
7802 | wxMenu * _arg0; | |
7803 | size_t _arg1; | |
7804 | int _arg2; | |
7805 | wxString * _arg3; | |
7806 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
7807 | PyObject * _argo0 = 0; | |
7808 | PyObject * _obj3 = 0; | |
7809 | PyObject * _obj4 = 0; | |
7810 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7811 | ||
7812 | self = self; | |
7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7814 | return NULL; | |
7815 | if (_argo0) { | |
7816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
7819 | return NULL; | |
7820 | } | |
7821 | } | |
7822 | { | |
7823 | _arg3 = wxString_in_helper(_obj3); | |
7824 | if (_arg3 == NULL) | |
7825 | return NULL; | |
7826 | } | |
7827 | if (_obj4) | |
7828 | { | |
7829 | _arg4 = wxString_in_helper(_obj4); | |
7830 | if (_arg4 == NULL) | |
7831 | return NULL; | |
7832 | } | |
7833 | { | |
7834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7835 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7836 | ||
7837 | wxPyEndAllowThreads(__tstate); | |
7838 | if (PyErr_Occurred()) return NULL; | |
7839 | } Py_INCREF(Py_None); | |
7840 | _resultobj = Py_None; | |
7841 | { | |
7842 | if (_obj3) | |
7843 | delete _arg3; | |
7844 | } | |
7845 | { | |
7846 | if (_obj4) | |
7847 | delete _arg4; | |
7848 | } | |
7849 | return _resultobj; | |
7850 | } | |
7851 | ||
7852 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7853 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7854 | PyObject * _resultobj; | |
7855 | wxMenu * _arg0; | |
7856 | size_t _arg1; | |
7857 | int _arg2; | |
7858 | wxString * _arg3; | |
7859 | wxMenu * _arg4; | |
7860 | wxString * _arg5 = (wxString *) &wxPyEmptyString; | |
7861 | PyObject * _argo0 = 0; | |
7862 | PyObject * _obj3 = 0; | |
7863 | PyObject * _argo4 = 0; | |
7864 | PyObject * _obj5 = 0; | |
7865 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
7866 | ||
7867 | self = self; | |
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
7869 | return NULL; | |
7870 | if (_argo0) { | |
7871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7874 | return NULL; | |
7875 | } | |
7876 | } | |
7877 | { | |
7878 | _arg3 = wxString_in_helper(_obj3); | |
7879 | if (_arg3 == NULL) | |
7880 | return NULL; | |
7881 | } | |
7882 | if (_argo4) { | |
7883 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7884 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
7885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7886 | return NULL; | |
7887 | } | |
7888 | } | |
7889 | if (_obj5) | |
7890 | { | |
7891 | _arg5 = wxString_in_helper(_obj5); | |
7892 | if (_arg5 == NULL) | |
7893 | return NULL; | |
7894 | } | |
7895 | { | |
7896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7897 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
7898 | ||
7899 | wxPyEndAllowThreads(__tstate); | |
7900 | if (PyErr_Occurred()) return NULL; | |
7901 | } Py_INCREF(Py_None); | |
7902 | _resultobj = Py_None; | |
7903 | { | |
7904 | if (_obj3) | |
7905 | delete _arg3; | |
7906 | } | |
7907 | { | |
7908 | if (_obj5) | |
7909 | delete _arg5; | |
7910 | } | |
7911 | return _resultobj; | |
7912 | } | |
7913 | ||
7914 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) | |
7915 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject * _resultobj; | |
7917 | bool _result; | |
7918 | wxMenu * _arg0; | |
7919 | size_t _arg1; | |
7920 | wxMenuItem * _arg2; | |
7921 | PyObject * _argo0 = 0; | |
7922 | PyObject * _argo2 = 0; | |
7923 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7924 | ||
7925 | self = self; | |
7926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) | |
7927 | return NULL; | |
7928 | if (_argo0) { | |
7929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
7932 | return NULL; | |
7933 | } | |
7934 | } | |
7935 | if (_argo2) { | |
7936 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7937 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
7939 | return NULL; | |
7940 | } | |
7941 | } | |
7942 | { | |
7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7944 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); | |
7945 | ||
7946 | wxPyEndAllowThreads(__tstate); | |
7947 | if (PyErr_Occurred()) return NULL; | |
7948 | } _resultobj = Py_BuildValue("i",_result); | |
7949 | return _resultobj; | |
7950 | } | |
7951 | ||
7952 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7953 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject * _resultobj; | |
7955 | wxMenu * _arg0; | |
7956 | int _arg1; | |
7957 | wxString * _arg2; | |
7958 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
7959 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; | |
7960 | PyObject * _argo0 = 0; | |
7961 | PyObject * _obj2 = 0; | |
7962 | PyObject * _obj3 = 0; | |
7963 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
7964 | ||
7965 | self = self; | |
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
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_Prepend. Expected _wxMenu_p."); | |
7972 | return NULL; | |
7973 | } | |
7974 | } | |
7975 | { | |
7976 | _arg2 = wxString_in_helper(_obj2); | |
7977 | if (_arg2 == NULL) | |
7978 | return NULL; | |
7979 | } | |
7980 | if (_obj3) | |
7981 | { | |
7982 | _arg3 = wxString_in_helper(_obj3); | |
7983 | if (_arg3 == NULL) | |
7984 | return NULL; | |
7985 | } | |
7986 | { | |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7989 | ||
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) return NULL; | |
7992 | } Py_INCREF(Py_None); | |
7993 | _resultobj = Py_None; | |
7994 | { | |
7995 | if (_obj2) | |
7996 | delete _arg2; | |
7997 | } | |
7998 | { | |
7999 | if (_obj3) | |
8000 | delete _arg3; | |
8001 | } | |
8002 | return _resultobj; | |
8003 | } | |
8004 | ||
8005 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) | |
8006 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8007 | PyObject * _resultobj; | |
8008 | wxMenu * _arg0; | |
8009 | PyObject * _argo0 = 0; | |
8010 | char *_kwnames[] = { "self", NULL }; | |
8011 | ||
8012 | self = self; | |
8013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) | |
8014 | return NULL; | |
8015 | if (_argo0) { | |
8016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
8019 | return NULL; | |
8020 | } | |
8021 | } | |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | wxMenu_PrependSeparator(_arg0); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) return NULL; | |
8028 | } Py_INCREF(Py_None); | |
8029 | _resultobj = Py_None; | |
8030 | return _resultobj; | |
8031 | } | |
8032 | ||
8033 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
8034 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8035 | PyObject * _resultobj; | |
8036 | wxMenu * _arg0; | |
8037 | int _arg1; | |
8038 | wxString * _arg2; | |
8039 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
8040 | PyObject * _argo0 = 0; | |
8041 | PyObject * _obj2 = 0; | |
8042 | PyObject * _obj3 = 0; | |
8043 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8044 | ||
8045 | self = self; | |
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8047 | return NULL; | |
8048 | if (_argo0) { | |
8049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8052 | return NULL; | |
8053 | } | |
8054 | } | |
8055 | { | |
8056 | _arg2 = wxString_in_helper(_obj2); | |
8057 | if (_arg2 == NULL) | |
8058 | return NULL; | |
8059 | } | |
8060 | if (_obj3) | |
8061 | { | |
8062 | _arg3 = wxString_in_helper(_obj3); | |
8063 | if (_arg3 == NULL) | |
8064 | return NULL; | |
8065 | } | |
8066 | { | |
8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8068 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
8069 | ||
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) return NULL; | |
8072 | } Py_INCREF(Py_None); | |
8073 | _resultobj = Py_None; | |
8074 | { | |
8075 | if (_obj2) | |
8076 | delete _arg2; | |
8077 | } | |
8078 | { | |
8079 | if (_obj3) | |
8080 | delete _arg3; | |
8081 | } | |
8082 | return _resultobj; | |
8083 | } | |
8084 | ||
8085 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
8086 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8087 | PyObject * _resultobj; | |
8088 | wxMenu * _arg0; | |
8089 | int _arg1; | |
8090 | wxString * _arg2; | |
8091 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
8092 | PyObject * _argo0 = 0; | |
8093 | PyObject * _obj2 = 0; | |
8094 | PyObject * _obj3 = 0; | |
8095 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8096 | ||
8097 | self = self; | |
8098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8099 | return NULL; | |
8100 | if (_argo0) { | |
8101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); | |
8104 | return NULL; | |
8105 | } | |
8106 | } | |
8107 | { | |
8108 | _arg2 = wxString_in_helper(_obj2); | |
8109 | if (_arg2 == NULL) | |
8110 | return NULL; | |
8111 | } | |
8112 | if (_obj3) | |
8113 | { | |
8114 | _arg3 = wxString_in_helper(_obj3); | |
8115 | if (_arg3 == NULL) | |
8116 | return NULL; | |
8117 | } | |
8118 | { | |
8119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8120 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
8121 | ||
8122 | wxPyEndAllowThreads(__tstate); | |
8123 | if (PyErr_Occurred()) return NULL; | |
8124 | } Py_INCREF(Py_None); | |
8125 | _resultobj = Py_None; | |
8126 | { | |
8127 | if (_obj2) | |
8128 | delete _arg2; | |
8129 | } | |
8130 | { | |
8131 | if (_obj3) | |
8132 | delete _arg3; | |
8133 | } | |
8134 | return _resultobj; | |
8135 | } | |
8136 | ||
8137 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8138 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8139 | PyObject * _resultobj; | |
8140 | wxMenu * _arg0; | |
8141 | int _arg1; | |
8142 | wxString * _arg2; | |
8143 | wxMenu * _arg3; | |
8144 | wxString * _arg4 = (wxString *) &wxPyEmptyString; | |
8145 | PyObject * _argo0 = 0; | |
8146 | PyObject * _obj2 = 0; | |
8147 | PyObject * _argo3 = 0; | |
8148 | PyObject * _obj4 = 0; | |
8149 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; | |
8150 | ||
8151 | self = self; | |
8152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
8153 | return NULL; | |
8154 | if (_argo0) { | |
8155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); | |
8158 | return NULL; | |
8159 | } | |
8160 | } | |
8161 | { | |
8162 | _arg2 = wxString_in_helper(_obj2); | |
8163 | if (_arg2 == NULL) | |
8164 | return NULL; | |
8165 | } | |
8166 | if (_argo3) { | |
8167 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8168 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); | |
8170 | return NULL; | |
8171 | } | |
8172 | } | |
8173 | if (_obj4) | |
8174 | { | |
8175 | _arg4 = wxString_in_helper(_obj4); | |
8176 | if (_arg4 == NULL) | |
8177 | return NULL; | |
8178 | } | |
8179 | { | |
8180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8181 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
8182 | ||
8183 | wxPyEndAllowThreads(__tstate); | |
8184 | if (PyErr_Occurred()) return NULL; | |
8185 | } Py_INCREF(Py_None); | |
8186 | _resultobj = Py_None; | |
8187 | { | |
8188 | if (_obj2) | |
8189 | delete _arg2; | |
8190 | } | |
8191 | { | |
8192 | if (_obj4) | |
8193 | delete _arg4; | |
8194 | } | |
8195 | return _resultobj; | |
8196 | } | |
8197 | ||
8198 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) | |
8199 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8200 | PyObject * _resultobj; | |
8201 | wxMenu * _arg0; | |
8202 | wxMenuItem * _arg1; | |
8203 | PyObject * _argo0 = 0; | |
8204 | PyObject * _argo1 = 0; | |
8205 | char *_kwnames[] = { "self","item", NULL }; | |
8206 | ||
8207 | self = self; | |
8208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) | |
8209 | return NULL; | |
8210 | if (_argo0) { | |
8211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); | |
8214 | return NULL; | |
8215 | } | |
8216 | } | |
8217 | if (_argo1) { | |
8218 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); | |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | { | |
8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8226 | wxMenu_PrependItem(_arg0,_arg1); | |
8227 | ||
8228 | wxPyEndAllowThreads(__tstate); | |
8229 | if (PyErr_Occurred()) return NULL; | |
8230 | } Py_INCREF(Py_None); | |
8231 | _resultobj = Py_None; | |
8232 | return _resultobj; | |
8233 | } | |
8234 | ||
8235 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
8236 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8237 | PyObject * _resultobj; | |
8238 | wxMenu * _arg0; | |
8239 | PyObject * _argo0 = 0; | |
8240 | char *_kwnames[] = { "self", NULL }; | |
8241 | ||
8242 | self = self; | |
8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) | |
8244 | return NULL; | |
8245 | if (_argo0) { | |
8246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); | |
8249 | return NULL; | |
8250 | } | |
8251 | } | |
8252 | { | |
8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8254 | wxMenu_Break(_arg0); | |
8255 | ||
8256 | wxPyEndAllowThreads(__tstate); | |
8257 | if (PyErr_Occurred()) return NULL; | |
8258 | } Py_INCREF(Py_None); | |
8259 | _resultobj = Py_None; | |
8260 | return _resultobj; | |
8261 | } | |
8262 | ||
8263 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
8264 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8265 | PyObject * _resultobj; | |
8266 | wxMenu * _arg0; | |
8267 | int _arg1; | |
8268 | bool _arg2; | |
8269 | PyObject * _argo0 = 0; | |
8270 | int tempbool2; | |
8271 | char *_kwnames[] = { "self","id","flag", NULL }; | |
8272 | ||
8273 | self = self; | |
8274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8275 | return NULL; | |
8276 | if (_argo0) { | |
8277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); | |
8280 | return NULL; | |
8281 | } | |
8282 | } | |
8283 | _arg2 = (bool ) tempbool2; | |
8284 | { | |
8285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8286 | wxMenu_Check(_arg0,_arg1,_arg2); | |
8287 | ||
8288 | wxPyEndAllowThreads(__tstate); | |
8289 | if (PyErr_Occurred()) return NULL; | |
8290 | } Py_INCREF(Py_None); | |
8291 | _resultobj = Py_None; | |
8292 | return _resultobj; | |
8293 | } | |
8294 | ||
8295 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
8296 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8297 | PyObject * _resultobj; | |
8298 | bool _result; | |
8299 | wxMenu * _arg0; | |
8300 | int _arg1; | |
8301 | PyObject * _argo0 = 0; | |
8302 | char *_kwnames[] = { "self","id", NULL }; | |
8303 | ||
8304 | self = self; | |
8305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8306 | return NULL; | |
8307 | if (_argo0) { | |
8308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8311 | return NULL; | |
8312 | } | |
8313 | } | |
8314 | { | |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) return NULL; | |
8320 | } _resultobj = Py_BuildValue("i",_result); | |
8321 | return _resultobj; | |
8322 | } | |
8323 | ||
8324 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
8325 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8326 | PyObject * _resultobj; | |
8327 | wxMenu * _arg0; | |
8328 | int _arg1; | |
8329 | bool _arg2; | |
8330 | PyObject * _argo0 = 0; | |
8331 | int tempbool2; | |
8332 | char *_kwnames[] = { "self","id","enable", NULL }; | |
8333 | ||
8334 | self = self; | |
8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
8336 | return NULL; | |
8337 | if (_argo0) { | |
8338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); | |
8341 | return NULL; | |
8342 | } | |
8343 | } | |
8344 | _arg2 = (bool ) tempbool2; | |
8345 | { | |
8346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8347 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
8348 | ||
8349 | wxPyEndAllowThreads(__tstate); | |
8350 | if (PyErr_Occurred()) return NULL; | |
8351 | } Py_INCREF(Py_None); | |
8352 | _resultobj = Py_None; | |
8353 | return _resultobj; | |
8354 | } | |
8355 | ||
8356 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
8357 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8358 | PyObject * _resultobj; | |
8359 | bool _result; | |
8360 | wxMenu * _arg0; | |
8361 | int _arg1; | |
8362 | PyObject * _argo0 = 0; | |
8363 | char *_kwnames[] = { "self","id", NULL }; | |
8364 | ||
8365 | self = self; | |
8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8367 | return NULL; | |
8368 | if (_argo0) { | |
8369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8372 | return NULL; | |
8373 | } | |
8374 | } | |
8375 | { | |
8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8377 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
8378 | ||
8379 | wxPyEndAllowThreads(__tstate); | |
8380 | if (PyErr_Occurred()) return NULL; | |
8381 | } _resultobj = Py_BuildValue("i",_result); | |
8382 | return _resultobj; | |
8383 | } | |
8384 | ||
8385 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8386 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8387 | PyObject * _resultobj; | |
8388 | int _result; | |
8389 | wxMenu * _arg0; | |
8390 | wxString * _arg1; | |
8391 | PyObject * _argo0 = 0; | |
8392 | PyObject * _obj1 = 0; | |
8393 | char *_kwnames[] = { "self","itemString", NULL }; | |
8394 | ||
8395 | self = self; | |
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) | |
8397 | return NULL; | |
8398 | if (_argo0) { | |
8399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); | |
8402 | return NULL; | |
8403 | } | |
8404 | } | |
8405 | { | |
8406 | _arg1 = wxString_in_helper(_obj1); | |
8407 | if (_arg1 == NULL) | |
8408 | return NULL; | |
8409 | } | |
8410 | { | |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8412 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
8413 | ||
8414 | wxPyEndAllowThreads(__tstate); | |
8415 | if (PyErr_Occurred()) return NULL; | |
8416 | } _resultobj = Py_BuildValue("i",_result); | |
8417 | { | |
8418 | if (_obj1) | |
8419 | delete _arg1; | |
8420 | } | |
8421 | return _resultobj; | |
8422 | } | |
8423 | ||
8424 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
8425 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8426 | PyObject * _resultobj; | |
8427 | wxMenuItem * _result; | |
8428 | wxMenu * _arg0; | |
8429 | int _arg1; | |
8430 | PyObject * _argo0 = 0; | |
8431 | char *_kwnames[] = { "self","id", NULL }; | |
8432 | ||
8433 | self = self; | |
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8435 | return NULL; | |
8436 | if (_argo0) { | |
8437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8440 | return NULL; | |
8441 | } | |
8442 | } | |
8443 | { | |
8444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8445 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); | |
8446 | ||
8447 | wxPyEndAllowThreads(__tstate); | |
8448 | if (PyErr_Occurred()) return NULL; | |
8449 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8450 | return _resultobj; | |
8451 | } | |
8452 | ||
8453 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
8454 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8455 | PyObject * _resultobj; | |
8456 | wxString * _result; | |
8457 | wxMenu * _arg0; | |
8458 | PyObject * _argo0 = 0; | |
8459 | char *_kwnames[] = { "self", NULL }; | |
8460 | ||
8461 | self = self; | |
8462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) | |
8463 | return NULL; | |
8464 | if (_argo0) { | |
8465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); | |
8468 | return NULL; | |
8469 | } | |
8470 | } | |
8471 | { | |
8472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8473 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
8474 | ||
8475 | wxPyEndAllowThreads(__tstate); | |
8476 | if (PyErr_Occurred()) return NULL; | |
8477 | }{ | |
8478 | #if wxUSE_UNICODE | |
8479 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8480 | #else | |
8481 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8482 | #endif | |
8483 | } | |
8484 | { | |
8485 | delete _result; | |
8486 | } | |
8487 | return _resultobj; | |
8488 | } | |
8489 | ||
8490 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
8491 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject * _resultobj; | |
8493 | wxMenu * _arg0; | |
8494 | wxString * _arg1; | |
8495 | PyObject * _argo0 = 0; | |
8496 | PyObject * _obj1 = 0; | |
8497 | char *_kwnames[] = { "self","title", NULL }; | |
8498 | ||
8499 | self = self; | |
8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) | |
8501 | return NULL; | |
8502 | if (_argo0) { | |
8503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); | |
8506 | return NULL; | |
8507 | } | |
8508 | } | |
8509 | { | |
8510 | _arg1 = wxString_in_helper(_obj1); | |
8511 | if (_arg1 == NULL) | |
8512 | return NULL; | |
8513 | } | |
8514 | { | |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8516 | wxMenu_SetTitle(_arg0,*_arg1); | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
8519 | if (PyErr_Occurred()) return NULL; | |
8520 | } Py_INCREF(Py_None); | |
8521 | _resultobj = Py_None; | |
8522 | { | |
8523 | if (_obj1) | |
8524 | delete _arg1; | |
8525 | } | |
8526 | return _resultobj; | |
8527 | } | |
8528 | ||
8529 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
8530 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8531 | PyObject * _resultobj; | |
8532 | wxString * _result; | |
8533 | wxMenu * _arg0; | |
8534 | int _arg1; | |
8535 | PyObject * _argo0 = 0; | |
8536 | char *_kwnames[] = { "self","id", NULL }; | |
8537 | ||
8538 | self = self; | |
8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) | |
8540 | return NULL; | |
8541 | if (_argo0) { | |
8542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); | |
8545 | return NULL; | |
8546 | } | |
8547 | } | |
8548 | { | |
8549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8550 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); | |
8551 | ||
8552 | wxPyEndAllowThreads(__tstate); | |
8553 | if (PyErr_Occurred()) return NULL; | |
8554 | }{ | |
8555 | #if wxUSE_UNICODE | |
8556 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8557 | #else | |
8558 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8559 | #endif | |
8560 | } | |
8561 | { | |
8562 | delete _result; | |
8563 | } | |
8564 | return _resultobj; | |
8565 | } | |
8566 | ||
8567 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
8568 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8569 | PyObject * _resultobj; | |
8570 | wxMenu * _arg0; | |
8571 | int _arg1; | |
8572 | wxString * _arg2; | |
8573 | PyObject * _argo0 = 0; | |
8574 | PyObject * _obj2 = 0; | |
8575 | char *_kwnames[] = { "self","id","label", NULL }; | |
8576 | ||
8577 | self = self; | |
8578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8579 | return NULL; | |
8580 | if (_argo0) { | |
8581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); | |
8584 | return NULL; | |
8585 | } | |
8586 | } | |
8587 | { | |
8588 | _arg2 = wxString_in_helper(_obj2); | |
8589 | if (_arg2 == NULL) | |
8590 | return NULL; | |
8591 | } | |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) return NULL; | |
8598 | } Py_INCREF(Py_None); | |
8599 | _resultobj = Py_None; | |
8600 | { | |
8601 | if (_obj2) | |
8602 | delete _arg2; | |
8603 | } | |
8604 | return _resultobj; | |
8605 | } | |
8606 | ||
8607 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
8608 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8609 | PyObject * _resultobj; | |
8610 | wxString * _result; | |
8611 | wxMenu * _arg0; | |
8612 | int _arg1; | |
8613 | PyObject * _argo0 = 0; | |
8614 | char *_kwnames[] = { "self","id", NULL }; | |
8615 | ||
8616 | self = self; | |
8617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
8618 | return NULL; | |
8619 | if (_argo0) { | |
8620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); | |
8623 | return NULL; | |
8624 | } | |
8625 | } | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); | |
8629 | ||
8630 | wxPyEndAllowThreads(__tstate); | |
8631 | if (PyErr_Occurred()) return NULL; | |
8632 | }{ | |
8633 | #if wxUSE_UNICODE | |
8634 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8635 | #else | |
8636 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8637 | #endif | |
8638 | } | |
8639 | { | |
8640 | delete _result; | |
8641 | } | |
8642 | return _resultobj; | |
8643 | } | |
8644 | ||
8645 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
8646 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8647 | PyObject * _resultobj; | |
8648 | wxMenu * _arg0; | |
8649 | int _arg1; | |
8650 | wxString * _arg2; | |
8651 | PyObject * _argo0 = 0; | |
8652 | PyObject * _obj2 = 0; | |
8653 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
8654 | ||
8655 | self = self; | |
8656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8657 | return NULL; | |
8658 | if (_argo0) { | |
8659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); | |
8662 | return NULL; | |
8663 | } | |
8664 | } | |
8665 | { | |
8666 | _arg2 = wxString_in_helper(_obj2); | |
8667 | if (_arg2 == NULL) | |
8668 | return NULL; | |
8669 | } | |
8670 | { | |
8671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8672 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
8673 | ||
8674 | wxPyEndAllowThreads(__tstate); | |
8675 | if (PyErr_Occurred()) return NULL; | |
8676 | } Py_INCREF(Py_None); | |
8677 | _resultobj = Py_None; | |
8678 | { | |
8679 | if (_obj2) | |
8680 | delete _arg2; | |
8681 | } | |
8682 | return _resultobj; | |
8683 | } | |
8684 | ||
8685 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) | |
8686 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8687 | PyObject * _resultobj; | |
8688 | wxMenu * _arg0; | |
8689 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; | |
8690 | PyObject * _argo0 = 0; | |
8691 | PyObject * _argo1 = 0; | |
8692 | char *_kwnames[] = { "self","source", NULL }; | |
8693 | ||
8694 | self = self; | |
8695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) | |
8696 | return NULL; | |
8697 | if (_argo0) { | |
8698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); | |
8701 | return NULL; | |
8702 | } | |
8703 | } | |
8704 | if (_argo1) { | |
8705 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8706 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8708 | return NULL; | |
8709 | } | |
8710 | } | |
8711 | { | |
8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8713 | wxMenu_UpdateUI(_arg0,_arg1); | |
8714 | ||
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) return NULL; | |
8717 | } Py_INCREF(Py_None); | |
8718 | _resultobj = Py_None; | |
8719 | return _resultobj; | |
8720 | } | |
8721 | ||
8722 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8723 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8724 | PyObject * _resultobj; | |
8725 | bool _result; | |
8726 | wxMenu * _arg0; | |
8727 | int _arg1; | |
8728 | PyObject * _argo0 = 0; | |
8729 | char *_kwnames[] = { "self","id", NULL }; | |
8730 | ||
8731 | self = self; | |
8732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) | |
8733 | return NULL; | |
8734 | if (_argo0) { | |
8735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); | |
8738 | return NULL; | |
8739 | } | |
8740 | } | |
8741 | { | |
8742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8743 | _result = (bool )wxMenu_Delete(_arg0,_arg1); | |
8744 | ||
8745 | wxPyEndAllowThreads(__tstate); | |
8746 | if (PyErr_Occurred()) return NULL; | |
8747 | } _resultobj = Py_BuildValue("i",_result); | |
8748 | return _resultobj; | |
8749 | } | |
8750 | ||
8751 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8752 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8753 | PyObject * _resultobj; | |
8754 | bool _result; | |
8755 | wxMenu * _arg0; | |
8756 | wxMenuItem * _arg1; | |
8757 | PyObject * _argo0 = 0; | |
8758 | PyObject * _argo1 = 0; | |
8759 | char *_kwnames[] = { "self","item", NULL }; | |
8760 | ||
8761 | self = self; | |
8762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) | |
8763 | return NULL; | |
8764 | if (_argo0) { | |
8765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); | |
8768 | return NULL; | |
8769 | } | |
8770 | } | |
8771 | if (_argo1) { | |
8772 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8773 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8775 | return NULL; | |
8776 | } | |
8777 | } | |
8778 | { | |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) return NULL; | |
8784 | } _resultobj = Py_BuildValue("i",_result); | |
8785 | return _resultobj; | |
8786 | } | |
8787 | ||
8788 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8789 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8790 | PyObject * _resultobj; | |
8791 | wxMenuItem * _result; | |
8792 | wxMenu * _arg0; | |
8793 | int _arg1; | |
8794 | PyObject * _argo0 = 0; | |
8795 | char *_kwnames[] = { "self","id", NULL }; | |
8796 | ||
8797 | self = self; | |
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) | |
8799 | return NULL; | |
8800 | if (_argo0) { | |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); | |
8804 | return NULL; | |
8805 | } | |
8806 | } | |
8807 | { | |
8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8809 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); | |
8810 | ||
8811 | wxPyEndAllowThreads(__tstate); | |
8812 | if (PyErr_Occurred()) return NULL; | |
8813 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8814 | return _resultobj; | |
8815 | } | |
8816 | ||
8817 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
8818 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8819 | PyObject * _resultobj; | |
8820 | wxMenuItem * _result; | |
8821 | wxMenu * _arg0; | |
8822 | wxMenuItem * _arg1; | |
8823 | PyObject * _argo0 = 0; | |
8824 | PyObject * _argo1 = 0; | |
8825 | char *_kwnames[] = { "self","item", NULL }; | |
8826 | ||
8827 | self = self; | |
8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) | |
8829 | return NULL; | |
8830 | if (_argo0) { | |
8831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
8834 | return NULL; | |
8835 | } | |
8836 | } | |
8837 | if (_argo1) { | |
8838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8841 | return NULL; | |
8842 | } | |
8843 | } | |
8844 | { | |
8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8846 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); | |
8847 | ||
8848 | wxPyEndAllowThreads(__tstate); | |
8849 | if (PyErr_Occurred()) return NULL; | |
8850 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8851 | return _resultobj; | |
8852 | } | |
8853 | ||
8854 | static void wxMenu_Destroy(wxMenu *self) { delete self; } | |
8855 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject * _resultobj; | |
8857 | wxMenu * _arg0; | |
8858 | PyObject * _argo0 = 0; | |
8859 | char *_kwnames[] = { "self", NULL }; | |
8860 | ||
8861 | self = self; | |
8862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
8863 | return NULL; | |
8864 | if (_argo0) { | |
8865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8868 | return NULL; | |
8869 | } | |
8870 | } | |
8871 | { | |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | wxMenu_Destroy(_arg0); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) return NULL; | |
8877 | } Py_INCREF(Py_None); | |
8878 | _resultobj = Py_None; | |
8879 | return _resultobj; | |
8880 | } | |
8881 | ||
8882 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
8883 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8884 | PyObject * _resultobj; | |
8885 | bool _result; | |
8886 | wxMenu * _arg0; | |
8887 | int _arg1; | |
8888 | PyObject * _argo0 = 0; | |
8889 | char *_kwnames[] = { "self","id", NULL }; | |
8890 | ||
8891 | self = self; | |
8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) | |
8893 | return NULL; | |
8894 | if (_argo0) { | |
8895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8898 | return NULL; | |
8899 | } | |
8900 | } | |
8901 | { | |
8902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8903 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); | |
8904 | ||
8905 | wxPyEndAllowThreads(__tstate); | |
8906 | if (PyErr_Occurred()) return NULL; | |
8907 | } _resultobj = Py_BuildValue("i",_result); | |
8908 | return _resultobj; | |
8909 | } | |
8910 | ||
8911 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) | |
8912 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject * _resultobj; | |
8914 | bool _result; | |
8915 | wxMenu * _arg0; | |
8916 | wxMenuItem * _arg1; | |
8917 | PyObject * _argo0 = 0; | |
8918 | PyObject * _argo1 = 0; | |
8919 | char *_kwnames[] = { "self","item", NULL }; | |
8920 | ||
8921 | self = self; | |
8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) | |
8923 | return NULL; | |
8924 | if (_argo0) { | |
8925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8928 | return NULL; | |
8929 | } | |
8930 | } | |
8931 | if (_argo1) { | |
8932 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8933 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8935 | return NULL; | |
8936 | } | |
8937 | } | |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) return NULL; | |
8944 | } _resultobj = Py_BuildValue("i",_result); | |
8945 | return _resultobj; | |
8946 | } | |
8947 | ||
8948 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) | |
8949 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8950 | PyObject * _resultobj; | |
8951 | size_t _result; | |
8952 | wxMenu * _arg0; | |
8953 | PyObject * _argo0 = 0; | |
8954 | char *_kwnames[] = { "self", NULL }; | |
8955 | ||
8956 | self = self; | |
8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) | |
8958 | return NULL; | |
8959 | if (_argo0) { | |
8960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8963 | return NULL; | |
8964 | } | |
8965 | } | |
8966 | { | |
8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8968 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); | |
8969 | ||
8970 | wxPyEndAllowThreads(__tstate); | |
8971 | if (PyErr_Occurred()) return NULL; | |
8972 | } _resultobj = Py_BuildValue("i",_result); | |
8973 | return _resultobj; | |
8974 | } | |
8975 | ||
8976 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { | |
8977 | wxMenuItemList& list = self->GetMenuItems(); | |
8978 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8979 | } | |
8980 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8981 | PyObject * _resultobj; | |
8982 | PyObject * _result; | |
8983 | wxMenu * _arg0; | |
8984 | PyObject * _argo0 = 0; | |
8985 | char *_kwnames[] = { "self", NULL }; | |
8986 | ||
8987 | self = self; | |
8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) | |
8989 | return NULL; | |
8990 | if (_argo0) { | |
8991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8994 | return NULL; | |
8995 | } | |
8996 | } | |
8997 | { | |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); | |
9000 | ||
9001 | wxPyEndAllowThreads(__tstate); | |
9002 | if (PyErr_Occurred()) return NULL; | |
9003 | }{ | |
9004 | _resultobj = _result; | |
9005 | } | |
9006 | return _resultobj; | |
9007 | } | |
9008 | ||
9009 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) | |
9010 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9011 | PyObject * _resultobj; | |
9012 | wxMenu * _arg0; | |
9013 | wxEvtHandler * _arg1; | |
9014 | PyObject * _argo0 = 0; | |
9015 | PyObject * _argo1 = 0; | |
9016 | char *_kwnames[] = { "self","handler", NULL }; | |
9017 | ||
9018 | self = self; | |
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
9020 | return NULL; | |
9021 | if (_argo0) { | |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
9025 | return NULL; | |
9026 | } | |
9027 | } | |
9028 | if (_argo1) { | |
9029 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9030 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
9032 | return NULL; | |
9033 | } | |
9034 | } | |
9035 | { | |
9036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9037 | wxMenu_SetEventHandler(_arg0,_arg1); | |
9038 | ||
9039 | wxPyEndAllowThreads(__tstate); | |
9040 | if (PyErr_Occurred()) return NULL; | |
9041 | } Py_INCREF(Py_None); | |
9042 | _resultobj = Py_None; | |
9043 | return _resultobj; | |
9044 | } | |
9045 | ||
9046 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) | |
9047 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9048 | PyObject * _resultobj; | |
9049 | wxEvtHandler * _result; | |
9050 | wxMenu * _arg0; | |
9051 | PyObject * _argo0 = 0; | |
9052 | char *_kwnames[] = { "self", NULL }; | |
9053 | ||
9054 | self = self; | |
9055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) | |
9056 | return NULL; | |
9057 | if (_argo0) { | |
9058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
9061 | return NULL; | |
9062 | } | |
9063 | } | |
9064 | { | |
9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9066 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); | |
9067 | ||
9068 | wxPyEndAllowThreads(__tstate); | |
9069 | if (PyErr_Occurred()) return NULL; | |
9070 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9071 | return _resultobj; | |
9072 | } | |
9073 | ||
9074 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) | |
9075 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9076 | PyObject * _resultobj; | |
9077 | wxMenu * _arg0; | |
9078 | wxWindow * _arg1; | |
9079 | PyObject * _argo0 = 0; | |
9080 | PyObject * _argo1 = 0; | |
9081 | char *_kwnames[] = { "self","win", NULL }; | |
9082 | ||
9083 | self = self; | |
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) | |
9085 | return NULL; | |
9086 | if (_argo0) { | |
9087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
9090 | return NULL; | |
9091 | } | |
9092 | } | |
9093 | if (_argo1) { | |
9094 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9095 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
9097 | return NULL; | |
9098 | } | |
9099 | } | |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | wxMenu_SetInvokingWindow(_arg0,_arg1); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) return NULL; | |
9106 | } Py_INCREF(Py_None); | |
9107 | _resultobj = Py_None; | |
9108 | return _resultobj; | |
9109 | } | |
9110 | ||
9111 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) | |
9112 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9113 | PyObject * _resultobj; | |
9114 | wxWindow * _result; | |
9115 | wxMenu * _arg0; | |
9116 | PyObject * _argo0 = 0; | |
9117 | char *_kwnames[] = { "self", NULL }; | |
9118 | ||
9119 | self = self; | |
9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) | |
9121 | return NULL; | |
9122 | if (_argo0) { | |
9123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
9126 | return NULL; | |
9127 | } | |
9128 | } | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) return NULL; | |
9135 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9136 | return _resultobj; | |
9137 | } | |
9138 | ||
9139 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
9140 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9141 | PyObject * _resultobj; | |
9142 | long _result; | |
9143 | wxMenu * _arg0; | |
9144 | PyObject * _argo0 = 0; | |
9145 | char *_kwnames[] = { "self", NULL }; | |
9146 | ||
9147 | self = self; | |
9148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) | |
9149 | return NULL; | |
9150 | if (_argo0) { | |
9151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
9154 | return NULL; | |
9155 | } | |
9156 | } | |
9157 | { | |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | _result = (long )wxMenu_GetStyle(_arg0); | |
9160 | ||
9161 | wxPyEndAllowThreads(__tstate); | |
9162 | if (PyErr_Occurred()) return NULL; | |
9163 | } _resultobj = Py_BuildValue("l",_result); | |
9164 | return _resultobj; | |
9165 | } | |
9166 | ||
9167 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) | |
9168 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9169 | PyObject * _resultobj; | |
9170 | bool _result; | |
9171 | wxMenu * _arg0; | |
9172 | PyObject * _argo0 = 0; | |
9173 | char *_kwnames[] = { "self", NULL }; | |
9174 | ||
9175 | self = self; | |
9176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) | |
9177 | return NULL; | |
9178 | if (_argo0) { | |
9179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
9182 | return NULL; | |
9183 | } | |
9184 | } | |
9185 | { | |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | _result = (bool )wxMenu_IsAttached(_arg0); | |
9188 | ||
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) return NULL; | |
9191 | } _resultobj = Py_BuildValue("i",_result); | |
9192 | return _resultobj; | |
9193 | } | |
9194 | ||
9195 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) | |
9196 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9197 | PyObject * _resultobj; | |
9198 | wxMenu * _arg0; | |
9199 | wxMenu * _arg1; | |
9200 | PyObject * _argo0 = 0; | |
9201 | PyObject * _argo1 = 0; | |
9202 | char *_kwnames[] = { "self","parent", NULL }; | |
9203 | ||
9204 | self = self; | |
9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) | |
9206 | return NULL; | |
9207 | if (_argo0) { | |
9208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
9211 | return NULL; | |
9212 | } | |
9213 | } | |
9214 | if (_argo1) { | |
9215 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9216 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
9218 | return NULL; | |
9219 | } | |
9220 | } | |
9221 | { | |
9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9223 | wxMenu_SetParent(_arg0,_arg1); | |
9224 | ||
9225 | wxPyEndAllowThreads(__tstate); | |
9226 | if (PyErr_Occurred()) return NULL; | |
9227 | } Py_INCREF(Py_None); | |
9228 | _resultobj = Py_None; | |
9229 | return _resultobj; | |
9230 | } | |
9231 | ||
9232 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) | |
9233 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject * _resultobj; | |
9235 | wxMenu * _result; | |
9236 | wxMenu * _arg0; | |
9237 | PyObject * _argo0 = 0; | |
9238 | char *_kwnames[] = { "self", NULL }; | |
9239 | ||
9240 | self = self; | |
9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) | |
9242 | return NULL; | |
9243 | if (_argo0) { | |
9244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
9247 | return NULL; | |
9248 | } | |
9249 | } | |
9250 | { | |
9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9252 | _result = (wxMenu *)wxMenu_GetParent(_arg0); | |
9253 | ||
9254 | wxPyEndAllowThreads(__tstate); | |
9255 | if (PyErr_Occurred()) return NULL; | |
9256 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9257 | return _resultobj; | |
9258 | } | |
9259 | ||
9260 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9261 | wxMenuBar *src; | |
9262 | wxWindow *dest; | |
9263 | src = (wxMenuBar *) ptr; | |
9264 | dest = (wxWindow *) src; | |
9265 | return (void *) dest; | |
9266 | } | |
9267 | ||
9268 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9269 | wxMenuBar *src; | |
9270 | wxEvtHandler *dest; | |
9271 | src = (wxMenuBar *) ptr; | |
9272 | dest = (wxEvtHandler *) src; | |
9273 | return (void *) dest; | |
9274 | } | |
9275 | ||
9276 | static void *SwigwxMenuBarTowxObject(void *ptr) { | |
9277 | wxMenuBar *src; | |
9278 | wxObject *dest; | |
9279 | src = (wxMenuBar *) ptr; | |
9280 | dest = (wxObject *) src; | |
9281 | return (void *) dest; | |
9282 | } | |
9283 | ||
9284 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) | |
9285 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9286 | PyObject * _resultobj; | |
9287 | wxMenuBar * _result; | |
9288 | long _arg0 = (long ) 0; | |
9289 | char *_kwnames[] = { "style", NULL }; | |
9290 | char _ptemp[128]; | |
9291 | ||
9292 | self = self; | |
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) | |
9294 | return NULL; | |
9295 | { | |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); | |
9298 | ||
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) return NULL; | |
9301 | } if (_result) { | |
9302 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9303 | _resultobj = Py_BuildValue("s",_ptemp); | |
9304 | } else { | |
9305 | Py_INCREF(Py_None); | |
9306 | _resultobj = Py_None; | |
9307 | } | |
9308 | return _resultobj; | |
9309 | } | |
9310 | ||
9311 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
9312 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9313 | PyObject * _resultobj; | |
9314 | bool _result; | |
9315 | wxMenuBar * _arg0; | |
9316 | wxMenu * _arg1; | |
9317 | wxString * _arg2; | |
9318 | PyObject * _argo0 = 0; | |
9319 | PyObject * _argo1 = 0; | |
9320 | PyObject * _obj2 = 0; | |
9321 | char *_kwnames[] = { "self","menu","title", NULL }; | |
9322 | ||
9323 | self = self; | |
9324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9325 | return NULL; | |
9326 | if (_argo0) { | |
9327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); | |
9330 | return NULL; | |
9331 | } | |
9332 | } | |
9333 | if (_argo1) { | |
9334 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9335 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
9337 | return NULL; | |
9338 | } | |
9339 | } | |
9340 | { | |
9341 | _arg2 = wxString_in_helper(_obj2); | |
9342 | if (_arg2 == NULL) | |
9343 | return NULL; | |
9344 | } | |
9345 | { | |
9346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9347 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); | |
9348 | ||
9349 | wxPyEndAllowThreads(__tstate); | |
9350 | if (PyErr_Occurred()) return NULL; | |
9351 | } _resultobj = Py_BuildValue("i",_result); | |
9352 | { | |
9353 | if (_obj2) | |
9354 | delete _arg2; | |
9355 | } | |
9356 | return _resultobj; | |
9357 | } | |
9358 | ||
9359 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) | |
9360 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject * _resultobj; | |
9362 | bool _result; | |
9363 | wxMenuBar * _arg0; | |
9364 | size_t _arg1; | |
9365 | wxMenu * _arg2; | |
9366 | wxString * _arg3; | |
9367 | PyObject * _argo0 = 0; | |
9368 | PyObject * _argo2 = 0; | |
9369 | PyObject * _obj3 = 0; | |
9370 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
9371 | ||
9372 | self = self; | |
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9374 | return NULL; | |
9375 | if (_argo0) { | |
9376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); | |
9379 | return NULL; | |
9380 | } | |
9381 | } | |
9382 | if (_argo2) { | |
9383 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9384 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
9386 | return NULL; | |
9387 | } | |
9388 | } | |
9389 | { | |
9390 | _arg3 = wxString_in_helper(_obj3); | |
9391 | if (_arg3 == NULL) | |
9392 | return NULL; | |
9393 | } | |
9394 | { | |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) return NULL; | |
9400 | } _resultobj = Py_BuildValue("i",_result); | |
9401 | { | |
9402 | if (_obj3) | |
9403 | delete _arg3; | |
9404 | } | |
9405 | return _resultobj; | |
9406 | } | |
9407 | ||
9408 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) | |
9409 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9410 | PyObject * _resultobj; | |
9411 | size_t _result; | |
9412 | wxMenuBar * _arg0; | |
9413 | PyObject * _argo0 = 0; | |
9414 | char *_kwnames[] = { "self", NULL }; | |
9415 | ||
9416 | self = self; | |
9417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) | |
9418 | return NULL; | |
9419 | if (_argo0) { | |
9420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); | |
9423 | return NULL; | |
9424 | } | |
9425 | } | |
9426 | { | |
9427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9428 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); | |
9429 | ||
9430 | wxPyEndAllowThreads(__tstate); | |
9431 | if (PyErr_Occurred()) return NULL; | |
9432 | } _resultobj = Py_BuildValue("i",_result); | |
9433 | return _resultobj; | |
9434 | } | |
9435 | ||
9436 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
9437 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9438 | PyObject * _resultobj; | |
9439 | wxMenu * _result; | |
9440 | wxMenuBar * _arg0; | |
9441 | size_t _arg1; | |
9442 | PyObject * _argo0 = 0; | |
9443 | char *_kwnames[] = { "self","pos", NULL }; | |
9444 | ||
9445 | self = self; | |
9446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) | |
9447 | return NULL; | |
9448 | if (_argo0) { | |
9449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); | |
9452 | return NULL; | |
9453 | } | |
9454 | } | |
9455 | { | |
9456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9457 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); | |
9458 | ||
9459 | wxPyEndAllowThreads(__tstate); | |
9460 | if (PyErr_Occurred()) return NULL; | |
9461 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9462 | return _resultobj; | |
9463 | } | |
9464 | ||
9465 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) | |
9466 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9467 | PyObject * _resultobj; | |
9468 | wxMenu * _result; | |
9469 | wxMenuBar * _arg0; | |
9470 | size_t _arg1; | |
9471 | wxMenu * _arg2; | |
9472 | wxString * _arg3; | |
9473 | PyObject * _argo0 = 0; | |
9474 | PyObject * _argo2 = 0; | |
9475 | PyObject * _obj3 = 0; | |
9476 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
9477 | ||
9478 | self = self; | |
9479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9480 | return NULL; | |
9481 | if (_argo0) { | |
9482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9485 | return NULL; | |
9486 | } | |
9487 | } | |
9488 | if (_argo2) { | |
9489 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9490 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9492 | return NULL; | |
9493 | } | |
9494 | } | |
9495 | { | |
9496 | _arg3 = wxString_in_helper(_obj3); | |
9497 | if (_arg3 == NULL) | |
9498 | return NULL; | |
9499 | } | |
9500 | { | |
9501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9502 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); | |
9503 | ||
9504 | wxPyEndAllowThreads(__tstate); | |
9505 | if (PyErr_Occurred()) return NULL; | |
9506 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9507 | { | |
9508 | if (_obj3) | |
9509 | delete _arg3; | |
9510 | } | |
9511 | return _resultobj; | |
9512 | } | |
9513 | ||
9514 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9515 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9516 | PyObject * _resultobj; | |
9517 | wxMenu * _result; | |
9518 | wxMenuBar * _arg0; | |
9519 | size_t _arg1; | |
9520 | PyObject * _argo0 = 0; | |
9521 | char *_kwnames[] = { "self","pos", NULL }; | |
9522 | ||
9523 | self = self; | |
9524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9525 | return NULL; | |
9526 | if (_argo0) { | |
9527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9530 | return NULL; | |
9531 | } | |
9532 | } | |
9533 | { | |
9534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9535 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); | |
9536 | ||
9537 | wxPyEndAllowThreads(__tstate); | |
9538 | if (PyErr_Occurred()) return NULL; | |
9539 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9540 | return _resultobj; | |
9541 | } | |
9542 | ||
9543 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
9544 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9545 | PyObject * _resultobj; | |
9546 | wxMenuBar * _arg0; | |
9547 | size_t _arg1; | |
9548 | bool _arg2; | |
9549 | PyObject * _argo0 = 0; | |
9550 | int tempbool2; | |
9551 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9552 | ||
9553 | self = self; | |
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9555 | return NULL; | |
9556 | if (_argo0) { | |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | _arg2 = (bool ) tempbool2; | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
9567 | ||
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) return NULL; | |
9570 | } Py_INCREF(Py_None); | |
9571 | _resultobj = Py_None; | |
9572 | return _resultobj; | |
9573 | } | |
9574 | ||
9575 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9576 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject * _resultobj; | |
9578 | wxMenuBar * _arg0; | |
9579 | size_t _arg1; | |
9580 | wxString * _arg2; | |
9581 | PyObject * _argo0 = 0; | |
9582 | PyObject * _obj2 = 0; | |
9583 | char *_kwnames[] = { "self","pos","label", NULL }; | |
9584 | ||
9585 | self = self; | |
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9587 | return NULL; | |
9588 | if (_argo0) { | |
9589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
9592 | return NULL; | |
9593 | } | |
9594 | } | |
9595 | { | |
9596 | _arg2 = wxString_in_helper(_obj2); | |
9597 | if (_arg2 == NULL) | |
9598 | return NULL; | |
9599 | } | |
9600 | { | |
9601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9602 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
9603 | ||
9604 | wxPyEndAllowThreads(__tstate); | |
9605 | if (PyErr_Occurred()) return NULL; | |
9606 | } Py_INCREF(Py_None); | |
9607 | _resultobj = Py_None; | |
9608 | { | |
9609 | if (_obj2) | |
9610 | delete _arg2; | |
9611 | } | |
9612 | return _resultobj; | |
9613 | } | |
9614 | ||
9615 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9616 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9617 | PyObject * _resultobj; | |
9618 | wxString * _result; | |
9619 | wxMenuBar * _arg0; | |
9620 | size_t _arg1; | |
9621 | PyObject * _argo0 = 0; | |
9622 | char *_kwnames[] = { "self","pos", NULL }; | |
9623 | ||
9624 | self = self; | |
9625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9626 | return NULL; | |
9627 | if (_argo0) { | |
9628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9631 | return NULL; | |
9632 | } | |
9633 | } | |
9634 | { | |
9635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9636 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
9637 | ||
9638 | wxPyEndAllowThreads(__tstate); | |
9639 | if (PyErr_Occurred()) return NULL; | |
9640 | }{ | |
9641 | #if wxUSE_UNICODE | |
9642 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9643 | #else | |
9644 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9645 | #endif | |
9646 | } | |
9647 | { | |
9648 | delete _result; | |
9649 | } | |
9650 | return _resultobj; | |
9651 | } | |
9652 | ||
9653 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) | |
9654 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9655 | PyObject * _resultobj; | |
9656 | int _result; | |
9657 | wxMenuBar * _arg0; | |
9658 | wxString * _arg1; | |
9659 | PyObject * _argo0 = 0; | |
9660 | PyObject * _obj1 = 0; | |
9661 | char *_kwnames[] = { "self","title", NULL }; | |
9662 | ||
9663 | self = self; | |
9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9665 | return NULL; | |
9666 | if (_argo0) { | |
9667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9670 | return NULL; | |
9671 | } | |
9672 | } | |
9673 | { | |
9674 | _arg1 = wxString_in_helper(_obj1); | |
9675 | if (_arg1 == NULL) | |
9676 | return NULL; | |
9677 | } | |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); | |
9681 | ||
9682 | wxPyEndAllowThreads(__tstate); | |
9683 | if (PyErr_Occurred()) return NULL; | |
9684 | } _resultobj = Py_BuildValue("i",_result); | |
9685 | { | |
9686 | if (_obj1) | |
9687 | delete _arg1; | |
9688 | } | |
9689 | return _resultobj; | |
9690 | } | |
9691 | ||
9692 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
9693 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject * _resultobj; | |
9695 | int _result; | |
9696 | wxMenuBar * _arg0; | |
9697 | wxString * _arg1; | |
9698 | wxString * _arg2; | |
9699 | PyObject * _argo0 = 0; | |
9700 | PyObject * _obj1 = 0; | |
9701 | PyObject * _obj2 = 0; | |
9702 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9703 | ||
9704 | self = self; | |
9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9706 | return NULL; | |
9707 | if (_argo0) { | |
9708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9711 | return NULL; | |
9712 | } | |
9713 | } | |
9714 | { | |
9715 | _arg1 = wxString_in_helper(_obj1); | |
9716 | if (_arg1 == NULL) | |
9717 | return NULL; | |
9718 | } | |
9719 | { | |
9720 | _arg2 = wxString_in_helper(_obj2); | |
9721 | if (_arg2 == NULL) | |
9722 | return NULL; | |
9723 | } | |
9724 | { | |
9725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9726 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
9727 | ||
9728 | wxPyEndAllowThreads(__tstate); | |
9729 | if (PyErr_Occurred()) return NULL; | |
9730 | } _resultobj = Py_BuildValue("i",_result); | |
9731 | { | |
9732 | if (_obj1) | |
9733 | delete _arg1; | |
9734 | } | |
9735 | { | |
9736 | if (_obj2) | |
9737 | delete _arg2; | |
9738 | } | |
9739 | return _resultobj; | |
9740 | } | |
9741 | ||
9742 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
9743 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9744 | PyObject * _resultobj; | |
9745 | wxMenuItem * _result; | |
9746 | wxMenuBar * _arg0; | |
9747 | int _arg1; | |
9748 | PyObject * _argo0 = 0; | |
9749 | char *_kwnames[] = { "self","id", NULL }; | |
9750 | ||
9751 | self = self; | |
9752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
9753 | return NULL; | |
9754 | if (_argo0) { | |
9755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
9758 | return NULL; | |
9759 | } | |
9760 | } | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); | |
9764 | ||
9765 | wxPyEndAllowThreads(__tstate); | |
9766 | if (PyErr_Occurred()) return NULL; | |
9767 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9768 | return _resultobj; | |
9769 | } | |
9770 | ||
9771 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9772 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9773 | PyObject * _resultobj; | |
9774 | wxMenuBar * _arg0; | |
9775 | int _arg1; | |
9776 | bool _arg2; | |
9777 | PyObject * _argo0 = 0; | |
9778 | int tempbool2; | |
9779 | char *_kwnames[] = { "self","id","enable", NULL }; | |
9780 | ||
9781 | self = self; | |
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9783 | return NULL; | |
9784 | if (_argo0) { | |
9785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
9788 | return NULL; | |
9789 | } | |
9790 | } | |
9791 | _arg2 = (bool ) tempbool2; | |
9792 | { | |
9793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9794 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
9795 | ||
9796 | wxPyEndAllowThreads(__tstate); | |
9797 | if (PyErr_Occurred()) return NULL; | |
9798 | } Py_INCREF(Py_None); | |
9799 | _resultobj = Py_None; | |
9800 | return _resultobj; | |
9801 | } | |
9802 | ||
9803 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
9804 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9805 | PyObject * _resultobj; | |
9806 | wxMenuBar * _arg0; | |
9807 | int _arg1; | |
9808 | bool _arg2; | |
9809 | PyObject * _argo0 = 0; | |
9810 | int tempbool2; | |
9811 | char *_kwnames[] = { "self","id","check", NULL }; | |
9812 | ||
9813 | self = self; | |
9814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9815 | return NULL; | |
9816 | if (_argo0) { | |
9817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
9820 | return NULL; | |
9821 | } | |
9822 | } | |
9823 | _arg2 = (bool ) tempbool2; | |
9824 | { | |
9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9826 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
9827 | ||
9828 | wxPyEndAllowThreads(__tstate); | |
9829 | if (PyErr_Occurred()) return NULL; | |
9830 | } Py_INCREF(Py_None); | |
9831 | _resultobj = Py_None; | |
9832 | return _resultobj; | |
9833 | } | |
9834 | ||
9835 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
9836 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject * _resultobj; | |
9838 | bool _result; | |
9839 | wxMenuBar * _arg0; | |
9840 | int _arg1; | |
9841 | PyObject * _argo0 = 0; | |
9842 | char *_kwnames[] = { "self","id", NULL }; | |
9843 | ||
9844 | self = self; | |
9845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) | |
9846 | return NULL; | |
9847 | if (_argo0) { | |
9848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
9851 | return NULL; | |
9852 | } | |
9853 | } | |
9854 | { | |
9855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9856 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); | |
9857 | ||
9858 | wxPyEndAllowThreads(__tstate); | |
9859 | if (PyErr_Occurred()) return NULL; | |
9860 | } _resultobj = Py_BuildValue("i",_result); | |
9861 | return _resultobj; | |
9862 | } | |
9863 | ||
9864 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
9865 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9866 | PyObject * _resultobj; | |
9867 | bool _result; | |
9868 | wxMenuBar * _arg0; | |
9869 | int _arg1; | |
9870 | PyObject * _argo0 = 0; | |
9871 | char *_kwnames[] = { "self","id", NULL }; | |
9872 | ||
9873 | self = self; | |
9874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
9875 | return NULL; | |
9876 | if (_argo0) { | |
9877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
9880 | return NULL; | |
9881 | } | |
9882 | } | |
9883 | { | |
9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9885 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); | |
9886 | ||
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) return NULL; | |
9889 | } _resultobj = Py_BuildValue("i",_result); | |
9890 | return _resultobj; | |
9891 | } | |
9892 | ||
9893 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
9894 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9895 | PyObject * _resultobj; | |
9896 | wxMenuBar * _arg0; | |
9897 | int _arg1; | |
9898 | wxString * _arg2; | |
9899 | PyObject * _argo0 = 0; | |
9900 | PyObject * _obj2 = 0; | |
9901 | char *_kwnames[] = { "self","id","label", NULL }; | |
9902 | ||
9903 | self = self; | |
9904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9905 | return NULL; | |
9906 | if (_argo0) { | |
9907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
9910 | return NULL; | |
9911 | } | |
9912 | } | |
9913 | { | |
9914 | _arg2 = wxString_in_helper(_obj2); | |
9915 | if (_arg2 == NULL) | |
9916 | return NULL; | |
9917 | } | |
9918 | { | |
9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9920 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | |
9921 | ||
9922 | wxPyEndAllowThreads(__tstate); | |
9923 | if (PyErr_Occurred()) return NULL; | |
9924 | } Py_INCREF(Py_None); | |
9925 | _resultobj = Py_None; | |
9926 | { | |
9927 | if (_obj2) | |
9928 | delete _arg2; | |
9929 | } | |
9930 | return _resultobj; | |
9931 | } | |
9932 | ||
9933 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
9934 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9935 | PyObject * _resultobj; | |
9936 | wxString * _result; | |
9937 | wxMenuBar * _arg0; | |
9938 | int _arg1; | |
9939 | PyObject * _argo0 = 0; | |
9940 | char *_kwnames[] = { "self","id", NULL }; | |
9941 | ||
9942 | self = self; | |
9943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
9944 | return NULL; | |
9945 | if (_argo0) { | |
9946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9949 | return NULL; | |
9950 | } | |
9951 | } | |
9952 | { | |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
9955 | ||
9956 | wxPyEndAllowThreads(__tstate); | |
9957 | if (PyErr_Occurred()) return NULL; | |
9958 | }{ | |
9959 | #if wxUSE_UNICODE | |
9960 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9961 | #else | |
9962 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9963 | #endif | |
9964 | } | |
9965 | { | |
9966 | delete _result; | |
9967 | } | |
9968 | return _resultobj; | |
9969 | } | |
9970 | ||
9971 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9972 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject * _resultobj; | |
9974 | wxMenuBar * _arg0; | |
9975 | int _arg1; | |
9976 | wxString * _arg2; | |
9977 | PyObject * _argo0 = 0; | |
9978 | PyObject * _obj2 = 0; | |
9979 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9980 | ||
9981 | self = self; | |
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9983 | return NULL; | |
9984 | if (_argo0) { | |
9985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9988 | return NULL; | |
9989 | } | |
9990 | } | |
9991 | { | |
9992 | _arg2 = wxString_in_helper(_obj2); | |
9993 | if (_arg2 == NULL) | |
9994 | return NULL; | |
9995 | } | |
9996 | { | |
9997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9998 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
9999 | ||
10000 | wxPyEndAllowThreads(__tstate); | |
10001 | if (PyErr_Occurred()) return NULL; | |
10002 | } Py_INCREF(Py_None); | |
10003 | _resultobj = Py_None; | |
10004 | { | |
10005 | if (_obj2) | |
10006 | delete _arg2; | |
10007 | } | |
10008 | return _resultobj; | |
10009 | } | |
10010 | ||
10011 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10012 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10013 | PyObject * _resultobj; | |
10014 | wxString * _result; | |
10015 | wxMenuBar * _arg0; | |
10016 | int _arg1; | |
10017 | PyObject * _argo0 = 0; | |
10018 | char *_kwnames[] = { "self","id", NULL }; | |
10019 | ||
10020 | self = self; | |
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
10022 | return NULL; | |
10023 | if (_argo0) { | |
10024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
10027 | return NULL; | |
10028 | } | |
10029 | } | |
10030 | { | |
10031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10032 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | |
10033 | ||
10034 | wxPyEndAllowThreads(__tstate); | |
10035 | if (PyErr_Occurred()) return NULL; | |
10036 | }{ | |
10037 | #if wxUSE_UNICODE | |
10038 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10039 | #else | |
10040 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10041 | #endif | |
10042 | } | |
10043 | { | |
10044 | delete _result; | |
10045 | } | |
10046 | return _resultobj; | |
10047 | } | |
10048 | ||
10049 | static void *SwigwxMenuItemTowxObject(void *ptr) { | |
10050 | wxMenuItem *src; | |
10051 | wxObject *dest; | |
10052 | src = (wxMenuItem *) ptr; | |
10053 | dest = (wxObject *) src; | |
10054 | return (void *) dest; | |
10055 | } | |
10056 | ||
10057 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
10058 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10059 | PyObject * _resultobj; | |
10060 | wxMenuItem * _result; | |
10061 | wxMenu * _arg0 = (wxMenu *) NULL; | |
10062 | int _arg1 = (int ) wxID_SEPARATOR; | |
10063 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
10064 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
10065 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; | |
10066 | wxMenu * _arg5 = (wxMenu *) NULL; | |
10067 | PyObject * _argo0 = 0; | |
10068 | PyObject * _obj2 = 0; | |
10069 | PyObject * _obj3 = 0; | |
10070 | PyObject * _argo5 = 0; | |
10071 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; | |
10072 | char _ptemp[128]; | |
10073 | ||
10074 | self = self; | |
10075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) | |
10076 | return NULL; | |
10077 | if (_argo0) { | |
10078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
10080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10081 | return NULL; | |
10082 | } | |
10083 | } | |
10084 | if (_obj2) | |
10085 | { | |
10086 | _arg2 = wxString_in_helper(_obj2); | |
10087 | if (_arg2 == NULL) | |
10088 | return NULL; | |
10089 | } | |
10090 | if (_obj3) | |
10091 | { | |
10092 | _arg3 = wxString_in_helper(_obj3); | |
10093 | if (_arg3 == NULL) | |
10094 | return NULL; | |
10095 | } | |
10096 | if (_argo5) { | |
10097 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10098 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
10100 | return NULL; | |
10101 | } | |
10102 | } | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
10106 | ||
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) return NULL; | |
10109 | } if (_result) { | |
10110 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10111 | _resultobj = Py_BuildValue("s",_ptemp); | |
10112 | } else { | |
10113 | Py_INCREF(Py_None); | |
10114 | _resultobj = Py_None; | |
10115 | } | |
10116 | { | |
10117 | if (_obj2) | |
10118 | delete _arg2; | |
10119 | } | |
10120 | { | |
10121 | if (_obj3) | |
10122 | delete _arg3; | |
10123 | } | |
10124 | return _resultobj; | |
10125 | } | |
10126 | ||
10127 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) | |
10128 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10129 | PyObject * _resultobj; | |
10130 | wxMenu * _result; | |
10131 | wxMenuItem * _arg0; | |
10132 | PyObject * _argo0 = 0; | |
10133 | char *_kwnames[] = { "self", NULL }; | |
10134 | ||
10135 | self = self; | |
10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) | |
10137 | return NULL; | |
10138 | if (_argo0) { | |
10139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); | |
10142 | return NULL; | |
10143 | } | |
10144 | } | |
10145 | { | |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10147 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); | |
10148 | ||
10149 | wxPyEndAllowThreads(__tstate); | |
10150 | if (PyErr_Occurred()) return NULL; | |
10151 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
10152 | return _resultobj; | |
10153 | } | |
10154 | ||
10155 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
10156 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10157 | PyObject * _resultobj; | |
10158 | wxMenuItem * _arg0; | |
10159 | int _arg1; | |
10160 | PyObject * _argo0 = 0; | |
10161 | char *_kwnames[] = { "self","id", NULL }; | |
10162 | ||
10163 | self = self; | |
10164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) | |
10165 | return NULL; | |
10166 | if (_argo0) { | |
10167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); | |
10170 | return NULL; | |
10171 | } | |
10172 | } | |
10173 | { | |
10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10175 | wxMenuItem_SetId(_arg0,_arg1); | |
10176 | ||
10177 | wxPyEndAllowThreads(__tstate); | |
10178 | if (PyErr_Occurred()) return NULL; | |
10179 | } Py_INCREF(Py_None); | |
10180 | _resultobj = Py_None; | |
10181 | return _resultobj; | |
10182 | } | |
10183 | ||
10184 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
10185 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject * _resultobj; | |
10187 | int _result; | |
10188 | wxMenuItem * _arg0; | |
10189 | PyObject * _argo0 = 0; | |
10190 | char *_kwnames[] = { "self", NULL }; | |
10191 | ||
10192 | self = self; | |
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) | |
10194 | return NULL; | |
10195 | if (_argo0) { | |
10196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); | |
10199 | return NULL; | |
10200 | } | |
10201 | } | |
10202 | { | |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10204 | _result = (int )wxMenuItem_GetId(_arg0); | |
10205 | ||
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) return NULL; | |
10208 | } _resultobj = Py_BuildValue("i",_result); | |
10209 | return _resultobj; | |
10210 | } | |
10211 | ||
10212 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
10213 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject * _resultobj; | |
10215 | bool _result; | |
10216 | wxMenuItem * _arg0; | |
10217 | PyObject * _argo0 = 0; | |
10218 | char *_kwnames[] = { "self", NULL }; | |
10219 | ||
10220 | self = self; | |
10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) | |
10222 | return NULL; | |
10223 | if (_argo0) { | |
10224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); | |
10227 | return NULL; | |
10228 | } | |
10229 | } | |
10230 | { | |
10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10232 | _result = (bool )wxMenuItem_IsSeparator(_arg0); | |
10233 | ||
10234 | wxPyEndAllowThreads(__tstate); | |
10235 | if (PyErr_Occurred()) return NULL; | |
10236 | } _resultobj = Py_BuildValue("i",_result); | |
10237 | return _resultobj; | |
10238 | } | |
10239 | ||
10240 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
10241 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10242 | PyObject * _resultobj; | |
10243 | wxMenuItem * _arg0; | |
10244 | wxString * _arg1; | |
10245 | PyObject * _argo0 = 0; | |
10246 | PyObject * _obj1 = 0; | |
10247 | char *_kwnames[] = { "self","str", NULL }; | |
10248 | ||
10249 | self = self; | |
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) | |
10251 | return NULL; | |
10252 | if (_argo0) { | |
10253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); | |
10256 | return NULL; | |
10257 | } | |
10258 | } | |
10259 | { | |
10260 | _arg1 = wxString_in_helper(_obj1); | |
10261 | if (_arg1 == NULL) | |
10262 | return NULL; | |
10263 | } | |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | wxMenuItem_SetText(_arg0,*_arg1); | |
10267 | ||
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) return NULL; | |
10270 | } Py_INCREF(Py_None); | |
10271 | _resultobj = Py_None; | |
10272 | { | |
10273 | if (_obj1) | |
10274 | delete _arg1; | |
10275 | } | |
10276 | return _resultobj; | |
10277 | } | |
10278 | ||
10279 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
10280 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10281 | PyObject * _resultobj; | |
10282 | wxString * _result; | |
10283 | wxMenuItem * _arg0; | |
10284 | PyObject * _argo0 = 0; | |
10285 | char *_kwnames[] = { "self", NULL }; | |
10286 | ||
10287 | self = self; | |
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) | |
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_GetLabel. Expected _wxMenuItem_p."); | |
10294 | return NULL; | |
10295 | } | |
10296 | } | |
10297 | { | |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); | |
10300 | ||
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) return NULL; | |
10303 | }{ | |
10304 | #if wxUSE_UNICODE | |
10305 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10306 | #else | |
10307 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10308 | #endif | |
10309 | } | |
10310 | { | |
10311 | delete _result; | |
10312 | } | |
10313 | return _resultobj; | |
10314 | } | |
10315 | ||
10316 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) | |
10317 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10318 | PyObject * _resultobj; | |
10319 | wxString * _result; | |
10320 | wxMenuItem * _arg0; | |
10321 | PyObject * _argo0 = 0; | |
10322 | char *_kwnames[] = { "self", NULL }; | |
10323 | ||
10324 | self = self; | |
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) | |
10326 | return NULL; | |
10327 | if (_argo0) { | |
10328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); | |
10331 | return NULL; | |
10332 | } | |
10333 | } | |
10334 | { | |
10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10336 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); | |
10337 | _result = (wxString *) &_result_ref; | |
10338 | ||
10339 | wxPyEndAllowThreads(__tstate); | |
10340 | if (PyErr_Occurred()) return NULL; | |
10341 | }{ | |
10342 | #if wxUSE_UNICODE | |
10343 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10344 | #else | |
10345 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10346 | #endif | |
10347 | } | |
10348 | return _resultobj; | |
10349 | } | |
10350 | ||
10351 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) | |
10352 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10353 | PyObject * _resultobj; | |
10354 | wxItemKind _result; | |
10355 | wxMenuItem * _arg0; | |
10356 | PyObject * _argo0 = 0; | |
10357 | char *_kwnames[] = { "self", NULL }; | |
10358 | ||
10359 | self = self; | |
10360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10361 | return NULL; | |
10362 | if (_argo0) { | |
10363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10366 | return NULL; | |
10367 | } | |
10368 | } | |
10369 | { | |
10370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10371 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10372 | ||
10373 | wxPyEndAllowThreads(__tstate); | |
10374 | if (PyErr_Occurred()) return NULL; | |
10375 | } _resultobj = Py_BuildValue("i",_result); | |
10376 | return _resultobj; | |
10377 | } | |
10378 | ||
10379 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) | |
10380 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10381 | PyObject * _resultobj; | |
10382 | wxMenuItem * _arg0; | |
10383 | bool _arg1; | |
10384 | PyObject * _argo0 = 0; | |
10385 | int tempbool1; | |
10386 | char *_kwnames[] = { "self","checkable", NULL }; | |
10387 | ||
10388 | self = self; | |
10389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) | |
10390 | return NULL; | |
10391 | if (_argo0) { | |
10392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); | |
10395 | return NULL; | |
10396 | } | |
10397 | } | |
10398 | _arg1 = (bool ) tempbool1; | |
10399 | { | |
10400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10401 | wxMenuItem_SetCheckable(_arg0,_arg1); | |
10402 | ||
10403 | wxPyEndAllowThreads(__tstate); | |
10404 | if (PyErr_Occurred()) return NULL; | |
10405 | } Py_INCREF(Py_None); | |
10406 | _resultobj = Py_None; | |
10407 | return _resultobj; | |
10408 | } | |
10409 | ||
10410 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
10411 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10412 | PyObject * _resultobj; | |
10413 | bool _result; | |
10414 | wxMenuItem * _arg0; | |
10415 | PyObject * _argo0 = 0; | |
10416 | char *_kwnames[] = { "self", NULL }; | |
10417 | ||
10418 | self = self; | |
10419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) | |
10420 | return NULL; | |
10421 | if (_argo0) { | |
10422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); | |
10425 | return NULL; | |
10426 | } | |
10427 | } | |
10428 | { | |
10429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10430 | _result = (bool )wxMenuItem_IsCheckable(_arg0); | |
10431 | ||
10432 | wxPyEndAllowThreads(__tstate); | |
10433 | if (PyErr_Occurred()) return NULL; | |
10434 | } _resultobj = Py_BuildValue("i",_result); | |
10435 | return _resultobj; | |
10436 | } | |
10437 | ||
10438 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) | |
10439 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject * _resultobj; | |
10441 | bool _result; | |
10442 | wxMenuItem * _arg0; | |
10443 | PyObject * _argo0 = 0; | |
10444 | char *_kwnames[] = { "self", NULL }; | |
10445 | ||
10446 | self = self; | |
10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) | |
10448 | return NULL; | |
10449 | if (_argo0) { | |
10450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); | |
10453 | return NULL; | |
10454 | } | |
10455 | } | |
10456 | { | |
10457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10458 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); | |
10459 | ||
10460 | wxPyEndAllowThreads(__tstate); | |
10461 | if (PyErr_Occurred()) return NULL; | |
10462 | } _resultobj = Py_BuildValue("i",_result); | |
10463 | return _resultobj; | |
10464 | } | |
10465 | ||
10466 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) | |
10467 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10468 | PyObject * _resultobj; | |
10469 | wxMenuItem * _arg0; | |
10470 | wxMenu * _arg1; | |
10471 | PyObject * _argo0 = 0; | |
10472 | PyObject * _argo1 = 0; | |
10473 | char *_kwnames[] = { "self","menu", NULL }; | |
10474 | ||
10475 | self = self; | |
10476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) | |
10477 | return NULL; | |
10478 | if (_argo0) { | |
10479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); | |
10482 | return NULL; | |
10483 | } | |
10484 | } | |
10485 | if (_argo1) { | |
10486 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10487 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
10489 | return NULL; | |
10490 | } | |
10491 | } | |
10492 | { | |
10493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10494 | wxMenuItem_SetSubMenu(_arg0,_arg1); | |
10495 | ||
10496 | wxPyEndAllowThreads(__tstate); | |
10497 | if (PyErr_Occurred()) return NULL; | |
10498 | } Py_INCREF(Py_None); | |
10499 | _resultobj = Py_None; | |
10500 | return _resultobj; | |
10501 | } | |
10502 | ||
10503 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
10504 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10505 | PyObject * _resultobj; | |
10506 | wxMenu * _result; | |
10507 | wxMenuItem * _arg0; | |
10508 | PyObject * _argo0 = 0; | |
10509 | char *_kwnames[] = { "self", NULL }; | |
10510 | ||
10511 | self = self; | |
10512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) | |
10513 | return NULL; | |
10514 | if (_argo0) { | |
10515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); | |
10518 | return NULL; | |
10519 | } | |
10520 | } | |
10521 | { | |
10522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10523 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
10524 | ||
10525 | wxPyEndAllowThreads(__tstate); | |
10526 | if (PyErr_Occurred()) return NULL; | |
10527 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
10528 | return _resultobj; | |
10529 | } | |
10530 | ||
10531 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10532 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10533 | PyObject * _resultobj; | |
10534 | wxMenuItem * _arg0; | |
10535 | bool _arg1 = (bool ) TRUE; | |
10536 | PyObject * _argo0 = 0; | |
10537 | int tempbool1 = (int) TRUE; | |
10538 | char *_kwnames[] = { "self","enable", NULL }; | |
10539 | ||
10540 | self = self; | |
10541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10542 | return NULL; | |
10543 | if (_argo0) { | |
10544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
10547 | return NULL; | |
10548 | } | |
10549 | } | |
10550 | _arg1 = (bool ) tempbool1; | |
10551 | { | |
10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10553 | wxMenuItem_Enable(_arg0,_arg1); | |
10554 | ||
10555 | wxPyEndAllowThreads(__tstate); | |
10556 | if (PyErr_Occurred()) return NULL; | |
10557 | } Py_INCREF(Py_None); | |
10558 | _resultobj = Py_None; | |
10559 | return _resultobj; | |
10560 | } | |
10561 | ||
10562 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
10563 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10564 | PyObject * _resultobj; | |
10565 | bool _result; | |
10566 | wxMenuItem * _arg0; | |
10567 | PyObject * _argo0 = 0; | |
10568 | char *_kwnames[] = { "self", NULL }; | |
10569 | ||
10570 | self = self; | |
10571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) | |
10572 | return NULL; | |
10573 | if (_argo0) { | |
10574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); | |
10577 | return NULL; | |
10578 | } | |
10579 | } | |
10580 | { | |
10581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10582 | _result = (bool )wxMenuItem_IsEnabled(_arg0); | |
10583 | ||
10584 | wxPyEndAllowThreads(__tstate); | |
10585 | if (PyErr_Occurred()) return NULL; | |
10586 | } _resultobj = Py_BuildValue("i",_result); | |
10587 | return _resultobj; | |
10588 | } | |
10589 | ||
10590 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
10591 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10592 | PyObject * _resultobj; | |
10593 | wxMenuItem * _arg0; | |
10594 | bool _arg1 = (bool ) TRUE; | |
10595 | PyObject * _argo0 = 0; | |
10596 | int tempbool1 = (int) TRUE; | |
10597 | char *_kwnames[] = { "self","check", NULL }; | |
10598 | ||
10599 | self = self; | |
10600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) | |
10601 | return NULL; | |
10602 | if (_argo0) { | |
10603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); | |
10606 | return NULL; | |
10607 | } | |
10608 | } | |
10609 | _arg1 = (bool ) tempbool1; | |
10610 | { | |
10611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10612 | wxMenuItem_Check(_arg0,_arg1); | |
10613 | ||
10614 | wxPyEndAllowThreads(__tstate); | |
10615 | if (PyErr_Occurred()) return NULL; | |
10616 | } Py_INCREF(Py_None); | |
10617 | _resultobj = Py_None; | |
10618 | return _resultobj; | |
10619 | } | |
10620 | ||
10621 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
10622 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10623 | PyObject * _resultobj; | |
10624 | bool _result; | |
10625 | wxMenuItem * _arg0; | |
10626 | PyObject * _argo0 = 0; | |
10627 | char *_kwnames[] = { "self", NULL }; | |
10628 | ||
10629 | self = self; | |
10630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) | |
10631 | return NULL; | |
10632 | if (_argo0) { | |
10633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); | |
10636 | return NULL; | |
10637 | } | |
10638 | } | |
10639 | { | |
10640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10641 | _result = (bool )wxMenuItem_IsChecked(_arg0); | |
10642 | ||
10643 | wxPyEndAllowThreads(__tstate); | |
10644 | if (PyErr_Occurred()) return NULL; | |
10645 | } _resultobj = Py_BuildValue("i",_result); | |
10646 | return _resultobj; | |
10647 | } | |
10648 | ||
10649 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) | |
10650 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10651 | PyObject * _resultobj; | |
10652 | wxMenuItem * _arg0; | |
10653 | PyObject * _argo0 = 0; | |
10654 | char *_kwnames[] = { "self", NULL }; | |
10655 | ||
10656 | self = self; | |
10657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) | |
10658 | return NULL; | |
10659 | if (_argo0) { | |
10660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); | |
10663 | return NULL; | |
10664 | } | |
10665 | } | |
10666 | { | |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | wxMenuItem_Toggle(_arg0); | |
10669 | ||
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) return NULL; | |
10672 | } Py_INCREF(Py_None); | |
10673 | _resultobj = Py_None; | |
10674 | return _resultobj; | |
10675 | } | |
10676 | ||
10677 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
10678 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10679 | PyObject * _resultobj; | |
10680 | wxMenuItem * _arg0; | |
10681 | wxString * _arg1; | |
10682 | PyObject * _argo0 = 0; | |
10683 | PyObject * _obj1 = 0; | |
10684 | char *_kwnames[] = { "self","str", NULL }; | |
10685 | ||
10686 | self = self; | |
10687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) | |
10688 | return NULL; | |
10689 | if (_argo0) { | |
10690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); | |
10693 | return NULL; | |
10694 | } | |
10695 | } | |
10696 | { | |
10697 | _arg1 = wxString_in_helper(_obj1); | |
10698 | if (_arg1 == NULL) | |
10699 | return NULL; | |
10700 | } | |
10701 | { | |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | wxMenuItem_SetHelp(_arg0,*_arg1); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) return NULL; | |
10707 | } Py_INCREF(Py_None); | |
10708 | _resultobj = Py_None; | |
10709 | { | |
10710 | if (_obj1) | |
10711 | delete _arg1; | |
10712 | } | |
10713 | return _resultobj; | |
10714 | } | |
10715 | ||
10716 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) | |
10717 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10718 | PyObject * _resultobj; | |
10719 | wxString * _result; | |
10720 | wxMenuItem * _arg0; | |
10721 | PyObject * _argo0 = 0; | |
10722 | char *_kwnames[] = { "self", NULL }; | |
10723 | ||
10724 | self = self; | |
10725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) | |
10726 | return NULL; | |
10727 | if (_argo0) { | |
10728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); | |
10731 | return NULL; | |
10732 | } | |
10733 | } | |
10734 | { | |
10735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10736 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); | |
10737 | _result = (wxString *) &_result_ref; | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) return NULL; | |
10741 | }{ | |
10742 | #if wxUSE_UNICODE | |
10743 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10744 | #else | |
10745 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10746 | #endif | |
10747 | } | |
10748 | return _resultobj; | |
10749 | } | |
10750 | ||
10751 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) | |
10752 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10753 | PyObject * _resultobj; | |
10754 | wxAcceleratorEntry * _result; | |
10755 | wxMenuItem * _arg0; | |
10756 | PyObject * _argo0 = 0; | |
10757 | char *_kwnames[] = { "self", NULL }; | |
10758 | char _ptemp[128]; | |
10759 | ||
10760 | self = self; | |
10761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) | |
10762 | return NULL; | |
10763 | if (_argo0) { | |
10764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); | |
10767 | return NULL; | |
10768 | } | |
10769 | } | |
10770 | { | |
10771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10772 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); | |
10773 | ||
10774 | wxPyEndAllowThreads(__tstate); | |
10775 | if (PyErr_Occurred()) return NULL; | |
10776 | } if (_result) { | |
10777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
10778 | _resultobj = Py_BuildValue("s",_ptemp); | |
10779 | } else { | |
10780 | Py_INCREF(Py_None); | |
10781 | _resultobj = Py_None; | |
10782 | } | |
10783 | return _resultobj; | |
10784 | } | |
10785 | ||
10786 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) | |
10787 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10788 | PyObject * _resultobj; | |
10789 | wxMenuItem * _arg0; | |
10790 | wxAcceleratorEntry * _arg1; | |
10791 | PyObject * _argo0 = 0; | |
10792 | PyObject * _argo1 = 0; | |
10793 | char *_kwnames[] = { "self","accel", NULL }; | |
10794 | ||
10795 | self = self; | |
10796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) | |
10797 | return NULL; | |
10798 | if (_argo0) { | |
10799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); | |
10802 | return NULL; | |
10803 | } | |
10804 | } | |
10805 | if (_argo1) { | |
10806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { | |
10808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
10809 | return NULL; | |
10810 | } | |
10811 | } | |
10812 | { | |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | wxMenuItem_SetAccel(_arg0,_arg1); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) return NULL; | |
10818 | } Py_INCREF(Py_None); | |
10819 | _resultobj = Py_None; | |
10820 | return _resultobj; | |
10821 | } | |
10822 | ||
10823 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10824 | PyObject * _resultobj; | |
10825 | wxString * _result; | |
10826 | wxString * _arg0; | |
10827 | PyObject * _obj0 = 0; | |
10828 | char *_kwnames[] = { "text", NULL }; | |
10829 | ||
10830 | self = self; | |
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10832 | return NULL; | |
10833 | { | |
10834 | _arg0 = wxString_in_helper(_obj0); | |
10835 | if (_arg0 == NULL) | |
10836 | return NULL; | |
10837 | } | |
10838 | { | |
10839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10840 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); | |
10841 | ||
10842 | wxPyEndAllowThreads(__tstate); | |
10843 | if (PyErr_Occurred()) return NULL; | |
10844 | }{ | |
10845 | #if wxUSE_UNICODE | |
10846 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10847 | #else | |
10848 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10849 | #endif | |
10850 | } | |
10851 | { | |
10852 | if (_obj0) | |
10853 | delete _arg0; | |
10854 | } | |
10855 | { | |
10856 | delete _result; | |
10857 | } | |
10858 | return _resultobj; | |
10859 | } | |
10860 | ||
10861 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
10862 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10863 | PyObject * _resultobj; | |
10864 | wxMenuItem * _arg0; | |
10865 | wxFont * _arg1; | |
10866 | PyObject * _argo0 = 0; | |
10867 | PyObject * _argo1 = 0; | |
10868 | char *_kwnames[] = { "self","font", NULL }; | |
10869 | ||
10870 | self = self; | |
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
10872 | return NULL; | |
10873 | if (_argo0) { | |
10874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
10877 | return NULL; | |
10878 | } | |
10879 | } | |
10880 | if (_argo1) { | |
10881 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10882 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10884 | return NULL; | |
10885 | } | |
10886 | } | |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | wxMenuItem_SetFont(_arg0,*_arg1); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) return NULL; | |
10893 | } Py_INCREF(Py_None); | |
10894 | _resultobj = Py_None; | |
10895 | return _resultobj; | |
10896 | } | |
10897 | ||
10898 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10899 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10900 | PyObject * _resultobj; | |
10901 | wxFont * _result; | |
10902 | wxMenuItem * _arg0; | |
10903 | PyObject * _argo0 = 0; | |
10904 | char *_kwnames[] = { "self", NULL }; | |
10905 | char _ptemp[128]; | |
10906 | ||
10907 | self = self; | |
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10909 | return NULL; | |
10910 | if (_argo0) { | |
10911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10914 | return NULL; | |
10915 | } | |
10916 | } | |
10917 | { | |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) return NULL; | |
10923 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
10924 | _resultobj = Py_BuildValue("s",_ptemp); | |
10925 | return _resultobj; | |
10926 | } | |
10927 | ||
10928 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10929 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10930 | PyObject * _resultobj; | |
10931 | wxMenuItem * _arg0; | |
10932 | wxColour * _arg1; | |
10933 | PyObject * _argo0 = 0; | |
10934 | wxColour temp; | |
10935 | PyObject * _obj1 = 0; | |
10936 | char *_kwnames[] = { "self","colText", NULL }; | |
10937 | ||
10938 | self = self; | |
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10940 | return NULL; | |
10941 | if (_argo0) { | |
10942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10945 | return NULL; | |
10946 | } | |
10947 | } | |
10948 | { | |
10949 | _arg1 = &temp; | |
10950 | if (! wxColour_helper(_obj1, &_arg1)) | |
10951 | return NULL; | |
10952 | } | |
10953 | { | |
10954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10955 | wxMenuItem_SetTextColour(_arg0,*_arg1); | |
10956 | ||
10957 | wxPyEndAllowThreads(__tstate); | |
10958 | if (PyErr_Occurred()) return NULL; | |
10959 | } Py_INCREF(Py_None); | |
10960 | _resultobj = Py_None; | |
10961 | return _resultobj; | |
10962 | } | |
10963 | ||
10964 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10965 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10966 | PyObject * _resultobj; | |
10967 | wxColour * _result; | |
10968 | wxMenuItem * _arg0; | |
10969 | PyObject * _argo0 = 0; | |
10970 | char *_kwnames[] = { "self", NULL }; | |
10971 | char _ptemp[128]; | |
10972 | ||
10973 | self = self; | |
10974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10975 | return NULL; | |
10976 | if (_argo0) { | |
10977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10980 | return NULL; | |
10981 | } | |
10982 | } | |
10983 | { | |
10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10985 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); | |
10986 | ||
10987 | wxPyEndAllowThreads(__tstate); | |
10988 | if (PyErr_Occurred()) return NULL; | |
10989 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10990 | _resultobj = Py_BuildValue("s",_ptemp); | |
10991 | return _resultobj; | |
10992 | } | |
10993 | ||
10994 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10995 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10996 | PyObject * _resultobj; | |
10997 | wxMenuItem * _arg0; | |
10998 | wxColour * _arg1; | |
10999 | PyObject * _argo0 = 0; | |
11000 | wxColour temp; | |
11001 | PyObject * _obj1 = 0; | |
11002 | char *_kwnames[] = { "self","colBack", NULL }; | |
11003 | ||
11004 | self = self; | |
11005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
11006 | return NULL; | |
11007 | if (_argo0) { | |
11008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
11011 | return NULL; | |
11012 | } | |
11013 | } | |
11014 | { | |
11015 | _arg1 = &temp; | |
11016 | if (! wxColour_helper(_obj1, &_arg1)) | |
11017 | return NULL; | |
11018 | } | |
11019 | { | |
11020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11021 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); | |
11022 | ||
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) return NULL; | |
11025 | } Py_INCREF(Py_None); | |
11026 | _resultobj = Py_None; | |
11027 | return _resultobj; | |
11028 | } | |
11029 | ||
11030 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
11031 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject * _resultobj; | |
11033 | wxColour * _result; | |
11034 | wxMenuItem * _arg0; | |
11035 | PyObject * _argo0 = 0; | |
11036 | char *_kwnames[] = { "self", NULL }; | |
11037 | char _ptemp[128]; | |
11038 | ||
11039 | self = self; | |
11040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
11041 | return NULL; | |
11042 | if (_argo0) { | |
11043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
11046 | return NULL; | |
11047 | } | |
11048 | } | |
11049 | { | |
11050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11051 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); | |
11052 | ||
11053 | wxPyEndAllowThreads(__tstate); | |
11054 | if (PyErr_Occurred()) return NULL; | |
11055 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
11056 | _resultobj = Py_BuildValue("s",_ptemp); | |
11057 | return _resultobj; | |
11058 | } | |
11059 | ||
11060 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
11061 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11062 | PyObject * _resultobj; | |
11063 | wxMenuItem * _arg0; | |
11064 | wxBitmap * _arg1; | |
11065 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
11066 | PyObject * _argo0 = 0; | |
11067 | PyObject * _argo1 = 0; | |
11068 | PyObject * _argo2 = 0; | |
11069 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
11070 | ||
11071 | self = self; | |
11072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
11073 | return NULL; | |
11074 | if (_argo0) { | |
11075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
11078 | return NULL; | |
11079 | } | |
11080 | } | |
11081 | if (_argo1) { | |
11082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11085 | return NULL; | |
11086 | } | |
11087 | } | |
11088 | if (_argo2) { | |
11089 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11090 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
11091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11092 | return NULL; | |
11093 | } | |
11094 | } | |
11095 | { | |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) return NULL; | |
11101 | } Py_INCREF(Py_None); | |
11102 | _resultobj = Py_None; | |
11103 | return _resultobj; | |
11104 | } | |
11105 | ||
11106 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
11107 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11108 | PyObject * _resultobj; | |
11109 | wxMenuItem * _arg0; | |
11110 | wxBitmap * _arg1; | |
11111 | PyObject * _argo0 = 0; | |
11112 | PyObject * _argo1 = 0; | |
11113 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
11114 | ||
11115 | self = self; | |
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
11117 | return NULL; | |
11118 | if (_argo0) { | |
11119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11122 | return NULL; | |
11123 | } | |
11124 | } | |
11125 | if (_argo1) { | |
11126 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11127 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
11129 | return NULL; | |
11130 | } | |
11131 | } | |
11132 | { | |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11134 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
11135 | ||
11136 | wxPyEndAllowThreads(__tstate); | |
11137 | if (PyErr_Occurred()) return NULL; | |
11138 | } Py_INCREF(Py_None); | |
11139 | _resultobj = Py_None; | |
11140 | return _resultobj; | |
11141 | } | |
11142 | ||
11143 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
11144 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11145 | PyObject * _resultobj; | |
11146 | wxBitmap * _result; | |
11147 | wxMenuItem * _arg0; | |
11148 | bool _arg1 = (bool ) TRUE; | |
11149 | PyObject * _argo0 = 0; | |
11150 | int tempbool1 = (int) TRUE; | |
11151 | char *_kwnames[] = { "self","bChecked", NULL }; | |
11152 | char _ptemp[128]; | |
11153 | ||
11154 | self = self; | |
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
11156 | return NULL; | |
11157 | if (_argo0) { | |
11158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11161 | return NULL; | |
11162 | } | |
11163 | } | |
11164 | _arg1 = (bool ) tempbool1; | |
11165 | { | |
11166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11167 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); | |
11168 | ||
11169 | wxPyEndAllowThreads(__tstate); | |
11170 | if (PyErr_Occurred()) return NULL; | |
11171 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
11172 | _resultobj = Py_BuildValue("s",_ptemp); | |
11173 | return _resultobj; | |
11174 | } | |
11175 | ||
11176 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
11177 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11178 | PyObject * _resultobj; | |
11179 | wxMenuItem * _arg0; | |
11180 | int _arg1; | |
11181 | PyObject * _argo0 = 0; | |
11182 | char *_kwnames[] = { "self","nWidth", NULL }; | |
11183 | ||
11184 | self = self; | |
11185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
11186 | return NULL; | |
11187 | if (_argo0) { | |
11188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
11191 | return NULL; | |
11192 | } | |
11193 | } | |
11194 | { | |
11195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11196 | wxMenuItem_SetMarginWidth(_arg0,_arg1); | |
11197 | ||
11198 | wxPyEndAllowThreads(__tstate); | |
11199 | if (PyErr_Occurred()) return NULL; | |
11200 | } Py_INCREF(Py_None); | |
11201 | _resultobj = Py_None; | |
11202 | return _resultobj; | |
11203 | } | |
11204 | ||
11205 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
11206 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11207 | PyObject * _resultobj; | |
11208 | int _result; | |
11209 | wxMenuItem * _arg0; | |
11210 | PyObject * _argo0 = 0; | |
11211 | char *_kwnames[] = { "self", NULL }; | |
11212 | ||
11213 | self = self; | |
11214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
11215 | return NULL; | |
11216 | if (_argo0) { | |
11217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
11220 | return NULL; | |
11221 | } | |
11222 | } | |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) return NULL; | |
11229 | } _resultobj = Py_BuildValue("i",_result); | |
11230 | return _resultobj; | |
11231 | } | |
11232 | ||
11233 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11234 | PyObject * _resultobj; | |
11235 | int _result; | |
11236 | char *_kwnames[] = { NULL }; | |
11237 | ||
11238 | self = self; | |
11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
11240 | return NULL; | |
11241 | { | |
11242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11243 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); | |
11244 | ||
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) return NULL; | |
11247 | } _resultobj = Py_BuildValue("i",_result); | |
11248 | return _resultobj; | |
11249 | } | |
11250 | ||
11251 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
11252 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11253 | PyObject * _resultobj; | |
11254 | bool _result; | |
11255 | wxMenuItem * _arg0; | |
11256 | PyObject * _argo0 = 0; | |
11257 | char *_kwnames[] = { "self", NULL }; | |
11258 | ||
11259 | self = self; | |
11260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
11261 | return NULL; | |
11262 | if (_argo0) { | |
11263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
11266 | return NULL; | |
11267 | } | |
11268 | } | |
11269 | { | |
11270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11271 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); | |
11272 | ||
11273 | wxPyEndAllowThreads(__tstate); | |
11274 | if (PyErr_Occurred()) return NULL; | |
11275 | } _resultobj = Py_BuildValue("i",_result); | |
11276 | return _resultobj; | |
11277 | } | |
11278 | ||
11279 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
11280 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11281 | PyObject * _resultobj; | |
11282 | wxMenuItem * _arg0; | |
11283 | PyObject * _argo0 = 0; | |
11284 | char *_kwnames[] = { "self", NULL }; | |
11285 | ||
11286 | self = self; | |
11287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
11288 | return NULL; | |
11289 | if (_argo0) { | |
11290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
11293 | return NULL; | |
11294 | } | |
11295 | } | |
11296 | { | |
11297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11298 | wxMenuItem_ResetOwnerDrawn(_arg0); | |
11299 | ||
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) return NULL; | |
11302 | } Py_INCREF(Py_None); | |
11303 | _resultobj = Py_None; | |
11304 | return _resultobj; | |
11305 | } | |
11306 | ||
11307 | static PyMethodDef windowscMethods[] = { | |
11308 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11311 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11312 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11313 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11314 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11320 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11321 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11325 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11326 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11327 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11328 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11329 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11331 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11332 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11340 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11341 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11342 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11343 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11344 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11345 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11352 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
11356 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
11357 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
11358 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
11359 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
11360 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
11379 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11380 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
11381 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11388 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11389 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11390 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11391 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11392 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
11398 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
11399 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11400 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11401 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11402 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11404 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11405 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11424 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
11440 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
11441 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
11442 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, | |
11443 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
11444 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
11446 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
11447 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
11448 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
11449 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
11454 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
11471 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11479 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11480 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11481 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11482 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
11488 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
11489 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
11490 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
11491 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11493 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11499 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
11501 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11502 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11503 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11504 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11505 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11506 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11507 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11508 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11509 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11510 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
11511 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
11512 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
11513 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
11514 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11515 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
11516 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
11517 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
11518 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11519 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11520 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
11521 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
11524 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
11525 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11527 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
11528 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, | |
11532 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11533 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11534 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
11535 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
11536 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
11537 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11538 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11539 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
11540 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
11541 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11542 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
11543 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11544 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
11545 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11553 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11554 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11563 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
11574 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
11575 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11577 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11578 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11579 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11580 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
11581 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
11582 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11584 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11585 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11586 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11587 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
11588 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
11589 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
11590 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11591 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11592 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11593 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
11594 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11595 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
11596 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
11597 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11598 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11599 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11600 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
11601 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
11602 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
11603 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
11604 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
11605 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11606 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
11607 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
11608 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
11609 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11610 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11611 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11612 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
11613 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
11614 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
11615 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
11616 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11617 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11618 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11619 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11620 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11621 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11622 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
11623 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
11624 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
11625 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
11626 | { NULL, NULL } | |
11627 | }; | |
11628 | #ifdef __cplusplus | |
11629 | } | |
11630 | #endif | |
11631 | /* | |
11632 | * This table is used by the pointer type-checker | |
11633 | */ | |
11634 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11635 | { "_signed_long","_long",0}, | |
11636 | { "_wxPrintQuality","_wxCoord",0}, | |
11637 | { "_wxPrintQuality","_int",0}, | |
11638 | { "_wxPrintQuality","_signed_int",0}, | |
11639 | { "_wxPrintQuality","_unsigned_int",0}, | |
11640 | { "_wxPrintQuality","_wxWindowID",0}, | |
11641 | { "_wxPrintQuality","_uint",0}, | |
11642 | { "_wxPrintQuality","_EBool",0}, | |
11643 | { "_wxPrintQuality","_size_t",0}, | |
11644 | { "_wxPrintQuality","_time_t",0}, | |
11645 | { "_byte","_unsigned_char",0}, | |
11646 | { "_long","_unsigned_long",0}, | |
11647 | { "_long","_signed_long",0}, | |
11648 | { "_size_t","_wxCoord",0}, | |
11649 | { "_size_t","_wxPrintQuality",0}, | |
11650 | { "_size_t","_time_t",0}, | |
11651 | { "_size_t","_unsigned_int",0}, | |
11652 | { "_size_t","_int",0}, | |
11653 | { "_size_t","_wxWindowID",0}, | |
11654 | { "_size_t","_uint",0}, | |
11655 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
11656 | { "_uint","_wxCoord",0}, | |
11657 | { "_uint","_wxPrintQuality",0}, | |
11658 | { "_uint","_time_t",0}, | |
11659 | { "_uint","_size_t",0}, | |
11660 | { "_uint","_unsigned_int",0}, | |
11661 | { "_uint","_int",0}, | |
11662 | { "_uint","_wxWindowID",0}, | |
11663 | { "_wxChar","_char",0}, | |
11664 | { "_char","_wxChar",0}, | |
11665 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11666 | { "_EBool","_wxCoord",0}, | |
11667 | { "_EBool","_wxPrintQuality",0}, | |
11668 | { "_EBool","_signed_int",0}, | |
11669 | { "_EBool","_int",0}, | |
11670 | { "_EBool","_wxWindowID",0}, | |
11671 | { "_unsigned_long","_long",0}, | |
11672 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11673 | { "_signed_int","_wxCoord",0}, | |
11674 | { "_signed_int","_wxPrintQuality",0}, | |
11675 | { "_signed_int","_EBool",0}, | |
11676 | { "_signed_int","_wxWindowID",0}, | |
11677 | { "_signed_int","_int",0}, | |
11678 | { "_WXTYPE","_short",0}, | |
11679 | { "_WXTYPE","_signed_short",0}, | |
11680 | { "_WXTYPE","_unsigned_short",0}, | |
11681 | { "_unsigned_short","_WXTYPE",0}, | |
11682 | { "_unsigned_short","_short",0}, | |
11683 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, | |
11684 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, | |
11685 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, | |
11686 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, | |
11687 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, | |
11688 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, | |
11689 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, | |
11690 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, | |
11691 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, | |
11692 | { "_signed_short","_WXTYPE",0}, | |
11693 | { "_signed_short","_short",0}, | |
11694 | { "_unsigned_char","_byte",0}, | |
11695 | { "_unsigned_int","_wxCoord",0}, | |
11696 | { "_unsigned_int","_wxPrintQuality",0}, | |
11697 | { "_unsigned_int","_time_t",0}, | |
11698 | { "_unsigned_int","_size_t",0}, | |
11699 | { "_unsigned_int","_uint",0}, | |
11700 | { "_unsigned_int","_wxWindowID",0}, | |
11701 | { "_unsigned_int","_int",0}, | |
11702 | { "_short","_WXTYPE",0}, | |
11703 | { "_short","_unsigned_short",0}, | |
11704 | { "_short","_signed_short",0}, | |
11705 | { "_wxWindowID","_wxCoord",0}, | |
11706 | { "_wxWindowID","_wxPrintQuality",0}, | |
11707 | { "_wxWindowID","_time_t",0}, | |
11708 | { "_wxWindowID","_size_t",0}, | |
11709 | { "_wxWindowID","_EBool",0}, | |
11710 | { "_wxWindowID","_uint",0}, | |
11711 | { "_wxWindowID","_int",0}, | |
11712 | { "_wxWindowID","_signed_int",0}, | |
11713 | { "_wxWindowID","_unsigned_int",0}, | |
11714 | { "_int","_wxCoord",0}, | |
11715 | { "_int","_wxPrintQuality",0}, | |
11716 | { "_int","_time_t",0}, | |
11717 | { "_int","_size_t",0}, | |
11718 | { "_int","_EBool",0}, | |
11719 | { "_int","_uint",0}, | |
11720 | { "_int","_wxWindowID",0}, | |
11721 | { "_int","_unsigned_int",0}, | |
11722 | { "_int","_signed_int",0}, | |
11723 | { "_time_t","_wxCoord",0}, | |
11724 | { "_time_t","_wxPrintQuality",0}, | |
11725 | { "_time_t","_unsigned_int",0}, | |
11726 | { "_time_t","_int",0}, | |
11727 | { "_time_t","_wxWindowID",0}, | |
11728 | { "_time_t","_uint",0}, | |
11729 | { "_time_t","_size_t",0}, | |
11730 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
11731 | { "_wxCoord","_int",0}, | |
11732 | { "_wxCoord","_signed_int",0}, | |
11733 | { "_wxCoord","_unsigned_int",0}, | |
11734 | { "_wxCoord","_wxWindowID",0}, | |
11735 | { "_wxCoord","_uint",0}, | |
11736 | { "_wxCoord","_EBool",0}, | |
11737 | { "_wxCoord","_size_t",0}, | |
11738 | { "_wxCoord","_time_t",0}, | |
11739 | { "_wxCoord","_wxPrintQuality",0}, | |
11740 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
11741 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
11742 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
11743 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
11744 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
11745 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
11746 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
11747 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, | |
11748 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
11749 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
11750 | {0,0,0}}; | |
11751 | ||
11752 | static PyObject *SWIG_globals; | |
11753 | #ifdef __cplusplus | |
11754 | extern "C" | |
11755 | #endif | |
11756 | SWIGEXPORT(void) initwindowsc() { | |
11757 | PyObject *m, *d; | |
11758 | SWIG_globals = SWIG_newvarlink(); | |
11759 | m = Py_InitModule("windowsc", windowscMethods); | |
11760 | d = PyModule_GetDict(m); | |
11761 | { | |
11762 | int i; | |
11763 | for (i = 0; _swig_mapping[i].n1; i++) | |
11764 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11765 | } | |
11766 | } |