]>
Commit | Line | Data |
---|---|---|
9c039d08 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/frames.cpp |
9c039d08 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 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__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
9c039d08 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
9c039d08 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
9c039d08 RD |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
9c039d08 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 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> |
cd096152 | 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 | ||
1c09ae54 | 67 | if (!target) { |
9c039d08 | 68 | target = o; |
1c09ae54 | 69 | } else if (target == Py_None) { |
9c039d08 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
1c09ae54 | 72 | } else { |
9c039d08 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
1c09ae54 RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
9c039d08 RD |
80 | |
81 | o2 = target; | |
1c09ae54 RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
9c039d08 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
7a446686 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 | |
9c039d08 RD |
97 | static void *SwigwxFrameTowxWindow(void *ptr) { |
98 | wxFrame *src; | |
99 | wxWindow *dest; | |
100 | src = (wxFrame *) ptr; | |
101 | dest = (wxWindow *) src; | |
102 | return (void *) dest; | |
103 | } | |
104 | ||
105 | static void *SwigwxFrameTowxEvtHandler(void *ptr) { | |
106 | wxFrame *src; | |
107 | wxEvtHandler *dest; | |
108 | src = (wxFrame *) ptr; | |
109 | dest = (wxEvtHandler *) src; | |
110 | return (void *) dest; | |
111 | } | |
112 | ||
9df61a29 RD |
113 | static void *SwigwxFrameTowxObject(void *ptr) { |
114 | wxFrame *src; | |
115 | wxObject *dest; | |
116 | src = (wxFrame *) ptr; | |
117 | dest = (wxObject *) src; | |
118 | return (void *) dest; | |
119 | } | |
120 | ||
9c039d08 | 121 | #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 122 | static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
123 | PyObject * _resultobj; |
124 | wxFrame * _result; | |
125 | wxWindow * _arg0; | |
126 | wxWindowID _arg1; | |
127 | wxString * _arg2; | |
b68dc582 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; | |
2f90df85 | 142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxFrame",_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")) { | |
9c039d08 RD |
147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p."); |
148 | return NULL; | |
149 | } | |
150 | } | |
151 | { | |
2cd2fac8 RD |
152 | #if PYTHON_API_VERSION >= 1009 |
153 | char* tmpPtr; int tmpSize; | |
154 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 155 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 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 | } | |
2cd2fac8 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; | |
183 | _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
184 | ||
185 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 186 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
187 | } if (_result) { |
188 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
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 | ||
201 | #define wxFrame_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 202 | static PyObject *_wrap_wxFrame_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
203 | PyObject * _resultobj; |
204 | wxFrame * _arg0; | |
1d99702e RD |
205 | int _arg1 = (int ) wxBOTH; |
206 | PyObject * _argo0 = 0; | |
efc5f224 | 207 | char *_kwnames[] = { "self","direction", NULL }; |
9c039d08 RD |
208 | |
209 | self = self; | |
efc5f224 | 210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxFrame_Centre",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 211 | return NULL; |
1d99702e RD |
212 | if (_argo0) { |
213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Centre. Expected _wxFrame_p."); |
216 | return NULL; | |
217 | } | |
218 | } | |
cf694132 RD |
219 | { |
220 | wxPy_BEGIN_ALLOW_THREADS; | |
221 | wxFrame_Centre(_arg0,_arg1); | |
222 | ||
223 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 224 | if (PyErr_Occurred()) return NULL; |
cf694132 | 225 | } Py_INCREF(Py_None); |
9c039d08 RD |
226 | _resultobj = Py_None; |
227 | return _resultobj; | |
228 | } | |
229 | ||
9c039d08 | 230 | #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 231 | static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
232 | PyObject * _resultobj; |
233 | wxStatusBar * _result; | |
234 | wxFrame * _arg0; | |
1d99702e RD |
235 | int _arg1 = (int ) 1; |
236 | long _arg2 = (long ) wxST_SIZEGRIP; | |
237 | wxWindowID _arg3 = (wxWindowID ) -1; | |
238 | char * _arg4 = (char *) "statusBar"; | |
239 | PyObject * _argo0 = 0; | |
efc5f224 | 240 | char *_kwnames[] = { "self","number","style","id","name", NULL }; |
9c039d08 RD |
241 | |
242 | self = self; | |
efc5f224 | 243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ilis:wxFrame_CreateStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
9c039d08 | 244 | return NULL; |
1d99702e RD |
245 | if (_argo0) { |
246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p."); |
249 | return NULL; | |
250 | } | |
251 | } | |
cf694132 RD |
252 | { |
253 | wxPy_BEGIN_ALLOW_THREADS; | |
254 | _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4); | |
255 | ||
256 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 257 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 258 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
259 | return _resultobj; |
260 | } | |
261 | ||
262 | #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 263 | static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
264 | PyObject * _resultobj; |
265 | wxToolBar * _result; | |
266 | wxFrame * _arg0; | |
1d99702e RD |
267 | long _arg1 = (long ) wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT; |
268 | wxWindowID _arg2 = (wxWindowID ) -1; | |
269 | char * _arg3 = (char *) "toolBar"; | |
270 | PyObject * _argo0 = 0; | |
efc5f224 | 271 | char *_kwnames[] = { "self","style","id","name", NULL }; |
9c039d08 RD |
272 | |
273 | self = self; | |
efc5f224 | 274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|lis:wxFrame_CreateToolBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
9c039d08 | 275 | return NULL; |
1d99702e RD |
276 | if (_argo0) { |
277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p."); |
280 | return NULL; | |
281 | } | |
282 | } | |
cf694132 RD |
283 | { |
284 | wxPy_BEGIN_ALLOW_THREADS; | |
285 | _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3); | |
286 | ||
287 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 288 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 289 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
290 | return _resultobj; |
291 | } | |
292 | ||
f6bcfd97 BP |
293 | #define wxFrame_GetIcon(_swigobj) (_swigobj->GetIcon()) |
294 | static PyObject *_wrap_wxFrame_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
295 | PyObject * _resultobj; | |
296 | wxIcon * _result; | |
297 | wxFrame * _arg0; | |
298 | PyObject * _argo0 = 0; | |
299 | char *_kwnames[] = { "self", NULL }; | |
300 | char _ptemp[128]; | |
301 | ||
302 | self = self; | |
303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetIcon",_kwnames,&_argo0)) | |
304 | return NULL; | |
305 | if (_argo0) { | |
306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetIcon. Expected _wxFrame_p."); | |
309 | return NULL; | |
310 | } | |
311 | } | |
312 | { | |
313 | wxPy_BEGIN_ALLOW_THREADS; | |
314 | const wxIcon & _result_ref = wxFrame_GetIcon(_arg0); | |
315 | _result = (wxIcon *) &_result_ref; | |
316 | ||
317 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 318 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
319 | } if (_result) { |
320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
321 | _resultobj = Py_BuildValue("s",_ptemp); | |
322 | } else { | |
323 | Py_INCREF(Py_None); | |
324 | _resultobj = Py_None; | |
325 | } | |
326 | return _resultobj; | |
327 | } | |
328 | ||
9c039d08 | 329 | #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar()) |
efc5f224 | 330 | static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
331 | PyObject * _resultobj; |
332 | wxMenuBar * _result; | |
333 | wxFrame * _arg0; | |
1d99702e | 334 | PyObject * _argo0 = 0; |
efc5f224 | 335 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
336 | |
337 | self = self; | |
efc5f224 | 338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetMenuBar",_kwnames,&_argo0)) |
9c039d08 | 339 | return NULL; |
1d99702e RD |
340 | if (_argo0) { |
341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p."); |
344 | return NULL; | |
345 | } | |
346 | } | |
cf694132 RD |
347 | { |
348 | wxPy_BEGIN_ALLOW_THREADS; | |
349 | _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0); | |
350 | ||
351 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 352 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 353 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
354 | return _resultobj; |
355 | } | |
356 | ||
357 | #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar()) | |
efc5f224 | 358 | static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
359 | PyObject * _resultobj; |
360 | wxStatusBar * _result; | |
361 | wxFrame * _arg0; | |
1d99702e | 362 | PyObject * _argo0 = 0; |
efc5f224 | 363 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
364 | |
365 | self = self; | |
efc5f224 | 366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetStatusBar",_kwnames,&_argo0)) |
9c039d08 | 367 | return NULL; |
1d99702e RD |
368 | if (_argo0) { |
369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p."); |
372 | return NULL; | |
373 | } | |
374 | } | |
cf694132 RD |
375 | { |
376 | wxPy_BEGIN_ALLOW_THREADS; | |
377 | _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0); | |
378 | ||
379 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 380 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 381 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
382 | return _resultobj; |
383 | } | |
384 | ||
385 | #define wxFrame_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
efc5f224 | 386 | static PyObject *_wrap_wxFrame_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
387 | PyObject * _resultobj; |
388 | wxString * _result; | |
389 | wxFrame * _arg0; | |
1d99702e | 390 | PyObject * _argo0 = 0; |
efc5f224 | 391 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
392 | |
393 | self = self; | |
efc5f224 | 394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetTitle",_kwnames,&_argo0)) |
9c039d08 | 395 | return NULL; |
1d99702e RD |
396 | if (_argo0) { |
397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetTitle. Expected _wxFrame_p."); |
400 | return NULL; | |
401 | } | |
402 | } | |
9c039d08 | 403 | { |
cf694132 RD |
404 | wxPy_BEGIN_ALLOW_THREADS; |
405 | _result = new wxString (wxFrame_GetTitle(_arg0)); | |
406 | ||
407 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 409 | }{ |
eec92d76 | 410 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
9c039d08 RD |
411 | } |
412 | { | |
413 | delete _result; | |
414 | } | |
415 | return _resultobj; | |
416 | } | |
417 | ||
418 | #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar()) | |
efc5f224 | 419 | static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
420 | PyObject * _resultobj; |
421 | wxToolBar * _result; | |
422 | wxFrame * _arg0; | |
1d99702e | 423 | PyObject * _argo0 = 0; |
efc5f224 | 424 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
425 | |
426 | self = self; | |
efc5f224 | 427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetToolBar",_kwnames,&_argo0)) |
9c039d08 | 428 | return NULL; |
1d99702e RD |
429 | if (_argo0) { |
430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p."); |
433 | return NULL; | |
434 | } | |
435 | } | |
cf694132 RD |
436 | { |
437 | wxPy_BEGIN_ALLOW_THREADS; | |
438 | _result = (wxToolBar *)wxFrame_GetToolBar(_arg0); | |
439 | ||
440 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 441 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 442 | }{ _resultobj = wxPyMake_wxObject(_result); } |
9c039d08 RD |
443 | return _resultobj; |
444 | } | |
445 | ||
446 | #define wxFrame_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
efc5f224 | 447 | static PyObject *_wrap_wxFrame_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
448 | PyObject * _resultobj; |
449 | wxFrame * _arg0; | |
450 | bool _arg1; | |
1d99702e | 451 | PyObject * _argo0 = 0; |
9c039d08 | 452 | int tempbool1; |
efc5f224 | 453 | char *_kwnames[] = { "self","iconize", NULL }; |
9c039d08 RD |
454 | |
455 | self = self; | |
efc5f224 | 456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Iconize",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 457 | return NULL; |
1d99702e RD |
458 | if (_argo0) { |
459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Iconize. Expected _wxFrame_p."); |
462 | return NULL; | |
463 | } | |
464 | } | |
465 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
466 | { |
467 | wxPy_BEGIN_ALLOW_THREADS; | |
468 | wxFrame_Iconize(_arg0,_arg1); | |
469 | ||
470 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 471 | if (PyErr_Occurred()) return NULL; |
cf694132 | 472 | } Py_INCREF(Py_None); |
9c039d08 RD |
473 | _resultobj = Py_None; |
474 | return _resultobj; | |
475 | } | |
476 | ||
477 | #define wxFrame_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
efc5f224 | 478 | static PyObject *_wrap_wxFrame_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
479 | PyObject * _resultobj; |
480 | bool _result; | |
481 | wxFrame * _arg0; | |
1d99702e | 482 | PyObject * _argo0 = 0; |
efc5f224 | 483 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
484 | |
485 | self = self; | |
efc5f224 | 486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_IsIconized",_kwnames,&_argo0)) |
9c039d08 | 487 | return NULL; |
1d99702e RD |
488 | if (_argo0) { |
489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsIconized. Expected _wxFrame_p."); |
492 | return NULL; | |
493 | } | |
494 | } | |
cf694132 RD |
495 | { |
496 | wxPy_BEGIN_ALLOW_THREADS; | |
497 | _result = (bool )wxFrame_IsIconized(_arg0); | |
498 | ||
499 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 500 | if (PyErr_Occurred()) return NULL; |
cf694132 | 501 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
502 | return _resultobj; |
503 | } | |
504 | ||
505 | #define wxFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0)) | |
efc5f224 | 506 | static PyObject *_wrap_wxFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
507 | PyObject * _resultobj; |
508 | wxFrame * _arg0; | |
509 | bool _arg1; | |
1d99702e | 510 | PyObject * _argo0 = 0; |
9c039d08 | 511 | int tempbool1; |
efc5f224 | 512 | char *_kwnames[] = { "self","maximize", NULL }; |
9c039d08 RD |
513 | |
514 | self = self; | |
efc5f224 | 515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Maximize",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 516 | return NULL; |
1d99702e RD |
517 | if (_argo0) { |
518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Maximize. Expected _wxFrame_p."); |
521 | return NULL; | |
522 | } | |
523 | } | |
524 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
525 | { |
526 | wxPy_BEGIN_ALLOW_THREADS; | |
527 | wxFrame_Maximize(_arg0,_arg1); | |
528 | ||
529 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 530 | if (PyErr_Occurred()) return NULL; |
cf694132 | 531 | } Py_INCREF(Py_None); |
9c039d08 RD |
532 | _resultobj = Py_None; |
533 | return _resultobj; | |
534 | } | |
535 | ||
f6bcfd97 BP |
536 | #define wxFrame_IsMaximized(_swigobj) (_swigobj->IsMaximized()) |
537 | static PyObject *_wrap_wxFrame_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
538 | PyObject * _resultobj; | |
539 | bool _result; | |
540 | wxFrame * _arg0; | |
541 | PyObject * _argo0 = 0; | |
542 | char *_kwnames[] = { "self", NULL }; | |
543 | ||
544 | self = self; | |
545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_IsMaximized",_kwnames,&_argo0)) | |
546 | return NULL; | |
547 | if (_argo0) { | |
548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsMaximized. Expected _wxFrame_p."); | |
551 | return NULL; | |
552 | } | |
553 | } | |
554 | { | |
555 | wxPy_BEGIN_ALLOW_THREADS; | |
556 | _result = (bool )wxFrame_IsMaximized(_arg0); | |
557 | ||
558 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
560 | } _resultobj = Py_BuildValue("i",_result); |
561 | return _resultobj; | |
562 | } | |
563 | ||
564 | #define wxFrame_Restore(_swigobj) (_swigobj->Restore()) | |
565 | static PyObject *_wrap_wxFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
566 | PyObject * _resultobj; | |
567 | wxFrame * _arg0; | |
568 | PyObject * _argo0 = 0; | |
569 | char *_kwnames[] = { "self", NULL }; | |
570 | ||
571 | self = self; | |
572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_Restore",_kwnames,&_argo0)) | |
573 | return NULL; | |
574 | if (_argo0) { | |
575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Restore. Expected _wxFrame_p."); | |
578 | return NULL; | |
579 | } | |
580 | } | |
581 | { | |
582 | wxPy_BEGIN_ALLOW_THREADS; | |
583 | wxFrame_Restore(_arg0); | |
584 | ||
585 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 586 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
587 | } Py_INCREF(Py_None); |
588 | _resultobj = Py_None; | |
589 | return _resultobj; | |
590 | } | |
591 | ||
9c039d08 | 592 | #define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
efc5f224 | 593 | static PyObject *_wrap_wxFrame_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
594 | PyObject * _resultobj; |
595 | wxFrame * _arg0; | |
596 | wxAcceleratorTable * _arg1; | |
1d99702e RD |
597 | PyObject * _argo0 = 0; |
598 | PyObject * _argo1 = 0; | |
efc5f224 | 599 | char *_kwnames[] = { "self","accel", NULL }; |
9c039d08 RD |
600 | |
601 | self = self; | |
efc5f224 | 602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 603 | return NULL; |
1d99702e RD |
604 | if (_argo0) { |
605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetAcceleratorTable. Expected _wxFrame_p."); |
608 | return NULL; | |
609 | } | |
610 | } | |
1d99702e RD |
611 | if (_argo1) { |
612 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
613 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
9c039d08 RD |
614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
615 | return NULL; | |
616 | } | |
617 | } | |
cf694132 RD |
618 | { |
619 | wxPy_BEGIN_ALLOW_THREADS; | |
620 | wxFrame_SetAcceleratorTable(_arg0,*_arg1); | |
621 | ||
622 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 623 | if (PyErr_Occurred()) return NULL; |
cf694132 | 624 | } Py_INCREF(Py_None); |
9c039d08 RD |
625 | _resultobj = Py_None; |
626 | return _resultobj; | |
627 | } | |
628 | ||
629 | #define wxFrame_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) | |
efc5f224 | 630 | static PyObject *_wrap_wxFrame_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
631 | PyObject * _resultobj; |
632 | wxFrame * _arg0; | |
633 | wxIcon * _arg1; | |
1d99702e RD |
634 | PyObject * _argo0 = 0; |
635 | PyObject * _argo1 = 0; | |
efc5f224 | 636 | char *_kwnames[] = { "self","icon", NULL }; |
9c039d08 RD |
637 | |
638 | self = self; | |
efc5f224 | 639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetIcon",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 640 | return NULL; |
1d99702e RD |
641 | if (_argo0) { |
642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetIcon. Expected _wxFrame_p."); |
645 | return NULL; | |
646 | } | |
647 | } | |
1d99702e RD |
648 | if (_argo1) { |
649 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
650 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
9c039d08 RD |
651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetIcon. Expected _wxIcon_p."); |
652 | return NULL; | |
653 | } | |
654 | } | |
cf694132 RD |
655 | { |
656 | wxPy_BEGIN_ALLOW_THREADS; | |
657 | wxFrame_SetIcon(_arg0,*_arg1); | |
658 | ||
659 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 660 | if (PyErr_Occurred()) return NULL; |
cf694132 | 661 | } Py_INCREF(Py_None); |
9c039d08 RD |
662 | _resultobj = Py_None; |
663 | return _resultobj; | |
664 | } | |
665 | ||
666 | #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0)) | |
efc5f224 | 667 | static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
668 | PyObject * _resultobj; |
669 | wxFrame * _arg0; | |
670 | wxMenuBar * _arg1; | |
1d99702e RD |
671 | PyObject * _argo0 = 0; |
672 | PyObject * _argo1 = 0; | |
efc5f224 | 673 | char *_kwnames[] = { "self","menuBar", NULL }; |
9c039d08 RD |
674 | |
675 | self = self; | |
efc5f224 | 676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetMenuBar",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 677 | return NULL; |
1d99702e RD |
678 | if (_argo0) { |
679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p."); |
682 | return NULL; | |
683 | } | |
684 | } | |
1d99702e RD |
685 | if (_argo1) { |
686 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
687 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuBar_p")) { | |
9c039d08 RD |
688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p."); |
689 | return NULL; | |
690 | } | |
691 | } | |
cf694132 RD |
692 | { |
693 | wxPy_BEGIN_ALLOW_THREADS; | |
694 | wxFrame_SetMenuBar(_arg0,_arg1); | |
695 | ||
696 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 697 | if (PyErr_Occurred()) return NULL; |
cf694132 | 698 | } Py_INCREF(Py_None); |
9c039d08 RD |
699 | _resultobj = Py_None; |
700 | return _resultobj; | |
701 | } | |
702 | ||
703 | #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0)) | |
efc5f224 | 704 | static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
705 | PyObject * _resultobj; |
706 | wxFrame * _arg0; | |
707 | wxStatusBar * _arg1; | |
1d99702e RD |
708 | PyObject * _argo0 = 0; |
709 | PyObject * _argo1 = 0; | |
efc5f224 | 710 | char *_kwnames[] = { "self","statusBar", NULL }; |
9c039d08 RD |
711 | |
712 | self = self; | |
efc5f224 | 713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusBar",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 714 | return NULL; |
1d99702e RD |
715 | if (_argo0) { |
716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p."); |
719 | return NULL; | |
720 | } | |
721 | } | |
1d99702e RD |
722 | if (_argo1) { |
723 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
724 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStatusBar_p")) { | |
9c039d08 RD |
725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p."); |
726 | return NULL; | |
727 | } | |
728 | } | |
cf694132 RD |
729 | { |
730 | wxPy_BEGIN_ALLOW_THREADS; | |
731 | wxFrame_SetStatusBar(_arg0,_arg1); | |
732 | ||
733 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 735 | } Py_INCREF(Py_None); |
9c039d08 RD |
736 | _resultobj = Py_None; |
737 | return _resultobj; | |
738 | } | |
739 | ||
740 | #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1)) | |
efc5f224 | 741 | static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
742 | PyObject * _resultobj; |
743 | wxFrame * _arg0; | |
744 | wxString * _arg1; | |
1d99702e RD |
745 | int _arg2 = (int ) 0; |
746 | PyObject * _argo0 = 0; | |
9c039d08 | 747 | PyObject * _obj1 = 0; |
efc5f224 | 748 | char *_kwnames[] = { "self","text","number", NULL }; |
9c039d08 RD |
749 | |
750 | self = self; | |
efc5f224 | 751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFrame_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2)) |
9c039d08 | 752 | return NULL; |
1d99702e RD |
753 | if (_argo0) { |
754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p."); |
757 | return NULL; | |
758 | } | |
759 | } | |
760 | { | |
2cd2fac8 RD |
761 | #if PYTHON_API_VERSION >= 1009 |
762 | char* tmpPtr; int tmpSize; | |
763 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 764 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
765 | return NULL; |
766 | } | |
767 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
768 | return NULL; | |
769 | _arg1 = new wxString(tmpPtr, tmpSize); | |
770 | #else | |
9c039d08 RD |
771 | if (!PyString_Check(_obj1)) { |
772 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
773 | return NULL; | |
774 | } | |
2cd2fac8 RD |
775 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
776 | #endif | |
9c039d08 | 777 | } |
cf694132 RD |
778 | { |
779 | wxPy_BEGIN_ALLOW_THREADS; | |
780 | wxFrame_SetStatusText(_arg0,*_arg1,_arg2); | |
781 | ||
782 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 783 | if (PyErr_Occurred()) return NULL; |
cf694132 | 784 | } Py_INCREF(Py_None); |
9c039d08 RD |
785 | _resultobj = Py_None; |
786 | { | |
787 | if (_obj1) | |
788 | delete _arg1; | |
789 | } | |
790 | return _resultobj; | |
791 | } | |
792 | ||
793 | #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1)) | |
efc5f224 | 794 | static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
795 | PyObject * _resultobj; |
796 | wxFrame * _arg0; | |
797 | int _arg1; | |
798 | int * _arg2; | |
1d99702e | 799 | PyObject * _argo0 = 0; |
9c039d08 | 800 | PyObject * _obj2 = 0; |
eec92d76 | 801 | char *_kwnames[] = { "self","choices", NULL }; |
9c039d08 RD |
802 | |
803 | self = self; | |
efc5f224 | 804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusWidths",_kwnames,&_argo0,&_obj2)) |
9c039d08 | 805 | return NULL; |
1d99702e RD |
806 | if (_argo0) { |
807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p."); |
810 | return NULL; | |
811 | } | |
812 | } | |
813 | if (_obj2) | |
814 | { | |
815 | _arg2 = int_LIST_helper(_obj2); | |
816 | if (_arg2 == NULL) { | |
817 | return NULL; | |
818 | } | |
819 | } | |
820 | { | |
cf694132 RD |
821 | if (_obj2) { |
822 | _arg1 = PyList_Size(_obj2); | |
823 | } | |
824 | else { | |
825 | _arg1 = 0; | |
826 | } | |
9c039d08 | 827 | } |
cf694132 RD |
828 | { |
829 | wxPy_BEGIN_ALLOW_THREADS; | |
830 | wxFrame_SetStatusWidths(_arg0,_arg1,_arg2); | |
831 | ||
832 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 833 | if (PyErr_Occurred()) return NULL; |
cf694132 | 834 | } Py_INCREF(Py_None); |
9c039d08 RD |
835 | _resultobj = Py_None; |
836 | { | |
837 | delete [] _arg2; | |
838 | } | |
839 | return _resultobj; | |
840 | } | |
841 | ||
842 | #define wxFrame_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 843 | static PyObject *_wrap_wxFrame_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
844 | PyObject * _resultobj; |
845 | wxFrame * _arg0; | |
846 | wxString * _arg1; | |
1d99702e | 847 | PyObject * _argo0 = 0; |
9c039d08 | 848 | PyObject * _obj1 = 0; |
efc5f224 | 849 | char *_kwnames[] = { "self","title", NULL }; |
9c039d08 RD |
850 | |
851 | self = self; | |
efc5f224 | 852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetTitle",_kwnames,&_argo0,&_obj1)) |
9c039d08 | 853 | return NULL; |
1d99702e RD |
854 | if (_argo0) { |
855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetTitle. Expected _wxFrame_p."); |
858 | return NULL; | |
859 | } | |
860 | } | |
861 | { | |
2cd2fac8 RD |
862 | #if PYTHON_API_VERSION >= 1009 |
863 | char* tmpPtr; int tmpSize; | |
864 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 865 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
866 | return NULL; |
867 | } | |
868 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
869 | return NULL; | |
870 | _arg1 = new wxString(tmpPtr, tmpSize); | |
871 | #else | |
9c039d08 RD |
872 | if (!PyString_Check(_obj1)) { |
873 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
874 | return NULL; | |
875 | } | |
2cd2fac8 RD |
876 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
877 | #endif | |
9c039d08 | 878 | } |
cf694132 RD |
879 | { |
880 | wxPy_BEGIN_ALLOW_THREADS; | |
881 | wxFrame_SetTitle(_arg0,*_arg1); | |
882 | ||
883 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 884 | if (PyErr_Occurred()) return NULL; |
cf694132 | 885 | } Py_INCREF(Py_None); |
9c039d08 RD |
886 | _resultobj = Py_None; |
887 | { | |
888 | if (_obj1) | |
889 | delete _arg1; | |
890 | } | |
891 | return _resultobj; | |
892 | } | |
893 | ||
894 | #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0)) | |
efc5f224 | 895 | static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
896 | PyObject * _resultobj; |
897 | wxFrame * _arg0; | |
898 | wxToolBar * _arg1; | |
1d99702e RD |
899 | PyObject * _argo0 = 0; |
900 | PyObject * _argo1 = 0; | |
efc5f224 | 901 | char *_kwnames[] = { "self","toolbar", NULL }; |
9c039d08 RD |
902 | |
903 | self = self; | |
efc5f224 | 904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetToolBar",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 905 | return NULL; |
1d99702e RD |
906 | if (_argo0) { |
907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p."); |
910 | return NULL; | |
911 | } | |
912 | } | |
1d99702e RD |
913 | if (_argo1) { |
914 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
915 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) { | |
9c039d08 RD |
916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p."); |
917 | return NULL; | |
918 | } | |
919 | } | |
cf694132 RD |
920 | { |
921 | wxPy_BEGIN_ALLOW_THREADS; | |
922 | wxFrame_SetToolBar(_arg0,_arg1); | |
923 | ||
924 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 925 | if (PyErr_Occurred()) return NULL; |
cf694132 | 926 | } Py_INCREF(Py_None); |
9c039d08 RD |
927 | _resultobj = Py_None; |
928 | return _resultobj; | |
929 | } | |
930 | ||
f6bcfd97 BP |
931 | #define wxFrame_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) |
932 | static PyObject *_wrap_wxFrame_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
933 | PyObject * _resultobj; | |
934 | wxFrame * _arg0; | |
935 | bool _arg1 = (bool ) TRUE; | |
936 | PyObject * _argo0 = 0; | |
937 | int tempbool1 = (int) TRUE; | |
938 | char *_kwnames[] = { "self","modal", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxFrame_MakeModal",_kwnames,&_argo0,&tempbool1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_MakeModal. Expected _wxFrame_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | _arg1 = (bool ) tempbool1; | |
951 | { | |
952 | wxPy_BEGIN_ALLOW_THREADS; | |
953 | wxFrame_MakeModal(_arg0,_arg1); | |
954 | ||
955 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 956 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
957 | } Py_INCREF(Py_None); |
958 | _resultobj = Py_None; | |
959 | return _resultobj; | |
960 | } | |
961 | ||
962 | #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) | |
963 | static PyObject *_wrap_wxFrame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
964 | PyObject * _resultobj; | |
965 | wxPoint * _result; | |
966 | wxFrame * _arg0; | |
967 | PyObject * _argo0 = 0; | |
968 | char *_kwnames[] = { "self", NULL }; | |
969 | char _ptemp[128]; | |
970 | ||
971 | self = self; | |
972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetClientAreaOrigin",_kwnames,&_argo0)) | |
973 | return NULL; | |
974 | if (_argo0) { | |
975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p."); | |
978 | return NULL; | |
979 | } | |
980 | } | |
981 | { | |
982 | wxPy_BEGIN_ALLOW_THREADS; | |
983 | _result = new wxPoint (wxFrame_GetClientAreaOrigin(_arg0)); | |
984 | ||
985 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 986 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
987 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
988 | _resultobj = Py_BuildValue("s",_ptemp); | |
989 | return _resultobj; | |
990 | } | |
991 | ||
992 | #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
993 | static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
994 | PyObject * _resultobj; | |
995 | bool _result; | |
996 | wxFrame * _arg0; | |
997 | int _arg1; | |
998 | PyObject * _argo0 = 0; | |
999 | char *_kwnames[] = { "self","id", NULL }; | |
1000 | ||
1001 | self = self; | |
1002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1)) | |
1003 | return NULL; | |
1004 | if (_argo0) { | |
1005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p."); | |
1008 | return NULL; | |
1009 | } | |
1010 | } | |
1011 | { | |
1012 | wxPy_BEGIN_ALLOW_THREADS; | |
1013 | _result = (bool )wxFrame_Command(_arg0,_arg1); | |
1014 | ||
1015 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1016 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1017 | } _resultobj = Py_BuildValue("i",_result); |
1018 | return _resultobj; | |
1019 | } | |
1020 | ||
1021 | #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0)) | |
1022 | static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1023 | PyObject * _resultobj; | |
1024 | bool _result; | |
1025 | wxFrame * _arg0; | |
1026 | int _arg1; | |
1027 | PyObject * _argo0 = 0; | |
1028 | char *_kwnames[] = { "self","id", NULL }; | |
1029 | ||
1030 | self = self; | |
1031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_ProcessCommand",_kwnames,&_argo0,&_arg1)) | |
1032 | return NULL; | |
1033 | if (_argo0) { | |
1034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p."); | |
1037 | return NULL; | |
1038 | } | |
1039 | } | |
1040 | { | |
1041 | wxPy_BEGIN_ALLOW_THREADS; | |
1042 | _result = (bool )wxFrame_ProcessCommand(_arg0,_arg1); | |
1043 | ||
1044 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1045 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1046 | } _resultobj = Py_BuildValue("i",_result); |
1047 | return _resultobj; | |
1048 | } | |
1049 | ||
9df61a29 RD |
1050 | #define wxFrame_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1)) |
1051 | static PyObject *_wrap_wxFrame_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1052 | PyObject * _resultobj; | |
1053 | bool _result; | |
1054 | wxFrame * _arg0; | |
1055 | bool _arg1; | |
1056 | long _arg2 = (long ) (wxFULLSCREEN_ALL); | |
1057 | PyObject * _argo0 = 0; | |
1058 | int tempbool1; | |
1059 | char *_kwnames[] = { "self","show","style", NULL }; | |
1060 | ||
1061 | self = self; | |
1062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|l:wxFrame_ShowFullScreen",_kwnames,&_argo0,&tempbool1,&_arg2)) | |
1063 | return NULL; | |
1064 | if (_argo0) { | |
1065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ShowFullScreen. Expected _wxFrame_p."); | |
1068 | return NULL; | |
1069 | } | |
1070 | } | |
1071 | _arg1 = (bool ) tempbool1; | |
1072 | { | |
1073 | wxPy_BEGIN_ALLOW_THREADS; | |
1074 | _result = (bool )wxFrame_ShowFullScreen(_arg0,_arg1,_arg2); | |
1075 | ||
1076 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1077 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
1078 | } _resultobj = Py_BuildValue("i",_result); |
1079 | return _resultobj; | |
1080 | } | |
1081 | ||
9a08cd12 RD |
1082 | #define wxFrame_IsFullScreen(_swigobj) (_swigobj->IsFullScreen()) |
1083 | static PyObject *_wrap_wxFrame_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1084 | PyObject * _resultobj; | |
1085 | bool _result; | |
1086 | wxFrame * _arg0; | |
1087 | PyObject * _argo0 = 0; | |
1088 | char *_kwnames[] = { "self", NULL }; | |
1089 | ||
1090 | self = self; | |
1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_IsFullScreen",_kwnames,&_argo0)) | |
1092 | return NULL; | |
1093 | if (_argo0) { | |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsFullScreen. Expected _wxFrame_p."); | |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
1100 | { | |
1101 | wxPy_BEGIN_ALLOW_THREADS; | |
1102 | _result = (bool )wxFrame_IsFullScreen(_arg0); | |
1103 | ||
1104 | wxPy_END_ALLOW_THREADS; | |
1105 | if (PyErr_Occurred()) return NULL; | |
1106 | } _resultobj = Py_BuildValue("i",_result); | |
1107 | return _resultobj; | |
1108 | } | |
1109 | ||
9c039d08 RD |
1110 | static void *SwigwxMiniFrameTowxFrame(void *ptr) { |
1111 | wxMiniFrame *src; | |
1112 | wxFrame *dest; | |
1113 | src = (wxMiniFrame *) ptr; | |
1114 | dest = (wxFrame *) src; | |
1115 | return (void *) dest; | |
1116 | } | |
1117 | ||
1118 | static void *SwigwxMiniFrameTowxWindow(void *ptr) { | |
1119 | wxMiniFrame *src; | |
1120 | wxWindow *dest; | |
1121 | src = (wxMiniFrame *) ptr; | |
1122 | dest = (wxWindow *) src; | |
1123 | return (void *) dest; | |
1124 | } | |
1125 | ||
1126 | static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) { | |
1127 | wxMiniFrame *src; | |
1128 | wxEvtHandler *dest; | |
1129 | src = (wxMiniFrame *) ptr; | |
1130 | dest = (wxEvtHandler *) src; | |
1131 | return (void *) dest; | |
1132 | } | |
1133 | ||
9df61a29 RD |
1134 | static void *SwigwxMiniFrameTowxObject(void *ptr) { |
1135 | wxMiniFrame *src; | |
1136 | wxObject *dest; | |
1137 | src = (wxMiniFrame *) ptr; | |
1138 | dest = (wxObject *) src; | |
1139 | return (void *) dest; | |
1140 | } | |
1141 | ||
9c039d08 | 1142 | #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 1143 | static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1144 | PyObject * _resultobj; |
1145 | wxMiniFrame * _result; | |
1146 | wxWindow * _arg0; | |
1147 | wxWindowID _arg1; | |
1148 | wxString * _arg2; | |
b68dc582 RD |
1149 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1150 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1151 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; |
1152 | char * _arg6 = (char *) "frame"; | |
1153 | PyObject * _argo0 = 0; | |
9c039d08 | 1154 | PyObject * _obj2 = 0; |
2f90df85 RD |
1155 | wxPoint temp; |
1156 | PyObject * _obj3 = 0; | |
1157 | wxSize temp0; | |
1158 | PyObject * _obj4 = 0; | |
efc5f224 | 1159 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
9c039d08 RD |
1160 | char _ptemp[128]; |
1161 | ||
1162 | self = self; | |
2f90df85 | 1163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMiniFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
9c039d08 | 1164 | return NULL; |
1d99702e RD |
1165 | if (_argo0) { |
1166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
1168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p."); |
1169 | return NULL; | |
1170 | } | |
1171 | } | |
1172 | { | |
2cd2fac8 RD |
1173 | #if PYTHON_API_VERSION >= 1009 |
1174 | char* tmpPtr; int tmpSize; | |
1175 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1176 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1177 | return NULL; |
1178 | } | |
1179 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1180 | return NULL; | |
1181 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1182 | #else | |
9c039d08 RD |
1183 | if (!PyString_Check(_obj2)) { |
1184 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1185 | return NULL; | |
1186 | } | |
2cd2fac8 RD |
1187 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1188 | #endif | |
9c039d08 | 1189 | } |
2f90df85 RD |
1190 | if (_obj3) |
1191 | { | |
1192 | _arg3 = &temp; | |
1193 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9c039d08 | 1194 | return NULL; |
2f90df85 RD |
1195 | } |
1196 | if (_obj4) | |
1197 | { | |
1198 | _arg4 = &temp0; | |
1199 | if (! wxSize_helper(_obj4, &_arg4)) | |
9c039d08 | 1200 | return NULL; |
2f90df85 | 1201 | } |
cf694132 RD |
1202 | { |
1203 | wxPy_BEGIN_ALLOW_THREADS; | |
1204 | _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
1205 | ||
1206 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1207 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1208 | } if (_result) { |
1209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p"); | |
1210 | _resultobj = Py_BuildValue("s",_ptemp); | |
1211 | } else { | |
1212 | Py_INCREF(Py_None); | |
1213 | _resultobj = Py_None; | |
1214 | } | |
9c039d08 RD |
1215 | { |
1216 | if (_obj2) | |
1217 | delete _arg2; | |
1218 | } | |
1219 | return _resultobj; | |
1220 | } | |
1221 | ||
cd096152 RD |
1222 | static void *SwigwxTipWindowTowxFrame(void *ptr) { |
1223 | wxTipWindow *src; | |
1224 | wxFrame *dest; | |
1225 | src = (wxTipWindow *) ptr; | |
1226 | dest = (wxFrame *) src; | |
1227 | return (void *) dest; | |
1228 | } | |
1229 | ||
1230 | static void *SwigwxTipWindowTowxWindow(void *ptr) { | |
1231 | wxTipWindow *src; | |
1232 | wxWindow *dest; | |
1233 | src = (wxTipWindow *) ptr; | |
1234 | dest = (wxWindow *) src; | |
1235 | return (void *) dest; | |
1236 | } | |
1237 | ||
1238 | static void *SwigwxTipWindowTowxEvtHandler(void *ptr) { | |
1239 | wxTipWindow *src; | |
1240 | wxEvtHandler *dest; | |
1241 | src = (wxTipWindow *) ptr; | |
1242 | dest = (wxEvtHandler *) src; | |
1243 | return (void *) dest; | |
1244 | } | |
1245 | ||
1246 | static void *SwigwxTipWindowTowxObject(void *ptr) { | |
1247 | wxTipWindow *src; | |
1248 | wxObject *dest; | |
1249 | src = (wxTipWindow *) ptr; | |
1250 | dest = (wxObject *) src; | |
1251 | return (void *) dest; | |
1252 | } | |
1253 | ||
1254 | #define new_wxTipWindow(_swigarg0,_swigarg1,_swigarg2) (new wxTipWindow(_swigarg0,_swigarg1,_swigarg2)) | |
1255 | static PyObject *_wrap_new_wxTipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1256 | PyObject * _resultobj; | |
1257 | wxTipWindow * _result; | |
1258 | wxWindow * _arg0; | |
1259 | wxString * _arg1; | |
1260 | wxCoord _arg2 = (wxCoord ) 100; | |
1261 | PyObject * _argo0 = 0; | |
1262 | PyObject * _obj1 = 0; | |
1263 | char *_kwnames[] = { "parent","text","maxLength", NULL }; | |
1264 | char _ptemp[128]; | |
1265 | ||
1266 | self = self; | |
1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:new_wxTipWindow",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1268 | return NULL; | |
1269 | if (_argo0) { | |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTipWindow. Expected _wxWindow_p."); | |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
1276 | { | |
1277 | #if PYTHON_API_VERSION >= 1009 | |
1278 | char* tmpPtr; int tmpSize; | |
1279 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1280 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1281 | return NULL; | |
1282 | } | |
1283 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1284 | return NULL; | |
1285 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1286 | #else | |
1287 | if (!PyString_Check(_obj1)) { | |
1288 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1289 | return NULL; | |
1290 | } | |
1291 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1292 | #endif | |
1293 | } | |
1294 | { | |
1295 | wxPy_BEGIN_ALLOW_THREADS; | |
1296 | _result = (wxTipWindow *)new_wxTipWindow(_arg0,*_arg1,_arg2); | |
1297 | ||
1298 | wxPy_END_ALLOW_THREADS; | |
1299 | if (PyErr_Occurred()) return NULL; | |
1300 | } if (_result) { | |
1301 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipWindow_p"); | |
1302 | _resultobj = Py_BuildValue("s",_ptemp); | |
1303 | } else { | |
1304 | Py_INCREF(Py_None); | |
1305 | _resultobj = Py_None; | |
1306 | } | |
1307 | { | |
1308 | if (_obj1) | |
1309 | delete _arg1; | |
1310 | } | |
1311 | return _resultobj; | |
1312 | } | |
1313 | ||
9c039d08 | 1314 | static PyMethodDef framescMethods[] = { |
cd096152 | 1315 | { "new_wxTipWindow", (PyCFunction) _wrap_new_wxTipWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 1316 | { "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS }, |
9a08cd12 | 1317 | { "wxFrame_IsFullScreen", (PyCFunction) _wrap_wxFrame_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 | 1318 | { "wxFrame_ShowFullScreen", (PyCFunction) _wrap_wxFrame_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
1319 | { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, |
1320 | { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS }, | |
1321 | { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
1322 | { "wxFrame_MakeModal", (PyCFunction) _wrap_wxFrame_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
1323 | { "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, |
1324 | { "wxFrame_SetTitle", (PyCFunction) _wrap_wxFrame_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
1325 | { "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
1326 | { "wxFrame_SetStatusText", (PyCFunction) _wrap_wxFrame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
1327 | { "wxFrame_SetStatusBar", (PyCFunction) _wrap_wxFrame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
1328 | { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
1329 | { "wxFrame_SetIcon", (PyCFunction) _wrap_wxFrame_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1330 | { "wxFrame_SetAcceleratorTable", (PyCFunction) _wrap_wxFrame_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
1331 | { "wxFrame_Restore", (PyCFunction) _wrap_wxFrame_Restore, METH_VARARGS | METH_KEYWORDS }, |
1332 | { "wxFrame_IsMaximized", (PyCFunction) _wrap_wxFrame_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
1333 | { "wxFrame_Maximize", (PyCFunction) _wrap_wxFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, |
1334 | { "wxFrame_IsIconized", (PyCFunction) _wrap_wxFrame_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
1335 | { "wxFrame_Iconize", (PyCFunction) _wrap_wxFrame_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
1336 | { "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
1337 | { "wxFrame_GetTitle", (PyCFunction) _wrap_wxFrame_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
1338 | { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
1339 | { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 1340 | { "wxFrame_GetIcon", (PyCFunction) _wrap_wxFrame_GetIcon, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
1341 | { "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, |
1342 | { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
1343 | { "wxFrame_Centre", (PyCFunction) _wrap_wxFrame_Centre, METH_VARARGS | METH_KEYWORDS }, |
1344 | { "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS }, | |
9c039d08 RD |
1345 | { NULL, NULL } |
1346 | }; | |
1d99702e RD |
1347 | #ifdef __cplusplus |
1348 | } | |
1349 | #endif | |
1350 | /* | |
1351 | * This table is used by the pointer type-checker | |
1352 | */ | |
1353 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 1354 | { "_signed_long","_long",0}, |
b1462dfa | 1355 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
1356 | { "_wxPrintQuality","_int",0}, |
1357 | { "_wxPrintQuality","_signed_int",0}, | |
1358 | { "_wxPrintQuality","_unsigned_int",0}, | |
1359 | { "_wxPrintQuality","_wxWindowID",0}, | |
1360 | { "_wxPrintQuality","_uint",0}, | |
1361 | { "_wxPrintQuality","_EBool",0}, | |
1362 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 1363 | { "_wxPrintQuality","_time_t",0}, |
cd096152 RD |
1364 | { "_class_wxEvtHandler","_class_wxTipWindow",SwigwxTipWindowTowxEvtHandler}, |
1365 | { "_class_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler}, | |
1d99702e RD |
1366 | { "_class_wxEvtHandler","_class_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, |
1367 | { "_class_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, | |
1368 | { "_class_wxEvtHandler","_class_wxFrame",SwigwxFrameTowxEvtHandler}, | |
1369 | { "_class_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler}, | |
1d99702e | 1370 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
1371 | { "_long","_unsigned_long",0}, |
1372 | { "_long","_signed_long",0}, | |
cd096152 RD |
1373 | { "_class_wxObject","_class_wxTipWindow",SwigwxTipWindowTowxObject}, |
1374 | { "_class_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject}, | |
9df61a29 RD |
1375 | { "_class_wxObject","_class_wxMiniFrame",SwigwxMiniFrameTowxObject}, |
1376 | { "_class_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject}, | |
1377 | { "_class_wxObject","_class_wxFrame",SwigwxFrameTowxObject}, | |
1378 | { "_class_wxObject","_wxFrame",SwigwxFrameTowxObject}, | |
b1462dfa | 1379 | { "_size_t","_wxCoord",0}, |
1d99702e | 1380 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 1381 | { "_size_t","_time_t",0}, |
1d99702e RD |
1382 | { "_size_t","_unsigned_int",0}, |
1383 | { "_size_t","_int",0}, | |
1384 | { "_size_t","_wxWindowID",0}, | |
1385 | { "_size_t","_uint",0}, | |
b1462dfa | 1386 | { "_uint","_wxCoord",0}, |
1d99702e | 1387 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 1388 | { "_uint","_time_t",0}, |
1d99702e RD |
1389 | { "_uint","_size_t",0}, |
1390 | { "_uint","_unsigned_int",0}, | |
1391 | { "_uint","_int",0}, | |
1392 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 1393 | { "_wxChar","_char",0}, |
f6bcfd97 | 1394 | { "_char","_wxChar",0}, |
b1462dfa | 1395 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
1396 | { "_EBool","_wxPrintQuality",0}, |
1397 | { "_EBool","_signed_int",0}, | |
1398 | { "_EBool","_int",0}, | |
1399 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 1400 | { "_unsigned_long","_long",0}, |
b1462dfa | 1401 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
1402 | { "_signed_int","_wxPrintQuality",0}, |
1403 | { "_signed_int","_EBool",0}, | |
1404 | { "_signed_int","_wxWindowID",0}, | |
1405 | { "_signed_int","_int",0}, | |
1d99702e RD |
1406 | { "_WXTYPE","_short",0}, |
1407 | { "_WXTYPE","_signed_short",0}, | |
1408 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
1409 | { "_unsigned_short","_WXTYPE",0}, |
1410 | { "_unsigned_short","_short",0}, | |
cd096152 RD |
1411 | { "_class_wxWindow","_class_wxTipWindow",SwigwxTipWindowTowxWindow}, |
1412 | { "_class_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow}, | |
1d99702e RD |
1413 | { "_class_wxWindow","_class_wxMiniFrame",SwigwxMiniFrameTowxWindow}, |
1414 | { "_class_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow}, | |
1415 | { "_class_wxWindow","_class_wxFrame",SwigwxFrameTowxWindow}, | |
1416 | { "_class_wxWindow","_wxFrame",SwigwxFrameTowxWindow}, | |
cd096152 RD |
1417 | { "_wxObject","_class_wxTipWindow",SwigwxTipWindowTowxObject}, |
1418 | { "_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject}, | |
9df61a29 RD |
1419 | { "_wxObject","_class_wxMiniFrame",SwigwxMiniFrameTowxObject}, |
1420 | { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject}, | |
1421 | { "_wxObject","_class_wxFrame",SwigwxFrameTowxObject}, | |
1422 | { "_wxObject","_wxFrame",SwigwxFrameTowxObject}, | |
1d99702e RD |
1423 | { "_signed_short","_WXTYPE",0}, |
1424 | { "_signed_short","_short",0}, | |
1d99702e | 1425 | { "_unsigned_char","_byte",0}, |
b1462dfa | 1426 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 1427 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 1428 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
1429 | { "_unsigned_int","_size_t",0}, |
1430 | { "_unsigned_int","_uint",0}, | |
1431 | { "_unsigned_int","_wxWindowID",0}, | |
1432 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
1433 | { "_short","_WXTYPE",0}, |
1434 | { "_short","_unsigned_short",0}, | |
1435 | { "_short","_signed_short",0}, | |
cd096152 RD |
1436 | { "_wxFrame","_class_wxTipWindow",SwigwxTipWindowTowxFrame}, |
1437 | { "_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame}, | |
1d99702e RD |
1438 | { "_wxFrame","_class_wxMiniFrame",SwigwxMiniFrameTowxFrame}, |
1439 | { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame}, | |
b1462dfa | 1440 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 1441 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 1442 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
1443 | { "_wxWindowID","_size_t",0}, |
1444 | { "_wxWindowID","_EBool",0}, | |
1445 | { "_wxWindowID","_uint",0}, | |
1446 | { "_wxWindowID","_int",0}, | |
1447 | { "_wxWindowID","_signed_int",0}, | |
1448 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 1449 | { "_int","_wxCoord",0}, |
1d99702e | 1450 | { "_int","_wxPrintQuality",0}, |
c368d904 | 1451 | { "_int","_time_t",0}, |
1d99702e RD |
1452 | { "_int","_size_t",0}, |
1453 | { "_int","_EBool",0}, | |
1454 | { "_int","_uint",0}, | |
1455 | { "_int","_wxWindowID",0}, | |
1456 | { "_int","_unsigned_int",0}, | |
1457 | { "_int","_signed_int",0}, | |
c368d904 RD |
1458 | { "_time_t","_wxCoord",0}, |
1459 | { "_time_t","_wxPrintQuality",0}, | |
1460 | { "_time_t","_unsigned_int",0}, | |
1461 | { "_time_t","_int",0}, | |
1462 | { "_time_t","_wxWindowID",0}, | |
1463 | { "_time_t","_uint",0}, | |
1464 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
1465 | { "_wxCoord","_int",0}, |
1466 | { "_wxCoord","_signed_int",0}, | |
1467 | { "_wxCoord","_unsigned_int",0}, | |
1468 | { "_wxCoord","_wxWindowID",0}, | |
1469 | { "_wxCoord","_uint",0}, | |
1470 | { "_wxCoord","_EBool",0}, | |
1471 | { "_wxCoord","_size_t",0}, | |
c368d904 | 1472 | { "_wxCoord","_time_t",0}, |
b1462dfa | 1473 | { "_wxCoord","_wxPrintQuality",0}, |
cd096152 RD |
1474 | { "_wxEvtHandler","_class_wxTipWindow",SwigwxTipWindowTowxEvtHandler}, |
1475 | { "_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler}, | |
1d99702e RD |
1476 | { "_wxEvtHandler","_class_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, |
1477 | { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, | |
1478 | { "_wxEvtHandler","_class_wxFrame",SwigwxFrameTowxEvtHandler}, | |
1479 | { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler}, | |
cd096152 RD |
1480 | { "_wxWindow","_class_wxTipWindow",SwigwxTipWindowTowxWindow}, |
1481 | { "_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow}, | |
1d99702e RD |
1482 | { "_wxWindow","_class_wxMiniFrame",SwigwxMiniFrameTowxWindow}, |
1483 | { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow}, | |
1484 | { "_wxWindow","_class_wxFrame",SwigwxFrameTowxWindow}, | |
1485 | { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow}, | |
cd096152 RD |
1486 | { "_class_wxFrame","_class_wxTipWindow",SwigwxTipWindowTowxFrame}, |
1487 | { "_class_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame}, | |
1d99702e RD |
1488 | { "_class_wxFrame","_class_wxMiniFrame",SwigwxMiniFrameTowxFrame}, |
1489 | { "_class_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame}, | |
1d99702e RD |
1490 | {0,0,0}}; |
1491 | ||
9c039d08 RD |
1492 | static PyObject *SWIG_globals; |
1493 | #ifdef __cplusplus | |
1494 | extern "C" | |
1495 | #endif | |
1d99702e | 1496 | SWIGEXPORT(void) initframesc() { |
9c039d08 RD |
1497 | PyObject *m, *d; |
1498 | SWIG_globals = SWIG_newvarlink(); | |
1499 | m = Py_InitModule("framesc", framescMethods); | |
1500 | d = PyModule_GetDict(m); | |
f6bcfd97 BP |
1501 | PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR)); |
1502 | PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR)); | |
1503 | PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR)); | |
1504 | PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER)); | |
1505 | PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION)); | |
1506 | PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL)); | |
1d99702e RD |
1507 | { |
1508 | int i; | |
1509 | for (i = 0; _swig_mapping[i].n1; i++) | |
1510 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1511 | } | |
9c039d08 | 1512 | } |