]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/frames.cpp
Version 0.4.1 for wxGTK
[wxWidgets.git] / utils / wxPython / src / gtk / frames.cpp
1 /*
2 * FILE : gtk/frames.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
31 # else
32 # define SWIGEXPORT(a,b) a b
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a,b) a b
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
47 extern PyObject *SWIG_newvarlink(void);
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #define SWIG_init initframesc
53
54 #define SWIG_name "framesc"
55
56 #include "helpers.h"
57
58 #ifdef __WXMSW__
59 #include <wx/minifram.h>
60 #endif
61
62 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65 if (!target) {
66 target = o;
67 } else if (target == Py_None) {
68 Py_DECREF(Py_None);
69 target = o;
70 } else {
71 if (!PyList_Check(target)) {
72 o2 = target;
73 target = PyList_New(0);
74 PyList_Append(target, o2);
75 Py_XDECREF(o2);
76 }
77 PyList_Append(target,o);
78 Py_XDECREF(o);
79 }
80 return target;
81 }
82
83 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
84 PyObject* o2;
85 PyObject* o3;
86
87 if (!target) {
88 target = o;
89 } else if (target == Py_None) {
90 Py_DECREF(Py_None);
91 target = o;
92 } else {
93 if (!PyTuple_Check(target)) {
94 o2 = target;
95 target = PyTuple_New(1);
96 PyTuple_SetItem(target, 0, o2);
97 }
98 o3 = PyTuple_New(1);
99 PyTuple_SetItem(o3, 0, o);
100
101 o2 = target;
102 target = PySequence_Concat(o2, o3);
103 Py_DECREF(o2);
104 Py_DECREF(o3);
105 }
106 return target;
107 }
108
109
110 extern int* int_LIST_helper(PyObject* source);
111 extern long* long_LIST_helper(PyObject* source);
112 extern char** string_LIST_helper(PyObject* source);
113 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
114 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
115 extern wxString* wxString_LIST_helper(PyObject* source);
116 #ifdef __WXMSW__
117 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
118 #endif
119
120
121 static char* wxStringErrorMsg = "string type is required for parameter";
122 static void *SwigwxFrameTowxWindow(void *ptr) {
123 wxFrame *src;
124 wxWindow *dest;
125 src = (wxFrame *) ptr;
126 dest = (wxWindow *) src;
127 return (void *) dest;
128 }
129
130 static void *SwigwxFrameTowxEvtHandler(void *ptr) {
131 wxFrame *src;
132 wxEvtHandler *dest;
133 src = (wxFrame *) ptr;
134 dest = (wxEvtHandler *) src;
135 return (void *) dest;
136 }
137
138 #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
139 static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args) {
140 PyObject * _resultobj;
141 wxFrame * _result;
142 wxWindow * _arg0;
143 wxWindowID _arg1;
144 wxString * _arg2;
145 wxPoint * _arg3 = &wxPyDefaultPosition;
146 wxSize * _arg4 = &wxPyDefaultSize;
147 long _arg5 = (wxDEFAULT_FRAME_STYLE);
148 char * _arg6 = "frame";
149 char * _argc0 = 0;
150 PyObject * _obj2 = 0;
151 char * _argc3 = 0;
152 char * _argc4 = 0;
153 char _ptemp[128];
154
155 self = self;
156 if(!PyArg_ParseTuple(args,"siO|ssls:new_wxFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
157 return NULL;
158 if (_argc0) {
159 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p.");
161 return NULL;
162 }
163 }
164 {
165 if (!PyString_Check(_obj2)) {
166 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
167 return NULL;
168 }
169 _arg2 = new wxString(PyString_AsString(_obj2));
170 }
171 if (_argc3) {
172 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
173 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxFrame. Expected _wxPoint_p.");
174 return NULL;
175 }
176 }
177 if (_argc4) {
178 if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
179 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxFrame. Expected _wxSize_p.");
180 return NULL;
181 }
182 }
183 _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
184 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
185 _resultobj = Py_BuildValue("s",_ptemp);
186 {
187 if (_obj2)
188 delete _arg2;
189 }
190 return _resultobj;
191 }
192
193 #define wxFrame_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
194 static PyObject *_wrap_wxFrame_Centre(PyObject *self, PyObject *args) {
195 PyObject * _resultobj;
196 wxFrame * _arg0;
197 int _arg1 = (wxBOTH);
198 char * _argc0 = 0;
199
200 self = self;
201 if(!PyArg_ParseTuple(args,"s|i:wxFrame_Centre",&_argc0,&_arg1))
202 return NULL;
203 if (_argc0) {
204 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Centre. Expected _wxFrame_p.");
206 return NULL;
207 }
208 }
209 wxFrame_Centre(_arg0,_arg1);
210 Py_INCREF(Py_None);
211 _resultobj = Py_None;
212 return _resultobj;
213 }
214
215 #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
216 static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args) {
217 PyObject * _resultobj;
218 wxStatusBar * _result;
219 wxFrame * _arg0;
220 int _arg1 = 1;
221 long _arg2 = wxST_SIZEGRIP;
222 wxWindowID _arg3 = -1;
223 char * _arg4 = "statusBar";
224 char * _argc0 = 0;
225 char _ptemp[128];
226
227 self = self;
228 if(!PyArg_ParseTuple(args,"s|ilis:wxFrame_CreateStatusBar",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4))
229 return NULL;
230 if (_argc0) {
231 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
232 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p.");
233 return NULL;
234 }
235 }
236 _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4);
237 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
238 _resultobj = Py_BuildValue("s",_ptemp);
239 return _resultobj;
240 }
241
242 #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2))
243 static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args) {
244 PyObject * _resultobj;
245 wxToolBar * _result;
246 wxFrame * _arg0;
247 long _arg1 = (wxNO_BORDER)|(wxTB_HORIZONTAL);
248 wxWindowID _arg2 = -1;
249 char * _arg3 = "toolBar";
250 char * _argc0 = 0;
251 char _ptemp[128];
252
253 self = self;
254 if(!PyArg_ParseTuple(args,"s|lis:wxFrame_CreateToolBar",&_argc0,&_arg1,&_arg2,&_arg3))
255 return NULL;
256 if (_argc0) {
257 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p.");
259 return NULL;
260 }
261 }
262 _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3);
263 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
264 _resultobj = Py_BuildValue("s",_ptemp);
265 return _resultobj;
266 }
267
268 #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
269 static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args) {
270 PyObject * _resultobj;
271 wxMenuBar * _result;
272 wxFrame * _arg0;
273 char * _argc0 = 0;
274 char _ptemp[128];
275
276 self = self;
277 if(!PyArg_ParseTuple(args,"s:wxFrame_GetMenuBar",&_argc0))
278 return NULL;
279 if (_argc0) {
280 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p.");
282 return NULL;
283 }
284 }
285 _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0);
286 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
287 _resultobj = Py_BuildValue("s",_ptemp);
288 return _resultobj;
289 }
290
291 #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar())
292 static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args) {
293 PyObject * _resultobj;
294 wxStatusBar * _result;
295 wxFrame * _arg0;
296 char * _argc0 = 0;
297 char _ptemp[128];
298
299 self = self;
300 if(!PyArg_ParseTuple(args,"s:wxFrame_GetStatusBar",&_argc0))
301 return NULL;
302 if (_argc0) {
303 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p.");
305 return NULL;
306 }
307 }
308 _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0);
309 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
310 _resultobj = Py_BuildValue("s",_ptemp);
311 return _resultobj;
312 }
313
314 #define wxFrame_GetTitle(_swigobj) (_swigobj->GetTitle())
315 static PyObject *_wrap_wxFrame_GetTitle(PyObject *self, PyObject *args) {
316 PyObject * _resultobj;
317 wxString * _result;
318 wxFrame * _arg0;
319 char * _argc0 = 0;
320
321 self = self;
322 if(!PyArg_ParseTuple(args,"s:wxFrame_GetTitle",&_argc0))
323 return NULL;
324 if (_argc0) {
325 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetTitle. Expected _wxFrame_p.");
327 return NULL;
328 }
329 }
330 _result = new wxString (wxFrame_GetTitle(_arg0));
331 {
332 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
333 }
334 {
335 delete _result;
336 }
337 return _resultobj;
338 }
339
340 #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
341 static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args) {
342 PyObject * _resultobj;
343 wxToolBar * _result;
344 wxFrame * _arg0;
345 char * _argc0 = 0;
346 char _ptemp[128];
347
348 self = self;
349 if(!PyArg_ParseTuple(args,"s:wxFrame_GetToolBar",&_argc0))
350 return NULL;
351 if (_argc0) {
352 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p.");
354 return NULL;
355 }
356 }
357 _result = (wxToolBar *)wxFrame_GetToolBar(_arg0);
358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
359 _resultobj = Py_BuildValue("s",_ptemp);
360 return _resultobj;
361 }
362
363 #define wxFrame_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
364 static PyObject *_wrap_wxFrame_Iconize(PyObject *self, PyObject *args) {
365 PyObject * _resultobj;
366 wxFrame * _arg0;
367 bool _arg1;
368 char * _argc0 = 0;
369 int tempbool1;
370
371 self = self;
372 if(!PyArg_ParseTuple(args,"si:wxFrame_Iconize",&_argc0,&tempbool1))
373 return NULL;
374 if (_argc0) {
375 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Iconize. Expected _wxFrame_p.");
377 return NULL;
378 }
379 }
380 _arg1 = (bool ) tempbool1;
381 wxFrame_Iconize(_arg0,_arg1);
382 Py_INCREF(Py_None);
383 _resultobj = Py_None;
384 return _resultobj;
385 }
386
387 #define wxFrame_IsIconized(_swigobj) (_swigobj->IsIconized())
388 static PyObject *_wrap_wxFrame_IsIconized(PyObject *self, PyObject *args) {
389 PyObject * _resultobj;
390 bool _result;
391 wxFrame * _arg0;
392 char * _argc0 = 0;
393
394 self = self;
395 if(!PyArg_ParseTuple(args,"s:wxFrame_IsIconized",&_argc0))
396 return NULL;
397 if (_argc0) {
398 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsIconized. Expected _wxFrame_p.");
400 return NULL;
401 }
402 }
403 _result = (bool )wxFrame_IsIconized(_arg0);
404 _resultobj = Py_BuildValue("i",_result);
405 return _resultobj;
406 }
407
408 #define wxFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
409 static PyObject *_wrap_wxFrame_Maximize(PyObject *self, PyObject *args) {
410 PyObject * _resultobj;
411 wxFrame * _arg0;
412 bool _arg1;
413 char * _argc0 = 0;
414 int tempbool1;
415
416 self = self;
417 if(!PyArg_ParseTuple(args,"si:wxFrame_Maximize",&_argc0,&tempbool1))
418 return NULL;
419 if (_argc0) {
420 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Maximize. Expected _wxFrame_p.");
422 return NULL;
423 }
424 }
425 _arg1 = (bool ) tempbool1;
426 wxFrame_Maximize(_arg0,_arg1);
427 Py_INCREF(Py_None);
428 _resultobj = Py_None;
429 return _resultobj;
430 }
431
432 #define wxFrame_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
433 static PyObject *_wrap_wxFrame_SetIcon(PyObject *self, PyObject *args) {
434 PyObject * _resultobj;
435 wxFrame * _arg0;
436 wxIcon * _arg1;
437 char * _argc0 = 0;
438 char * _argc1 = 0;
439
440 self = self;
441 if(!PyArg_ParseTuple(args,"ss:wxFrame_SetIcon",&_argc0,&_argc1))
442 return NULL;
443 if (_argc0) {
444 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetIcon. Expected _wxFrame_p.");
446 return NULL;
447 }
448 }
449 if (_argc1) {
450 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxIcon_p")) {
451 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetIcon. Expected _wxIcon_p.");
452 return NULL;
453 }
454 }
455 wxFrame_SetIcon(_arg0,*_arg1);
456 Py_INCREF(Py_None);
457 _resultobj = Py_None;
458 return _resultobj;
459 }
460
461 #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
462 static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args) {
463 PyObject * _resultobj;
464 wxFrame * _arg0;
465 wxMenuBar * _arg1;
466 char * _argc0 = 0;
467 char * _argc1 = 0;
468
469 self = self;
470 if(!PyArg_ParseTuple(args,"ss:wxFrame_SetMenuBar",&_argc0,&_argc1))
471 return NULL;
472 if (_argc0) {
473 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p.");
475 return NULL;
476 }
477 }
478 if (_argc1) {
479 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMenuBar_p")) {
480 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p.");
481 return NULL;
482 }
483 }
484 wxFrame_SetMenuBar(_arg0,_arg1);
485 Py_INCREF(Py_None);
486 _resultobj = Py_None;
487 return _resultobj;
488 }
489
490 #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0))
491 static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args) {
492 PyObject * _resultobj;
493 wxFrame * _arg0;
494 wxStatusBar * _arg1;
495 char * _argc0 = 0;
496 char * _argc1 = 0;
497
498 self = self;
499 if(!PyArg_ParseTuple(args,"ss:wxFrame_SetStatusBar",&_argc0,&_argc1))
500 return NULL;
501 if (_argc0) {
502 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p.");
504 return NULL;
505 }
506 }
507 if (_argc1) {
508 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxStatusBar_p")) {
509 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p.");
510 return NULL;
511 }
512 }
513 wxFrame_SetStatusBar(_arg0,_arg1);
514 Py_INCREF(Py_None);
515 _resultobj = Py_None;
516 return _resultobj;
517 }
518
519 #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
520 static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args) {
521 PyObject * _resultobj;
522 wxFrame * _arg0;
523 wxString * _arg1;
524 int _arg2 = 0;
525 char * _argc0 = 0;
526 PyObject * _obj1 = 0;
527
528 self = self;
529 if(!PyArg_ParseTuple(args,"sO|i:wxFrame_SetStatusText",&_argc0,&_obj1,&_arg2))
530 return NULL;
531 if (_argc0) {
532 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p.");
534 return NULL;
535 }
536 }
537 {
538 if (!PyString_Check(_obj1)) {
539 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
540 return NULL;
541 }
542 _arg1 = new wxString(PyString_AsString(_obj1));
543 }
544 wxFrame_SetStatusText(_arg0,*_arg1,_arg2);
545 Py_INCREF(Py_None);
546 _resultobj = Py_None;
547 {
548 if (_obj1)
549 delete _arg1;
550 }
551 return _resultobj;
552 }
553
554 #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
555 static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args) {
556 PyObject * _resultobj;
557 wxFrame * _arg0;
558 int _arg1;
559 int * _arg2;
560 char * _argc0 = 0;
561 PyObject * _obj2 = 0;
562
563 self = self;
564 if(!PyArg_ParseTuple(args,"sO:wxFrame_SetStatusWidths",&_argc0,&_obj2))
565 return NULL;
566 if (_argc0) {
567 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p.");
569 return NULL;
570 }
571 }
572 if (_obj2)
573 {
574 _arg2 = int_LIST_helper(_obj2);
575 if (_arg2 == NULL) {
576 return NULL;
577 }
578 }
579 {
580 _arg1 = PyList_Size(_obj2);
581 }
582 wxFrame_SetStatusWidths(_arg0,_arg1,_arg2);
583 Py_INCREF(Py_None);
584 _resultobj = Py_None;
585 {
586 delete [] _arg2;
587 }
588 return _resultobj;
589 }
590
591 #define wxFrame_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
592 static PyObject *_wrap_wxFrame_SetTitle(PyObject *self, PyObject *args) {
593 PyObject * _resultobj;
594 wxFrame * _arg0;
595 wxString * _arg1;
596 char * _argc0 = 0;
597 PyObject * _obj1 = 0;
598
599 self = self;
600 if(!PyArg_ParseTuple(args,"sO:wxFrame_SetTitle",&_argc0,&_obj1))
601 return NULL;
602 if (_argc0) {
603 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetTitle. Expected _wxFrame_p.");
605 return NULL;
606 }
607 }
608 {
609 if (!PyString_Check(_obj1)) {
610 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
611 return NULL;
612 }
613 _arg1 = new wxString(PyString_AsString(_obj1));
614 }
615 wxFrame_SetTitle(_arg0,*_arg1);
616 Py_INCREF(Py_None);
617 _resultobj = Py_None;
618 {
619 if (_obj1)
620 delete _arg1;
621 }
622 return _resultobj;
623 }
624
625 #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
626 static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args) {
627 PyObject * _resultobj;
628 wxFrame * _arg0;
629 wxToolBar * _arg1;
630 char * _argc0 = 0;
631 char * _argc1 = 0;
632
633 self = self;
634 if(!PyArg_ParseTuple(args,"ss:wxFrame_SetToolBar",&_argc0,&_argc1))
635 return NULL;
636 if (_argc0) {
637 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) {
638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p.");
639 return NULL;
640 }
641 }
642 if (_argc1) {
643 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxToolBar_p")) {
644 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p.");
645 return NULL;
646 }
647 }
648 wxFrame_SetToolBar(_arg0,_arg1);
649 Py_INCREF(Py_None);
650 _resultobj = Py_None;
651 return _resultobj;
652 }
653
654 static PyMethodDef framescMethods[] = {
655 { "wxFrame_SetToolBar", _wrap_wxFrame_SetToolBar, 1 },
656 { "wxFrame_SetTitle", _wrap_wxFrame_SetTitle, 1 },
657 { "wxFrame_SetStatusWidths", _wrap_wxFrame_SetStatusWidths, 1 },
658 { "wxFrame_SetStatusText", _wrap_wxFrame_SetStatusText, 1 },
659 { "wxFrame_SetStatusBar", _wrap_wxFrame_SetStatusBar, 1 },
660 { "wxFrame_SetMenuBar", _wrap_wxFrame_SetMenuBar, 1 },
661 { "wxFrame_SetIcon", _wrap_wxFrame_SetIcon, 1 },
662 { "wxFrame_Maximize", _wrap_wxFrame_Maximize, 1 },
663 { "wxFrame_IsIconized", _wrap_wxFrame_IsIconized, 1 },
664 { "wxFrame_Iconize", _wrap_wxFrame_Iconize, 1 },
665 { "wxFrame_GetToolBar", _wrap_wxFrame_GetToolBar, 1 },
666 { "wxFrame_GetTitle", _wrap_wxFrame_GetTitle, 1 },
667 { "wxFrame_GetStatusBar", _wrap_wxFrame_GetStatusBar, 1 },
668 { "wxFrame_GetMenuBar", _wrap_wxFrame_GetMenuBar, 1 },
669 { "wxFrame_CreateToolBar", _wrap_wxFrame_CreateToolBar, 1 },
670 { "wxFrame_CreateStatusBar", _wrap_wxFrame_CreateStatusBar, 1 },
671 { "wxFrame_Centre", _wrap_wxFrame_Centre, 1 },
672 { "new_wxFrame", _wrap_new_wxFrame, 1 },
673 { NULL, NULL }
674 };
675 static PyObject *SWIG_globals;
676 #ifdef __cplusplus
677 extern "C"
678 #endif
679 SWIGEXPORT(void,initframesc)() {
680 PyObject *m, *d;
681 SWIG_globals = SWIG_newvarlink();
682 m = Py_InitModule("framesc", framescMethods);
683 d = PyModule_GetDict(m);
684 /*
685 * These are the pointer type-equivalency mappings.
686 * (Used by the SWIG pointer type-checker).
687 */
688 SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0);
689 SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0);
690 SWIG_RegisterMapping("_signed_long","_long",0);
691 SWIG_RegisterMapping("_wxMenuEvent","_class_wxMenuEvent",0);
692 SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
693 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxFrame",SwigwxFrameTowxEvtHandler);
694 SWIG_RegisterMapping("_class_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler);
695 SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
696 SWIG_RegisterMapping("_wxPaintEvent","_class_wxPaintEvent",0);
697 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
698 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
699 SWIG_RegisterMapping("_class_wxToolBarBase","_wxToolBarBase",0);
700 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
701 SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
702 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
703 SWIG_RegisterMapping("_wxUpdateUIEvent","_class_wxUpdateUIEvent",0);
704 SWIG_RegisterMapping("_byte","_unsigned_char",0);
705 SWIG_RegisterMapping("_wxStaticBox","_class_wxStaticBox",0);
706 SWIG_RegisterMapping("_wxChoice","_class_wxChoice",0);
707 SWIG_RegisterMapping("_wxSlider","_class_wxSlider",0);
708 SWIG_RegisterMapping("_long","_wxDash",0);
709 SWIG_RegisterMapping("_long","_unsigned_long",0);
710 SWIG_RegisterMapping("_long","_signed_long",0);
711 SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0);
712 SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0);
713 SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0);
714 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
715 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
716 SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
717 SWIG_RegisterMapping("_class_wxPaintEvent","_wxPaintEvent",0);
718 SWIG_RegisterMapping("_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0);
719 SWIG_RegisterMapping("_class_wxStatusBar","_wxStatusBar",0);
720 SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0);
721 SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
722 SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0);
723 SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0);
724 SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0);
725 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
726 SWIG_RegisterMapping("_class_wxKeyEvent","_wxKeyEvent",0);
727 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
728 SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
729 SWIG_RegisterMapping("_wxIdleEvent","_class_wxIdleEvent",0);
730 SWIG_RegisterMapping("_class_wxUpdateUIEvent","_wxUpdateUIEvent",0);
731 SWIG_RegisterMapping("_wxToolBar","_class_wxToolBar",0);
732 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
733 SWIG_RegisterMapping("_wxShowEvent","_class_wxShowEvent",0);
734 SWIG_RegisterMapping("_uint","_unsigned_int",0);
735 SWIG_RegisterMapping("_uint","_int",0);
736 SWIG_RegisterMapping("_uint","_wxWindowID",0);
737 SWIG_RegisterMapping("_class_wxEvent","_wxEvent",0);
738 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
739 SWIG_RegisterMapping("_wxCommandEvent","_class_wxCommandEvent",0);
740 SWIG_RegisterMapping("_wxSizeEvent","_class_wxSizeEvent",0);
741 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
742 SWIG_RegisterMapping("_class_wxButton","_wxButton",0);
743 SWIG_RegisterMapping("_wxRadioBox","_class_wxRadioBox",0);
744 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
745 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
746 SWIG_RegisterMapping("_wxScrollBar","_class_wxScrollBar",0);
747 SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0);
748 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
749 SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0);
750 SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0);
751 SWIG_RegisterMapping("_wxToolBarSimple","_class_wxToolBarSimple",0);
752 SWIG_RegisterMapping("_class_wxToolBar","_wxToolBar",0);
753 SWIG_RegisterMapping("_wxScrollEvent","_class_wxScrollEvent",0);
754 SWIG_RegisterMapping("_EBool","_signed_int",0);
755 SWIG_RegisterMapping("_EBool","_int",0);
756 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
757 SWIG_RegisterMapping("_class_wxDropFilesEvent","_wxDropFilesEvent",0);
758 SWIG_RegisterMapping("_wxStaticText","_class_wxStaticText",0);
759 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
760 SWIG_RegisterMapping("_wxCloseEvent","_class_wxCloseEvent",0);
761 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
762 SWIG_RegisterMapping("_unsigned_long","_long",0);
763 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
764 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
765 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
766 SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0);
767 SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0);
768 SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
769 SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0);
770 SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0);
771 SWIG_RegisterMapping("_wxRadioButton","_class_wxRadioButton",0);
772 SWIG_RegisterMapping("_signed_int","_EBool",0);
773 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
774 SWIG_RegisterMapping("_signed_int","_int",0);
775 SWIG_RegisterMapping("_class_wxTextCtrl","_wxTextCtrl",0);
776 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
777 SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
778 SWIG_RegisterMapping("_class_wxMoveEvent","_wxMoveEvent",0);
779 SWIG_RegisterMapping("_wxListBox","_class_wxListBox",0);
780 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
781 SWIG_RegisterMapping("_class_wxToolBarSimple","_wxToolBarSimple",0);
782 SWIG_RegisterMapping("_WXTYPE","_short",0);
783 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
784 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
785 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
786 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
787 SWIG_RegisterMapping("_unsigned_short","_short",0);
788 SWIG_RegisterMapping("_class_wxWindow","_class_wxFrame",SwigwxFrameTowxWindow);
789 SWIG_RegisterMapping("_class_wxWindow","_wxFrame",SwigwxFrameTowxWindow);
790 SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
791 SWIG_RegisterMapping("_class_wxStaticText","_wxStaticText",0);
792 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
793 SWIG_RegisterMapping("_class_wxCloseEvent","_wxCloseEvent",0);
794 SWIG_RegisterMapping("_class_wxMenuEvent","_wxMenuEvent",0);
795 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
796 SWIG_RegisterMapping("_wxMouseEvent","_class_wxMouseEvent",0);
797 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
798 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
799 SWIG_RegisterMapping("_class_wxRadioBox","_wxRadioBox",0);
800 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
801 SWIG_RegisterMapping("_signed_short","_short",0);
802 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
803 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
804 SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0);
805 SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0);
806 SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0);
807 SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0);
808 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
809 SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0);
810 SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
811 SWIG_RegisterMapping("_unsigned_char","_byte",0);
812 SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
813 SWIG_RegisterMapping("_wxControl","_class_wxControl",0);
814 SWIG_RegisterMapping("_class_wxListBox","_wxListBox",0);
815 SWIG_RegisterMapping("_unsigned_int","_uint",0);
816 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
817 SWIG_RegisterMapping("_unsigned_int","_int",0);
818 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
819 SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
820 SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
821 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
822 SWIG_RegisterMapping("_short","_WXTYPE",0);
823 SWIG_RegisterMapping("_short","_unsigned_short",0);
824 SWIG_RegisterMapping("_short","_signed_short",0);
825 SWIG_RegisterMapping("_class_wxStaticBox","_wxStaticBox",0);
826 SWIG_RegisterMapping("_class_wxScrollEvent","_wxScrollEvent",0);
827 SWIG_RegisterMapping("_wxJoystickEvent","_class_wxJoystickEvent",0);
828 SWIG_RegisterMapping("_class_wxChoice","_wxChoice",0);
829 SWIG_RegisterMapping("_class_wxSlider","_wxSlider",0);
830 SWIG_RegisterMapping("_class_wxBitmapButton","_wxBitmapButton",0);
831 SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0);
832 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
833 SWIG_RegisterMapping("_wxWindowID","_uint",0);
834 SWIG_RegisterMapping("_wxWindowID","_int",0);
835 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
836 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
837 SWIG_RegisterMapping("_int","_EBool",0);
838 SWIG_RegisterMapping("_int","_uint",0);
839 SWIG_RegisterMapping("_int","_wxWindowID",0);
840 SWIG_RegisterMapping("_int","_unsigned_int",0);
841 SWIG_RegisterMapping("_int","_signed_int",0);
842 SWIG_RegisterMapping("_class_wxMouseEvent","_wxMouseEvent",0);
843 SWIG_RegisterMapping("_wxButton","_class_wxButton",0);
844 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
845 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
846 SWIG_RegisterMapping("_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0);
847 SWIG_RegisterMapping("_class_wxInitDialogEvent","_wxInitDialogEvent",0);
848 SWIG_RegisterMapping("_class_wxComboBox","_wxComboBox",0);
849 SWIG_RegisterMapping("_class_wxRadioButton","_wxRadioButton",0);
850 SWIG_RegisterMapping("_wxToolBarBase","_class_wxToolBarBase",0);
851 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
852 SWIG_RegisterMapping("_wxIconizeEvent","_class_wxIconizeEvent",0);
853 SWIG_RegisterMapping("_class_wxControl","_wxControl",0);
854 SWIG_RegisterMapping("_wxStaticBitmap","_class_wxStaticBitmap",0);
855 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
856 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
857 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
858 SWIG_RegisterMapping("_class_wxIdleEvent","_wxIdleEvent",0);
859 SWIG_RegisterMapping("_wxEraseEvent","_class_wxEraseEvent",0);
860 SWIG_RegisterMapping("_class_wxJoystickEvent","_wxJoystickEvent",0);
861 SWIG_RegisterMapping("_class_wxShowEvent","_wxShowEvent",0);
862 SWIG_RegisterMapping("_wxActivateEvent","_class_wxActivateEvent",0);
863 SWIG_RegisterMapping("_wxGauge","_class_wxGauge",0);
864 SWIG_RegisterMapping("_class_wxCommandEvent","_wxCommandEvent",0);
865 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
866 SWIG_RegisterMapping("_class_wxSizeEvent","_wxSizeEvent",0);
867 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
868 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
869 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
870 SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
871 SWIG_RegisterMapping("_wxEvtHandler","_class_wxFrame",SwigwxFrameTowxEvtHandler);
872 SWIG_RegisterMapping("_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler);
873 SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
874 SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
875 SWIG_RegisterMapping("_class_wxScrollBar","_wxScrollBar",0);
876 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
877 SWIG_RegisterMapping("_wxDash","_long",0);
878 SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
879 SWIG_RegisterMapping("_wxKeyEvent","_class_wxKeyEvent",0);
880 SWIG_RegisterMapping("_wxMoveEvent","_class_wxMoveEvent",0);
881 SWIG_RegisterMapping("_class_wxEraseEvent","_wxEraseEvent",0);
882 SWIG_RegisterMapping("_wxWindow","_class_wxFrame",SwigwxFrameTowxWindow);
883 SWIG_RegisterMapping("_wxWindow","_wxFrame",SwigwxFrameTowxWindow);
884 SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);
885 SWIG_RegisterMapping("_class_wxFrame","_wxFrame",0);
886 }