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 wxFrame_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
202 static PyObject
*_wrap_wxFrame_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
203 PyObject
* _resultobj
;
205 int _arg1
= (int ) wxBOTH
;
206 PyObject
* _argo0
= 0;
207 char *_kwnames
[] = { "self","direction", NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxFrame_Centre",_kwnames
,&_argo0
,&_arg1
))
213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Centre. Expected _wxFrame_p.");
220 wxPy_BEGIN_ALLOW_THREADS
;
221 wxFrame_Centre(_arg0
,_arg1
);
223 wxPy_END_ALLOW_THREADS
;
224 if (PyErr_Occurred()) return NULL
;
225 } Py_INCREF(Py_None
);
226 _resultobj
= Py_None
;
230 #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
231 static PyObject
*_wrap_wxFrame_CreateStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
232 PyObject
* _resultobj
;
233 wxStatusBar
* _result
;
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;
240 char *_kwnames
[] = { "self","number","style","id","name", NULL
};
243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ilis:wxFrame_CreateStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p.");
253 wxPy_BEGIN_ALLOW_THREADS
;
254 _result
= (wxStatusBar
*)wxFrame_CreateStatusBar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
256 wxPy_END_ALLOW_THREADS
;
257 if (PyErr_Occurred()) return NULL
;
258 }{ _resultobj
= wxPyMake_wxObject(_result
); }
262 #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2))
263 static PyObject
*_wrap_wxFrame_CreateToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
264 PyObject
* _resultobj
;
267 long _arg1
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
|wxTB_FLAT
;
268 wxWindowID _arg2
= (wxWindowID
) -1;
269 char * _arg3
= (char *) "toolBar";
270 PyObject
* _argo0
= 0;
271 char *_kwnames
[] = { "self","style","id","name", NULL
};
274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|lis:wxFrame_CreateToolBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p.");
284 wxPy_BEGIN_ALLOW_THREADS
;
285 _result
= (wxToolBar
*)wxFrame_CreateToolBar(_arg0
,_arg1
,_arg2
,_arg3
);
287 wxPy_END_ALLOW_THREADS
;
288 if (PyErr_Occurred()) return NULL
;
289 }{ _resultobj
= wxPyMake_wxObject(_result
); }
293 #define wxFrame_GetIcon(_swigobj) (_swigobj->GetIcon())
294 static PyObject
*_wrap_wxFrame_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
295 PyObject
* _resultobj
;
298 PyObject
* _argo0
= 0;
299 char *_kwnames
[] = { "self", NULL
};
303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetIcon",_kwnames
,&_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.");
313 wxPy_BEGIN_ALLOW_THREADS
;
314 const wxIcon
& _result_ref
= wxFrame_GetIcon(_arg0
);
315 _result
= (wxIcon
*) &_result_ref
;
317 wxPy_END_ALLOW_THREADS
;
318 if (PyErr_Occurred()) return NULL
;
320 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxIcon_p");
321 _resultobj
= Py_BuildValue("s",_ptemp
);
324 _resultobj
= Py_None
;
329 #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
330 static PyObject
*_wrap_wxFrame_GetMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
331 PyObject
* _resultobj
;
334 PyObject
* _argo0
= 0;
335 char *_kwnames
[] = { "self", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetMenuBar",_kwnames
,&_argo0
))
341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p.");
348 wxPy_BEGIN_ALLOW_THREADS
;
349 _result
= (wxMenuBar
*)wxFrame_GetMenuBar(_arg0
);
351 wxPy_END_ALLOW_THREADS
;
352 if (PyErr_Occurred()) return NULL
;
353 }{ _resultobj
= wxPyMake_wxObject(_result
); }
357 #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar())
358 static PyObject
*_wrap_wxFrame_GetStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
359 PyObject
* _resultobj
;
360 wxStatusBar
* _result
;
362 PyObject
* _argo0
= 0;
363 char *_kwnames
[] = { "self", NULL
};
366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetStatusBar",_kwnames
,&_argo0
))
369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p.");
376 wxPy_BEGIN_ALLOW_THREADS
;
377 _result
= (wxStatusBar
*)wxFrame_GetStatusBar(_arg0
);
379 wxPy_END_ALLOW_THREADS
;
380 if (PyErr_Occurred()) return NULL
;
381 }{ _resultobj
= wxPyMake_wxObject(_result
); }
385 #define wxFrame_GetTitle(_swigobj) (_swigobj->GetTitle())
386 static PyObject
*_wrap_wxFrame_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
387 PyObject
* _resultobj
;
390 PyObject
* _argo0
= 0;
391 char *_kwnames
[] = { "self", NULL
};
394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetTitle",_kwnames
,&_argo0
))
397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetTitle. Expected _wxFrame_p.");
404 wxPy_BEGIN_ALLOW_THREADS
;
405 _result
= new wxString (wxFrame_GetTitle(_arg0
));
407 wxPy_END_ALLOW_THREADS
;
408 if (PyErr_Occurred()) return NULL
;
410 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
418 #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
419 static PyObject
*_wrap_wxFrame_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
420 PyObject
* _resultobj
;
423 PyObject
* _argo0
= 0;
424 char *_kwnames
[] = { "self", NULL
};
427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetToolBar",_kwnames
,&_argo0
))
430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p.");
437 wxPy_BEGIN_ALLOW_THREADS
;
438 _result
= (wxToolBar
*)wxFrame_GetToolBar(_arg0
);
440 wxPy_END_ALLOW_THREADS
;
441 if (PyErr_Occurred()) return NULL
;
442 }{ _resultobj
= wxPyMake_wxObject(_result
); }
446 #define wxFrame_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
447 static PyObject
*_wrap_wxFrame_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
448 PyObject
* _resultobj
;
451 PyObject
* _argo0
= 0;
453 char *_kwnames
[] = { "self","iconize", NULL
};
456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Iconize",_kwnames
,&_argo0
,&tempbool1
))
459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Iconize. Expected _wxFrame_p.");
465 _arg1
= (bool ) tempbool1
;
467 wxPy_BEGIN_ALLOW_THREADS
;
468 wxFrame_Iconize(_arg0
,_arg1
);
470 wxPy_END_ALLOW_THREADS
;
471 if (PyErr_Occurred()) return NULL
;
472 } Py_INCREF(Py_None
);
473 _resultobj
= Py_None
;
477 #define wxFrame_IsIconized(_swigobj) (_swigobj->IsIconized())
478 static PyObject
*_wrap_wxFrame_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
479 PyObject
* _resultobj
;
482 PyObject
* _argo0
= 0;
483 char *_kwnames
[] = { "self", NULL
};
486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_IsIconized",_kwnames
,&_argo0
))
489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_IsIconized. Expected _wxFrame_p.");
496 wxPy_BEGIN_ALLOW_THREADS
;
497 _result
= (bool )wxFrame_IsIconized(_arg0
);
499 wxPy_END_ALLOW_THREADS
;
500 if (PyErr_Occurred()) return NULL
;
501 } _resultobj
= Py_BuildValue("i",_result
);
505 #define wxFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
506 static PyObject
*_wrap_wxFrame_Maximize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
507 PyObject
* _resultobj
;
510 PyObject
* _argo0
= 0;
512 char *_kwnames
[] = { "self","maximize", NULL
};
515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Maximize",_kwnames
,&_argo0
,&tempbool1
))
518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Maximize. Expected _wxFrame_p.");
524 _arg1
= (bool ) tempbool1
;
526 wxPy_BEGIN_ALLOW_THREADS
;
527 wxFrame_Maximize(_arg0
,_arg1
);
529 wxPy_END_ALLOW_THREADS
;
530 if (PyErr_Occurred()) return NULL
;
531 } Py_INCREF(Py_None
);
532 _resultobj
= Py_None
;
536 #define wxFrame_IsMaximized(_swigobj) (_swigobj->IsMaximized())
537 static PyObject
*_wrap_wxFrame_IsMaximized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
538 PyObject
* _resultobj
;
541 PyObject
* _argo0
= 0;
542 char *_kwnames
[] = { "self", NULL
};
545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_IsMaximized",_kwnames
,&_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.");
555 wxPy_BEGIN_ALLOW_THREADS
;
556 _result
= (bool )wxFrame_IsMaximized(_arg0
);
558 wxPy_END_ALLOW_THREADS
;
559 if (PyErr_Occurred()) return NULL
;
560 } _resultobj
= Py_BuildValue("i",_result
);
564 #define wxFrame_Restore(_swigobj) (_swigobj->Restore())
565 static PyObject
*_wrap_wxFrame_Restore(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
566 PyObject
* _resultobj
;
568 PyObject
* _argo0
= 0;
569 char *_kwnames
[] = { "self", NULL
};
572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_Restore",_kwnames
,&_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.");
582 wxPy_BEGIN_ALLOW_THREADS
;
583 wxFrame_Restore(_arg0
);
585 wxPy_END_ALLOW_THREADS
;
586 if (PyErr_Occurred()) return NULL
;
587 } Py_INCREF(Py_None
);
588 _resultobj
= Py_None
;
592 #define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
593 static PyObject
*_wrap_wxFrame_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
594 PyObject
* _resultobj
;
596 wxAcceleratorTable
* _arg1
;
597 PyObject
* _argo0
= 0;
598 PyObject
* _argo1
= 0;
599 char *_kwnames
[] = { "self","accel", NULL
};
602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetAcceleratorTable. Expected _wxFrame_p.");
612 if (_argo1
== Py_None
) { _arg1
= NULL
; }
613 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
619 wxPy_BEGIN_ALLOW_THREADS
;
620 wxFrame_SetAcceleratorTable(_arg0
,*_arg1
);
622 wxPy_END_ALLOW_THREADS
;
623 if (PyErr_Occurred()) return NULL
;
624 } Py_INCREF(Py_None
);
625 _resultobj
= Py_None
;
629 #define wxFrame_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
630 static PyObject
*_wrap_wxFrame_SetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
631 PyObject
* _resultobj
;
634 PyObject
* _argo0
= 0;
635 PyObject
* _argo1
= 0;
636 char *_kwnames
[] = { "self","icon", NULL
};
639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetIcon",_kwnames
,&_argo0
,&_argo1
))
642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetIcon. Expected _wxFrame_p.");
649 if (_argo1
== Py_None
) { _arg1
= NULL
; }
650 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetIcon. Expected _wxIcon_p.");
656 wxPy_BEGIN_ALLOW_THREADS
;
657 wxFrame_SetIcon(_arg0
,*_arg1
);
659 wxPy_END_ALLOW_THREADS
;
660 if (PyErr_Occurred()) return NULL
;
661 } Py_INCREF(Py_None
);
662 _resultobj
= Py_None
;
666 #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
667 static PyObject
*_wrap_wxFrame_SetMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
668 PyObject
* _resultobj
;
671 PyObject
* _argo0
= 0;
672 PyObject
* _argo1
= 0;
673 char *_kwnames
[] = { "self","menuBar", NULL
};
676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetMenuBar",_kwnames
,&_argo0
,&_argo1
))
679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p.");
686 if (_argo1
== Py_None
) { _arg1
= NULL
; }
687 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuBar_p")) {
688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p.");
693 wxPy_BEGIN_ALLOW_THREADS
;
694 wxFrame_SetMenuBar(_arg0
,_arg1
);
696 wxPy_END_ALLOW_THREADS
;
697 if (PyErr_Occurred()) return NULL
;
698 } Py_INCREF(Py_None
);
699 _resultobj
= Py_None
;
703 #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0))
704 static PyObject
*_wrap_wxFrame_SetStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
705 PyObject
* _resultobj
;
708 PyObject
* _argo0
= 0;
709 PyObject
* _argo1
= 0;
710 char *_kwnames
[] = { "self","statusBar", NULL
};
713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetStatusBar",_kwnames
,&_argo0
,&_argo1
))
716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p.");
723 if (_argo1
== Py_None
) { _arg1
= NULL
; }
724 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxStatusBar_p")) {
725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p.");
730 wxPy_BEGIN_ALLOW_THREADS
;
731 wxFrame_SetStatusBar(_arg0
,_arg1
);
733 wxPy_END_ALLOW_THREADS
;
734 if (PyErr_Occurred()) return NULL
;
735 } Py_INCREF(Py_None
);
736 _resultobj
= Py_None
;
740 #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
741 static PyObject
*_wrap_wxFrame_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
742 PyObject
* _resultobj
;
745 int _arg2
= (int ) 0;
746 PyObject
* _argo0
= 0;
747 PyObject
* _obj1
= 0;
748 char *_kwnames
[] = { "self","text","number", NULL
};
751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFrame_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p.");
761 #if PYTHON_API_VERSION >= 1009
762 char* tmpPtr
; int tmpSize
;
763 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
764 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
767 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
769 _arg1
= new wxString(tmpPtr
, tmpSize
);
771 if (!PyString_Check(_obj1
)) {
772 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
775 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
779 wxPy_BEGIN_ALLOW_THREADS
;
780 wxFrame_SetStatusText(_arg0
,*_arg1
,_arg2
);
782 wxPy_END_ALLOW_THREADS
;
783 if (PyErr_Occurred()) return NULL
;
784 } Py_INCREF(Py_None
);
785 _resultobj
= Py_None
;
793 #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
794 static PyObject
*_wrap_wxFrame_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
795 PyObject
* _resultobj
;
799 PyObject
* _argo0
= 0;
800 PyObject
* _obj2
= 0;
801 char *_kwnames
[] = { "self","choices", NULL
};
804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p.");
815 _arg2
= int_LIST_helper(_obj2
);
822 _arg1
= PyList_Size(_obj2
);
829 wxPy_BEGIN_ALLOW_THREADS
;
830 wxFrame_SetStatusWidths(_arg0
,_arg1
,_arg2
);
832 wxPy_END_ALLOW_THREADS
;
833 if (PyErr_Occurred()) return NULL
;
834 } Py_INCREF(Py_None
);
835 _resultobj
= Py_None
;
842 #define wxFrame_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
843 static PyObject
*_wrap_wxFrame_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
844 PyObject
* _resultobj
;
847 PyObject
* _argo0
= 0;
848 PyObject
* _obj1
= 0;
849 char *_kwnames
[] = { "self","title", NULL
};
852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetTitle",_kwnames
,&_argo0
,&_obj1
))
855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetTitle. Expected _wxFrame_p.");
862 #if PYTHON_API_VERSION >= 1009
863 char* tmpPtr
; int tmpSize
;
864 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
865 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
868 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
870 _arg1
= new wxString(tmpPtr
, tmpSize
);
872 if (!PyString_Check(_obj1
)) {
873 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
876 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
880 wxPy_BEGIN_ALLOW_THREADS
;
881 wxFrame_SetTitle(_arg0
,*_arg1
);
883 wxPy_END_ALLOW_THREADS
;
884 if (PyErr_Occurred()) return NULL
;
885 } Py_INCREF(Py_None
);
886 _resultobj
= Py_None
;
894 #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
895 static PyObject
*_wrap_wxFrame_SetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
896 PyObject
* _resultobj
;
899 PyObject
* _argo0
= 0;
900 PyObject
* _argo1
= 0;
901 char *_kwnames
[] = { "self","toolbar", NULL
};
904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetToolBar",_kwnames
,&_argo0
,&_argo1
))
907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p.");
914 if (_argo1
== Py_None
) { _arg1
= NULL
; }
915 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBar_p")) {
916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p.");
921 wxPy_BEGIN_ALLOW_THREADS
;
922 wxFrame_SetToolBar(_arg0
,_arg1
);
924 wxPy_END_ALLOW_THREADS
;
925 if (PyErr_Occurred()) return NULL
;
926 } Py_INCREF(Py_None
);
927 _resultobj
= Py_None
;
931 #define wxFrame_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
932 static PyObject
*_wrap_wxFrame_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
933 PyObject
* _resultobj
;
935 bool _arg1
= (bool ) TRUE
;
936 PyObject
* _argo0
= 0;
937 int tempbool1
= (int) TRUE
;
938 char *_kwnames
[] = { "self","modal", NULL
};
941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxFrame_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
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.");
950 _arg1
= (bool ) tempbool1
;
952 wxPy_BEGIN_ALLOW_THREADS
;
953 wxFrame_MakeModal(_arg0
,_arg1
);
955 wxPy_END_ALLOW_THREADS
;
956 if (PyErr_Occurred()) return NULL
;
957 } Py_INCREF(Py_None
);
958 _resultobj
= Py_None
;
962 #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
963 static PyObject
*_wrap_wxFrame_GetClientAreaOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
964 PyObject
* _resultobj
;
967 PyObject
* _argo0
= 0;
968 char *_kwnames
[] = { "self", NULL
};
972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetClientAreaOrigin",_kwnames
,&_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.");
982 wxPy_BEGIN_ALLOW_THREADS
;
983 _result
= new wxPoint (wxFrame_GetClientAreaOrigin(_arg0
));
985 wxPy_END_ALLOW_THREADS
;
986 if (PyErr_Occurred()) return NULL
;
987 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
988 _resultobj
= Py_BuildValue("s",_ptemp
);
992 #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
993 static PyObject
*_wrap_wxFrame_Command(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
994 PyObject
* _resultobj
;
998 PyObject
* _argo0
= 0;
999 char *_kwnames
[] = { "self","id", NULL
};
1002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Command",_kwnames
,&_argo0
,&_arg1
))
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.");
1012 wxPy_BEGIN_ALLOW_THREADS
;
1013 _result
= (bool )wxFrame_Command(_arg0
,_arg1
);
1015 wxPy_END_ALLOW_THREADS
;
1016 if (PyErr_Occurred()) return NULL
;
1017 } _resultobj
= Py_BuildValue("i",_result
);
1021 #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0))
1022 static PyObject
*_wrap_wxFrame_ProcessCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1023 PyObject
* _resultobj
;
1027 PyObject
* _argo0
= 0;
1028 char *_kwnames
[] = { "self","id", NULL
};
1031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_ProcessCommand",_kwnames
,&_argo0
,&_arg1
))
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.");
1041 wxPy_BEGIN_ALLOW_THREADS
;
1042 _result
= (bool )wxFrame_ProcessCommand(_arg0
,_arg1
);
1044 wxPy_END_ALLOW_THREADS
;
1045 if (PyErr_Occurred()) return NULL
;
1046 } _resultobj
= Py_BuildValue("i",_result
);
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
;
1056 long _arg2
= (long ) (wxFULLSCREEN_ALL
);
1057 PyObject
* _argo0
= 0;
1059 char *_kwnames
[] = { "self","show","style", NULL
};
1062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|l:wxFrame_ShowFullScreen",_kwnames
,&_argo0
,&tempbool1
,&_arg2
))
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.");
1071 _arg1
= (bool ) tempbool1
;
1073 wxPy_BEGIN_ALLOW_THREADS
;
1074 _result
= (bool )wxFrame_ShowFullScreen(_arg0
,_arg1
,_arg2
);
1076 wxPy_END_ALLOW_THREADS
;
1077 if (PyErr_Occurred()) return NULL
;
1078 } _resultobj
= Py_BuildValue("i",_result
);
1082 #define wxFrame_IsFullScreen(_swigobj) (_swigobj->IsFullScreen())
1083 static PyObject
*_wrap_wxFrame_IsFullScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1084 PyObject
* _resultobj
;
1087 PyObject
* _argo0
= 0;
1088 char *_kwnames
[] = { "self", NULL
};
1091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_IsFullScreen",_kwnames
,&_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.");
1101 wxPy_BEGIN_ALLOW_THREADS
;
1102 _result
= (bool )wxFrame_IsFullScreen(_arg0
);
1104 wxPy_END_ALLOW_THREADS
;
1105 if (PyErr_Occurred()) return NULL
;
1106 } _resultobj
= Py_BuildValue("i",_result
);
1110 static void *SwigwxMiniFrameTowxFrame(void *ptr
) {
1113 src
= (wxMiniFrame
*) ptr
;
1114 dest
= (wxFrame
*) src
;
1115 return (void *) dest
;
1118 static void *SwigwxMiniFrameTowxWindow(void *ptr
) {
1121 src
= (wxMiniFrame
*) ptr
;
1122 dest
= (wxWindow
*) src
;
1123 return (void *) dest
;
1126 static void *SwigwxMiniFrameTowxEvtHandler(void *ptr
) {
1129 src
= (wxMiniFrame
*) ptr
;
1130 dest
= (wxEvtHandler
*) src
;
1131 return (void *) dest
;
1134 static void *SwigwxMiniFrameTowxObject(void *ptr
) {
1137 src
= (wxMiniFrame
*) ptr
;
1138 dest
= (wxObject
*) src
;
1139 return (void *) dest
;
1142 #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1143 static PyObject
*_wrap_new_wxMiniFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1144 PyObject
* _resultobj
;
1145 wxMiniFrame
* _result
;
1149 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
1150 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
1151 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
1152 char * _arg6
= (char *) "frame";
1153 PyObject
* _argo0
= 0;
1154 PyObject
* _obj2
= 0;
1156 PyObject
* _obj3
= 0;
1158 PyObject
* _obj4
= 0;
1159 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
1163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMiniFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
1166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p.");
1173 #if PYTHON_API_VERSION >= 1009
1174 char* tmpPtr
; int tmpSize
;
1175 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1176 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1179 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1181 _arg2
= new wxString(tmpPtr
, tmpSize
);
1183 if (!PyString_Check(_obj2
)) {
1184 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1187 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1193 if (! wxPoint_helper(_obj3
, &_arg3
))
1199 if (! wxSize_helper(_obj4
, &_arg4
))
1203 wxPy_BEGIN_ALLOW_THREADS
;
1204 _result
= (wxMiniFrame
*)new_wxMiniFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1206 wxPy_END_ALLOW_THREADS
;
1207 if (PyErr_Occurred()) return NULL
;
1209 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMiniFrame_p");
1210 _resultobj
= Py_BuildValue("s",_ptemp
);
1213 _resultobj
= Py_None
;
1222 static void *SwigwxTipWindowTowxFrame(void *ptr
) {
1225 src
= (wxTipWindow
*) ptr
;
1226 dest
= (wxFrame
*) src
;
1227 return (void *) dest
;
1230 static void *SwigwxTipWindowTowxWindow(void *ptr
) {
1233 src
= (wxTipWindow
*) ptr
;
1234 dest
= (wxWindow
*) src
;
1235 return (void *) dest
;
1238 static void *SwigwxTipWindowTowxEvtHandler(void *ptr
) {
1241 src
= (wxTipWindow
*) ptr
;
1242 dest
= (wxEvtHandler
*) src
;
1243 return (void *) dest
;
1246 static void *SwigwxTipWindowTowxObject(void *ptr
) {
1249 src
= (wxTipWindow
*) ptr
;
1250 dest
= (wxObject
*) src
;
1251 return (void *) dest
;
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
;
1260 wxCoord _arg2
= (wxCoord
) 100;
1261 PyObject
* _argo0
= 0;
1262 PyObject
* _obj1
= 0;
1263 char *_kwnames
[] = { "parent","text","maxLength", NULL
};
1267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:new_wxTipWindow",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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.");
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
);
1283 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1285 _arg1
= new wxString(tmpPtr
, tmpSize
);
1287 if (!PyString_Check(_obj1
)) {
1288 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1291 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1295 wxPy_BEGIN_ALLOW_THREADS
;
1296 _result
= (wxTipWindow
*)new_wxTipWindow(_arg0
,*_arg1
,_arg2
);
1298 wxPy_END_ALLOW_THREADS
;
1299 if (PyErr_Occurred()) return NULL
;
1301 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTipWindow_p");
1302 _resultobj
= Py_BuildValue("s",_ptemp
);
1305 _resultobj
= Py_None
;
1314 static PyMethodDef framescMethods
[] = {
1315 { "new_wxTipWindow", (PyCFunction
) _wrap_new_wxTipWindow
, METH_VARARGS
| METH_KEYWORDS
},
1316 { "new_wxMiniFrame", (PyCFunction
) _wrap_new_wxMiniFrame
, METH_VARARGS
| METH_KEYWORDS
},
1317 { "wxFrame_IsFullScreen", (PyCFunction
) _wrap_wxFrame_IsFullScreen
, METH_VARARGS
| METH_KEYWORDS
},
1318 { "wxFrame_ShowFullScreen", (PyCFunction
) _wrap_wxFrame_ShowFullScreen
, METH_VARARGS
| METH_KEYWORDS
},
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
},
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
},
1331 { "wxFrame_Restore", (PyCFunction
) _wrap_wxFrame_Restore
, METH_VARARGS
| METH_KEYWORDS
},
1332 { "wxFrame_IsMaximized", (PyCFunction
) _wrap_wxFrame_IsMaximized
, METH_VARARGS
| METH_KEYWORDS
},
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
},
1340 { "wxFrame_GetIcon", (PyCFunction
) _wrap_wxFrame_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
1341 { "wxFrame_CreateToolBar", (PyCFunction
) _wrap_wxFrame_CreateToolBar
, METH_VARARGS
| METH_KEYWORDS
},
1342 { "wxFrame_CreateStatusBar", (PyCFunction
) _wrap_wxFrame_CreateStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
1343 { "wxFrame_Centre", (PyCFunction
) _wrap_wxFrame_Centre
, METH_VARARGS
| METH_KEYWORDS
},
1344 { "new_wxFrame", (PyCFunction
) _wrap_new_wxFrame
, METH_VARARGS
| METH_KEYWORDS
},
1351 * This table is used by the pointer type-checker
1353 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1354 { "_signed_long","_long",0},
1355 { "_wxPrintQuality","_wxCoord",0},
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},
1363 { "_wxPrintQuality","_time_t",0},
1364 { "_byte","_unsigned_char",0},
1365 { "_long","_unsigned_long",0},
1366 { "_long","_signed_long",0},
1367 { "_size_t","_wxCoord",0},
1368 { "_size_t","_wxPrintQuality",0},
1369 { "_size_t","_time_t",0},
1370 { "_size_t","_unsigned_int",0},
1371 { "_size_t","_int",0},
1372 { "_size_t","_wxWindowID",0},
1373 { "_size_t","_uint",0},
1374 { "_uint","_wxCoord",0},
1375 { "_uint","_wxPrintQuality",0},
1376 { "_uint","_time_t",0},
1377 { "_uint","_size_t",0},
1378 { "_uint","_unsigned_int",0},
1379 { "_uint","_int",0},
1380 { "_uint","_wxWindowID",0},
1381 { "_wxChar","_char",0},
1382 { "_char","_wxChar",0},
1383 { "_EBool","_wxCoord",0},
1384 { "_EBool","_wxPrintQuality",0},
1385 { "_EBool","_signed_int",0},
1386 { "_EBool","_int",0},
1387 { "_EBool","_wxWindowID",0},
1388 { "_unsigned_long","_long",0},
1389 { "_signed_int","_wxCoord",0},
1390 { "_signed_int","_wxPrintQuality",0},
1391 { "_signed_int","_EBool",0},
1392 { "_signed_int","_wxWindowID",0},
1393 { "_signed_int","_int",0},
1394 { "_WXTYPE","_short",0},
1395 { "_WXTYPE","_signed_short",0},
1396 { "_WXTYPE","_unsigned_short",0},
1397 { "_unsigned_short","_WXTYPE",0},
1398 { "_unsigned_short","_short",0},
1399 { "_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject
},
1400 { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject
},
1401 { "_wxObject","_wxFrame",SwigwxFrameTowxObject
},
1402 { "_signed_short","_WXTYPE",0},
1403 { "_signed_short","_short",0},
1404 { "_unsigned_char","_byte",0},
1405 { "_unsigned_int","_wxCoord",0},
1406 { "_unsigned_int","_wxPrintQuality",0},
1407 { "_unsigned_int","_time_t",0},
1408 { "_unsigned_int","_size_t",0},
1409 { "_unsigned_int","_uint",0},
1410 { "_unsigned_int","_wxWindowID",0},
1411 { "_unsigned_int","_int",0},
1412 { "_short","_WXTYPE",0},
1413 { "_short","_unsigned_short",0},
1414 { "_short","_signed_short",0},
1415 { "_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame
},
1416 { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame
},
1417 { "_wxWindowID","_wxCoord",0},
1418 { "_wxWindowID","_wxPrintQuality",0},
1419 { "_wxWindowID","_time_t",0},
1420 { "_wxWindowID","_size_t",0},
1421 { "_wxWindowID","_EBool",0},
1422 { "_wxWindowID","_uint",0},
1423 { "_wxWindowID","_int",0},
1424 { "_wxWindowID","_signed_int",0},
1425 { "_wxWindowID","_unsigned_int",0},
1426 { "_int","_wxCoord",0},
1427 { "_int","_wxPrintQuality",0},
1428 { "_int","_time_t",0},
1429 { "_int","_size_t",0},
1430 { "_int","_EBool",0},
1431 { "_int","_uint",0},
1432 { "_int","_wxWindowID",0},
1433 { "_int","_unsigned_int",0},
1434 { "_int","_signed_int",0},
1435 { "_time_t","_wxCoord",0},
1436 { "_time_t","_wxPrintQuality",0},
1437 { "_time_t","_unsigned_int",0},
1438 { "_time_t","_int",0},
1439 { "_time_t","_wxWindowID",0},
1440 { "_time_t","_uint",0},
1441 { "_time_t","_size_t",0},
1442 { "_wxCoord","_int",0},
1443 { "_wxCoord","_signed_int",0},
1444 { "_wxCoord","_unsigned_int",0},
1445 { "_wxCoord","_wxWindowID",0},
1446 { "_wxCoord","_uint",0},
1447 { "_wxCoord","_EBool",0},
1448 { "_wxCoord","_size_t",0},
1449 { "_wxCoord","_time_t",0},
1450 { "_wxCoord","_wxPrintQuality",0},
1451 { "_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler
},
1452 { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler
},
1453 { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler
},
1454 { "_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow
},
1455 { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow
},
1456 { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow
},
1459 static PyObject
*SWIG_globals
;
1463 SWIGEXPORT(void) initframesc() {
1465 SWIG_globals
= SWIG_newvarlink();
1466 m
= Py_InitModule("framesc", framescMethods
);
1467 d
= PyModule_GetDict(m
);
1468 PyDict_SetItemString(d
,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR
));
1469 PyDict_SetItemString(d
,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR
));
1470 PyDict_SetItemString(d
,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR
));
1471 PyDict_SetItemString(d
,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER
));
1472 PyDict_SetItemString(d
,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION
));
1473 PyDict_SetItemString(d
,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL
));
1476 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1477 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);