]>
Commit | Line | Data |
---|---|---|
9c039d08 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/frames.cpp |
9c039d08 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
9c039d08 RD |
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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
9c039d08 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
9c039d08 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
9c039d08 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
9c039d08 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
9c039d08 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
9c039d08 RD |
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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
9c039d08 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
9c039d08 RD |
54 | #define SWIG_init initframesc |
55 | ||
56 | #define SWIG_name "framesc" | |
57 | ||
58 | #include "helpers.h" | |
9c039d08 | 59 | #include <wx/minifram.h> |
4f3449b4 | 60 | #include <wx/tipwin.h> |
9c039d08 | 61 | |
9c039d08 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
e0672e2f | 67 | if (!target) { |
9c039d08 | 68 | target = o; |
e0672e2f | 69 | } else if (target == Py_None) { |
9c039d08 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
e0672e2f | 72 | } else { |
9c039d08 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
e0672e2f RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
9c039d08 RD |
80 | |
81 | o2 = target; | |
e0672e2f RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
9c039d08 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
794c5cb1 RD |
89 | #if PYTHON_API_VERSION >= 1009 |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
92 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
93 | #endif | |
1d99702e RD |
94 | #ifdef __cplusplus |
95 | extern "C" { | |
96 | #endif | |
ecc08ead RD |
97 | static void *SwigwxTopLevelWindowTowxWindow(void *ptr) { |
98 | wxTopLevelWindow *src; | |
9c039d08 | 99 | wxWindow *dest; |
ecc08ead | 100 | src = (wxTopLevelWindow *) ptr; |
9c039d08 RD |
101 | dest = (wxWindow *) src; |
102 | return (void *) dest; | |
103 | } | |
104 | ||
ecc08ead RD |
105 | static void *SwigwxTopLevelWindowTowxEvtHandler(void *ptr) { |
106 | wxTopLevelWindow *src; | |
9c039d08 | 107 | wxEvtHandler *dest; |
ecc08ead | 108 | src = (wxTopLevelWindow *) ptr; |
9c039d08 RD |
109 | dest = (wxEvtHandler *) src; |
110 | return (void *) dest; | |
111 | } | |
112 | ||
ecc08ead RD |
113 | static void *SwigwxTopLevelWindowTowxObject(void *ptr) { |
114 | wxTopLevelWindow *src; | |
9416aa89 | 115 | wxObject *dest; |
ecc08ead | 116 | src = (wxTopLevelWindow *) ptr; |
9416aa89 RD |
117 | dest = (wxObject *) src; |
118 | return (void *) dest; | |
119 | } | |
120 | ||
ecc08ead RD |
121 | #define new_wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
122 | static PyObject *_wrap_new_wxTopLevelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 123 | PyObject * _resultobj; |
ecc08ead | 124 | wxTopLevelWindow * _result; |
9c039d08 RD |
125 | wxWindow * _arg0; |
126 | wxWindowID _arg1; | |
127 | wxString * _arg2; | |
e508a2b6 RD |
128 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
129 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
130 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; |
131 | char * _arg6 = (char *) "frame"; | |
132 | PyObject * _argo0 = 0; | |
9c039d08 | 133 | PyObject * _obj2 = 0; |
2f90df85 RD |
134 | wxPoint temp; |
135 | PyObject * _obj3 = 0; | |
136 | wxSize temp0; | |
137 | PyObject * _obj4 = 0; | |
efc5f224 | 138 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
9c039d08 RD |
139 | char _ptemp[128]; |
140 | ||
141 | self = self; | |
ecc08ead | 142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxTopLevelWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
9c039d08 | 143 | return NULL; |
1d99702e RD |
144 | if (_argo0) { |
145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
ecc08ead | 147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTopLevelWindow. Expected _wxWindow_p."); |
9c039d08 RD |
148 | return NULL; |
149 | } | |
150 | } | |
151 | { | |
185d7c3e RD |
152 | #if PYTHON_API_VERSION >= 1009 |
153 | char* tmpPtr; int tmpSize; | |
154 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 155 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
156 | return NULL; |
157 | } | |
158 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
159 | return NULL; | |
160 | _arg2 = new wxString(tmpPtr, tmpSize); | |
161 | #else | |
9c039d08 RD |
162 | if (!PyString_Check(_obj2)) { |
163 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
164 | return NULL; | |
165 | } | |
185d7c3e RD |
166 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
167 | #endif | |
9c039d08 | 168 | } |
2f90df85 RD |
169 | if (_obj3) |
170 | { | |
171 | _arg3 = &temp; | |
172 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9c039d08 | 173 | return NULL; |
2f90df85 RD |
174 | } |
175 | if (_obj4) | |
176 | { | |
177 | _arg4 = &temp0; | |
178 | if (! wxSize_helper(_obj4, &_arg4)) | |
9c039d08 | 179 | return NULL; |
2f90df85 | 180 | } |
cf694132 RD |
181 | { |
182 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 183 | _result = (wxTopLevelWindow *)new_wxTopLevelWindow(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
cf694132 RD |
184 | |
185 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 186 | if (PyErr_Occurred()) return NULL; |
1d99702e | 187 | } if (_result) { |
ecc08ead | 188 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTopLevelWindow_p"); |
1d99702e RD |
189 | _resultobj = Py_BuildValue("s",_ptemp); |
190 | } else { | |
191 | Py_INCREF(Py_None); | |
192 | _resultobj = Py_None; | |
193 | } | |
9c039d08 RD |
194 | { |
195 | if (_obj2) | |
196 | delete _arg2; | |
197 | } | |
198 | return _resultobj; | |
199 | } | |
200 | ||
ecc08ead RD |
201 | #define new_wxPreTopLevelWindow() (new wxTopLevelWindow()) |
202 | static PyObject *_wrap_new_wxPreTopLevelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
09f3d4e6 | 203 | PyObject * _resultobj; |
ecc08ead | 204 | wxTopLevelWindow * _result; |
09f3d4e6 RD |
205 | char *_kwnames[] = { NULL }; |
206 | char _ptemp[128]; | |
207 | ||
208 | self = self; | |
ecc08ead | 209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTopLevelWindow",_kwnames)) |
09f3d4e6 RD |
210 | return NULL; |
211 | { | |
212 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 213 | _result = (wxTopLevelWindow *)new_wxPreTopLevelWindow(); |
09f3d4e6 RD |
214 | |
215 | wxPy_END_ALLOW_THREADS; | |
216 | if (PyErr_Occurred()) return NULL; | |
217 | } if (_result) { | |
ecc08ead | 218 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTopLevelWindow_p"); |
09f3d4e6 RD |
219 | _resultobj = Py_BuildValue("s",_ptemp); |
220 | } else { | |
221 | Py_INCREF(Py_None); | |
222 | _resultobj = Py_None; | |
223 | } | |
224 | return _resultobj; | |
225 | } | |
226 | ||
ecc08ead RD |
227 | #define wxTopLevelWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
228 | static PyObject *_wrap_wxTopLevelWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
09f3d4e6 RD |
229 | PyObject * _resultobj; |
230 | bool _result; | |
ecc08ead | 231 | wxTopLevelWindow * _arg0; |
09f3d4e6 RD |
232 | wxWindow * _arg1; |
233 | wxWindowID _arg2; | |
234 | wxString * _arg3; | |
235 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
236 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
237 | long _arg6 = (long ) wxDEFAULT_FRAME_STYLE; | |
238 | char * _arg7 = (char *) "frame"; | |
239 | PyObject * _argo0 = 0; | |
240 | PyObject * _argo1 = 0; | |
241 | PyObject * _obj3 = 0; | |
242 | wxPoint temp; | |
243 | PyObject * _obj4 = 0; | |
244 | wxSize temp0; | |
245 | PyObject * _obj5 = 0; | |
246 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
247 | ||
248 | self = self; | |
ecc08ead | 249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxTopLevelWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) |
09f3d4e6 RD |
250 | return NULL; |
251 | if (_argo0) { | |
252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Create. Expected _wxTopLevelWindow_p."); | |
09f3d4e6 RD |
255 | return NULL; |
256 | } | |
257 | } | |
258 | if (_argo1) { | |
259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
ecc08ead | 261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_Create. Expected _wxWindow_p."); |
09f3d4e6 RD |
262 | return NULL; |
263 | } | |
264 | } | |
265 | { | |
266 | #if PYTHON_API_VERSION >= 1009 | |
267 | char* tmpPtr; int tmpSize; | |
268 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
269 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
270 | return NULL; | |
271 | } | |
272 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
273 | return NULL; | |
274 | _arg3 = new wxString(tmpPtr, tmpSize); | |
275 | #else | |
276 | if (!PyString_Check(_obj3)) { | |
277 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
278 | return NULL; | |
279 | } | |
280 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
281 | #endif | |
282 | } | |
283 | if (_obj4) | |
284 | { | |
285 | _arg4 = &temp; | |
286 | if (! wxPoint_helper(_obj4, &_arg4)) | |
287 | return NULL; | |
288 | } | |
289 | if (_obj5) | |
290 | { | |
291 | _arg5 = &temp0; | |
292 | if (! wxSize_helper(_obj5, &_arg5)) | |
293 | return NULL; | |
294 | } | |
295 | { | |
296 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 297 | _result = (bool )wxTopLevelWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
09f3d4e6 RD |
298 | |
299 | wxPy_END_ALLOW_THREADS; | |
300 | if (PyErr_Occurred()) return NULL; | |
301 | } _resultobj = Py_BuildValue("i",_result); | |
302 | { | |
303 | if (_obj3) | |
304 | delete _arg3; | |
305 | } | |
306 | return _resultobj; | |
307 | } | |
308 | ||
ecc08ead RD |
309 | #define wxTopLevelWindow_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0)) |
310 | static PyObject *_wrap_wxTopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 311 | PyObject * _resultobj; |
ecc08ead RD |
312 | wxTopLevelWindow * _arg0; |
313 | bool _arg1 = (bool ) TRUE; | |
1d99702e | 314 | PyObject * _argo0 = 0; |
ecc08ead RD |
315 | int tempbool1 = (int) TRUE; |
316 | char *_kwnames[] = { "self","maximize", NULL }; | |
9c039d08 RD |
317 | |
318 | self = self; | |
ecc08ead | 319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxTopLevelWindow_Maximize",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 320 | return NULL; |
1d99702e RD |
321 | if (_argo0) { |
322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Maximize. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
325 | return NULL; |
326 | } | |
327 | } | |
ecc08ead | 328 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
329 | { |
330 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 331 | wxTopLevelWindow_Maximize(_arg0,_arg1); |
cf694132 RD |
332 | |
333 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 334 | if (PyErr_Occurred()) return NULL; |
cf694132 | 335 | } Py_INCREF(Py_None); |
9c039d08 RD |
336 | _resultobj = Py_None; |
337 | return _resultobj; | |
338 | } | |
339 | ||
ecc08ead RD |
340 | #define wxTopLevelWindow_Restore(_swigobj) (_swigobj->Restore()) |
341 | static PyObject *_wrap_wxTopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 342 | PyObject * _resultobj; |
ecc08ead | 343 | wxTopLevelWindow * _arg0; |
1d99702e | 344 | PyObject * _argo0 = 0; |
ecc08ead | 345 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
346 | |
347 | self = self; | |
ecc08ead | 348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_Restore",_kwnames,&_argo0)) |
9c039d08 | 349 | return NULL; |
1d99702e RD |
350 | if (_argo0) { |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Restore. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
354 | return NULL; |
355 | } | |
356 | } | |
cf694132 RD |
357 | { |
358 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 359 | wxTopLevelWindow_Restore(_arg0); |
cf694132 RD |
360 | |
361 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 362 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
363 | } Py_INCREF(Py_None); |
364 | _resultobj = Py_None; | |
9c039d08 RD |
365 | return _resultobj; |
366 | } | |
367 | ||
ecc08ead RD |
368 | #define wxTopLevelWindow_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) |
369 | static PyObject *_wrap_wxTopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 370 | PyObject * _resultobj; |
ecc08ead RD |
371 | wxTopLevelWindow * _arg0; |
372 | bool _arg1 = (bool ) TRUE; | |
1d99702e | 373 | PyObject * _argo0 = 0; |
ecc08ead RD |
374 | int tempbool1 = (int) TRUE; |
375 | char *_kwnames[] = { "self","iconize", NULL }; | |
9c039d08 RD |
376 | |
377 | self = self; | |
ecc08ead | 378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxTopLevelWindow_Iconize",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 379 | return NULL; |
1d99702e RD |
380 | if (_argo0) { |
381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Iconize. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
384 | return NULL; |
385 | } | |
386 | } | |
ecc08ead | 387 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
388 | { |
389 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 390 | wxTopLevelWindow_Iconize(_arg0,_arg1); |
cf694132 RD |
391 | |
392 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 393 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
394 | } Py_INCREF(Py_None); |
395 | _resultobj = Py_None; | |
9c039d08 RD |
396 | return _resultobj; |
397 | } | |
398 | ||
ecc08ead RD |
399 | #define wxTopLevelWindow_IsMaximized(_swigobj) (_swigobj->IsMaximized()) |
400 | static PyObject *_wrap_wxTopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 401 | PyObject * _resultobj; |
ecc08ead RD |
402 | bool _result; |
403 | wxTopLevelWindow * _arg0; | |
f6bcfd97 BP |
404 | PyObject * _argo0 = 0; |
405 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
406 | |
407 | self = self; | |
ecc08ead | 408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsMaximized",_kwnames,&_argo0)) |
f6bcfd97 BP |
409 | return NULL; |
410 | if (_argo0) { | |
411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsMaximized. Expected _wxTopLevelWindow_p."); | |
f6bcfd97 BP |
414 | return NULL; |
415 | } | |
416 | } | |
417 | { | |
418 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 419 | _result = (bool )wxTopLevelWindow_IsMaximized(_arg0); |
f6bcfd97 BP |
420 | |
421 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 422 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 423 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
424 | return _resultobj; |
425 | } | |
426 | ||
ecc08ead RD |
427 | #define wxTopLevelWindow_IsIconized(_swigobj) (_swigobj->IsIconized()) |
428 | static PyObject *_wrap_wxTopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 429 | PyObject * _resultobj; |
ecc08ead RD |
430 | bool _result; |
431 | wxTopLevelWindow * _arg0; | |
1d99702e | 432 | PyObject * _argo0 = 0; |
efc5f224 | 433 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
434 | |
435 | self = self; | |
ecc08ead | 436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsIconized",_kwnames,&_argo0)) |
9c039d08 | 437 | return NULL; |
1d99702e RD |
438 | if (_argo0) { |
439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsIconized. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
442 | return NULL; |
443 | } | |
444 | } | |
cf694132 RD |
445 | { |
446 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 447 | _result = (bool )wxTopLevelWindow_IsIconized(_arg0); |
cf694132 RD |
448 | |
449 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 450 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 451 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
452 | return _resultobj; |
453 | } | |
454 | ||
ecc08ead RD |
455 | #define wxTopLevelWindow_GetIcon(_swigobj) (_swigobj->GetIcon()) |
456 | static PyObject *_wrap_wxTopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 457 | PyObject * _resultobj; |
ecc08ead RD |
458 | wxIcon * _result; |
459 | wxTopLevelWindow * _arg0; | |
1d99702e | 460 | PyObject * _argo0 = 0; |
efc5f224 | 461 | char *_kwnames[] = { "self", NULL }; |
ecc08ead | 462 | char _ptemp[128]; |
9c039d08 RD |
463 | |
464 | self = self; | |
ecc08ead | 465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetIcon",_kwnames,&_argo0)) |
9c039d08 | 466 | return NULL; |
1d99702e RD |
467 | if (_argo0) { |
468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetIcon. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
471 | return NULL; |
472 | } | |
473 | } | |
cf694132 RD |
474 | { |
475 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead RD |
476 | const wxIcon & _result_ref = wxTopLevelWindow_GetIcon(_arg0); |
477 | _result = (wxIcon *) &_result_ref; | |
cf694132 RD |
478 | |
479 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 480 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
481 | } if (_result) { |
482 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
483 | _resultobj = Py_BuildValue("s",_ptemp); | |
484 | } else { | |
485 | Py_INCREF(Py_None); | |
486 | _resultobj = Py_None; | |
487 | } | |
9c039d08 RD |
488 | return _resultobj; |
489 | } | |
490 | ||
ecc08ead RD |
491 | #define wxTopLevelWindow_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
492 | static PyObject *_wrap_wxTopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 493 | PyObject * _resultobj; |
ecc08ead RD |
494 | wxTopLevelWindow * _arg0; |
495 | wxIcon * _arg1; | |
1d99702e | 496 | PyObject * _argo0 = 0; |
ecc08ead RD |
497 | PyObject * _argo1 = 0; |
498 | char *_kwnames[] = { "self","icon", NULL }; | |
9c039d08 RD |
499 | |
500 | self = self; | |
ecc08ead | 501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetIcon",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 502 | return NULL; |
1d99702e RD |
503 | if (_argo0) { |
504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetIcon. Expected _wxTopLevelWindow_p."); | |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | if (_argo1) { | |
511 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
512 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_SetIcon. Expected _wxIcon_p."); | |
9c039d08 RD |
514 | return NULL; |
515 | } | |
516 | } | |
9c039d08 | 517 | { |
cf694132 | 518 | wxPy_BEGIN_ALLOW_THREADS; |
ecc08ead | 519 | wxTopLevelWindow_SetIcon(_arg0,*_arg1); |
cf694132 RD |
520 | |
521 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 522 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
523 | } Py_INCREF(Py_None); |
524 | _resultobj = Py_None; | |
9c039d08 RD |
525 | return _resultobj; |
526 | } | |
527 | ||
900d9886 RD |
528 | #define wxTopLevelWindow_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1)) |
529 | static PyObject *_wrap_wxTopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
530 | PyObject * _resultobj; | |
531 | bool _result; | |
532 | wxTopLevelWindow * _arg0; | |
533 | bool _arg1; | |
534 | long _arg2 = (long ) (wxFULLSCREEN_ALL); | |
535 | PyObject * _argo0 = 0; | |
536 | int tempbool1; | |
537 | char *_kwnames[] = { "self","show","style", NULL }; | |
538 | ||
539 | self = self; | |
540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|l:wxTopLevelWindow_ShowFullScreen",_kwnames,&_argo0,&tempbool1,&_arg2)) | |
541 | return NULL; | |
542 | if (_argo0) { | |
543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { | |
545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_ShowFullScreen. Expected _wxTopLevelWindow_p."); | |
546 | return NULL; | |
547 | } | |
548 | } | |
549 | _arg1 = (bool ) tempbool1; | |
550 | { | |
551 | wxPy_BEGIN_ALLOW_THREADS; | |
552 | _result = (bool )wxTopLevelWindow_ShowFullScreen(_arg0,_arg1,_arg2); | |
553 | ||
554 | wxPy_END_ALLOW_THREADS; | |
555 | if (PyErr_Occurred()) return NULL; | |
556 | } _resultobj = Py_BuildValue("i",_result); | |
557 | return _resultobj; | |
558 | } | |
559 | ||
560 | #define wxTopLevelWindow_IsFullScreen(_swigobj) (_swigobj->IsFullScreen()) | |
561 | static PyObject *_wrap_wxTopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
562 | PyObject * _resultobj; | |
563 | bool _result; | |
564 | wxTopLevelWindow * _arg0; | |
565 | PyObject * _argo0 = 0; | |
566 | char *_kwnames[] = { "self", NULL }; | |
567 | ||
568 | self = self; | |
569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsFullScreen",_kwnames,&_argo0)) | |
570 | return NULL; | |
571 | if (_argo0) { | |
572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { | |
574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsFullScreen. Expected _wxTopLevelWindow_p."); | |
575 | return NULL; | |
576 | } | |
577 | } | |
578 | { | |
579 | wxPy_BEGIN_ALLOW_THREADS; | |
580 | _result = (bool )wxTopLevelWindow_IsFullScreen(_arg0); | |
581 | ||
582 | wxPy_END_ALLOW_THREADS; | |
583 | if (PyErr_Occurred()) return NULL; | |
584 | } _resultobj = Py_BuildValue("i",_result); | |
585 | return _resultobj; | |
586 | } | |
587 | ||
ecc08ead RD |
588 | #define wxTopLevelWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
589 | static PyObject *_wrap_wxTopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 590 | PyObject * _resultobj; |
ecc08ead RD |
591 | wxTopLevelWindow * _arg0; |
592 | wxString * _arg1; | |
1d99702e | 593 | PyObject * _argo0 = 0; |
ecc08ead RD |
594 | PyObject * _obj1 = 0; |
595 | char *_kwnames[] = { "self","title", NULL }; | |
9c039d08 RD |
596 | |
597 | self = self; | |
ecc08ead | 598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
9c039d08 | 599 | return NULL; |
1d99702e RD |
600 | if (_argo0) { |
601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetTitle. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
604 | return NULL; |
605 | } | |
606 | } | |
cf694132 | 607 | { |
ecc08ead RD |
608 | #if PYTHON_API_VERSION >= 1009 |
609 | char* tmpPtr; int tmpSize; | |
610 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
611 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9c039d08 | 612 | return NULL; |
ecc08ead RD |
613 | } |
614 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
615 | return NULL; | |
616 | _arg1 = new wxString(tmpPtr, tmpSize); | |
617 | #else | |
618 | if (!PyString_Check(_obj1)) { | |
619 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9c039d08 | 620 | return NULL; |
9c039d08 | 621 | } |
ecc08ead RD |
622 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
623 | #endif | |
624 | } | |
cf694132 RD |
625 | { |
626 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 627 | wxTopLevelWindow_SetTitle(_arg0,*_arg1); |
cf694132 RD |
628 | |
629 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 630 | if (PyErr_Occurred()) return NULL; |
cf694132 | 631 | } Py_INCREF(Py_None); |
9c039d08 | 632 | _resultobj = Py_None; |
ecc08ead RD |
633 | { |
634 | if (_obj1) | |
635 | delete _arg1; | |
636 | } | |
9c039d08 RD |
637 | return _resultobj; |
638 | } | |
639 | ||
ecc08ead RD |
640 | #define wxTopLevelWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
641 | static PyObject *_wrap_wxTopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 642 | PyObject * _resultobj; |
ecc08ead RD |
643 | wxString * _result; |
644 | wxTopLevelWindow * _arg0; | |
1d99702e | 645 | PyObject * _argo0 = 0; |
efc5f224 | 646 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
647 | |
648 | self = self; | |
ecc08ead | 649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetTitle",_kwnames,&_argo0)) |
9c039d08 | 650 | return NULL; |
1d99702e RD |
651 | if (_argo0) { |
652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetTitle. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
655 | return NULL; |
656 | } | |
657 | } | |
cf694132 RD |
658 | { |
659 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 660 | _result = new wxString (wxTopLevelWindow_GetTitle(_arg0)); |
cf694132 RD |
661 | |
662 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 663 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
664 | }{ |
665 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
666 | } | |
667 | { | |
668 | delete _result; | |
669 | } | |
9c039d08 RD |
670 | return _resultobj; |
671 | } | |
672 | ||
ecc08ead RD |
673 | static void *SwigwxFrameTowxTopLevelWindow(void *ptr) { |
674 | wxFrame *src; | |
675 | wxTopLevelWindow *dest; | |
676 | src = (wxFrame *) ptr; | |
677 | dest = (wxTopLevelWindow *) src; | |
678 | return (void *) dest; | |
679 | } | |
680 | ||
681 | static void *SwigwxFrameTowxWindow(void *ptr) { | |
682 | wxFrame *src; | |
683 | wxWindow *dest; | |
684 | src = (wxFrame *) ptr; | |
685 | dest = (wxWindow *) src; | |
686 | return (void *) dest; | |
687 | } | |
688 | ||
689 | static void *SwigwxFrameTowxEvtHandler(void *ptr) { | |
690 | wxFrame *src; | |
691 | wxEvtHandler *dest; | |
692 | src = (wxFrame *) ptr; | |
693 | dest = (wxEvtHandler *) src; | |
694 | return (void *) dest; | |
695 | } | |
696 | ||
697 | static void *SwigwxFrameTowxObject(void *ptr) { | |
698 | wxFrame *src; | |
699 | wxObject *dest; | |
700 | src = (wxFrame *) ptr; | |
701 | dest = (wxObject *) src; | |
702 | return (void *) dest; | |
703 | } | |
704 | ||
705 | #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
706 | static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 707 | PyObject * _resultobj; |
ecc08ead RD |
708 | wxFrame * _result; |
709 | wxWindow * _arg0; | |
710 | wxWindowID _arg1; | |
711 | wxString * _arg2; | |
712 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
713 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
714 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
715 | char * _arg6 = (char *) "frame"; | |
1d99702e | 716 | PyObject * _argo0 = 0; |
ecc08ead RD |
717 | PyObject * _obj2 = 0; |
718 | wxPoint temp; | |
719 | PyObject * _obj3 = 0; | |
720 | wxSize temp0; | |
721 | PyObject * _obj4 = 0; | |
722 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
723 | char _ptemp[128]; | |
9c039d08 RD |
724 | |
725 | self = self; | |
ecc08ead | 726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
9c039d08 | 727 | return NULL; |
1d99702e RD |
728 | if (_argo0) { |
729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p."); | |
9c039d08 RD |
732 | return NULL; |
733 | } | |
734 | } | |
cf694132 | 735 | { |
ecc08ead RD |
736 | #if PYTHON_API_VERSION >= 1009 |
737 | char* tmpPtr; int tmpSize; | |
738 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
739 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
740 | return NULL; | |
741 | } | |
742 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
743 | return NULL; | |
744 | _arg2 = new wxString(tmpPtr, tmpSize); | |
745 | #else | |
746 | if (!PyString_Check(_obj2)) { | |
747 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
748 | return NULL; | |
749 | } | |
750 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
751 | #endif | |
752 | } | |
753 | if (_obj3) | |
754 | { | |
755 | _arg3 = &temp; | |
756 | if (! wxPoint_helper(_obj3, &_arg3)) | |
757 | return NULL; | |
758 | } | |
759 | if (_obj4) | |
760 | { | |
761 | _arg4 = &temp0; | |
762 | if (! wxSize_helper(_obj4, &_arg4)) | |
763 | return NULL; | |
764 | } | |
765 | { | |
766 | wxPy_BEGIN_ALLOW_THREADS; | |
767 | _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
768 | ||
769 | wxPy_END_ALLOW_THREADS; | |
770 | if (PyErr_Occurred()) return NULL; | |
771 | } if (_result) { | |
772 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
773 | _resultobj = Py_BuildValue("s",_ptemp); | |
774 | } else { | |
775 | Py_INCREF(Py_None); | |
776 | _resultobj = Py_None; | |
777 | } | |
778 | { | |
779 | if (_obj2) | |
780 | delete _arg2; | |
781 | } | |
782 | return _resultobj; | |
783 | } | |
784 | ||
785 | #define new_wxPreFrame() (new wxFrame()) | |
786 | static PyObject *_wrap_new_wxPreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
787 | PyObject * _resultobj; | |
788 | wxFrame * _result; | |
789 | char *_kwnames[] = { NULL }; | |
790 | char _ptemp[128]; | |
791 | ||
792 | self = self; | |
793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreFrame",_kwnames)) | |
794 | return NULL; | |
795 | { | |
796 | wxPy_BEGIN_ALLOW_THREADS; | |
797 | _result = (wxFrame *)new_wxPreFrame(); | |
798 | ||
799 | wxPy_END_ALLOW_THREADS; | |
800 | if (PyErr_Occurred()) return NULL; | |
801 | } if (_result) { | |
802 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
803 | _resultobj = Py_BuildValue("s",_ptemp); | |
804 | } else { | |
805 | Py_INCREF(Py_None); | |
806 | _resultobj = Py_None; | |
807 | } | |
808 | return _resultobj; | |
809 | } | |
810 | ||
811 | #define wxFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
812 | static PyObject *_wrap_wxFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
813 | PyObject * _resultobj; | |
814 | bool _result; | |
815 | wxFrame * _arg0; | |
816 | wxWindow * _arg1; | |
817 | wxWindowID _arg2; | |
818 | wxString * _arg3; | |
819 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
820 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
821 | long _arg6 = (long ) wxDEFAULT_FRAME_STYLE; | |
822 | char * _arg7 = (char *) "frame"; | |
823 | PyObject * _argo0 = 0; | |
824 | PyObject * _argo1 = 0; | |
825 | PyObject * _obj3 = 0; | |
826 | wxPoint temp; | |
827 | PyObject * _obj4 = 0; | |
828 | wxSize temp0; | |
829 | PyObject * _obj5 = 0; | |
830 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
831 | ||
832 | self = self; | |
833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
834 | return NULL; | |
835 | if (_argo0) { | |
836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Create. Expected _wxFrame_p."); | |
839 | return NULL; | |
840 | } | |
841 | } | |
842 | if (_argo1) { | |
843 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
844 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_Create. Expected _wxWindow_p."); | |
846 | return NULL; | |
847 | } | |
848 | } | |
849 | { | |
850 | #if PYTHON_API_VERSION >= 1009 | |
851 | char* tmpPtr; int tmpSize; | |
852 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
854 | return NULL; | |
855 | } | |
856 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
857 | return NULL; | |
858 | _arg3 = new wxString(tmpPtr, tmpSize); | |
859 | #else | |
860 | if (!PyString_Check(_obj3)) { | |
861 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
862 | return NULL; | |
863 | } | |
864 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
865 | #endif | |
866 | } | |
867 | if (_obj4) | |
868 | { | |
869 | _arg4 = &temp; | |
870 | if (! wxPoint_helper(_obj4, &_arg4)) | |
871 | return NULL; | |
872 | } | |
873 | if (_obj5) | |
874 | { | |
875 | _arg5 = &temp0; | |
876 | if (! wxSize_helper(_obj5, &_arg5)) | |
877 | return NULL; | |
878 | } | |
879 | { | |
880 | wxPy_BEGIN_ALLOW_THREADS; | |
881 | _result = (bool )wxFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
882 | ||
883 | wxPy_END_ALLOW_THREADS; | |
884 | if (PyErr_Occurred()) return NULL; | |
885 | } _resultobj = Py_BuildValue("i",_result); | |
886 | { | |
887 | if (_obj3) | |
888 | delete _arg3; | |
889 | } | |
890 | return _resultobj; | |
891 | } | |
892 | ||
893 | #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) | |
894 | static PyObject *_wrap_wxFrame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
895 | PyObject * _resultobj; | |
896 | wxPoint * _result; | |
897 | wxFrame * _arg0; | |
898 | PyObject * _argo0 = 0; | |
899 | char *_kwnames[] = { "self", NULL }; | |
900 | char _ptemp[128]; | |
901 | ||
902 | self = self; | |
903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetClientAreaOrigin",_kwnames,&_argo0)) | |
904 | return NULL; | |
905 | if (_argo0) { | |
906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p."); | |
909 | return NULL; | |
910 | } | |
911 | } | |
912 | { | |
913 | wxPy_BEGIN_ALLOW_THREADS; | |
914 | _result = new wxPoint (wxFrame_GetClientAreaOrigin(_arg0)); | |
915 | ||
916 | wxPy_END_ALLOW_THREADS; | |
917 | if (PyErr_Occurred()) return NULL; | |
918 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
919 | _resultobj = Py_BuildValue("s",_ptemp); | |
920 | return _resultobj; | |
921 | } | |
922 | ||
923 | #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0)) | |
924 | static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
925 | PyObject * _resultobj; | |
926 | wxFrame * _arg0; | |
927 | wxMenuBar * _arg1; | |
928 | PyObject * _argo0 = 0; | |
929 | PyObject * _argo1 = 0; | |
930 | char *_kwnames[] = { "self","menubar", NULL }; | |
931 | ||
932 | self = self; | |
933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetMenuBar",_kwnames,&_argo0,&_argo1)) | |
934 | return NULL; | |
935 | if (_argo0) { | |
936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p."); | |
939 | return NULL; | |
940 | } | |
941 | } | |
942 | if (_argo1) { | |
943 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
944 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuBar_p")) { | |
945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p."); | |
946 | return NULL; | |
947 | } | |
948 | } | |
949 | { | |
950 | wxPy_BEGIN_ALLOW_THREADS; | |
951 | wxFrame_SetMenuBar(_arg0,_arg1); | |
952 | ||
953 | wxPy_END_ALLOW_THREADS; | |
954 | if (PyErr_Occurred()) return NULL; | |
955 | } Py_INCREF(Py_None); | |
956 | _resultobj = Py_None; | |
957 | return _resultobj; | |
958 | } | |
959 | ||
960 | #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar()) | |
961 | static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject * _resultobj; | |
963 | wxMenuBar * _result; | |
964 | wxFrame * _arg0; | |
965 | PyObject * _argo0 = 0; | |
966 | char *_kwnames[] = { "self", NULL }; | |
967 | ||
968 | self = self; | |
969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetMenuBar",_kwnames,&_argo0)) | |
970 | return NULL; | |
971 | if (_argo0) { | |
972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p."); | |
975 | return NULL; | |
976 | } | |
977 | } | |
978 | { | |
979 | wxPy_BEGIN_ALLOW_THREADS; | |
980 | _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0); | |
981 | ||
982 | wxPy_END_ALLOW_THREADS; | |
983 | if (PyErr_Occurred()) return NULL; | |
984 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
985 | return _resultobj; | |
986 | } | |
987 | ||
988 | #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
989 | static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
990 | PyObject * _resultobj; | |
991 | bool _result; | |
992 | wxFrame * _arg0; | |
993 | int _arg1; | |
994 | PyObject * _argo0 = 0; | |
995 | char *_kwnames[] = { "self","id", NULL }; | |
996 | ||
997 | self = self; | |
998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1)) | |
999 | return NULL; | |
1000 | if (_argo0) { | |
1001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p."); | |
1004 | return NULL; | |
1005 | } | |
1006 | } | |
1007 | { | |
1008 | wxPy_BEGIN_ALLOW_THREADS; | |
1009 | _result = (bool )wxFrame_Command(_arg0,_arg1); | |
1010 | ||
1011 | wxPy_END_ALLOW_THREADS; | |
1012 | if (PyErr_Occurred()) return NULL; | |
1013 | } _resultobj = Py_BuildValue("i",_result); | |
1014 | return _resultobj; | |
1015 | } | |
1016 | ||
1017 | #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0)) | |
1018 | static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1019 | PyObject * _resultobj; | |
1020 | bool _result; | |
1021 | wxFrame * _arg0; | |
1022 | int _arg1; | |
1023 | PyObject * _argo0 = 0; | |
1024 | char *_kwnames[] = { "self","id", NULL }; | |
1025 | ||
1026 | self = self; | |
1027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_ProcessCommand",_kwnames,&_argo0,&_arg1)) | |
1028 | return NULL; | |
1029 | if (_argo0) { | |
1030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p."); | |
1033 | return NULL; | |
1034 | } | |
1035 | } | |
1036 | { | |
1037 | wxPy_BEGIN_ALLOW_THREADS; | |
1038 | _result = (bool )wxFrame_ProcessCommand(_arg0,_arg1); | |
1039 | ||
1040 | wxPy_END_ALLOW_THREADS; | |
1041 | if (PyErr_Occurred()) return NULL; | |
1042 | } _resultobj = Py_BuildValue("i",_result); | |
1043 | return _resultobj; | |
1044 | } | |
1045 | ||
1046 | #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1047 | static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1048 | PyObject * _resultobj; | |
1049 | wxStatusBar * _result; | |
1050 | wxFrame * _arg0; | |
1051 | int _arg1 = (int ) 1; | |
1052 | long _arg2 = (long ) wxST_SIZEGRIP; | |
1053 | wxWindowID _arg3 = (wxWindowID ) -1; | |
1054 | char * _arg4 = (char *) "statusBar"; | |
1055 | PyObject * _argo0 = 0; | |
1056 | char *_kwnames[] = { "self","number","style","id","name", NULL }; | |
1057 | ||
1058 | self = self; | |
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ilis:wxFrame_CreateStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1060 | return NULL; | |
1061 | if (_argo0) { | |
1062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p."); | |
1065 | return NULL; | |
1066 | } | |
1067 | } | |
1068 | { | |
1069 | wxPy_BEGIN_ALLOW_THREADS; | |
1070 | _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4); | |
1071 | ||
1072 | wxPy_END_ALLOW_THREADS; | |
1073 | if (PyErr_Occurred()) return NULL; | |
1074 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1075 | return _resultobj; | |
1076 | } | |
1077 | ||
1078 | #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar()) | |
1079 | static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1080 | PyObject * _resultobj; | |
1081 | wxStatusBar * _result; | |
1082 | wxFrame * _arg0; | |
1083 | PyObject * _argo0 = 0; | |
1084 | char *_kwnames[] = { "self", NULL }; | |
1085 | ||
1086 | self = self; | |
1087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetStatusBar",_kwnames,&_argo0)) | |
1088 | return NULL; | |
1089 | if (_argo0) { | |
1090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p."); | |
1093 | return NULL; | |
1094 | } | |
1095 | } | |
1096 | { | |
1097 | wxPy_BEGIN_ALLOW_THREADS; | |
1098 | _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0); | |
1099 | ||
1100 | wxPy_END_ALLOW_THREADS; | |
1101 | if (PyErr_Occurred()) return NULL; | |
1102 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1103 | return _resultobj; | |
1104 | } | |
1105 | ||
1106 | #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0)) | |
1107 | static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1108 | PyObject * _resultobj; | |
1109 | wxFrame * _arg0; | |
1110 | wxStatusBar * _arg1; | |
1111 | PyObject * _argo0 = 0; | |
1112 | PyObject * _argo1 = 0; | |
1113 | char *_kwnames[] = { "self","statBar", NULL }; | |
1114 | ||
1115 | self = self; | |
1116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusBar",_kwnames,&_argo0,&_argo1)) | |
1117 | return NULL; | |
1118 | if (_argo0) { | |
1119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p."); | |
1122 | return NULL; | |
1123 | } | |
1124 | } | |
1125 | if (_argo1) { | |
1126 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1127 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStatusBar_p")) { | |
1128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p."); | |
1129 | return NULL; | |
1130 | } | |
1131 | } | |
1132 | { | |
1133 | wxPy_BEGIN_ALLOW_THREADS; | |
1134 | wxFrame_SetStatusBar(_arg0,_arg1); | |
1135 | ||
1136 | wxPy_END_ALLOW_THREADS; | |
1137 | if (PyErr_Occurred()) return NULL; | |
1138 | } Py_INCREF(Py_None); | |
1139 | _resultobj = Py_None; | |
1140 | return _resultobj; | |
1141 | } | |
1142 | ||
1143 | #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1)) | |
1144 | static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject * _resultobj; | |
1146 | wxFrame * _arg0; | |
1147 | wxString * _arg1; | |
1148 | int _arg2 = (int ) 0; | |
1149 | PyObject * _argo0 = 0; | |
1150 | PyObject * _obj1 = 0; | |
1151 | char *_kwnames[] = { "self","text","number", NULL }; | |
1152 | ||
1153 | self = self; | |
1154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFrame_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1155 | return NULL; | |
1156 | if (_argo0) { | |
1157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p."); | |
1160 | return NULL; | |
1161 | } | |
1162 | } | |
1163 | { | |
1164 | #if PYTHON_API_VERSION >= 1009 | |
1165 | char* tmpPtr; int tmpSize; | |
1166 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1167 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1168 | return NULL; | |
1169 | } | |
1170 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1171 | return NULL; | |
1172 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1173 | #else | |
1174 | if (!PyString_Check(_obj1)) { | |
1175 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1176 | return NULL; | |
1177 | } | |
1178 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1179 | #endif | |
1180 | } | |
1181 | { | |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | wxFrame_SetStatusText(_arg0,*_arg1,_arg2); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
1186 | if (PyErr_Occurred()) return NULL; | |
1187 | } Py_INCREF(Py_None); | |
1188 | _resultobj = Py_None; | |
1189 | { | |
1190 | if (_obj1) | |
1191 | delete _arg1; | |
1192 | } | |
1193 | return _resultobj; | |
1194 | } | |
1195 | ||
1196 | #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1)) | |
1197 | static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1198 | PyObject * _resultobj; | |
1199 | wxFrame * _arg0; | |
1200 | int _arg1; | |
1201 | int * _arg2; | |
1202 | PyObject * _argo0 = 0; | |
1203 | PyObject * _obj2 = 0; | |
1204 | char *_kwnames[] = { "self","choices", NULL }; | |
1205 | ||
1206 | self = self; | |
1207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusWidths",_kwnames,&_argo0,&_obj2)) | |
1208 | return NULL; | |
1209 | if (_argo0) { | |
1210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p."); | |
1213 | return NULL; | |
1214 | } | |
1215 | } | |
1216 | if (_obj2) | |
1217 | { | |
1218 | _arg2 = int_LIST_helper(_obj2); | |
1219 | if (_arg2 == NULL) { | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
1224 | if (_obj2) { | |
1225 | _arg1 = PyList_Size(_obj2); | |
1226 | } | |
1227 | else { | |
1228 | _arg1 = 0; | |
1229 | } | |
1230 | } | |
1231 | { | |
1232 | wxPy_BEGIN_ALLOW_THREADS; | |
1233 | wxFrame_SetStatusWidths(_arg0,_arg1,_arg2); | |
1234 | ||
1235 | wxPy_END_ALLOW_THREADS; | |
1236 | if (PyErr_Occurred()) return NULL; | |
1237 | } Py_INCREF(Py_None); | |
1238 | _resultobj = Py_None; | |
1239 | { | |
1240 | delete [] _arg2; | |
1241 | } | |
1242 | return _resultobj; | |
1243 | } | |
1244 | ||
1245 | #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2)) | |
1246 | static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1247 | PyObject * _resultobj; | |
1248 | wxToolBar * _result; | |
1249 | wxFrame * _arg0; | |
1250 | long _arg1 = (long ) wxNO_BORDER|wxTB_HORIZONTAL; | |
1251 | wxWindowID _arg2 = (wxWindowID ) -1; | |
1252 | char * _arg3 = (char *) "toolBar"; | |
1253 | PyObject * _argo0 = 0; | |
1254 | char *_kwnames[] = { "self","style","id","name", NULL }; | |
1255 | ||
1256 | self = self; | |
1257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|lis:wxFrame_CreateToolBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
1258 | return NULL; | |
1259 | if (_argo0) { | |
1260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p."); | |
1263 | return NULL; | |
1264 | } | |
1265 | } | |
1266 | { | |
1267 | wxPy_BEGIN_ALLOW_THREADS; | |
1268 | _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3); | |
cf694132 RD |
1269 | |
1270 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1271 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 1272 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
1273 | return _resultobj; |
1274 | } | |
1275 | ||
ecc08ead RD |
1276 | #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar()) |
1277 | static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1278 | PyObject * _resultobj; |
ecc08ead | 1279 | wxToolBar * _result; |
f6bcfd97 BP |
1280 | wxFrame * _arg0; |
1281 | PyObject * _argo0 = 0; | |
1282 | char *_kwnames[] = { "self", NULL }; | |
1283 | ||
1284 | self = self; | |
ecc08ead | 1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetToolBar",_kwnames,&_argo0)) |
f6bcfd97 BP |
1286 | return NULL; |
1287 | if (_argo0) { | |
1288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
ecc08ead | 1290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p."); |
f6bcfd97 BP |
1291 | return NULL; |
1292 | } | |
1293 | } | |
1294 | { | |
1295 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1296 | _result = (wxToolBar *)wxFrame_GetToolBar(_arg0); |
f6bcfd97 BP |
1297 | |
1298 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1299 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 1300 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
1301 | return _resultobj; |
1302 | } | |
1303 | ||
ecc08ead RD |
1304 | #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0)) |
1305 | static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
1306 | PyObject * _resultobj; |
1307 | wxFrame * _arg0; | |
ecc08ead | 1308 | wxToolBar * _arg1; |
f6bcfd97 | 1309 | PyObject * _argo0 = 0; |
ecc08ead RD |
1310 | PyObject * _argo1 = 0; |
1311 | char *_kwnames[] = { "self","toolbar", NULL }; | |
f6bcfd97 BP |
1312 | |
1313 | self = self; | |
ecc08ead | 1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetToolBar",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
1315 | return NULL; |
1316 | if (_argo0) { | |
1317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
ecc08ead RD |
1319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p."); |
1320 | return NULL; | |
1321 | } | |
1322 | } | |
1323 | if (_argo1) { | |
1324 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1325 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) { | |
1326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p."); | |
f6bcfd97 BP |
1327 | return NULL; |
1328 | } | |
1329 | } | |
1330 | { | |
1331 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1332 | wxFrame_SetToolBar(_arg0,_arg1); |
f6bcfd97 BP |
1333 | |
1334 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1335 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1336 | } Py_INCREF(Py_None); |
1337 | _resultobj = Py_None; | |
1338 | return _resultobj; | |
1339 | } | |
1340 | ||
ecc08ead RD |
1341 | static void *SwigwxDialogTowxTopLevelWindow(void *ptr) { |
1342 | wxDialog *src; | |
1343 | wxTopLevelWindow *dest; | |
1344 | src = (wxDialog *) ptr; | |
1345 | dest = (wxTopLevelWindow *) src; | |
1346 | return (void *) dest; | |
1347 | } | |
1348 | ||
1349 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
1350 | wxDialog *src; | |
1351 | wxWindow *dest; | |
1352 | src = (wxDialog *) ptr; | |
1353 | dest = (wxWindow *) src; | |
1354 | return (void *) dest; | |
1355 | } | |
1356 | ||
1357 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
1358 | wxDialog *src; | |
1359 | wxEvtHandler *dest; | |
1360 | src = (wxDialog *) ptr; | |
1361 | dest = (wxEvtHandler *) src; | |
1362 | return (void *) dest; | |
1363 | } | |
1364 | ||
1365 | static void *SwigwxDialogTowxObject(void *ptr) { | |
1366 | wxDialog *src; | |
1367 | wxObject *dest; | |
1368 | src = (wxDialog *) ptr; | |
1369 | dest = (wxObject *) src; | |
1370 | return (void *) dest; | |
1371 | } | |
1372 | ||
1373 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
1374 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1375 | PyObject * _resultobj; | |
1376 | wxDialog * _result; | |
1377 | wxWindow * _arg0; | |
1378 | wxWindowID _arg1; | |
1379 | wxString * _arg2; | |
1380 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1381 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1382 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
1383 | char * _arg6 = (char *) "dialogBox"; | |
1384 | PyObject * _argo0 = 0; | |
1385 | PyObject * _obj2 = 0; | |
1386 | wxPoint temp; | |
1387 | PyObject * _obj3 = 0; | |
1388 | wxSize temp0; | |
1389 | PyObject * _obj4 = 0; | |
1390 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
1391 | char _ptemp[128]; | |
1392 | ||
1393 | self = self; | |
1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
1395 | return NULL; | |
1396 | if (_argo0) { | |
1397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); | |
9c039d08 RD |
1400 | return NULL; |
1401 | } | |
1402 | } | |
ecc08ead RD |
1403 | { |
1404 | #if PYTHON_API_VERSION >= 1009 | |
1405 | char* tmpPtr; int tmpSize; | |
1406 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1407 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1408 | return NULL; | |
1409 | } | |
1410 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1411 | return NULL; | |
1412 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1413 | #else | |
1414 | if (!PyString_Check(_obj2)) { | |
1415 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1416 | return NULL; | |
1417 | } | |
1418 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1419 | #endif | |
1420 | } | |
1421 | if (_obj3) | |
1422 | { | |
1423 | _arg3 = &temp; | |
1424 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1425 | return NULL; | |
1426 | } | |
1427 | if (_obj4) | |
1428 | { | |
1429 | _arg4 = &temp0; | |
1430 | if (! wxSize_helper(_obj4, &_arg4)) | |
1431 | return NULL; | |
1432 | } | |
cf694132 RD |
1433 | { |
1434 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1435 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
cf694132 RD |
1436 | |
1437 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1438 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
1439 | } if (_result) { |
1440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
1441 | _resultobj = Py_BuildValue("s",_ptemp); | |
1442 | } else { | |
1443 | Py_INCREF(Py_None); | |
1444 | _resultobj = Py_None; | |
1445 | } | |
1446 | { | |
1447 | if (_obj2) | |
1448 | delete _arg2; | |
1449 | } | |
9c039d08 RD |
1450 | return _resultobj; |
1451 | } | |
1452 | ||
ecc08ead RD |
1453 | #define new_wxPreDialog() (new wxDialog()) |
1454 | static PyObject *_wrap_new_wxPreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1455 | PyObject * _resultobj; |
ecc08ead RD |
1456 | wxDialog * _result; |
1457 | char *_kwnames[] = { NULL }; | |
1458 | char _ptemp[128]; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDialog",_kwnames)) | |
1462 | return NULL; | |
1463 | { | |
1464 | wxPy_BEGIN_ALLOW_THREADS; | |
1465 | _result = (wxDialog *)new_wxPreDialog(); | |
1466 | ||
1467 | wxPy_END_ALLOW_THREADS; | |
1468 | if (PyErr_Occurred()) return NULL; | |
1469 | } if (_result) { | |
1470 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
1471 | _resultobj = Py_BuildValue("s",_ptemp); | |
1472 | } else { | |
1473 | Py_INCREF(Py_None); | |
1474 | _resultobj = Py_None; | |
1475 | } | |
1476 | return _resultobj; | |
1477 | } | |
1478 | ||
1479 | #define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
1480 | static PyObject *_wrap_wxDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject * _resultobj; | |
1482 | bool _result; | |
1483 | wxDialog * _arg0; | |
1484 | wxWindow * _arg1; | |
1485 | wxWindowID _arg2; | |
1486 | wxString * _arg3; | |
1487 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1488 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1489 | long _arg6 = (long ) wxDEFAULT_DIALOG_STYLE; | |
1490 | char * _arg7 = (char *) "dialogBox"; | |
1d99702e | 1491 | PyObject * _argo0 = 0; |
ecc08ead RD |
1492 | PyObject * _argo1 = 0; |
1493 | PyObject * _obj3 = 0; | |
1494 | wxPoint temp; | |
1495 | PyObject * _obj4 = 0; | |
1496 | wxSize temp0; | |
1497 | PyObject * _obj5 = 0; | |
1498 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
9c039d08 RD |
1499 | |
1500 | self = self; | |
ecc08ead | 1501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxDialog_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) |
9c039d08 | 1502 | return NULL; |
1d99702e RD |
1503 | if (_argo0) { |
1504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_p."); | |
1507 | return NULL; | |
1508 | } | |
1509 | } | |
1510 | if (_argo1) { | |
1511 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1512 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDialog_Create. Expected _wxWindow_p."); | |
9c039d08 RD |
1514 | return NULL; |
1515 | } | |
1516 | } | |
1517 | { | |
185d7c3e RD |
1518 | #if PYTHON_API_VERSION >= 1009 |
1519 | char* tmpPtr; int tmpSize; | |
ecc08ead | 1520 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
794c5cb1 | 1521 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1522 | return NULL; |
1523 | } | |
ecc08ead | 1524 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
185d7c3e | 1525 | return NULL; |
ecc08ead | 1526 | _arg3 = new wxString(tmpPtr, tmpSize); |
185d7c3e | 1527 | #else |
ecc08ead | 1528 | if (!PyString_Check(_obj3)) { |
9c039d08 RD |
1529 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1530 | return NULL; | |
1531 | } | |
ecc08ead | 1532 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
185d7c3e | 1533 | #endif |
ecc08ead RD |
1534 | } |
1535 | if (_obj4) | |
1536 | { | |
1537 | _arg4 = &temp; | |
1538 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1539 | return NULL; | |
1540 | } | |
1541 | if (_obj5) | |
1542 | { | |
1543 | _arg5 = &temp0; | |
1544 | if (! wxSize_helper(_obj5, &_arg5)) | |
1545 | return NULL; | |
9c039d08 | 1546 | } |
cf694132 RD |
1547 | { |
1548 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1549 | _result = (bool )wxDialog_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
cf694132 RD |
1550 | |
1551 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1552 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 1553 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 | 1554 | { |
ecc08ead RD |
1555 | if (_obj3) |
1556 | delete _arg3; | |
9c039d08 RD |
1557 | } |
1558 | return _resultobj; | |
1559 | } | |
1560 | ||
ecc08ead RD |
1561 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) |
1562 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1563 | PyObject * _resultobj; |
ecc08ead RD |
1564 | wxDialog * _arg0; |
1565 | int _arg1 = (int ) wxBOTH; | |
1d99702e | 1566 | PyObject * _argo0 = 0; |
ecc08ead | 1567 | char *_kwnames[] = { "self","direction", NULL }; |
9c039d08 RD |
1568 | |
1569 | self = self; | |
ecc08ead | 1570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 1571 | return NULL; |
1d99702e RD |
1572 | if (_argo0) { |
1573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); | |
9c039d08 RD |
1576 | return NULL; |
1577 | } | |
1578 | } | |
cf694132 RD |
1579 | { |
1580 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1581 | wxDialog_Centre(_arg0,_arg1); |
cf694132 RD |
1582 | |
1583 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1585 | } Py_INCREF(Py_None); |
9c039d08 | 1586 | _resultobj = Py_None; |
9c039d08 RD |
1587 | return _resultobj; |
1588 | } | |
1589 | ||
ecc08ead RD |
1590 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) |
1591 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1592 | PyObject * _resultobj; |
ecc08ead RD |
1593 | wxDialog * _arg0; |
1594 | int _arg1; | |
1d99702e | 1595 | PyObject * _argo0 = 0; |
ecc08ead | 1596 | char *_kwnames[] = { "self","retCode", NULL }; |
9c039d08 RD |
1597 | |
1598 | self = self; | |
ecc08ead | 1599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 1600 | return NULL; |
1d99702e RD |
1601 | if (_argo0) { |
1602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); | |
9c039d08 RD |
1605 | return NULL; |
1606 | } | |
1607 | } | |
cf694132 RD |
1608 | { |
1609 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1610 | wxDialog_EndModal(_arg0,_arg1); |
cf694132 RD |
1611 | |
1612 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1613 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1614 | } Py_INCREF(Py_None); |
9c039d08 | 1615 | _resultobj = Py_None; |
9c039d08 RD |
1616 | return _resultobj; |
1617 | } | |
1618 | ||
ecc08ead RD |
1619 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) |
1620 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1621 | PyObject * _resultobj; |
ecc08ead RD |
1622 | wxDialog * _arg0; |
1623 | bool _arg1; | |
1d99702e | 1624 | PyObject * _argo0 = 0; |
ecc08ead RD |
1625 | int tempbool1; |
1626 | char *_kwnames[] = { "self","flag", NULL }; | |
9c039d08 RD |
1627 | |
1628 | self = self; | |
ecc08ead | 1629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 1630 | return NULL; |
1d99702e RD |
1631 | if (_argo0) { |
1632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); | |
9c039d08 RD |
1635 | return NULL; |
1636 | } | |
1637 | } | |
ecc08ead | 1638 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
1639 | { |
1640 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1641 | wxDialog_SetModal(_arg0,_arg1); |
cf694132 RD |
1642 | |
1643 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1644 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1645 | } Py_INCREF(Py_None); |
9c039d08 RD |
1646 | _resultobj = Py_None; |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
ecc08ead RD |
1650 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) |
1651 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1652 | PyObject * _resultobj; |
ecc08ead RD |
1653 | bool _result; |
1654 | wxDialog * _arg0; | |
f6bcfd97 | 1655 | PyObject * _argo0 = 0; |
ecc08ead | 1656 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 BP |
1657 | |
1658 | self = self; | |
ecc08ead | 1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
f6bcfd97 BP |
1660 | return NULL; |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1665 | return NULL; |
1666 | } | |
1667 | } | |
f6bcfd97 BP |
1668 | { |
1669 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1670 | _result = (bool )wxDialog_IsModal(_arg0); |
f6bcfd97 BP |
1671 | |
1672 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1673 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 1674 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
1675 | return _resultobj; |
1676 | } | |
1677 | ||
ecc08ead RD |
1678 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) |
1679 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1680 | PyObject * _resultobj; |
ecc08ead RD |
1681 | int _result; |
1682 | wxDialog * _arg0; | |
f6bcfd97 BP |
1683 | PyObject * _argo0 = 0; |
1684 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
1685 | |
1686 | self = self; | |
ecc08ead | 1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
f6bcfd97 BP |
1688 | return NULL; |
1689 | if (_argo0) { | |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1693 | return NULL; |
1694 | } | |
1695 | } | |
1696 | { | |
1697 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1698 | _result = (int )wxDialog_ShowModal(_arg0); |
f6bcfd97 BP |
1699 | |
1700 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1701 | if (PyErr_Occurred()) return NULL; |
ecc08ead | 1702 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
1703 | return _resultobj; |
1704 | } | |
1705 | ||
ecc08ead RD |
1706 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
1707 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1708 | PyObject * _resultobj; |
ecc08ead RD |
1709 | int _result; |
1710 | wxDialog * _arg0; | |
f6bcfd97 | 1711 | PyObject * _argo0 = 0; |
ecc08ead | 1712 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 BP |
1713 | |
1714 | self = self; | |
ecc08ead | 1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
f6bcfd97 BP |
1716 | return NULL; |
1717 | if (_argo0) { | |
1718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1721 | return NULL; |
1722 | } | |
1723 | } | |
1724 | { | |
1725 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1726 | _result = (int )wxDialog_GetReturnCode(_arg0); |
f6bcfd97 BP |
1727 | |
1728 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1729 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1730 | } _resultobj = Py_BuildValue("i",_result); |
1731 | return _resultobj; | |
1732 | } | |
1733 | ||
ecc08ead RD |
1734 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) |
1735 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1736 | PyObject * _resultobj; |
ecc08ead | 1737 | wxDialog * _arg0; |
f6bcfd97 BP |
1738 | int _arg1; |
1739 | PyObject * _argo0 = 0; | |
ecc08ead | 1740 | char *_kwnames[] = { "self","retCode", NULL }; |
f6bcfd97 BP |
1741 | |
1742 | self = self; | |
ecc08ead | 1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
f6bcfd97 BP |
1744 | return NULL; |
1745 | if (_argo0) { | |
1746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1749 | return NULL; |
1750 | } | |
1751 | } | |
1752 | { | |
1753 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1754 | wxDialog_SetReturnCode(_arg0,_arg1); |
f6bcfd97 BP |
1755 | |
1756 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1757 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
1758 | } Py_INCREF(Py_None); |
1759 | _resultobj = Py_None; | |
f6bcfd97 BP |
1760 | return _resultobj; |
1761 | } | |
1762 | ||
ecc08ead RD |
1763 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
1764 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1765 | PyObject * _resultobj; |
ecc08ead RD |
1766 | wxSizer * _result; |
1767 | wxDialog * _arg0; | |
1768 | wxString * _arg1; | |
f6bcfd97 | 1769 | PyObject * _argo0 = 0; |
ecc08ead RD |
1770 | PyObject * _obj1 = 0; |
1771 | char *_kwnames[] = { "self","message", NULL }; | |
f6bcfd97 BP |
1772 | |
1773 | self = self; | |
ecc08ead | 1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
1775 | return NULL; |
1776 | if (_argo0) { | |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1780 | return NULL; |
1781 | } | |
1782 | } | |
ecc08ead RD |
1783 | { |
1784 | #if PYTHON_API_VERSION >= 1009 | |
1785 | char* tmpPtr; int tmpSize; | |
1786 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1788 | return NULL; | |
1789 | } | |
1790 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1791 | return NULL; | |
1792 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1793 | #else | |
1794 | if (!PyString_Check(_obj1)) { | |
1795 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1796 | return NULL; | |
1797 | } | |
1798 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1799 | #endif | |
1800 | } | |
f6bcfd97 BP |
1801 | { |
1802 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1803 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); |
f6bcfd97 BP |
1804 | |
1805 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1806 | if (PyErr_Occurred()) return NULL; |
ecc08ead RD |
1807 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1808 | { | |
1809 | if (_obj1) | |
1810 | delete _arg1; | |
1811 | } | |
f6bcfd97 BP |
1812 | return _resultobj; |
1813 | } | |
1814 | ||
ecc08ead RD |
1815 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) |
1816 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
edf2f43e | 1817 | PyObject * _resultobj; |
ecc08ead RD |
1818 | wxSizer * _result; |
1819 | wxDialog * _arg0; | |
1820 | long _arg1; | |
edf2f43e | 1821 | PyObject * _argo0 = 0; |
ecc08ead | 1822 | char *_kwnames[] = { "self","flags", NULL }; |
edf2f43e RD |
1823 | |
1824 | self = self; | |
ecc08ead | 1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) |
edf2f43e RD |
1826 | return NULL; |
1827 | if (_argo0) { | |
1828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ecc08ead RD |
1829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
edf2f43e RD |
1831 | return NULL; |
1832 | } | |
1833 | } | |
1834 | { | |
1835 | wxPy_BEGIN_ALLOW_THREADS; | |
ecc08ead | 1836 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); |
edf2f43e RD |
1837 | |
1838 | wxPy_END_ALLOW_THREADS; | |
1839 | if (PyErr_Occurred()) return NULL; | |
ecc08ead | 1840 | }{ _resultobj = wxPyMake_wxObject(_result); } |
edf2f43e RD |
1841 | return _resultobj; |
1842 | } | |
1843 | ||
9c039d08 RD |
1844 | static void *SwigwxMiniFrameTowxFrame(void *ptr) { |
1845 | wxMiniFrame *src; | |
1846 | wxFrame *dest; | |
1847 | src = (wxMiniFrame *) ptr; | |
1848 | dest = (wxFrame *) src; | |
1849 | return (void *) dest; | |
1850 | } | |
1851 | ||
ecc08ead RD |
1852 | static void *SwigwxMiniFrameTowxTopLevelWindow(void *ptr) { |
1853 | wxMiniFrame *src; | |
1854 | wxTopLevelWindow *dest; | |
1855 | src = (wxMiniFrame *) ptr; | |
1856 | dest = (wxTopLevelWindow *) src; | |
1857 | return (void *) dest; | |
1858 | } | |
1859 | ||
9c039d08 RD |
1860 | static void *SwigwxMiniFrameTowxWindow(void *ptr) { |
1861 | wxMiniFrame *src; | |
1862 | wxWindow *dest; | |
1863 | src = (wxMiniFrame *) ptr; | |
1864 | dest = (wxWindow *) src; | |
1865 | return (void *) dest; | |
1866 | } | |
1867 | ||
1868 | static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) { | |
1869 | wxMiniFrame *src; | |
1870 | wxEvtHandler *dest; | |
1871 | src = (wxMiniFrame *) ptr; | |
1872 | dest = (wxEvtHandler *) src; | |
1873 | return (void *) dest; | |
1874 | } | |
1875 | ||
9416aa89 RD |
1876 | static void *SwigwxMiniFrameTowxObject(void *ptr) { |
1877 | wxMiniFrame *src; | |
1878 | wxObject *dest; | |
1879 | src = (wxMiniFrame *) ptr; | |
1880 | dest = (wxObject *) src; | |
1881 | return (void *) dest; | |
1882 | } | |
1883 | ||
9c039d08 | 1884 | #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 1885 | static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1886 | PyObject * _resultobj; |
1887 | wxMiniFrame * _result; | |
1888 | wxWindow * _arg0; | |
1889 | wxWindowID _arg1; | |
1890 | wxString * _arg2; | |
e508a2b6 RD |
1891 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1892 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1893 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; |
1894 | char * _arg6 = (char *) "frame"; | |
1895 | PyObject * _argo0 = 0; | |
9c039d08 | 1896 | PyObject * _obj2 = 0; |
2f90df85 RD |
1897 | wxPoint temp; |
1898 | PyObject * _obj3 = 0; | |
1899 | wxSize temp0; | |
1900 | PyObject * _obj4 = 0; | |
efc5f224 | 1901 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
9c039d08 RD |
1902 | char _ptemp[128]; |
1903 | ||
1904 | self = self; | |
2f90df85 | 1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMiniFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
9c039d08 | 1906 | return NULL; |
1d99702e RD |
1907 | if (_argo0) { |
1908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
1910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p."); |
1911 | return NULL; | |
1912 | } | |
1913 | } | |
1914 | { | |
185d7c3e RD |
1915 | #if PYTHON_API_VERSION >= 1009 |
1916 | char* tmpPtr; int tmpSize; | |
1917 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 1918 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1919 | return NULL; |
1920 | } | |
1921 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1922 | return NULL; | |
1923 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1924 | #else | |
9c039d08 RD |
1925 | if (!PyString_Check(_obj2)) { |
1926 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1927 | return NULL; | |
1928 | } | |
185d7c3e RD |
1929 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1930 | #endif | |
9c039d08 | 1931 | } |
2f90df85 RD |
1932 | if (_obj3) |
1933 | { | |
1934 | _arg3 = &temp; | |
1935 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9c039d08 | 1936 | return NULL; |
2f90df85 RD |
1937 | } |
1938 | if (_obj4) | |
1939 | { | |
1940 | _arg4 = &temp0; | |
1941 | if (! wxSize_helper(_obj4, &_arg4)) | |
9c039d08 | 1942 | return NULL; |
2f90df85 | 1943 | } |
cf694132 RD |
1944 | { |
1945 | wxPy_BEGIN_ALLOW_THREADS; | |
1946 | _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
1947 | ||
1948 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1949 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1950 | } if (_result) { |
1951 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p"); | |
1952 | _resultobj = Py_BuildValue("s",_ptemp); | |
1953 | } else { | |
1954 | Py_INCREF(Py_None); | |
1955 | _resultobj = Py_None; | |
1956 | } | |
9c039d08 RD |
1957 | { |
1958 | if (_obj2) | |
1959 | delete _arg2; | |
1960 | } | |
1961 | return _resultobj; | |
1962 | } | |
1963 | ||
09f3d4e6 RD |
1964 | #define new_wxPreMiniFrame() (new wxMiniFrame()) |
1965 | static PyObject *_wrap_new_wxPreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1966 | PyObject * _resultobj; | |
1967 | wxMiniFrame * _result; | |
1968 | char *_kwnames[] = { NULL }; | |
1969 | char _ptemp[128]; | |
1970 | ||
1971 | self = self; | |
1972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMiniFrame",_kwnames)) | |
1973 | return NULL; | |
1974 | { | |
1975 | wxPy_BEGIN_ALLOW_THREADS; | |
1976 | _result = (wxMiniFrame *)new_wxPreMiniFrame(); | |
1977 | ||
1978 | wxPy_END_ALLOW_THREADS; | |
1979 | if (PyErr_Occurred()) return NULL; | |
1980 | } if (_result) { | |
1981 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p"); | |
1982 | _resultobj = Py_BuildValue("s",_ptemp); | |
1983 | } else { | |
1984 | Py_INCREF(Py_None); | |
1985 | _resultobj = Py_None; | |
1986 | } | |
1987 | return _resultobj; | |
1988 | } | |
1989 | ||
1990 | #define wxMiniFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
1991 | static PyObject *_wrap_wxMiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1992 | PyObject * _resultobj; | |
1993 | bool _result; | |
1994 | wxMiniFrame * _arg0; | |
1995 | wxWindow * _arg1; | |
1996 | wxWindowID _arg2; | |
1997 | wxString * _arg3; | |
1998 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1999 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
2000 | long _arg6 = (long ) wxDEFAULT_FRAME_STYLE; | |
2001 | char * _arg7 = (char *) "frame"; | |
2002 | PyObject * _argo0 = 0; | |
2003 | PyObject * _argo1 = 0; | |
2004 | PyObject * _obj3 = 0; | |
2005 | wxPoint temp; | |
2006 | PyObject * _obj4 = 0; | |
2007 | wxSize temp0; | |
2008 | PyObject * _obj5 = 0; | |
2009 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
2010 | ||
2011 | self = self; | |
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMiniFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
2013 | return NULL; | |
2014 | if (_argo0) { | |
2015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMiniFrame_p")) { | |
2017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMiniFrame_Create. Expected _wxMiniFrame_p."); | |
2018 | return NULL; | |
2019 | } | |
2020 | } | |
2021 | if (_argo1) { | |
2022 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2023 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMiniFrame_Create. Expected _wxWindow_p."); | |
2025 | return NULL; | |
2026 | } | |
2027 | } | |
2028 | { | |
2029 | #if PYTHON_API_VERSION >= 1009 | |
2030 | char* tmpPtr; int tmpSize; | |
2031 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2032 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2033 | return NULL; | |
2034 | } | |
2035 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2036 | return NULL; | |
2037 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2038 | #else | |
2039 | if (!PyString_Check(_obj3)) { | |
2040 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2041 | return NULL; | |
2042 | } | |
2043 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
2044 | #endif | |
2045 | } | |
2046 | if (_obj4) | |
2047 | { | |
2048 | _arg4 = &temp; | |
2049 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2050 | return NULL; | |
2051 | } | |
2052 | if (_obj5) | |
2053 | { | |
2054 | _arg5 = &temp0; | |
2055 | if (! wxSize_helper(_obj5, &_arg5)) | |
2056 | return NULL; | |
2057 | } | |
2058 | { | |
2059 | wxPy_BEGIN_ALLOW_THREADS; | |
2060 | _result = (bool )wxMiniFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); | |
2061 | ||
2062 | wxPy_END_ALLOW_THREADS; | |
2063 | if (PyErr_Occurred()) return NULL; | |
2064 | } _resultobj = Py_BuildValue("i",_result); | |
2065 | { | |
2066 | if (_obj3) | |
2067 | delete _arg3; | |
2068 | } | |
2069 | return _resultobj; | |
2070 | } | |
2071 | ||
4f3449b4 RD |
2072 | static void *SwigwxTipWindowTowxFrame(void *ptr) { |
2073 | wxTipWindow *src; | |
2074 | wxFrame *dest; | |
2075 | src = (wxTipWindow *) ptr; | |
2076 | dest = (wxFrame *) src; | |
2077 | return (void *) dest; | |
2078 | } | |
2079 | ||
ecc08ead RD |
2080 | static void *SwigwxTipWindowTowxTopLevelWindow(void *ptr) { |
2081 | wxTipWindow *src; | |
2082 | wxTopLevelWindow *dest; | |
2083 | src = (wxTipWindow *) ptr; | |
2084 | dest = (wxTopLevelWindow *) src; | |
2085 | return (void *) dest; | |
2086 | } | |
2087 | ||
4f3449b4 RD |
2088 | static void *SwigwxTipWindowTowxWindow(void *ptr) { |
2089 | wxTipWindow *src; | |
2090 | wxWindow *dest; | |
2091 | src = (wxTipWindow *) ptr; | |
2092 | dest = (wxWindow *) src; | |
2093 | return (void *) dest; | |
2094 | } | |
2095 | ||
2096 | static void *SwigwxTipWindowTowxEvtHandler(void *ptr) { | |
2097 | wxTipWindow *src; | |
2098 | wxEvtHandler *dest; | |
2099 | src = (wxTipWindow *) ptr; | |
2100 | dest = (wxEvtHandler *) src; | |
2101 | return (void *) dest; | |
2102 | } | |
2103 | ||
2104 | static void *SwigwxTipWindowTowxObject(void *ptr) { | |
2105 | wxTipWindow *src; | |
2106 | wxObject *dest; | |
2107 | src = (wxTipWindow *) ptr; | |
2108 | dest = (wxObject *) src; | |
2109 | return (void *) dest; | |
2110 | } | |
2111 | ||
2112 | #define new_wxTipWindow(_swigarg0,_swigarg1,_swigarg2) (new wxTipWindow(_swigarg0,_swigarg1,_swigarg2)) | |
2113 | static PyObject *_wrap_new_wxTipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2114 | PyObject * _resultobj; | |
2115 | wxTipWindow * _result; | |
2116 | wxWindow * _arg0; | |
2117 | wxString * _arg1; | |
2118 | wxCoord _arg2 = (wxCoord ) 100; | |
2119 | PyObject * _argo0 = 0; | |
2120 | PyObject * _obj1 = 0; | |
2121 | char *_kwnames[] = { "parent","text","maxLength", NULL }; | |
2122 | char _ptemp[128]; | |
2123 | ||
2124 | self = self; | |
2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:new_wxTipWindow",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2126 | return NULL; | |
2127 | if (_argo0) { | |
2128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTipWindow. Expected _wxWindow_p."); | |
2131 | return NULL; | |
2132 | } | |
2133 | } | |
2134 | { | |
2135 | #if PYTHON_API_VERSION >= 1009 | |
2136 | char* tmpPtr; int tmpSize; | |
2137 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2138 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2139 | return NULL; | |
2140 | } | |
2141 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2142 | return NULL; | |
2143 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2144 | #else | |
2145 | if (!PyString_Check(_obj1)) { | |
2146 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2147 | return NULL; | |
2148 | } | |
2149 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2150 | #endif | |
2151 | } | |
2152 | { | |
2153 | wxPy_BEGIN_ALLOW_THREADS; | |
2154 | _result = (wxTipWindow *)new_wxTipWindow(_arg0,*_arg1,_arg2); | |
2155 | ||
2156 | wxPy_END_ALLOW_THREADS; | |
2157 | if (PyErr_Occurred()) return NULL; | |
2158 | } if (_result) { | |
2159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipWindow_p"); | |
2160 | _resultobj = Py_BuildValue("s",_ptemp); | |
2161 | } else { | |
2162 | Py_INCREF(Py_None); | |
2163 | _resultobj = Py_None; | |
2164 | } | |
2165 | { | |
2166 | if (_obj1) | |
2167 | delete _arg1; | |
2168 | } | |
2169 | return _resultobj; | |
2170 | } | |
2171 | ||
9c039d08 | 2172 | static PyMethodDef framescMethods[] = { |
4f3449b4 | 2173 | { "new_wxTipWindow", (PyCFunction) _wrap_new_wxTipWindow, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
2174 | { "wxMiniFrame_Create", (PyCFunction) _wrap_wxMiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, |
2175 | { "new_wxPreMiniFrame", (PyCFunction) _wrap_new_wxPreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2176 | { "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS }, |
ecc08ead RD |
2177 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
2178 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
2179 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
2180 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
2181 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2182 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
2183 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
2184 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
2185 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
2186 | { "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
2187 | { "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS }, | |
2188 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2189 | { "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, |
ecc08ead RD |
2190 | { "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, |
2191 | { "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2192 | { "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, |
2193 | { "wxFrame_SetStatusText", (PyCFunction) _wrap_wxFrame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
2194 | { "wxFrame_SetStatusBar", (PyCFunction) _wrap_wxFrame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2195 | { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 2196 | { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, |
ecc08ead RD |
2197 | { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, |
2198 | { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS }, | |
2199 | { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
2200 | { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
2201 | { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
2202 | { "wxFrame_Create", (PyCFunction) _wrap_wxFrame_Create, METH_VARARGS | METH_KEYWORDS }, |
2203 | { "new_wxPreFrame", (PyCFunction) _wrap_new_wxPreFrame, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2204 | { "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS }, |
ecc08ead RD |
2205 | { "wxTopLevelWindow_GetTitle", (PyCFunction) _wrap_wxTopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, |
2206 | { "wxTopLevelWindow_SetTitle", (PyCFunction) _wrap_wxTopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
900d9886 RD |
2207 | { "wxTopLevelWindow_IsFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, |
2208 | { "wxTopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
2209 | { "wxTopLevelWindow_SetIcon", (PyCFunction) _wrap_wxTopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, |
2210 | { "wxTopLevelWindow_GetIcon", (PyCFunction) _wrap_wxTopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
2211 | { "wxTopLevelWindow_IsIconized", (PyCFunction) _wrap_wxTopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
2212 | { "wxTopLevelWindow_IsMaximized", (PyCFunction) _wrap_wxTopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
2213 | { "wxTopLevelWindow_Iconize", (PyCFunction) _wrap_wxTopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
2214 | { "wxTopLevelWindow_Restore", (PyCFunction) _wrap_wxTopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
2215 | { "wxTopLevelWindow_Maximize", (PyCFunction) _wrap_wxTopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
2216 | { "wxTopLevelWindow_Create", (PyCFunction) _wrap_wxTopLevelWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
2217 | { "new_wxPreTopLevelWindow", (PyCFunction) _wrap_new_wxPreTopLevelWindow, METH_VARARGS | METH_KEYWORDS }, | |
2218 | { "new_wxTopLevelWindow", (PyCFunction) _wrap_new_wxTopLevelWindow, METH_VARARGS | METH_KEYWORDS }, | |
9c039d08 RD |
2219 | { NULL, NULL } |
2220 | }; | |
1d99702e RD |
2221 | #ifdef __cplusplus |
2222 | } | |
2223 | #endif | |
2224 | /* | |
2225 | * This table is used by the pointer type-checker | |
2226 | */ | |
2227 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 2228 | { "_signed_long","_long",0}, |
b1462dfa | 2229 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
2230 | { "_wxPrintQuality","_int",0}, |
2231 | { "_wxPrintQuality","_signed_int",0}, | |
2232 | { "_wxPrintQuality","_unsigned_int",0}, | |
2233 | { "_wxPrintQuality","_wxWindowID",0}, | |
2234 | { "_wxPrintQuality","_uint",0}, | |
2235 | { "_wxPrintQuality","_EBool",0}, | |
2236 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 2237 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 2238 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
2239 | { "_long","_unsigned_long",0}, |
2240 | { "_long","_signed_long",0}, | |
b1462dfa | 2241 | { "_size_t","_wxCoord",0}, |
1d99702e | 2242 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 2243 | { "_size_t","_time_t",0}, |
1d99702e RD |
2244 | { "_size_t","_unsigned_int",0}, |
2245 | { "_size_t","_int",0}, | |
2246 | { "_size_t","_wxWindowID",0}, | |
2247 | { "_size_t","_uint",0}, | |
ecc08ead RD |
2248 | { "_wxTopLevelWindow","_wxTipWindow",SwigwxTipWindowTowxTopLevelWindow}, |
2249 | { "_wxTopLevelWindow","_wxMiniFrame",SwigwxMiniFrameTowxTopLevelWindow}, | |
2250 | { "_wxTopLevelWindow","_wxDialog",SwigwxDialogTowxTopLevelWindow}, | |
2251 | { "_wxTopLevelWindow","_wxFrame",SwigwxFrameTowxTopLevelWindow}, | |
b1462dfa | 2252 | { "_uint","_wxCoord",0}, |
1d99702e | 2253 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 2254 | { "_uint","_time_t",0}, |
1d99702e RD |
2255 | { "_uint","_size_t",0}, |
2256 | { "_uint","_unsigned_int",0}, | |
2257 | { "_uint","_int",0}, | |
2258 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 2259 | { "_wxChar","_char",0}, |
f6bcfd97 | 2260 | { "_char","_wxChar",0}, |
cdf14688 | 2261 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 2262 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
2263 | { "_EBool","_wxPrintQuality",0}, |
2264 | { "_EBool","_signed_int",0}, | |
2265 | { "_EBool","_int",0}, | |
2266 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 2267 | { "_unsigned_long","_long",0}, |
cdf14688 | 2268 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 2269 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
2270 | { "_signed_int","_wxPrintQuality",0}, |
2271 | { "_signed_int","_EBool",0}, | |
2272 | { "_signed_int","_wxWindowID",0}, | |
2273 | { "_signed_int","_int",0}, | |
1d99702e RD |
2274 | { "_WXTYPE","_short",0}, |
2275 | { "_WXTYPE","_signed_short",0}, | |
2276 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
2277 | { "_unsigned_short","_WXTYPE",0}, |
2278 | { "_unsigned_short","_short",0}, | |
4f3449b4 | 2279 | { "_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject}, |
9416aa89 | 2280 | { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject}, |
ecc08ead | 2281 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, |
9416aa89 | 2282 | { "_wxObject","_wxFrame",SwigwxFrameTowxObject}, |
ecc08ead | 2283 | { "_wxObject","_wxTopLevelWindow",SwigwxTopLevelWindowTowxObject}, |
1d99702e RD |
2284 | { "_signed_short","_WXTYPE",0}, |
2285 | { "_signed_short","_short",0}, | |
1d99702e | 2286 | { "_unsigned_char","_byte",0}, |
b1462dfa | 2287 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 2288 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 2289 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
2290 | { "_unsigned_int","_size_t",0}, |
2291 | { "_unsigned_int","_uint",0}, | |
2292 | { "_unsigned_int","_wxWindowID",0}, | |
2293 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
2294 | { "_short","_WXTYPE",0}, |
2295 | { "_short","_unsigned_short",0}, | |
2296 | { "_short","_signed_short",0}, | |
4f3449b4 | 2297 | { "_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame}, |
1d99702e | 2298 | { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame}, |
b1462dfa | 2299 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 2300 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 2301 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
2302 | { "_wxWindowID","_size_t",0}, |
2303 | { "_wxWindowID","_EBool",0}, | |
2304 | { "_wxWindowID","_uint",0}, | |
2305 | { "_wxWindowID","_int",0}, | |
2306 | { "_wxWindowID","_signed_int",0}, | |
2307 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 2308 | { "_int","_wxCoord",0}, |
1d99702e | 2309 | { "_int","_wxPrintQuality",0}, |
c368d904 | 2310 | { "_int","_time_t",0}, |
1d99702e RD |
2311 | { "_int","_size_t",0}, |
2312 | { "_int","_EBool",0}, | |
2313 | { "_int","_uint",0}, | |
2314 | { "_int","_wxWindowID",0}, | |
2315 | { "_int","_unsigned_int",0}, | |
2316 | { "_int","_signed_int",0}, | |
c368d904 RD |
2317 | { "_time_t","_wxCoord",0}, |
2318 | { "_time_t","_wxPrintQuality",0}, | |
2319 | { "_time_t","_unsigned_int",0}, | |
2320 | { "_time_t","_int",0}, | |
2321 | { "_time_t","_wxWindowID",0}, | |
2322 | { "_time_t","_uint",0}, | |
2323 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
2324 | { "_wxCoord","_int",0}, |
2325 | { "_wxCoord","_signed_int",0}, | |
2326 | { "_wxCoord","_unsigned_int",0}, | |
2327 | { "_wxCoord","_wxWindowID",0}, | |
2328 | { "_wxCoord","_uint",0}, | |
2329 | { "_wxCoord","_EBool",0}, | |
2330 | { "_wxCoord","_size_t",0}, | |
c368d904 | 2331 | { "_wxCoord","_time_t",0}, |
b1462dfa | 2332 | { "_wxCoord","_wxPrintQuality",0}, |
4f3449b4 | 2333 | { "_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler}, |
1d99702e | 2334 | { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, |
ecc08ead | 2335 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, |
1d99702e | 2336 | { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler}, |
ecc08ead | 2337 | { "_wxEvtHandler","_wxTopLevelWindow",SwigwxTopLevelWindowTowxEvtHandler}, |
4f3449b4 | 2338 | { "_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow}, |
1d99702e | 2339 | { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow}, |
ecc08ead | 2340 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, |
1d99702e | 2341 | { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow}, |
ecc08ead | 2342 | { "_wxWindow","_wxTopLevelWindow",SwigwxTopLevelWindowTowxWindow}, |
1d99702e RD |
2343 | {0,0,0}}; |
2344 | ||
9c039d08 RD |
2345 | static PyObject *SWIG_globals; |
2346 | #ifdef __cplusplus | |
2347 | extern "C" | |
2348 | #endif | |
1d99702e | 2349 | SWIGEXPORT(void) initframesc() { |
9c039d08 RD |
2350 | PyObject *m, *d; |
2351 | SWIG_globals = SWIG_newvarlink(); | |
2352 | m = Py_InitModule("framesc", framescMethods); | |
2353 | d = PyModule_GetDict(m); | |
f6bcfd97 BP |
2354 | PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR)); |
2355 | PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR)); | |
2356 | PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR)); | |
2357 | PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER)); | |
2358 | PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION)); | |
2359 | PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL)); | |
ecc08ead | 2360 | PyDict_SetItemString(d,"wxTOPLEVEL_EX_DIALOG", PyInt_FromLong((long) wxTOPLEVEL_EX_DIALOG)); |
1d99702e RD |
2361 | { |
2362 | int i; | |
2363 | for (i = 0; _swig_mapping[i].n1; i++) | |
2364 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2365 | } | |
9c039d08 | 2366 | } |