2 * FILE : src/msw/frames.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initframesc
56 #define SWIG_name "framesc"
59 #include <wx/minifram.h>
60 #include <wx/tipwin.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "string type is required for parameter";
97 static void *SwigwxFrameTowxWindow(void *ptr
) {
100 src
= (wxFrame
*) ptr
;
101 dest
= (wxWindow
*) src
;
102 return (void *) dest
;
105 static void *SwigwxFrameTowxEvtHandler(void *ptr
) {
108 src
= (wxFrame
*) ptr
;
109 dest
= (wxEvtHandler
*) src
;
110 return (void *) dest
;
113 static void *SwigwxFrameTowxObject(void *ptr
) {
116 src
= (wxFrame
*) ptr
;
117 dest
= (wxObject
*) src
;
118 return (void *) dest
;
121 #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
122 static PyObject
*_wrap_new_wxFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
123 PyObject
* _resultobj
;
128 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
129 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
130 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
131 char * _arg6
= (char *) "frame";
132 PyObject
* _argo0
= 0;
133 PyObject
* _obj2
= 0;
135 PyObject
* _obj3
= 0;
137 PyObject
* _obj4
= 0;
138 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p.");
152 #if PYTHON_API_VERSION >= 1009
153 char* tmpPtr
; int tmpSize
;
154 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
155 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
158 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
160 _arg2
= new wxString(tmpPtr
, tmpSize
);
162 if (!PyString_Check(_obj2
)) {
163 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
166 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
172 if (! wxPoint_helper(_obj3
, &_arg3
))
178 if (! wxSize_helper(_obj4
, &_arg4
))
182 wxPy_BEGIN_ALLOW_THREADS
;
183 _result
= (wxFrame
*)new_wxFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
185 wxPy_END_ALLOW_THREADS
;
186 if (PyErr_Occurred()) return NULL
;
188 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFrame_p");
189 _resultobj
= Py_BuildValue("s",_ptemp
);
192 _resultobj
= Py_None
;
201 #define new_wxPreFrame() (new wxFrame())
202 static PyObject
*_wrap_new_wxPreFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
203 PyObject
* _resultobj
;
205 char *_kwnames
[] = { NULL
};
209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreFrame",_kwnames
))
212 wxPy_BEGIN_ALLOW_THREADS
;
213 _result
= (wxFrame
*)new_wxPreFrame();
215 wxPy_END_ALLOW_THREADS
;
216 if (PyErr_Occurred()) return NULL
;
218 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFrame_p");
219 _resultobj
= Py_BuildValue("s",_ptemp
);
222 _resultobj
= Py_None
;
227 #define wxFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
228 static PyObject
*_wrap_wxFrame_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
229 PyObject
* _resultobj
;
235 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
236 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
237 long _arg6
= (long ) wxDEFAULT_FRAME_STYLE
;
238 char * _arg7
= (char *) "frame";
239 PyObject
* _argo0
= 0;
240 PyObject
* _argo1
= 0;
241 PyObject
* _obj3
= 0;
243 PyObject
* _obj4
= 0;
245 PyObject
* _obj5
= 0;
246 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxFrame_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Create. Expected _wxFrame_p.");
259 if (_argo1
== Py_None
) { _arg1
= NULL
; }
260 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_Create. Expected _wxWindow_p.");
266 #if PYTHON_API_VERSION >= 1009
267 char* tmpPtr
; int tmpSize
;
268 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
269 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
272 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
274 _arg3
= new wxString(tmpPtr
, tmpSize
);
276 if (!PyString_Check(_obj3
)) {
277 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
280 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
286 if (! wxPoint_helper(_obj4
, &_arg4
))
292 if (! wxSize_helper(_obj5
, &_arg5
))
296 wxPy_BEGIN_ALLOW_THREADS
;
297 _result
= (bool )wxFrame_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
299 wxPy_END_ALLOW_THREADS
;
300 if (PyErr_Occurred()) return NULL
;
301 } _resultobj
= Py_BuildValue("i",_result
);
309 #define wxFrame_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
310 static PyObject
*_wrap_wxFrame_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
311 PyObject
* _resultobj
;
313 int _arg1
= (int ) wxBOTH
;
314 PyObject
* _argo0
= 0;
315 char *_kwnames
[] = { "self","direction", NULL
};
318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxFrame_Centre",_kwnames
,&_argo0
,&_arg1
))
321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Centre. Expected _wxFrame_p.");
328 wxPy_BEGIN_ALLOW_THREADS
;
329 wxFrame_Centre(_arg0
,_arg1
);
331 wxPy_END_ALLOW_THREADS
;
332 if (PyErr_Occurred()) return NULL
;
333 } Py_INCREF(Py_None
);
334 _resultobj
= Py_None
;
338 #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
339 static PyObject
*_wrap_wxFrame_CreateStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
340 PyObject
* _resultobj
;
341 wxStatusBar
* _result
;
343 int _arg1
= (int ) 1;
344 long _arg2
= (long ) wxST_SIZEGRIP
;
345 wxWindowID _arg3
= (wxWindowID
) -1;
346 char * _arg4
= (char *) "statusBar";
347 PyObject
* _argo0
= 0;
348 char *_kwnames
[] = { "self","number","style","id","name", NULL
};
351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ilis:wxFrame_CreateStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p.");
361 wxPy_BEGIN_ALLOW_THREADS
;
362 _result
= (wxStatusBar
*)wxFrame_CreateStatusBar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
364 wxPy_END_ALLOW_THREADS
;
365 if (PyErr_Occurred()) return NULL
;
366 }{ _resultobj
= wxPyMake_wxObject(_result
); }
370 #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2))
371 static PyObject
*_wrap_wxFrame_CreateToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
375 long _arg1
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
|wxTB_FLAT
;
376 wxWindowID _arg2
= (wxWindowID
) -1;
377 char * _arg3
= (char *) "toolBar";
378 PyObject
* _argo0
= 0;
379 char *_kwnames
[] = { "self","style","id","name", NULL
};
382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|lis:wxFrame_CreateToolBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p.");
392 wxPy_BEGIN_ALLOW_THREADS
;
393 _result
= (wxToolBar
*)wxFrame_CreateToolBar(_arg0
,_arg1
,_arg2
,_arg3
);
395 wxPy_END_ALLOW_THREADS
;
396 if (PyErr_Occurred()) return NULL
;
397 }{ _resultobj
= wxPyMake_wxObject(_result
); }
401 #define wxFrame_GetIcon(_swigobj) (_swigobj->GetIcon())
402 static PyObject
*_wrap_wxFrame_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
403 PyObject
* _resultobj
;
406 PyObject
* _argo0
= 0;
407 char *_kwnames
[] = { "self", NULL
};
411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetIcon",_kwnames
,&_argo0
))
414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetIcon. Expected _wxFrame_p.");
421 wxPy_BEGIN_ALLOW_THREADS
;
422 const wxIcon
& _result_ref
= wxFrame_GetIcon(_arg0
);
423 _result
= (wxIcon
*) &_result_ref
;
425 wxPy_END_ALLOW_THREADS
;
426 if (PyErr_Occurred()) return NULL
;
428 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
429 _resultobj
= Py_BuildValue("s",_ptemp
);
432 _resultobj
= Py_None
;
437 #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
438 static PyObject
*_wrap_wxFrame_GetMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
442 PyObject
* _argo0
= 0;
443 char *_kwnames
[] = { "self", NULL
};
446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetMenuBar",_kwnames
,&_argo0
))
449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p.");
456 wxPy_BEGIN_ALLOW_THREADS
;
457 _result
= (wxMenuBar
*)wxFrame_GetMenuBar(_arg0
);
459 wxPy_END_ALLOW_THREADS
;
460 if (PyErr_Occurred()) return NULL
;
461 }{ _resultobj
= wxPyMake_wxObject(_result
); }
465 #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar())
466 static PyObject
*_wrap_wxFrame_GetStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
467 PyObject
* _resultobj
;
468 wxStatusBar
* _result
;
470 PyObject
* _argo0
= 0;
471 char *_kwnames
[] = { "self", NULL
};
474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetStatusBar",_kwnames
,&_argo0
))
477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p.");
484 wxPy_BEGIN_ALLOW_THREADS
;
485 _result
= (wxStatusBar
*)wxFrame_GetStatusBar(_arg0
);
487 wxPy_END_ALLOW_THREADS
;
488 if (PyErr_Occurred()) return NULL
;
489 }{ _resultobj
= wxPyMake_wxObject(_result
); }
493 #define wxFrame_GetTitle(_swigobj) (_swigobj->GetTitle())
494 static PyObject
*_wrap_wxFrame_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
495 PyObject
* _resultobj
;
498 PyObject
* _argo0
= 0;
499 char *_kwnames
[] = { "self", NULL
};
502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetTitle",_kwnames
,&_argo0
))
505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetTitle. Expected _wxFrame_p.");
512 wxPy_BEGIN_ALLOW_THREADS
;
513 _result
= new wxString (wxFrame_GetTitle(_arg0
));
515 wxPy_END_ALLOW_THREADS
;
516 if (PyErr_Occurred()) return NULL
;
518 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
526 #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
527 static PyObject
*_wrap_wxFrame_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
528 PyObject
* _resultobj
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetToolBar",_kwnames
,&_argo0
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p.");
545 wxPy_BEGIN_ALLOW_THREADS
;
546 _result
= (wxToolBar
*)wxFrame_GetToolBar(_arg0
);
548 wxPy_END_ALLOW_THREADS
;
549 if (PyErr_Occurred()) return NULL
;
550 }{ _resultobj
= wxPyMake_wxObject(_result
); }
554 #define wxFrame_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
555 static PyObject
*_wrap_wxFrame_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
556 PyObject
* _resultobj
;
559 PyObject
* _argo0
= 0;
561 char *_kwnames
[] = { "self","iconize", NULL
};
564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Iconize",_kwnames
,&_argo0
,&tempbool1
))
567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Iconize. Expected _wxFrame_p.");
573 _arg1
= (bool ) tempbool1
;
575 wxPy_BEGIN_ALLOW_THREADS
;
576 wxFrame_Iconize(_arg0
,_arg1
);
578 wxPy_END_ALLOW_THREADS
;
579 if (PyErr_Occurred()) return NULL
;
580 } Py_INCREF(Py_None
);
581 _resultobj
= Py_None
;
585 #define wxFrame_IsIconized(_swigobj) (_swigobj->IsIconized())
586 static PyObject
*_wrap_wxFrame_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
587 PyObject
* _resultobj
;
590 PyObject
* _argo0
= 0;
591 char *_kwnames
[] = { "self", NULL
};
594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_IsIconized",_kwnames
,&_argo0
))
597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_IsIconized. Expected _wxFrame_p.");
604 wxPy_BEGIN_ALLOW_THREADS
;
605 _result
= (bool )wxFrame_IsIconized(_arg0
);
607 wxPy_END_ALLOW_THREADS
;
608 if (PyErr_Occurred()) return NULL
;
609 } _resultobj
= Py_BuildValue("i",_result
);
613 #define wxFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
614 static PyObject
*_wrap_wxFrame_Maximize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
615 PyObject
* _resultobj
;
618 PyObject
* _argo0
= 0;
620 char *_kwnames
[] = { "self","maximize", NULL
};
623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Maximize",_kwnames
,&_argo0
,&tempbool1
))
626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Maximize. Expected _wxFrame_p.");
632 _arg1
= (bool ) tempbool1
;
634 wxPy_BEGIN_ALLOW_THREADS
;
635 wxFrame_Maximize(_arg0
,_arg1
);
637 wxPy_END_ALLOW_THREADS
;
638 if (PyErr_Occurred()) return NULL
;
639 } Py_INCREF(Py_None
);
640 _resultobj
= Py_None
;
644 #define wxFrame_IsMaximized(_swigobj) (_swigobj->IsMaximized())
645 static PyObject
*_wrap_wxFrame_IsMaximized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
646 PyObject
* _resultobj
;
649 PyObject
* _argo0
= 0;
650 char *_kwnames
[] = { "self", NULL
};
653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_IsMaximized",_kwnames
,&_argo0
))
656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_IsMaximized. Expected _wxFrame_p.");
663 wxPy_BEGIN_ALLOW_THREADS
;
664 _result
= (bool )wxFrame_IsMaximized(_arg0
);
666 wxPy_END_ALLOW_THREADS
;
667 if (PyErr_Occurred()) return NULL
;
668 } _resultobj
= Py_BuildValue("i",_result
);
672 #define wxFrame_Restore(_swigobj) (_swigobj->Restore())
673 static PyObject
*_wrap_wxFrame_Restore(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
674 PyObject
* _resultobj
;
676 PyObject
* _argo0
= 0;
677 char *_kwnames
[] = { "self", NULL
};
680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_Restore",_kwnames
,&_argo0
))
683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Restore. Expected _wxFrame_p.");
690 wxPy_BEGIN_ALLOW_THREADS
;
691 wxFrame_Restore(_arg0
);
693 wxPy_END_ALLOW_THREADS
;
694 if (PyErr_Occurred()) return NULL
;
695 } Py_INCREF(Py_None
);
696 _resultobj
= Py_None
;
700 #define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
701 static PyObject
*_wrap_wxFrame_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
702 PyObject
* _resultobj
;
704 wxAcceleratorTable
* _arg1
;
705 PyObject
* _argo0
= 0;
706 PyObject
* _argo1
= 0;
707 char *_kwnames
[] = { "self","accel", NULL
};
710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetAcceleratorTable. Expected _wxFrame_p.");
720 if (_argo1
== Py_None
) { _arg1
= NULL
; }
721 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
727 wxPy_BEGIN_ALLOW_THREADS
;
728 wxFrame_SetAcceleratorTable(_arg0
,*_arg1
);
730 wxPy_END_ALLOW_THREADS
;
731 if (PyErr_Occurred()) return NULL
;
732 } Py_INCREF(Py_None
);
733 _resultobj
= Py_None
;
737 #define wxFrame_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
738 static PyObject
*_wrap_wxFrame_SetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
739 PyObject
* _resultobj
;
742 PyObject
* _argo0
= 0;
743 PyObject
* _argo1
= 0;
744 char *_kwnames
[] = { "self","icon", NULL
};
747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetIcon",_kwnames
,&_argo0
,&_argo1
))
750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetIcon. Expected _wxFrame_p.");
757 if (_argo1
== Py_None
) { _arg1
= NULL
; }
758 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetIcon. Expected _wxIcon_p.");
764 wxPy_BEGIN_ALLOW_THREADS
;
765 wxFrame_SetIcon(_arg0
,*_arg1
);
767 wxPy_END_ALLOW_THREADS
;
768 if (PyErr_Occurred()) return NULL
;
769 } Py_INCREF(Py_None
);
770 _resultobj
= Py_None
;
774 #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
775 static PyObject
*_wrap_wxFrame_SetMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
776 PyObject
* _resultobj
;
779 PyObject
* _argo0
= 0;
780 PyObject
* _argo1
= 0;
781 char *_kwnames
[] = { "self","menuBar", NULL
};
784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetMenuBar",_kwnames
,&_argo0
,&_argo1
))
787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p.");
794 if (_argo1
== Py_None
) { _arg1
= NULL
; }
795 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuBar_p")) {
796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p.");
801 wxPy_BEGIN_ALLOW_THREADS
;
802 wxFrame_SetMenuBar(_arg0
,_arg1
);
804 wxPy_END_ALLOW_THREADS
;
805 if (PyErr_Occurred()) return NULL
;
806 } Py_INCREF(Py_None
);
807 _resultobj
= Py_None
;
811 #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0))
812 static PyObject
*_wrap_wxFrame_SetStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
813 PyObject
* _resultobj
;
816 PyObject
* _argo0
= 0;
817 PyObject
* _argo1
= 0;
818 char *_kwnames
[] = { "self","statusBar", NULL
};
821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetStatusBar",_kwnames
,&_argo0
,&_argo1
))
824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p.");
831 if (_argo1
== Py_None
) { _arg1
= NULL
; }
832 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxStatusBar_p")) {
833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p.");
838 wxPy_BEGIN_ALLOW_THREADS
;
839 wxFrame_SetStatusBar(_arg0
,_arg1
);
841 wxPy_END_ALLOW_THREADS
;
842 if (PyErr_Occurred()) return NULL
;
843 } Py_INCREF(Py_None
);
844 _resultobj
= Py_None
;
848 #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
849 static PyObject
*_wrap_wxFrame_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
850 PyObject
* _resultobj
;
853 int _arg2
= (int ) 0;
854 PyObject
* _argo0
= 0;
855 PyObject
* _obj1
= 0;
856 char *_kwnames
[] = { "self","text","number", NULL
};
859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFrame_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p.");
869 #if PYTHON_API_VERSION >= 1009
870 char* tmpPtr
; int tmpSize
;
871 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
872 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
875 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
877 _arg1
= new wxString(tmpPtr
, tmpSize
);
879 if (!PyString_Check(_obj1
)) {
880 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
883 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
887 wxPy_BEGIN_ALLOW_THREADS
;
888 wxFrame_SetStatusText(_arg0
,*_arg1
,_arg2
);
890 wxPy_END_ALLOW_THREADS
;
891 if (PyErr_Occurred()) return NULL
;
892 } Py_INCREF(Py_None
);
893 _resultobj
= Py_None
;
901 #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
902 static PyObject
*_wrap_wxFrame_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
903 PyObject
* _resultobj
;
907 PyObject
* _argo0
= 0;
908 PyObject
* _obj2
= 0;
909 char *_kwnames
[] = { "self","choices", NULL
};
912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p.");
923 _arg2
= int_LIST_helper(_obj2
);
930 _arg1
= PyList_Size(_obj2
);
937 wxPy_BEGIN_ALLOW_THREADS
;
938 wxFrame_SetStatusWidths(_arg0
,_arg1
,_arg2
);
940 wxPy_END_ALLOW_THREADS
;
941 if (PyErr_Occurred()) return NULL
;
942 } Py_INCREF(Py_None
);
943 _resultobj
= Py_None
;
950 #define wxFrame_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
951 static PyObject
*_wrap_wxFrame_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
952 PyObject
* _resultobj
;
955 PyObject
* _argo0
= 0;
956 PyObject
* _obj1
= 0;
957 char *_kwnames
[] = { "self","title", NULL
};
960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetTitle",_kwnames
,&_argo0
,&_obj1
))
963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetTitle. Expected _wxFrame_p.");
970 #if PYTHON_API_VERSION >= 1009
971 char* tmpPtr
; int tmpSize
;
972 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
973 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
976 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
978 _arg1
= new wxString(tmpPtr
, tmpSize
);
980 if (!PyString_Check(_obj1
)) {
981 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
984 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
988 wxPy_BEGIN_ALLOW_THREADS
;
989 wxFrame_SetTitle(_arg0
,*_arg1
);
991 wxPy_END_ALLOW_THREADS
;
992 if (PyErr_Occurred()) return NULL
;
993 } Py_INCREF(Py_None
);
994 _resultobj
= Py_None
;
1002 #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
1003 static PyObject
*_wrap_wxFrame_SetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1004 PyObject
* _resultobj
;
1007 PyObject
* _argo0
= 0;
1008 PyObject
* _argo1
= 0;
1009 char *_kwnames
[] = { "self","toolbar", NULL
};
1012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetToolBar",_kwnames
,&_argo0
,&_argo1
))
1015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p.");
1022 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1023 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBar_p")) {
1024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p.");
1029 wxPy_BEGIN_ALLOW_THREADS
;
1030 wxFrame_SetToolBar(_arg0
,_arg1
);
1032 wxPy_END_ALLOW_THREADS
;
1033 if (PyErr_Occurred()) return NULL
;
1034 } Py_INCREF(Py_None
);
1035 _resultobj
= Py_None
;
1039 #define wxFrame_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
1040 static PyObject
*_wrap_wxFrame_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1041 PyObject
* _resultobj
;
1043 bool _arg1
= (bool ) TRUE
;
1044 PyObject
* _argo0
= 0;
1045 int tempbool1
= (int) TRUE
;
1046 char *_kwnames
[] = { "self","modal", NULL
};
1049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxFrame_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
1052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_MakeModal. Expected _wxFrame_p.");
1058 _arg1
= (bool ) tempbool1
;
1060 wxPy_BEGIN_ALLOW_THREADS
;
1061 wxFrame_MakeModal(_arg0
,_arg1
);
1063 wxPy_END_ALLOW_THREADS
;
1064 if (PyErr_Occurred()) return NULL
;
1065 } Py_INCREF(Py_None
);
1066 _resultobj
= Py_None
;
1070 #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
1071 static PyObject
*_wrap_wxFrame_GetClientAreaOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1072 PyObject
* _resultobj
;
1075 PyObject
* _argo0
= 0;
1076 char *_kwnames
[] = { "self", NULL
};
1080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetClientAreaOrigin",_kwnames
,&_argo0
))
1083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p.");
1090 wxPy_BEGIN_ALLOW_THREADS
;
1091 _result
= new wxPoint (wxFrame_GetClientAreaOrigin(_arg0
));
1093 wxPy_END_ALLOW_THREADS
;
1094 if (PyErr_Occurred()) return NULL
;
1095 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1096 _resultobj
= Py_BuildValue("s",_ptemp
);
1100 #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
1101 static PyObject
*_wrap_wxFrame_Command(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1102 PyObject
* _resultobj
;
1106 PyObject
* _argo0
= 0;
1107 char *_kwnames
[] = { "self","id", NULL
};
1110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Command",_kwnames
,&_argo0
,&_arg1
))
1113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
1120 wxPy_BEGIN_ALLOW_THREADS
;
1121 _result
= (bool )wxFrame_Command(_arg0
,_arg1
);
1123 wxPy_END_ALLOW_THREADS
;
1124 if (PyErr_Occurred()) return NULL
;
1125 } _resultobj
= Py_BuildValue("i",_result
);
1129 #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0))
1130 static PyObject
*_wrap_wxFrame_ProcessCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1131 PyObject
* _resultobj
;
1135 PyObject
* _argo0
= 0;
1136 char *_kwnames
[] = { "self","id", NULL
};
1139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_ProcessCommand",_kwnames
,&_argo0
,&_arg1
))
1142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p.");
1149 wxPy_BEGIN_ALLOW_THREADS
;
1150 _result
= (bool )wxFrame_ProcessCommand(_arg0
,_arg1
);
1152 wxPy_END_ALLOW_THREADS
;
1153 if (PyErr_Occurred()) return NULL
;
1154 } _resultobj
= Py_BuildValue("i",_result
);
1158 #define wxFrame_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1))
1159 static PyObject
*_wrap_wxFrame_ShowFullScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1160 PyObject
* _resultobj
;
1164 long _arg2
= (long ) (wxFULLSCREEN_ALL
);
1165 PyObject
* _argo0
= 0;
1167 char *_kwnames
[] = { "self","show","style", NULL
};
1170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|l:wxFrame_ShowFullScreen",_kwnames
,&_argo0
,&tempbool1
,&_arg2
))
1173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_ShowFullScreen. Expected _wxFrame_p.");
1179 _arg1
= (bool ) tempbool1
;
1181 wxPy_BEGIN_ALLOW_THREADS
;
1182 _result
= (bool )wxFrame_ShowFullScreen(_arg0
,_arg1
,_arg2
);
1184 wxPy_END_ALLOW_THREADS
;
1185 if (PyErr_Occurred()) return NULL
;
1186 } _resultobj
= Py_BuildValue("i",_result
);
1190 #define wxFrame_IsFullScreen(_swigobj) (_swigobj->IsFullScreen())
1191 static PyObject
*_wrap_wxFrame_IsFullScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1192 PyObject
* _resultobj
;
1195 PyObject
* _argo0
= 0;
1196 char *_kwnames
[] = { "self", NULL
};
1199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_IsFullScreen",_kwnames
,&_argo0
))
1202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_IsFullScreen. Expected _wxFrame_p.");
1209 wxPy_BEGIN_ALLOW_THREADS
;
1210 _result
= (bool )wxFrame_IsFullScreen(_arg0
);
1212 wxPy_END_ALLOW_THREADS
;
1213 if (PyErr_Occurred()) return NULL
;
1214 } _resultobj
= Py_BuildValue("i",_result
);
1218 static void *SwigwxMiniFrameTowxFrame(void *ptr
) {
1221 src
= (wxMiniFrame
*) ptr
;
1222 dest
= (wxFrame
*) src
;
1223 return (void *) dest
;
1226 static void *SwigwxMiniFrameTowxWindow(void *ptr
) {
1229 src
= (wxMiniFrame
*) ptr
;
1230 dest
= (wxWindow
*) src
;
1231 return (void *) dest
;
1234 static void *SwigwxMiniFrameTowxEvtHandler(void *ptr
) {
1237 src
= (wxMiniFrame
*) ptr
;
1238 dest
= (wxEvtHandler
*) src
;
1239 return (void *) dest
;
1242 static void *SwigwxMiniFrameTowxObject(void *ptr
) {
1245 src
= (wxMiniFrame
*) ptr
;
1246 dest
= (wxObject
*) src
;
1247 return (void *) dest
;
1250 #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1251 static PyObject
*_wrap_new_wxMiniFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1252 PyObject
* _resultobj
;
1253 wxMiniFrame
* _result
;
1257 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
1258 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
1259 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
1260 char * _arg6
= (char *) "frame";
1261 PyObject
* _argo0
= 0;
1262 PyObject
* _obj2
= 0;
1264 PyObject
* _obj3
= 0;
1266 PyObject
* _obj4
= 0;
1267 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
1271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMiniFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
1274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p.");
1281 #if PYTHON_API_VERSION >= 1009
1282 char* tmpPtr
; int tmpSize
;
1283 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1287 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1289 _arg2
= new wxString(tmpPtr
, tmpSize
);
1291 if (!PyString_Check(_obj2
)) {
1292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1295 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1301 if (! wxPoint_helper(_obj3
, &_arg3
))
1307 if (! wxSize_helper(_obj4
, &_arg4
))
1311 wxPy_BEGIN_ALLOW_THREADS
;
1312 _result
= (wxMiniFrame
*)new_wxMiniFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1314 wxPy_END_ALLOW_THREADS
;
1315 if (PyErr_Occurred()) return NULL
;
1317 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMiniFrame_p");
1318 _resultobj
= Py_BuildValue("s",_ptemp
);
1321 _resultobj
= Py_None
;
1330 #define new_wxPreMiniFrame() (new wxMiniFrame())
1331 static PyObject
*_wrap_new_wxPreMiniFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1332 PyObject
* _resultobj
;
1333 wxMiniFrame
* _result
;
1334 char *_kwnames
[] = { NULL
};
1338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreMiniFrame",_kwnames
))
1341 wxPy_BEGIN_ALLOW_THREADS
;
1342 _result
= (wxMiniFrame
*)new_wxPreMiniFrame();
1344 wxPy_END_ALLOW_THREADS
;
1345 if (PyErr_Occurred()) return NULL
;
1347 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMiniFrame_p");
1348 _resultobj
= Py_BuildValue("s",_ptemp
);
1351 _resultobj
= Py_None
;
1356 #define wxMiniFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1357 static PyObject
*_wrap_wxMiniFrame_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1358 PyObject
* _resultobj
;
1360 wxMiniFrame
* _arg0
;
1364 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
1365 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
1366 long _arg6
= (long ) wxDEFAULT_FRAME_STYLE
;
1367 char * _arg7
= (char *) "frame";
1368 PyObject
* _argo0
= 0;
1369 PyObject
* _argo1
= 0;
1370 PyObject
* _obj3
= 0;
1372 PyObject
* _obj4
= 0;
1374 PyObject
* _obj5
= 0;
1375 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
1378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxMiniFrame_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
1381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMiniFrame_p")) {
1383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMiniFrame_Create. Expected _wxMiniFrame_p.");
1388 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1389 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMiniFrame_Create. Expected _wxWindow_p.");
1395 #if PYTHON_API_VERSION >= 1009
1396 char* tmpPtr
; int tmpSize
;
1397 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1398 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1401 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1403 _arg3
= new wxString(tmpPtr
, tmpSize
);
1405 if (!PyString_Check(_obj3
)) {
1406 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1409 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1415 if (! wxPoint_helper(_obj4
, &_arg4
))
1421 if (! wxSize_helper(_obj5
, &_arg5
))
1425 wxPy_BEGIN_ALLOW_THREADS
;
1426 _result
= (bool )wxMiniFrame_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
1428 wxPy_END_ALLOW_THREADS
;
1429 if (PyErr_Occurred()) return NULL
;
1430 } _resultobj
= Py_BuildValue("i",_result
);
1438 static void *SwigwxTipWindowTowxFrame(void *ptr
) {
1441 src
= (wxTipWindow
*) ptr
;
1442 dest
= (wxFrame
*) src
;
1443 return (void *) dest
;
1446 static void *SwigwxTipWindowTowxWindow(void *ptr
) {
1449 src
= (wxTipWindow
*) ptr
;
1450 dest
= (wxWindow
*) src
;
1451 return (void *) dest
;
1454 static void *SwigwxTipWindowTowxEvtHandler(void *ptr
) {
1457 src
= (wxTipWindow
*) ptr
;
1458 dest
= (wxEvtHandler
*) src
;
1459 return (void *) dest
;
1462 static void *SwigwxTipWindowTowxObject(void *ptr
) {
1465 src
= (wxTipWindow
*) ptr
;
1466 dest
= (wxObject
*) src
;
1467 return (void *) dest
;
1470 #define new_wxTipWindow(_swigarg0,_swigarg1,_swigarg2) (new wxTipWindow(_swigarg0,_swigarg1,_swigarg2))
1471 static PyObject
*_wrap_new_wxTipWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1473 wxTipWindow
* _result
;
1476 wxCoord _arg2
= (wxCoord
) 100;
1477 PyObject
* _argo0
= 0;
1478 PyObject
* _obj1
= 0;
1479 char *_kwnames
[] = { "parent","text","maxLength", NULL
};
1483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:new_wxTipWindow",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxTipWindow. Expected _wxWindow_p.");
1493 #if PYTHON_API_VERSION >= 1009
1494 char* tmpPtr
; int tmpSize
;
1495 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1496 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1499 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1501 _arg1
= new wxString(tmpPtr
, tmpSize
);
1503 if (!PyString_Check(_obj1
)) {
1504 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1507 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1511 wxPy_BEGIN_ALLOW_THREADS
;
1512 _result
= (wxTipWindow
*)new_wxTipWindow(_arg0
,*_arg1
,_arg2
);
1514 wxPy_END_ALLOW_THREADS
;
1515 if (PyErr_Occurred()) return NULL
;
1517 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTipWindow_p");
1518 _resultobj
= Py_BuildValue("s",_ptemp
);
1521 _resultobj
= Py_None
;
1530 static PyMethodDef framescMethods
[] = {
1531 { "new_wxTipWindow", (PyCFunction
) _wrap_new_wxTipWindow
, METH_VARARGS
| METH_KEYWORDS
},
1532 { "wxMiniFrame_Create", (PyCFunction
) _wrap_wxMiniFrame_Create
, METH_VARARGS
| METH_KEYWORDS
},
1533 { "new_wxPreMiniFrame", (PyCFunction
) _wrap_new_wxPreMiniFrame
, METH_VARARGS
| METH_KEYWORDS
},
1534 { "new_wxMiniFrame", (PyCFunction
) _wrap_new_wxMiniFrame
, METH_VARARGS
| METH_KEYWORDS
},
1535 { "wxFrame_IsFullScreen", (PyCFunction
) _wrap_wxFrame_IsFullScreen
, METH_VARARGS
| METH_KEYWORDS
},
1536 { "wxFrame_ShowFullScreen", (PyCFunction
) _wrap_wxFrame_ShowFullScreen
, METH_VARARGS
| METH_KEYWORDS
},
1537 { "wxFrame_ProcessCommand", (PyCFunction
) _wrap_wxFrame_ProcessCommand
, METH_VARARGS
| METH_KEYWORDS
},
1538 { "wxFrame_Command", (PyCFunction
) _wrap_wxFrame_Command
, METH_VARARGS
| METH_KEYWORDS
},
1539 { "wxFrame_GetClientAreaOrigin", (PyCFunction
) _wrap_wxFrame_GetClientAreaOrigin
, METH_VARARGS
| METH_KEYWORDS
},
1540 { "wxFrame_MakeModal", (PyCFunction
) _wrap_wxFrame_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
1541 { "wxFrame_SetToolBar", (PyCFunction
) _wrap_wxFrame_SetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
1542 { "wxFrame_SetTitle", (PyCFunction
) _wrap_wxFrame_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
1543 { "wxFrame_SetStatusWidths", (PyCFunction
) _wrap_wxFrame_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
1544 { "wxFrame_SetStatusText", (PyCFunction
) _wrap_wxFrame_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
1545 { "wxFrame_SetStatusBar", (PyCFunction
) _wrap_wxFrame_SetStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
1546 { "wxFrame_SetMenuBar", (PyCFunction
) _wrap_wxFrame_SetMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
1547 { "wxFrame_SetIcon", (PyCFunction
) _wrap_wxFrame_SetIcon
, METH_VARARGS
| METH_KEYWORDS
},
1548 { "wxFrame_SetAcceleratorTable", (PyCFunction
) _wrap_wxFrame_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
1549 { "wxFrame_Restore", (PyCFunction
) _wrap_wxFrame_Restore
, METH_VARARGS
| METH_KEYWORDS
},
1550 { "wxFrame_IsMaximized", (PyCFunction
) _wrap_wxFrame_IsMaximized
, METH_VARARGS
| METH_KEYWORDS
},
1551 { "wxFrame_Maximize", (PyCFunction
) _wrap_wxFrame_Maximize
, METH_VARARGS
| METH_KEYWORDS
},
1552 { "wxFrame_IsIconized", (PyCFunction
) _wrap_wxFrame_IsIconized
, METH_VARARGS
| METH_KEYWORDS
},
1553 { "wxFrame_Iconize", (PyCFunction
) _wrap_wxFrame_Iconize
, METH_VARARGS
| METH_KEYWORDS
},
1554 { "wxFrame_GetToolBar", (PyCFunction
) _wrap_wxFrame_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
1555 { "wxFrame_GetTitle", (PyCFunction
) _wrap_wxFrame_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
1556 { "wxFrame_GetStatusBar", (PyCFunction
) _wrap_wxFrame_GetStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
1557 { "wxFrame_GetMenuBar", (PyCFunction
) _wrap_wxFrame_GetMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
1558 { "wxFrame_GetIcon", (PyCFunction
) _wrap_wxFrame_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
1559 { "wxFrame_CreateToolBar", (PyCFunction
) _wrap_wxFrame_CreateToolBar
, METH_VARARGS
| METH_KEYWORDS
},
1560 { "wxFrame_CreateStatusBar", (PyCFunction
) _wrap_wxFrame_CreateStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
1561 { "wxFrame_Centre", (PyCFunction
) _wrap_wxFrame_Centre
, METH_VARARGS
| METH_KEYWORDS
},
1562 { "wxFrame_Create", (PyCFunction
) _wrap_wxFrame_Create
, METH_VARARGS
| METH_KEYWORDS
},
1563 { "new_wxPreFrame", (PyCFunction
) _wrap_new_wxPreFrame
, METH_VARARGS
| METH_KEYWORDS
},
1564 { "new_wxFrame", (PyCFunction
) _wrap_new_wxFrame
, METH_VARARGS
| METH_KEYWORDS
},
1571 * This table is used by the pointer type-checker
1573 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1574 { "_signed_long","_long",0},
1575 { "_wxPrintQuality","_wxCoord",0},
1576 { "_wxPrintQuality","_int",0},
1577 { "_wxPrintQuality","_signed_int",0},
1578 { "_wxPrintQuality","_unsigned_int",0},
1579 { "_wxPrintQuality","_wxWindowID",0},
1580 { "_wxPrintQuality","_uint",0},
1581 { "_wxPrintQuality","_EBool",0},
1582 { "_wxPrintQuality","_size_t",0},
1583 { "_wxPrintQuality","_time_t",0},
1584 { "_byte","_unsigned_char",0},
1585 { "_long","_unsigned_long",0},
1586 { "_long","_signed_long",0},
1587 { "_size_t","_wxCoord",0},
1588 { "_size_t","_wxPrintQuality",0},
1589 { "_size_t","_time_t",0},
1590 { "_size_t","_unsigned_int",0},
1591 { "_size_t","_int",0},
1592 { "_size_t","_wxWindowID",0},
1593 { "_size_t","_uint",0},
1594 { "_uint","_wxCoord",0},
1595 { "_uint","_wxPrintQuality",0},
1596 { "_uint","_time_t",0},
1597 { "_uint","_size_t",0},
1598 { "_uint","_unsigned_int",0},
1599 { "_uint","_int",0},
1600 { "_uint","_wxWindowID",0},
1601 { "_wxChar","_char",0},
1602 { "_char","_wxChar",0},
1603 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1604 { "_EBool","_wxCoord",0},
1605 { "_EBool","_wxPrintQuality",0},
1606 { "_EBool","_signed_int",0},
1607 { "_EBool","_int",0},
1608 { "_EBool","_wxWindowID",0},
1609 { "_unsigned_long","_long",0},
1610 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1611 { "_signed_int","_wxCoord",0},
1612 { "_signed_int","_wxPrintQuality",0},
1613 { "_signed_int","_EBool",0},
1614 { "_signed_int","_wxWindowID",0},
1615 { "_signed_int","_int",0},
1616 { "_WXTYPE","_short",0},
1617 { "_WXTYPE","_signed_short",0},
1618 { "_WXTYPE","_unsigned_short",0},
1619 { "_unsigned_short","_WXTYPE",0},
1620 { "_unsigned_short","_short",0},
1621 { "_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject
},
1622 { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject
},
1623 { "_wxObject","_wxFrame",SwigwxFrameTowxObject
},
1624 { "_signed_short","_WXTYPE",0},
1625 { "_signed_short","_short",0},
1626 { "_unsigned_char","_byte",0},
1627 { "_unsigned_int","_wxCoord",0},
1628 { "_unsigned_int","_wxPrintQuality",0},
1629 { "_unsigned_int","_time_t",0},
1630 { "_unsigned_int","_size_t",0},
1631 { "_unsigned_int","_uint",0},
1632 { "_unsigned_int","_wxWindowID",0},
1633 { "_unsigned_int","_int",0},
1634 { "_short","_WXTYPE",0},
1635 { "_short","_unsigned_short",0},
1636 { "_short","_signed_short",0},
1637 { "_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame
},
1638 { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame
},
1639 { "_wxWindowID","_wxCoord",0},
1640 { "_wxWindowID","_wxPrintQuality",0},
1641 { "_wxWindowID","_time_t",0},
1642 { "_wxWindowID","_size_t",0},
1643 { "_wxWindowID","_EBool",0},
1644 { "_wxWindowID","_uint",0},
1645 { "_wxWindowID","_int",0},
1646 { "_wxWindowID","_signed_int",0},
1647 { "_wxWindowID","_unsigned_int",0},
1648 { "_int","_wxCoord",0},
1649 { "_int","_wxPrintQuality",0},
1650 { "_int","_time_t",0},
1651 { "_int","_size_t",0},
1652 { "_int","_EBool",0},
1653 { "_int","_uint",0},
1654 { "_int","_wxWindowID",0},
1655 { "_int","_unsigned_int",0},
1656 { "_int","_signed_int",0},
1657 { "_time_t","_wxCoord",0},
1658 { "_time_t","_wxPrintQuality",0},
1659 { "_time_t","_unsigned_int",0},
1660 { "_time_t","_int",0},
1661 { "_time_t","_wxWindowID",0},
1662 { "_time_t","_uint",0},
1663 { "_time_t","_size_t",0},
1664 { "_wxCoord","_int",0},
1665 { "_wxCoord","_signed_int",0},
1666 { "_wxCoord","_unsigned_int",0},
1667 { "_wxCoord","_wxWindowID",0},
1668 { "_wxCoord","_uint",0},
1669 { "_wxCoord","_EBool",0},
1670 { "_wxCoord","_size_t",0},
1671 { "_wxCoord","_time_t",0},
1672 { "_wxCoord","_wxPrintQuality",0},
1673 { "_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler
},
1674 { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler
},
1675 { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler
},
1676 { "_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow
},
1677 { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow
},
1678 { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow
},
1681 static PyObject
*SWIG_globals
;
1685 SWIGEXPORT(void) initframesc() {
1687 SWIG_globals
= SWIG_newvarlink();
1688 m
= Py_InitModule("framesc", framescMethods
);
1689 d
= PyModule_GetDict(m
);
1690 PyDict_SetItemString(d
,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR
));
1691 PyDict_SetItemString(d
,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR
));
1692 PyDict_SetItemString(d
,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR
));
1693 PyDict_SetItemString(d
,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER
));
1694 PyDict_SetItemString(d
,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION
));
1695 PyDict_SetItemString(d
,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL
));
1698 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1699 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);