2 * FILE : src/gtk/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/splash.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 required";
97 static void *SwigwxTopLevelWindowTowxWindow(void *ptr
) {
98 wxTopLevelWindow
*src
;
100 src
= (wxTopLevelWindow
*) ptr
;
101 dest
= (wxWindow
*) src
;
102 return (void *) dest
;
105 static void *SwigwxTopLevelWindowTowxEvtHandler(void *ptr
) {
106 wxTopLevelWindow
*src
;
108 src
= (wxTopLevelWindow
*) ptr
;
109 dest
= (wxEvtHandler
*) src
;
110 return (void *) dest
;
113 static void *SwigwxTopLevelWindowTowxObject(void *ptr
) {
114 wxTopLevelWindow
*src
;
116 src
= (wxTopLevelWindow
*) ptr
;
117 dest
= (wxObject
*) src
;
118 return (void *) dest
;
121 #define new_wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
122 static PyObject
*_wrap_new_wxTopLevelWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
123 PyObject
* _resultobj
;
124 wxTopLevelWindow
* _result
;
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_wxTopLevelWindow",_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_wxTopLevelWindow. 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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
183 _result
= (wxTopLevelWindow
*)new_wxTopLevelWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
185 wxPyEndAllowThreads(__tstate
);
186 if (PyErr_Occurred()) return NULL
;
188 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTopLevelWindow_p");
189 _resultobj
= Py_BuildValue("s",_ptemp
);
192 _resultobj
= Py_None
;
201 #define new_wxPreTopLevelWindow() (new wxTopLevelWindow())
202 static PyObject
*_wrap_new_wxPreTopLevelWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
203 PyObject
* _resultobj
;
204 wxTopLevelWindow
* _result
;
205 char *_kwnames
[] = { NULL
};
209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreTopLevelWindow",_kwnames
))
212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
213 _result
= (wxTopLevelWindow
*)new_wxPreTopLevelWindow();
215 wxPyEndAllowThreads(__tstate
);
216 if (PyErr_Occurred()) return NULL
;
218 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTopLevelWindow_p");
219 _resultobj
= Py_BuildValue("s",_ptemp
);
222 _resultobj
= Py_None
;
227 #define wxTopLevelWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
228 static PyObject
*_wrap_wxTopLevelWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
229 PyObject
* _resultobj
;
231 wxTopLevelWindow
* _arg0
;
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:wxTopLevelWindow_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
,"_wxTopLevelWindow_p")) {
254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_Create. Expected _wxTopLevelWindow_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 wxTopLevelWindow_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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
297 _result
= (bool )wxTopLevelWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
299 wxPyEndAllowThreads(__tstate
);
300 if (PyErr_Occurred()) return NULL
;
301 } _resultobj
= Py_BuildValue("i",_result
);
309 #define wxTopLevelWindow_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
310 static PyObject
*_wrap_wxTopLevelWindow_Maximize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
311 PyObject
* _resultobj
;
312 wxTopLevelWindow
* _arg0
;
313 bool _arg1
= (bool ) TRUE
;
314 PyObject
* _argo0
= 0;
315 int tempbool1
= (int) TRUE
;
316 char *_kwnames
[] = { "self","maximize", NULL
};
319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxTopLevelWindow_Maximize",_kwnames
,&_argo0
,&tempbool1
))
322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_Maximize. Expected _wxTopLevelWindow_p.");
328 _arg1
= (bool ) tempbool1
;
330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
331 wxTopLevelWindow_Maximize(_arg0
,_arg1
);
333 wxPyEndAllowThreads(__tstate
);
334 if (PyErr_Occurred()) return NULL
;
335 } Py_INCREF(Py_None
);
336 _resultobj
= Py_None
;
340 #define wxTopLevelWindow_Restore(_swigobj) (_swigobj->Restore())
341 static PyObject
*_wrap_wxTopLevelWindow_Restore(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
342 PyObject
* _resultobj
;
343 wxTopLevelWindow
* _arg0
;
344 PyObject
* _argo0
= 0;
345 char *_kwnames
[] = { "self", NULL
};
348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTopLevelWindow_Restore",_kwnames
,&_argo0
))
351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_Restore. Expected _wxTopLevelWindow_p.");
358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
359 wxTopLevelWindow_Restore(_arg0
);
361 wxPyEndAllowThreads(__tstate
);
362 if (PyErr_Occurred()) return NULL
;
363 } Py_INCREF(Py_None
);
364 _resultobj
= Py_None
;
368 #define wxTopLevelWindow_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
369 static PyObject
*_wrap_wxTopLevelWindow_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
370 PyObject
* _resultobj
;
371 wxTopLevelWindow
* _arg0
;
372 bool _arg1
= (bool ) TRUE
;
373 PyObject
* _argo0
= 0;
374 int tempbool1
= (int) TRUE
;
375 char *_kwnames
[] = { "self","iconize", NULL
};
378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxTopLevelWindow_Iconize",_kwnames
,&_argo0
,&tempbool1
))
381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_Iconize. Expected _wxTopLevelWindow_p.");
387 _arg1
= (bool ) tempbool1
;
389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
390 wxTopLevelWindow_Iconize(_arg0
,_arg1
);
392 wxPyEndAllowThreads(__tstate
);
393 if (PyErr_Occurred()) return NULL
;
394 } Py_INCREF(Py_None
);
395 _resultobj
= Py_None
;
399 #define wxTopLevelWindow_IsMaximized(_swigobj) (_swigobj->IsMaximized())
400 static PyObject
*_wrap_wxTopLevelWindow_IsMaximized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
401 PyObject
* _resultobj
;
403 wxTopLevelWindow
* _arg0
;
404 PyObject
* _argo0
= 0;
405 char *_kwnames
[] = { "self", NULL
};
408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTopLevelWindow_IsMaximized",_kwnames
,&_argo0
))
411 if (_argo0
== Py_None
) { _arg0
= NULL
; }
412 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_IsMaximized. Expected _wxTopLevelWindow_p.");
418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
419 _result
= (bool )wxTopLevelWindow_IsMaximized(_arg0
);
421 wxPyEndAllowThreads(__tstate
);
422 if (PyErr_Occurred()) return NULL
;
423 } _resultobj
= Py_BuildValue("i",_result
);
427 #define wxTopLevelWindow_IsIconized(_swigobj) (_swigobj->IsIconized())
428 static PyObject
*_wrap_wxTopLevelWindow_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
431 wxTopLevelWindow
* _arg0
;
432 PyObject
* _argo0
= 0;
433 char *_kwnames
[] = { "self", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTopLevelWindow_IsIconized",_kwnames
,&_argo0
))
439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_IsIconized. Expected _wxTopLevelWindow_p.");
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 _result
= (bool )wxTopLevelWindow_IsIconized(_arg0
);
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) return NULL
;
451 } _resultobj
= Py_BuildValue("i",_result
);
455 #define wxTopLevelWindow_GetIcon(_swigobj) (_swigobj->GetIcon())
456 static PyObject
*_wrap_wxTopLevelWindow_GetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 PyObject
* _resultobj
;
459 wxTopLevelWindow
* _arg0
;
460 PyObject
* _argo0
= 0;
461 char *_kwnames
[] = { "self", NULL
};
465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTopLevelWindow_GetIcon",_kwnames
,&_argo0
))
468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_GetIcon. Expected _wxTopLevelWindow_p.");
475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
476 _result
= new wxIcon (wxTopLevelWindow_GetIcon(_arg0
));
478 wxPyEndAllowThreads(__tstate
);
479 if (PyErr_Occurred()) return NULL
;
480 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
481 _resultobj
= Py_BuildValue("s",_ptemp
);
485 #define wxTopLevelWindow_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
486 static PyObject
*_wrap_wxTopLevelWindow_SetIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
487 PyObject
* _resultobj
;
488 wxTopLevelWindow
* _arg0
;
490 PyObject
* _argo0
= 0;
491 PyObject
* _argo1
= 0;
492 char *_kwnames
[] = { "self","icon", NULL
};
495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTopLevelWindow_SetIcon",_kwnames
,&_argo0
,&_argo1
))
498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_SetIcon. Expected _wxTopLevelWindow_p.");
505 if (_argo1
== Py_None
) { _arg1
= NULL
; }
506 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxTopLevelWindow_SetIcon. Expected _wxIcon_p.");
512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
513 wxTopLevelWindow_SetIcon(_arg0
,*_arg1
);
515 wxPyEndAllowThreads(__tstate
);
516 if (PyErr_Occurred()) return NULL
;
517 } Py_INCREF(Py_None
);
518 _resultobj
= Py_None
;
522 #define wxTopLevelWindow_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1))
523 static PyObject
*_wrap_wxTopLevelWindow_ShowFullScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
524 PyObject
* _resultobj
;
526 wxTopLevelWindow
* _arg0
;
528 long _arg2
= (long ) (wxFULLSCREEN_ALL
);
529 PyObject
* _argo0
= 0;
531 char *_kwnames
[] = { "self","show","style", NULL
};
534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|l:wxTopLevelWindow_ShowFullScreen",_kwnames
,&_argo0
,&tempbool1
,&_arg2
))
537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_ShowFullScreen. Expected _wxTopLevelWindow_p.");
543 _arg1
= (bool ) tempbool1
;
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 _result
= (bool )wxTopLevelWindow_ShowFullScreen(_arg0
,_arg1
,_arg2
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
550 } _resultobj
= Py_BuildValue("i",_result
);
554 #define wxTopLevelWindow_IsFullScreen(_swigobj) (_swigobj->IsFullScreen())
555 static PyObject
*_wrap_wxTopLevelWindow_IsFullScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
556 PyObject
* _resultobj
;
558 wxTopLevelWindow
* _arg0
;
559 PyObject
* _argo0
= 0;
560 char *_kwnames
[] = { "self", NULL
};
563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTopLevelWindow_IsFullScreen",_kwnames
,&_argo0
))
566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_IsFullScreen. Expected _wxTopLevelWindow_p.");
573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
574 _result
= (bool )wxTopLevelWindow_IsFullScreen(_arg0
);
576 wxPyEndAllowThreads(__tstate
);
577 if (PyErr_Occurred()) return NULL
;
578 } _resultobj
= Py_BuildValue("i",_result
);
582 #define wxTopLevelWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
583 static PyObject
*_wrap_wxTopLevelWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
584 PyObject
* _resultobj
;
585 wxTopLevelWindow
* _arg0
;
587 PyObject
* _argo0
= 0;
588 PyObject
* _obj1
= 0;
589 char *_kwnames
[] = { "self","title", NULL
};
592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTopLevelWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_SetTitle. Expected _wxTopLevelWindow_p.");
602 #if PYTHON_API_VERSION >= 1009
603 char* tmpPtr
; int tmpSize
;
604 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
605 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
608 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
610 _arg1
= new wxString(tmpPtr
, tmpSize
);
612 if (!PyString_Check(_obj1
)) {
613 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
616 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
621 wxTopLevelWindow_SetTitle(_arg0
,*_arg1
);
623 wxPyEndAllowThreads(__tstate
);
624 if (PyErr_Occurred()) return NULL
;
625 } Py_INCREF(Py_None
);
626 _resultobj
= Py_None
;
634 #define wxTopLevelWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
635 static PyObject
*_wrap_wxTopLevelWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
636 PyObject
* _resultobj
;
638 wxTopLevelWindow
* _arg0
;
639 PyObject
* _argo0
= 0;
640 char *_kwnames
[] = { "self", NULL
};
643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTopLevelWindow_GetTitle",_kwnames
,&_argo0
))
646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTopLevelWindow_p")) {
648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTopLevelWindow_GetTitle. Expected _wxTopLevelWindow_p.");
653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
654 _result
= new wxString (wxTopLevelWindow_GetTitle(_arg0
));
656 wxPyEndAllowThreads(__tstate
);
657 if (PyErr_Occurred()) return NULL
;
659 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
667 static void *SwigwxFrameTowxTopLevelWindow(void *ptr
) {
669 wxTopLevelWindow
*dest
;
670 src
= (wxFrame
*) ptr
;
671 dest
= (wxTopLevelWindow
*) src
;
672 return (void *) dest
;
675 static void *SwigwxFrameTowxWindow(void *ptr
) {
678 src
= (wxFrame
*) ptr
;
679 dest
= (wxWindow
*) src
;
680 return (void *) dest
;
683 static void *SwigwxFrameTowxEvtHandler(void *ptr
) {
686 src
= (wxFrame
*) ptr
;
687 dest
= (wxEvtHandler
*) src
;
688 return (void *) dest
;
691 static void *SwigwxFrameTowxObject(void *ptr
) {
694 src
= (wxFrame
*) ptr
;
695 dest
= (wxObject
*) src
;
696 return (void *) dest
;
699 #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
700 static PyObject
*_wrap_new_wxFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
701 PyObject
* _resultobj
;
706 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
707 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
708 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
709 char * _arg6
= (char *) "frame";
710 PyObject
* _argo0
= 0;
711 PyObject
* _obj2
= 0;
713 PyObject
* _obj3
= 0;
715 PyObject
* _obj4
= 0;
716 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p.");
730 #if PYTHON_API_VERSION >= 1009
731 char* tmpPtr
; int tmpSize
;
732 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
733 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
736 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
738 _arg2
= new wxString(tmpPtr
, tmpSize
);
740 if (!PyString_Check(_obj2
)) {
741 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
744 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
750 if (! wxPoint_helper(_obj3
, &_arg3
))
756 if (! wxSize_helper(_obj4
, &_arg4
))
760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
761 _result
= (wxFrame
*)new_wxFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
763 wxPyEndAllowThreads(__tstate
);
764 if (PyErr_Occurred()) return NULL
;
766 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFrame_p");
767 _resultobj
= Py_BuildValue("s",_ptemp
);
770 _resultobj
= Py_None
;
779 #define new_wxPreFrame() (new wxFrame())
780 static PyObject
*_wrap_new_wxPreFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
781 PyObject
* _resultobj
;
783 char *_kwnames
[] = { NULL
};
787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreFrame",_kwnames
))
790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
791 _result
= (wxFrame
*)new_wxPreFrame();
793 wxPyEndAllowThreads(__tstate
);
794 if (PyErr_Occurred()) return NULL
;
796 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFrame_p");
797 _resultobj
= Py_BuildValue("s",_ptemp
);
800 _resultobj
= Py_None
;
805 #define wxFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
806 static PyObject
*_wrap_wxFrame_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
807 PyObject
* _resultobj
;
813 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
814 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
815 long _arg6
= (long ) wxDEFAULT_FRAME_STYLE
;
816 char * _arg7
= (char *) "frame";
817 PyObject
* _argo0
= 0;
818 PyObject
* _argo1
= 0;
819 PyObject
* _obj3
= 0;
821 PyObject
* _obj4
= 0;
823 PyObject
* _obj5
= 0;
824 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxFrame_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Create. Expected _wxFrame_p.");
837 if (_argo1
== Py_None
) { _arg1
= NULL
; }
838 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_Create. Expected _wxWindow_p.");
844 #if PYTHON_API_VERSION >= 1009
845 char* tmpPtr
; int tmpSize
;
846 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
847 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
850 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
852 _arg3
= new wxString(tmpPtr
, tmpSize
);
854 if (!PyString_Check(_obj3
)) {
855 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
858 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
864 if (! wxPoint_helper(_obj4
, &_arg4
))
870 if (! wxSize_helper(_obj5
, &_arg5
))
874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
875 _result
= (bool )wxFrame_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
877 wxPyEndAllowThreads(__tstate
);
878 if (PyErr_Occurred()) return NULL
;
879 } _resultobj
= Py_BuildValue("i",_result
);
887 #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
888 static PyObject
*_wrap_wxFrame_GetClientAreaOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
889 PyObject
* _resultobj
;
892 PyObject
* _argo0
= 0;
893 char *_kwnames
[] = { "self", NULL
};
897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetClientAreaOrigin",_kwnames
,&_argo0
))
900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p.");
907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
908 _result
= new wxPoint (wxFrame_GetClientAreaOrigin(_arg0
));
910 wxPyEndAllowThreads(__tstate
);
911 if (PyErr_Occurred()) return NULL
;
912 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
913 _resultobj
= Py_BuildValue("s",_ptemp
);
917 #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
918 static PyObject
*_wrap_wxFrame_SetMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
919 PyObject
* _resultobj
;
922 PyObject
* _argo0
= 0;
923 PyObject
* _argo1
= 0;
924 char *_kwnames
[] = { "self","menubar", NULL
};
927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetMenuBar",_kwnames
,&_argo0
,&_argo1
))
930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p.");
937 if (_argo1
== Py_None
) { _arg1
= NULL
; }
938 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuBar_p")) {
939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p.");
944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
945 wxFrame_SetMenuBar(_arg0
,_arg1
);
947 wxPyEndAllowThreads(__tstate
);
948 if (PyErr_Occurred()) return NULL
;
949 } Py_INCREF(Py_None
);
950 _resultobj
= Py_None
;
954 #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
955 static PyObject
*_wrap_wxFrame_GetMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
956 PyObject
* _resultobj
;
959 PyObject
* _argo0
= 0;
960 char *_kwnames
[] = { "self", NULL
};
963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetMenuBar",_kwnames
,&_argo0
))
966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p.");
973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
974 _result
= (wxMenuBar
*)wxFrame_GetMenuBar(_arg0
);
976 wxPyEndAllowThreads(__tstate
);
977 if (PyErr_Occurred()) return NULL
;
978 }{ _resultobj
= wxPyMake_wxObject(_result
); }
982 #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
983 static PyObject
*_wrap_wxFrame_Command(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
984 PyObject
* _resultobj
;
988 PyObject
* _argo0
= 0;
989 char *_kwnames
[] = { "self","id", NULL
};
992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_Command",_kwnames
,&_argo0
,&_arg1
))
995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
1002 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1003 _result
= (bool )wxFrame_Command(_arg0
,_arg1
);
1005 wxPyEndAllowThreads(__tstate
);
1006 if (PyErr_Occurred()) return NULL
;
1007 } _resultobj
= Py_BuildValue("i",_result
);
1011 #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0))
1012 static PyObject
*_wrap_wxFrame_ProcessCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1013 PyObject
* _resultobj
;
1017 PyObject
* _argo0
= 0;
1018 char *_kwnames
[] = { "self","id", NULL
};
1021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxFrame_ProcessCommand",_kwnames
,&_argo0
,&_arg1
))
1024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p.");
1031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1032 _result
= (bool )wxFrame_ProcessCommand(_arg0
,_arg1
);
1034 wxPyEndAllowThreads(__tstate
);
1035 if (PyErr_Occurred()) return NULL
;
1036 } _resultobj
= Py_BuildValue("i",_result
);
1040 #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1041 static PyObject
*_wrap_wxFrame_CreateStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1042 PyObject
* _resultobj
;
1043 wxStatusBar
* _result
;
1045 int _arg1
= (int ) 1;
1046 long _arg2
= (long ) wxST_SIZEGRIP
;
1047 wxWindowID _arg3
= (wxWindowID
) -1;
1048 char * _arg4
= (char *) "statusBar";
1049 PyObject
* _argo0
= 0;
1050 char *_kwnames
[] = { "self","number","style","id","name", NULL
};
1053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ilis:wxFrame_CreateStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
1056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p.");
1063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1064 _result
= (wxStatusBar
*)wxFrame_CreateStatusBar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1066 wxPyEndAllowThreads(__tstate
);
1067 if (PyErr_Occurred()) return NULL
;
1068 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1072 #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar())
1073 static PyObject
*_wrap_wxFrame_GetStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1074 PyObject
* _resultobj
;
1075 wxStatusBar
* _result
;
1077 PyObject
* _argo0
= 0;
1078 char *_kwnames
[] = { "self", NULL
};
1081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetStatusBar",_kwnames
,&_argo0
))
1084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p.");
1091 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1092 _result
= (wxStatusBar
*)wxFrame_GetStatusBar(_arg0
);
1094 wxPyEndAllowThreads(__tstate
);
1095 if (PyErr_Occurred()) return NULL
;
1096 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1100 #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0))
1101 static PyObject
*_wrap_wxFrame_SetStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1102 PyObject
* _resultobj
;
1104 wxStatusBar
* _arg1
;
1105 PyObject
* _argo0
= 0;
1106 PyObject
* _argo1
= 0;
1107 char *_kwnames
[] = { "self","statBar", NULL
};
1110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetStatusBar",_kwnames
,&_argo0
,&_argo1
))
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_SetStatusBar. Expected _wxFrame_p.");
1120 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1121 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxStatusBar_p")) {
1122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p.");
1127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1128 wxFrame_SetStatusBar(_arg0
,_arg1
);
1130 wxPyEndAllowThreads(__tstate
);
1131 if (PyErr_Occurred()) return NULL
;
1132 } Py_INCREF(Py_None
);
1133 _resultobj
= Py_None
;
1137 #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
1138 static PyObject
*_wrap_wxFrame_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1139 PyObject
* _resultobj
;
1142 int _arg2
= (int ) 0;
1143 PyObject
* _argo0
= 0;
1144 PyObject
* _obj1
= 0;
1145 char *_kwnames
[] = { "self","text","number", NULL
};
1148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFrame_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p.");
1158 #if PYTHON_API_VERSION >= 1009
1159 char* tmpPtr
; int tmpSize
;
1160 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1161 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1164 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1166 _arg1
= new wxString(tmpPtr
, tmpSize
);
1168 if (!PyString_Check(_obj1
)) {
1169 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1172 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1177 wxFrame_SetStatusText(_arg0
,*_arg1
,_arg2
);
1179 wxPyEndAllowThreads(__tstate
);
1180 if (PyErr_Occurred()) return NULL
;
1181 } Py_INCREF(Py_None
);
1182 _resultobj
= Py_None
;
1190 #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
1191 static PyObject
*_wrap_wxFrame_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1192 PyObject
* _resultobj
;
1196 PyObject
* _argo0
= 0;
1197 PyObject
* _obj2
= 0;
1198 char *_kwnames
[] = { "self","choices", NULL
};
1201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
1204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p.");
1212 _arg2
= int_LIST_helper(_obj2
);
1213 if (_arg2
== NULL
) {
1219 _arg1
= PyList_Size(_obj2
);
1226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1227 wxFrame_SetStatusWidths(_arg0
,_arg1
,_arg2
);
1229 wxPyEndAllowThreads(__tstate
);
1230 if (PyErr_Occurred()) return NULL
;
1231 } Py_INCREF(Py_None
);
1232 _resultobj
= Py_None
;
1239 #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2))
1240 static PyObject
*_wrap_wxFrame_CreateToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1241 PyObject
* _resultobj
;
1242 wxToolBar
* _result
;
1244 long _arg1
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
1245 wxWindowID _arg2
= (wxWindowID
) -1;
1246 char * _arg3
= (char *) "toolBar";
1247 PyObject
* _argo0
= 0;
1248 char *_kwnames
[] = { "self","style","id","name", NULL
};
1251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|lis:wxFrame_CreateToolBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p.");
1261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1262 _result
= (wxToolBar
*)wxFrame_CreateToolBar(_arg0
,_arg1
,_arg2
,_arg3
);
1264 wxPyEndAllowThreads(__tstate
);
1265 if (PyErr_Occurred()) return NULL
;
1266 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1270 #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
1271 static PyObject
*_wrap_wxFrame_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1272 PyObject
* _resultobj
;
1273 wxToolBar
* _result
;
1275 PyObject
* _argo0
= 0;
1276 char *_kwnames
[] = { "self", NULL
};
1279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFrame_GetToolBar",_kwnames
,&_argo0
))
1282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p.");
1289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1290 _result
= (wxToolBar
*)wxFrame_GetToolBar(_arg0
);
1292 wxPyEndAllowThreads(__tstate
);
1293 if (PyErr_Occurred()) return NULL
;
1294 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1298 #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
1299 static PyObject
*_wrap_wxFrame_SetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1303 PyObject
* _argo0
= 0;
1304 PyObject
* _argo1
= 0;
1305 char *_kwnames
[] = { "self","toolbar", NULL
};
1308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFrame_SetToolBar",_kwnames
,&_argo0
,&_argo1
))
1311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFrame_p")) {
1313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p.");
1318 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1319 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBar_p")) {
1320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p.");
1325 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1326 wxFrame_SetToolBar(_arg0
,_arg1
);
1328 wxPyEndAllowThreads(__tstate
);
1329 if (PyErr_Occurred()) return NULL
;
1330 } Py_INCREF(Py_None
);
1331 _resultobj
= Py_None
;
1335 static void *SwigwxDialogTowxTopLevelWindow(void *ptr
) {
1337 wxTopLevelWindow
*dest
;
1338 src
= (wxDialog
*) ptr
;
1339 dest
= (wxTopLevelWindow
*) src
;
1340 return (void *) dest
;
1343 static void *SwigwxDialogTowxWindow(void *ptr
) {
1346 src
= (wxDialog
*) ptr
;
1347 dest
= (wxWindow
*) src
;
1348 return (void *) dest
;
1351 static void *SwigwxDialogTowxEvtHandler(void *ptr
) {
1354 src
= (wxDialog
*) ptr
;
1355 dest
= (wxEvtHandler
*) src
;
1356 return (void *) dest
;
1359 static void *SwigwxDialogTowxObject(void *ptr
) {
1362 src
= (wxDialog
*) ptr
;
1363 dest
= (wxObject
*) src
;
1364 return (void *) dest
;
1367 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1368 static PyObject
*_wrap_new_wxDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1369 PyObject
* _resultobj
;
1374 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
1375 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
1376 long _arg5
= (long ) wxDEFAULT_DIALOG_STYLE
;
1377 char * _arg6
= (char *) "dialogBox";
1378 PyObject
* _argo0
= 0;
1379 PyObject
* _obj2
= 0;
1381 PyObject
* _obj3
= 0;
1383 PyObject
* _obj4
= 0;
1384 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
1388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxDialog",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
1391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
1398 #if PYTHON_API_VERSION >= 1009
1399 char* tmpPtr
; int tmpSize
;
1400 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1401 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1404 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1406 _arg2
= new wxString(tmpPtr
, tmpSize
);
1408 if (!PyString_Check(_obj2
)) {
1409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1412 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1418 if (! wxPoint_helper(_obj3
, &_arg3
))
1424 if (! wxSize_helper(_obj4
, &_arg4
))
1428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1429 _result
= (wxDialog
*)new_wxDialog(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1431 wxPyEndAllowThreads(__tstate
);
1432 if (PyErr_Occurred()) return NULL
;
1434 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
1435 _resultobj
= Py_BuildValue("s",_ptemp
);
1438 _resultobj
= Py_None
;
1447 #define new_wxPreDialog() (new wxDialog())
1448 static PyObject
*_wrap_new_wxPreDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1449 PyObject
* _resultobj
;
1451 char *_kwnames
[] = { NULL
};
1455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreDialog",_kwnames
))
1458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1459 _result
= (wxDialog
*)new_wxPreDialog();
1461 wxPyEndAllowThreads(__tstate
);
1462 if (PyErr_Occurred()) return NULL
;
1464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
1465 _resultobj
= Py_BuildValue("s",_ptemp
);
1468 _resultobj
= Py_None
;
1473 #define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1474 static PyObject
*_wrap_wxDialog_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1475 PyObject
* _resultobj
;
1481 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
1482 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
1483 long _arg6
= (long ) wxDEFAULT_DIALOG_STYLE
;
1484 char * _arg7
= (char *) "dialogBox";
1485 PyObject
* _argo0
= 0;
1486 PyObject
* _argo1
= 0;
1487 PyObject
* _obj3
= 0;
1489 PyObject
* _obj4
= 0;
1491 PyObject
* _obj5
= 0;
1492 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
1495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxDialog_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
1498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_p.");
1505 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1506 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
1507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDialog_Create. Expected _wxWindow_p.");
1512 #if PYTHON_API_VERSION >= 1009
1513 char* tmpPtr
; int tmpSize
;
1514 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1515 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1518 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1520 _arg3
= new wxString(tmpPtr
, tmpSize
);
1522 if (!PyString_Check(_obj3
)) {
1523 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1526 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1532 if (! wxPoint_helper(_obj4
, &_arg4
))
1538 if (! wxSize_helper(_obj5
, &_arg5
))
1542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1543 _result
= (bool )wxDialog_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
1545 wxPyEndAllowThreads(__tstate
);
1546 if (PyErr_Occurred()) return NULL
;
1547 } _resultobj
= Py_BuildValue("i",_result
);
1555 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1556 static PyObject
*_wrap_wxDialog_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1557 PyObject
* _resultobj
;
1559 int _arg1
= (int ) wxBOTH
;
1560 PyObject
* _argo0
= 0;
1561 char *_kwnames
[] = { "self","direction", NULL
};
1564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDialog_Centre",_kwnames
,&_argo0
,&_arg1
))
1567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
1574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1575 wxDialog_Centre(_arg0
,_arg1
);
1577 wxPyEndAllowThreads(__tstate
);
1578 if (PyErr_Occurred()) return NULL
;
1579 } Py_INCREF(Py_None
);
1580 _resultobj
= Py_None
;
1584 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
1585 static PyObject
*_wrap_wxDialog_EndModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1586 PyObject
* _resultobj
;
1589 PyObject
* _argo0
= 0;
1590 char *_kwnames
[] = { "self","retCode", NULL
};
1593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_EndModal",_kwnames
,&_argo0
,&_arg1
))
1596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
1603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1604 wxDialog_EndModal(_arg0
,_arg1
);
1606 wxPyEndAllowThreads(__tstate
);
1607 if (PyErr_Occurred()) return NULL
;
1608 } Py_INCREF(Py_None
);
1609 _resultobj
= Py_None
;
1613 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
1614 static PyObject
*_wrap_wxDialog_SetModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1615 PyObject
* _resultobj
;
1618 PyObject
* _argo0
= 0;
1620 char *_kwnames
[] = { "self","flag", NULL
};
1623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetModal",_kwnames
,&_argo0
,&tempbool1
))
1626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
1632 _arg1
= (bool ) tempbool1
;
1634 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1635 wxDialog_SetModal(_arg0
,_arg1
);
1637 wxPyEndAllowThreads(__tstate
);
1638 if (PyErr_Occurred()) return NULL
;
1639 } Py_INCREF(Py_None
);
1640 _resultobj
= Py_None
;
1644 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
1645 static PyObject
*_wrap_wxDialog_IsModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1646 PyObject
* _resultobj
;
1649 PyObject
* _argo0
= 0;
1650 char *_kwnames
[] = { "self", NULL
};
1653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsModal",_kwnames
,&_argo0
))
1656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
1663 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1664 _result
= (bool )wxDialog_IsModal(_arg0
);
1666 wxPyEndAllowThreads(__tstate
);
1667 if (PyErr_Occurred()) return NULL
;
1668 } _resultobj
= Py_BuildValue("i",_result
);
1672 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1673 static PyObject
*_wrap_wxDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1674 PyObject
* _resultobj
;
1677 PyObject
* _argo0
= 0;
1678 char *_kwnames
[] = { "self", NULL
};
1681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_ShowModal",_kwnames
,&_argo0
))
1684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
1691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1692 _result
= (int )wxDialog_ShowModal(_arg0
);
1694 wxPyEndAllowThreads(__tstate
);
1695 if (PyErr_Occurred()) return NULL
;
1696 } _resultobj
= Py_BuildValue("i",_result
);
1700 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
1701 static PyObject
*_wrap_wxDialog_GetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1702 PyObject
* _resultobj
;
1705 PyObject
* _argo0
= 0;
1706 char *_kwnames
[] = { "self", NULL
};
1709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetReturnCode",_kwnames
,&_argo0
))
1712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
1719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1720 _result
= (int )wxDialog_GetReturnCode(_arg0
);
1722 wxPyEndAllowThreads(__tstate
);
1723 if (PyErr_Occurred()) return NULL
;
1724 } _resultobj
= Py_BuildValue("i",_result
);
1728 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
1729 static PyObject
*_wrap_wxDialog_SetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1730 PyObject
* _resultobj
;
1733 PyObject
* _argo0
= 0;
1734 char *_kwnames
[] = { "self","retCode", NULL
};
1737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetReturnCode",_kwnames
,&_argo0
,&_arg1
))
1740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
1747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1748 wxDialog_SetReturnCode(_arg0
,_arg1
);
1750 wxPyEndAllowThreads(__tstate
);
1751 if (PyErr_Occurred()) return NULL
;
1752 } Py_INCREF(Py_None
);
1753 _resultobj
= Py_None
;
1757 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
1758 static PyObject
*_wrap_wxDialog_CreateTextSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1759 PyObject
* _resultobj
;
1763 PyObject
* _argo0
= 0;
1764 PyObject
* _obj1
= 0;
1765 char *_kwnames
[] = { "self","message", NULL
};
1768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_CreateTextSizer",_kwnames
,&_argo0
,&_obj1
))
1771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
1778 #if PYTHON_API_VERSION >= 1009
1779 char* tmpPtr
; int tmpSize
;
1780 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1781 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1784 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1786 _arg1
= new wxString(tmpPtr
, tmpSize
);
1788 if (!PyString_Check(_obj1
)) {
1789 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1792 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1797 _result
= (wxSizer
*)wxDialog_CreateTextSizer(_arg0
,*_arg1
);
1799 wxPyEndAllowThreads(__tstate
);
1800 if (PyErr_Occurred()) return NULL
;
1801 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
1809 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
1810 static PyObject
*_wrap_wxDialog_CreateButtonSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1811 PyObject
* _resultobj
;
1815 PyObject
* _argo0
= 0;
1816 char *_kwnames
[] = { "self","flags", NULL
};
1819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDialog_CreateButtonSizer",_kwnames
,&_argo0
,&_arg1
))
1822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
1824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
1829 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1830 _result
= (wxSizer
*)wxDialog_CreateButtonSizer(_arg0
,_arg1
);
1832 wxPyEndAllowThreads(__tstate
);
1833 if (PyErr_Occurred()) return NULL
;
1834 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
1838 static void *SwigwxMiniFrameTowxFrame(void *ptr
) {
1841 src
= (wxMiniFrame
*) ptr
;
1842 dest
= (wxFrame
*) src
;
1843 return (void *) dest
;
1846 static void *SwigwxMiniFrameTowxTopLevelWindow(void *ptr
) {
1848 wxTopLevelWindow
*dest
;
1849 src
= (wxMiniFrame
*) ptr
;
1850 dest
= (wxTopLevelWindow
*) src
;
1851 return (void *) dest
;
1854 static void *SwigwxMiniFrameTowxWindow(void *ptr
) {
1857 src
= (wxMiniFrame
*) ptr
;
1858 dest
= (wxWindow
*) src
;
1859 return (void *) dest
;
1862 static void *SwigwxMiniFrameTowxEvtHandler(void *ptr
) {
1865 src
= (wxMiniFrame
*) ptr
;
1866 dest
= (wxEvtHandler
*) src
;
1867 return (void *) dest
;
1870 static void *SwigwxMiniFrameTowxObject(void *ptr
) {
1873 src
= (wxMiniFrame
*) ptr
;
1874 dest
= (wxObject
*) src
;
1875 return (void *) dest
;
1878 #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1879 static PyObject
*_wrap_new_wxMiniFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1880 PyObject
* _resultobj
;
1881 wxMiniFrame
* _result
;
1885 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
1886 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
1887 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
1888 char * _arg6
= (char *) "frame";
1889 PyObject
* _argo0
= 0;
1890 PyObject
* _obj2
= 0;
1892 PyObject
* _obj3
= 0;
1894 PyObject
* _obj4
= 0;
1895 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
1899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxMiniFrame",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
1902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p.");
1909 #if PYTHON_API_VERSION >= 1009
1910 char* tmpPtr
; int tmpSize
;
1911 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1912 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1915 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1917 _arg2
= new wxString(tmpPtr
, tmpSize
);
1919 if (!PyString_Check(_obj2
)) {
1920 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1923 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1929 if (! wxPoint_helper(_obj3
, &_arg3
))
1935 if (! wxSize_helper(_obj4
, &_arg4
))
1939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1940 _result
= (wxMiniFrame
*)new_wxMiniFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1942 wxPyEndAllowThreads(__tstate
);
1943 if (PyErr_Occurred()) return NULL
;
1945 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMiniFrame_p");
1946 _resultobj
= Py_BuildValue("s",_ptemp
);
1949 _resultobj
= Py_None
;
1958 #define new_wxPreMiniFrame() (new wxMiniFrame())
1959 static PyObject
*_wrap_new_wxPreMiniFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1960 PyObject
* _resultobj
;
1961 wxMiniFrame
* _result
;
1962 char *_kwnames
[] = { NULL
};
1966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreMiniFrame",_kwnames
))
1969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1970 _result
= (wxMiniFrame
*)new_wxPreMiniFrame();
1972 wxPyEndAllowThreads(__tstate
);
1973 if (PyErr_Occurred()) return NULL
;
1975 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMiniFrame_p");
1976 _resultobj
= Py_BuildValue("s",_ptemp
);
1979 _resultobj
= Py_None
;
1984 #define wxMiniFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1985 static PyObject
*_wrap_wxMiniFrame_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1986 PyObject
* _resultobj
;
1988 wxMiniFrame
* _arg0
;
1992 wxPoint
* _arg4
= (wxPoint
*) &wxDefaultPosition
;
1993 wxSize
* _arg5
= (wxSize
*) &wxDefaultSize
;
1994 long _arg6
= (long ) wxDEFAULT_FRAME_STYLE
;
1995 char * _arg7
= (char *) "frame";
1996 PyObject
* _argo0
= 0;
1997 PyObject
* _argo1
= 0;
1998 PyObject
* _obj3
= 0;
2000 PyObject
* _obj4
= 0;
2002 PyObject
* _obj5
= 0;
2003 char *_kwnames
[] = { "self","parent","id","title","pos","size","style","name", NULL
};
2006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO|OOls:wxMiniFrame_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_obj5
,&_arg6
,&_arg7
))
2009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMiniFrame_p")) {
2011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMiniFrame_Create. Expected _wxMiniFrame_p.");
2016 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2017 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMiniFrame_Create. Expected _wxWindow_p.");
2023 #if PYTHON_API_VERSION >= 1009
2024 char* tmpPtr
; int tmpSize
;
2025 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
2026 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2029 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
2031 _arg3
= new wxString(tmpPtr
, tmpSize
);
2033 if (!PyString_Check(_obj3
)) {
2034 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2037 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
2043 if (! wxPoint_helper(_obj4
, &_arg4
))
2049 if (! wxSize_helper(_obj5
, &_arg5
))
2053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2054 _result
= (bool )wxMiniFrame_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,_arg7
);
2056 wxPyEndAllowThreads(__tstate
);
2057 if (PyErr_Occurred()) return NULL
;
2058 } _resultobj
= Py_BuildValue("i",_result
);
2066 static void *SwigwxSplashScreenWindowTowxWindow(void *ptr
) {
2067 wxSplashScreenWindow
*src
;
2069 src
= (wxSplashScreenWindow
*) ptr
;
2070 dest
= (wxWindow
*) src
;
2071 return (void *) dest
;
2074 static void *SwigwxSplashScreenWindowTowxEvtHandler(void *ptr
) {
2075 wxSplashScreenWindow
*src
;
2077 src
= (wxSplashScreenWindow
*) ptr
;
2078 dest
= (wxEvtHandler
*) src
;
2079 return (void *) dest
;
2082 static void *SwigwxSplashScreenWindowTowxObject(void *ptr
) {
2083 wxSplashScreenWindow
*src
;
2085 src
= (wxSplashScreenWindow
*) ptr
;
2086 dest
= (wxObject
*) src
;
2087 return (void *) dest
;
2090 #define new_wxSplashScreenWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSplashScreenWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2091 static PyObject
*_wrap_new_wxSplashScreenWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2092 PyObject
* _resultobj
;
2093 wxSplashScreenWindow
* _result
;
2097 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
2098 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
2099 long _arg5
= (long ) wxNO_BORDER
;
2100 PyObject
* _argo0
= 0;
2101 PyObject
* _argo1
= 0;
2103 PyObject
* _obj3
= 0;
2105 PyObject
* _obj4
= 0;
2106 char *_kwnames
[] = { "bitmap","parent","id","pos","size","style", NULL
};
2110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOl:new_wxSplashScreenWindow",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
))
2113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxSplashScreenWindow. Expected _wxBitmap_p.");
2120 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2121 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxSplashScreenWindow. Expected _wxWindow_p.");
2129 if (! wxPoint_helper(_obj3
, &_arg3
))
2135 if (! wxSize_helper(_obj4
, &_arg4
))
2139 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2140 _result
= (wxSplashScreenWindow
*)new_wxSplashScreenWindow(*_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
);
2142 wxPyEndAllowThreads(__tstate
);
2143 if (PyErr_Occurred()) return NULL
;
2145 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSplashScreenWindow_p");
2146 _resultobj
= Py_BuildValue("s",_ptemp
);
2149 _resultobj
= Py_None
;
2154 #define wxSplashScreenWindow_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
2155 static PyObject
*_wrap_wxSplashScreenWindow_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2156 PyObject
* _resultobj
;
2157 wxSplashScreenWindow
* _arg0
;
2159 PyObject
* _argo0
= 0;
2160 PyObject
* _argo1
= 0;
2161 char *_kwnames
[] = { "self","bitmap", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxSplashScreenWindow_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
2167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSplashScreenWindow_p")) {
2169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSplashScreenWindow_SetBitmap. Expected _wxSplashScreenWindow_p.");
2174 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2175 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
2176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxSplashScreenWindow_SetBitmap. Expected _wxBitmap_p.");
2181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2182 wxSplashScreenWindow_SetBitmap(_arg0
,*_arg1
);
2184 wxPyEndAllowThreads(__tstate
);
2185 if (PyErr_Occurred()) return NULL
;
2186 } Py_INCREF(Py_None
);
2187 _resultobj
= Py_None
;
2191 #define wxSplashScreenWindow_GetBitmap(_swigobj) (_swigobj->GetBitmap())
2192 static PyObject
*_wrap_wxSplashScreenWindow_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2193 PyObject
* _resultobj
;
2195 wxSplashScreenWindow
* _arg0
;
2196 PyObject
* _argo0
= 0;
2197 char *_kwnames
[] = { "self", NULL
};
2201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSplashScreenWindow_GetBitmap",_kwnames
,&_argo0
))
2204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSplashScreenWindow_p")) {
2206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSplashScreenWindow_GetBitmap. Expected _wxSplashScreenWindow_p.");
2211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2212 wxBitmap
& _result_ref
= wxSplashScreenWindow_GetBitmap(_arg0
);
2213 _result
= (wxBitmap
*) &_result_ref
;
2215 wxPyEndAllowThreads(__tstate
);
2216 if (PyErr_Occurred()) return NULL
;
2218 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
2219 _resultobj
= Py_BuildValue("s",_ptemp
);
2222 _resultobj
= Py_None
;
2227 static void *SwigwxSplashScreenTowxFrame(void *ptr
) {
2228 wxSplashScreen
*src
;
2230 src
= (wxSplashScreen
*) ptr
;
2231 dest
= (wxFrame
*) src
;
2232 return (void *) dest
;
2235 static void *SwigwxSplashScreenTowxTopLevelWindow(void *ptr
) {
2236 wxSplashScreen
*src
;
2237 wxTopLevelWindow
*dest
;
2238 src
= (wxSplashScreen
*) ptr
;
2239 dest
= (wxTopLevelWindow
*) src
;
2240 return (void *) dest
;
2243 static void *SwigwxSplashScreenTowxWindow(void *ptr
) {
2244 wxSplashScreen
*src
;
2246 src
= (wxSplashScreen
*) ptr
;
2247 dest
= (wxWindow
*) src
;
2248 return (void *) dest
;
2251 static void *SwigwxSplashScreenTowxEvtHandler(void *ptr
) {
2252 wxSplashScreen
*src
;
2254 src
= (wxSplashScreen
*) ptr
;
2255 dest
= (wxEvtHandler
*) src
;
2256 return (void *) dest
;
2259 static void *SwigwxSplashScreenTowxObject(void *ptr
) {
2260 wxSplashScreen
*src
;
2262 src
= (wxSplashScreen
*) ptr
;
2263 dest
= (wxObject
*) src
;
2264 return (void *) dest
;
2267 #define new_wxSplashScreen(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxSplashScreen(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
2268 static PyObject
*_wrap_new_wxSplashScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2269 PyObject
* _resultobj
;
2270 wxSplashScreen
* _result
;
2276 wxPoint
* _arg5
= (wxPoint
*) &wxDefaultPosition
;
2277 wxSize
* _arg6
= (wxSize
*) &wxDefaultSize
;
2278 long _arg7
= (long ) wxSIMPLE_BORDER
|wxFRAME_NO_TASKBAR
|wxFRAME_FLOAT_ON_PARENT
;
2279 PyObject
* _argo0
= 0;
2280 PyObject
* _argo3
= 0;
2282 PyObject
* _obj5
= 0;
2284 PyObject
* _obj6
= 0;
2285 char *_kwnames
[] = { "bitmap","splashStyle","milliseconds","parent","id","pos","size","style", NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OliOi|OOl:new_wxSplashScreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_arg7
))
2292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
2294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxSplashScreen. Expected _wxBitmap_p.");
2299 if (_argo3
== Py_None
) { _arg3
= NULL
; }
2300 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxWindow_p")) {
2301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxSplashScreen. Expected _wxWindow_p.");
2308 if (! wxPoint_helper(_obj5
, &_arg5
))
2314 if (! wxSize_helper(_obj6
, &_arg6
))
2318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2319 _result
= (wxSplashScreen
*)new_wxSplashScreen(*_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,*_arg5
,*_arg6
,_arg7
);
2321 wxPyEndAllowThreads(__tstate
);
2322 if (PyErr_Occurred()) return NULL
;
2324 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSplashScreen_p");
2325 _resultobj
= Py_BuildValue("s",_ptemp
);
2328 _resultobj
= Py_None
;
2333 #define wxSplashScreen_GetSplashStyle(_swigobj) (_swigobj->GetSplashStyle())
2334 static PyObject
*_wrap_wxSplashScreen_GetSplashStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2335 PyObject
* _resultobj
;
2337 wxSplashScreen
* _arg0
;
2338 PyObject
* _argo0
= 0;
2339 char *_kwnames
[] = { "self", NULL
};
2342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSplashScreen_GetSplashStyle",_kwnames
,&_argo0
))
2345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSplashScreen_p")) {
2347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSplashScreen_GetSplashStyle. Expected _wxSplashScreen_p.");
2352 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2353 _result
= (long )wxSplashScreen_GetSplashStyle(_arg0
);
2355 wxPyEndAllowThreads(__tstate
);
2356 if (PyErr_Occurred()) return NULL
;
2357 } _resultobj
= Py_BuildValue("l",_result
);
2361 #define wxSplashScreen_GetSplashWindow(_swigobj) (_swigobj->GetSplashWindow())
2362 static PyObject
*_wrap_wxSplashScreen_GetSplashWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2363 PyObject
* _resultobj
;
2364 wxSplashScreenWindow
* _result
;
2365 wxSplashScreen
* _arg0
;
2366 PyObject
* _argo0
= 0;
2367 char *_kwnames
[] = { "self", NULL
};
2371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSplashScreen_GetSplashWindow",_kwnames
,&_argo0
))
2374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSplashScreen_p")) {
2376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSplashScreen_GetSplashWindow. Expected _wxSplashScreen_p.");
2381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2382 _result
= (wxSplashScreenWindow
*)wxSplashScreen_GetSplashWindow(_arg0
);
2384 wxPyEndAllowThreads(__tstate
);
2385 if (PyErr_Occurred()) return NULL
;
2387 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSplashScreenWindow_p");
2388 _resultobj
= Py_BuildValue("s",_ptemp
);
2391 _resultobj
= Py_None
;
2396 #define wxSplashScreen_GetTimeout(_swigobj) (_swigobj->GetTimeout())
2397 static PyObject
*_wrap_wxSplashScreen_GetTimeout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2398 PyObject
* _resultobj
;
2400 wxSplashScreen
* _arg0
;
2401 PyObject
* _argo0
= 0;
2402 char *_kwnames
[] = { "self", NULL
};
2405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxSplashScreen_GetTimeout",_kwnames
,&_argo0
))
2408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxSplashScreen_p")) {
2410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxSplashScreen_GetTimeout. Expected _wxSplashScreen_p.");
2415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2416 _result
= (int )wxSplashScreen_GetTimeout(_arg0
);
2418 wxPyEndAllowThreads(__tstate
);
2419 if (PyErr_Occurred()) return NULL
;
2420 } _resultobj
= Py_BuildValue("i",_result
);
2424 static PyMethodDef framescMethods
[] = {
2425 { "wxSplashScreen_GetTimeout", (PyCFunction
) _wrap_wxSplashScreen_GetTimeout
, METH_VARARGS
| METH_KEYWORDS
},
2426 { "wxSplashScreen_GetSplashWindow", (PyCFunction
) _wrap_wxSplashScreen_GetSplashWindow
, METH_VARARGS
| METH_KEYWORDS
},
2427 { "wxSplashScreen_GetSplashStyle", (PyCFunction
) _wrap_wxSplashScreen_GetSplashStyle
, METH_VARARGS
| METH_KEYWORDS
},
2428 { "new_wxSplashScreen", (PyCFunction
) _wrap_new_wxSplashScreen
, METH_VARARGS
| METH_KEYWORDS
},
2429 { "wxSplashScreenWindow_GetBitmap", (PyCFunction
) _wrap_wxSplashScreenWindow_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2430 { "wxSplashScreenWindow_SetBitmap", (PyCFunction
) _wrap_wxSplashScreenWindow_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2431 { "new_wxSplashScreenWindow", (PyCFunction
) _wrap_new_wxSplashScreenWindow
, METH_VARARGS
| METH_KEYWORDS
},
2432 { "wxMiniFrame_Create", (PyCFunction
) _wrap_wxMiniFrame_Create
, METH_VARARGS
| METH_KEYWORDS
},
2433 { "new_wxPreMiniFrame", (PyCFunction
) _wrap_new_wxPreMiniFrame
, METH_VARARGS
| METH_KEYWORDS
},
2434 { "new_wxMiniFrame", (PyCFunction
) _wrap_new_wxMiniFrame
, METH_VARARGS
| METH_KEYWORDS
},
2435 { "wxDialog_CreateButtonSizer", (PyCFunction
) _wrap_wxDialog_CreateButtonSizer
, METH_VARARGS
| METH_KEYWORDS
},
2436 { "wxDialog_CreateTextSizer", (PyCFunction
) _wrap_wxDialog_CreateTextSizer
, METH_VARARGS
| METH_KEYWORDS
},
2437 { "wxDialog_SetReturnCode", (PyCFunction
) _wrap_wxDialog_SetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
2438 { "wxDialog_GetReturnCode", (PyCFunction
) _wrap_wxDialog_GetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
2439 { "wxDialog_ShowModal", (PyCFunction
) _wrap_wxDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
2440 { "wxDialog_IsModal", (PyCFunction
) _wrap_wxDialog_IsModal
, METH_VARARGS
| METH_KEYWORDS
},
2441 { "wxDialog_SetModal", (PyCFunction
) _wrap_wxDialog_SetModal
, METH_VARARGS
| METH_KEYWORDS
},
2442 { "wxDialog_EndModal", (PyCFunction
) _wrap_wxDialog_EndModal
, METH_VARARGS
| METH_KEYWORDS
},
2443 { "wxDialog_Centre", (PyCFunction
) _wrap_wxDialog_Centre
, METH_VARARGS
| METH_KEYWORDS
},
2444 { "wxDialog_Create", (PyCFunction
) _wrap_wxDialog_Create
, METH_VARARGS
| METH_KEYWORDS
},
2445 { "new_wxPreDialog", (PyCFunction
) _wrap_new_wxPreDialog
, METH_VARARGS
| METH_KEYWORDS
},
2446 { "new_wxDialog", (PyCFunction
) _wrap_new_wxDialog
, METH_VARARGS
| METH_KEYWORDS
},
2447 { "wxFrame_SetToolBar", (PyCFunction
) _wrap_wxFrame_SetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
2448 { "wxFrame_GetToolBar", (PyCFunction
) _wrap_wxFrame_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
2449 { "wxFrame_CreateToolBar", (PyCFunction
) _wrap_wxFrame_CreateToolBar
, METH_VARARGS
| METH_KEYWORDS
},
2450 { "wxFrame_SetStatusWidths", (PyCFunction
) _wrap_wxFrame_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
2451 { "wxFrame_SetStatusText", (PyCFunction
) _wrap_wxFrame_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
2452 { "wxFrame_SetStatusBar", (PyCFunction
) _wrap_wxFrame_SetStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
2453 { "wxFrame_GetStatusBar", (PyCFunction
) _wrap_wxFrame_GetStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
2454 { "wxFrame_CreateStatusBar", (PyCFunction
) _wrap_wxFrame_CreateStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
2455 { "wxFrame_ProcessCommand", (PyCFunction
) _wrap_wxFrame_ProcessCommand
, METH_VARARGS
| METH_KEYWORDS
},
2456 { "wxFrame_Command", (PyCFunction
) _wrap_wxFrame_Command
, METH_VARARGS
| METH_KEYWORDS
},
2457 { "wxFrame_GetMenuBar", (PyCFunction
) _wrap_wxFrame_GetMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
2458 { "wxFrame_SetMenuBar", (PyCFunction
) _wrap_wxFrame_SetMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
2459 { "wxFrame_GetClientAreaOrigin", (PyCFunction
) _wrap_wxFrame_GetClientAreaOrigin
, METH_VARARGS
| METH_KEYWORDS
},
2460 { "wxFrame_Create", (PyCFunction
) _wrap_wxFrame_Create
, METH_VARARGS
| METH_KEYWORDS
},
2461 { "new_wxPreFrame", (PyCFunction
) _wrap_new_wxPreFrame
, METH_VARARGS
| METH_KEYWORDS
},
2462 { "new_wxFrame", (PyCFunction
) _wrap_new_wxFrame
, METH_VARARGS
| METH_KEYWORDS
},
2463 { "wxTopLevelWindow_GetTitle", (PyCFunction
) _wrap_wxTopLevelWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
2464 { "wxTopLevelWindow_SetTitle", (PyCFunction
) _wrap_wxTopLevelWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
2465 { "wxTopLevelWindow_IsFullScreen", (PyCFunction
) _wrap_wxTopLevelWindow_IsFullScreen
, METH_VARARGS
| METH_KEYWORDS
},
2466 { "wxTopLevelWindow_ShowFullScreen", (PyCFunction
) _wrap_wxTopLevelWindow_ShowFullScreen
, METH_VARARGS
| METH_KEYWORDS
},
2467 { "wxTopLevelWindow_SetIcon", (PyCFunction
) _wrap_wxTopLevelWindow_SetIcon
, METH_VARARGS
| METH_KEYWORDS
},
2468 { "wxTopLevelWindow_GetIcon", (PyCFunction
) _wrap_wxTopLevelWindow_GetIcon
, METH_VARARGS
| METH_KEYWORDS
},
2469 { "wxTopLevelWindow_IsIconized", (PyCFunction
) _wrap_wxTopLevelWindow_IsIconized
, METH_VARARGS
| METH_KEYWORDS
},
2470 { "wxTopLevelWindow_IsMaximized", (PyCFunction
) _wrap_wxTopLevelWindow_IsMaximized
, METH_VARARGS
| METH_KEYWORDS
},
2471 { "wxTopLevelWindow_Iconize", (PyCFunction
) _wrap_wxTopLevelWindow_Iconize
, METH_VARARGS
| METH_KEYWORDS
},
2472 { "wxTopLevelWindow_Restore", (PyCFunction
) _wrap_wxTopLevelWindow_Restore
, METH_VARARGS
| METH_KEYWORDS
},
2473 { "wxTopLevelWindow_Maximize", (PyCFunction
) _wrap_wxTopLevelWindow_Maximize
, METH_VARARGS
| METH_KEYWORDS
},
2474 { "wxTopLevelWindow_Create", (PyCFunction
) _wrap_wxTopLevelWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
2475 { "new_wxPreTopLevelWindow", (PyCFunction
) _wrap_new_wxPreTopLevelWindow
, METH_VARARGS
| METH_KEYWORDS
},
2476 { "new_wxTopLevelWindow", (PyCFunction
) _wrap_new_wxTopLevelWindow
, METH_VARARGS
| METH_KEYWORDS
},
2483 * This table is used by the pointer type-checker
2485 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
2486 { "_signed_long","_long",0},
2487 { "_wxPrintQuality","_wxCoord",0},
2488 { "_wxPrintQuality","_int",0},
2489 { "_wxPrintQuality","_signed_int",0},
2490 { "_wxPrintQuality","_unsigned_int",0},
2491 { "_wxPrintQuality","_wxWindowID",0},
2492 { "_wxPrintQuality","_uint",0},
2493 { "_wxPrintQuality","_EBool",0},
2494 { "_wxPrintQuality","_size_t",0},
2495 { "_wxPrintQuality","_time_t",0},
2496 { "_byte","_unsigned_char",0},
2497 { "_long","_unsigned_long",0},
2498 { "_long","_signed_long",0},
2499 { "_size_t","_wxCoord",0},
2500 { "_size_t","_wxPrintQuality",0},
2501 { "_size_t","_time_t",0},
2502 { "_size_t","_unsigned_int",0},
2503 { "_size_t","_int",0},
2504 { "_size_t","_wxWindowID",0},
2505 { "_size_t","_uint",0},
2506 { "_wxTopLevelWindow","_wxSplashScreen",SwigwxSplashScreenTowxTopLevelWindow
},
2507 { "_wxTopLevelWindow","_wxMiniFrame",SwigwxMiniFrameTowxTopLevelWindow
},
2508 { "_wxTopLevelWindow","_wxDialog",SwigwxDialogTowxTopLevelWindow
},
2509 { "_wxTopLevelWindow","_wxFrame",SwigwxFrameTowxTopLevelWindow
},
2510 { "_uint","_wxCoord",0},
2511 { "_uint","_wxPrintQuality",0},
2512 { "_uint","_time_t",0},
2513 { "_uint","_size_t",0},
2514 { "_uint","_unsigned_int",0},
2515 { "_uint","_int",0},
2516 { "_uint","_wxWindowID",0},
2517 { "_wxChar","_char",0},
2518 { "_char","_wxChar",0},
2519 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2520 { "_EBool","_wxCoord",0},
2521 { "_EBool","_wxPrintQuality",0},
2522 { "_EBool","_signed_int",0},
2523 { "_EBool","_int",0},
2524 { "_EBool","_wxWindowID",0},
2525 { "_unsigned_long","_long",0},
2526 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2527 { "_signed_int","_wxCoord",0},
2528 { "_signed_int","_wxPrintQuality",0},
2529 { "_signed_int","_EBool",0},
2530 { "_signed_int","_wxWindowID",0},
2531 { "_signed_int","_int",0},
2532 { "_WXTYPE","_short",0},
2533 { "_WXTYPE","_signed_short",0},
2534 { "_WXTYPE","_unsigned_short",0},
2535 { "_unsigned_short","_WXTYPE",0},
2536 { "_unsigned_short","_short",0},
2537 { "_wxObject","_wxSplashScreen",SwigwxSplashScreenTowxObject
},
2538 { "_wxObject","_wxSplashScreenWindow",SwigwxSplashScreenWindowTowxObject
},
2539 { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject
},
2540 { "_wxObject","_wxDialog",SwigwxDialogTowxObject
},
2541 { "_wxObject","_wxFrame",SwigwxFrameTowxObject
},
2542 { "_wxObject","_wxTopLevelWindow",SwigwxTopLevelWindowTowxObject
},
2543 { "_signed_short","_WXTYPE",0},
2544 { "_signed_short","_short",0},
2545 { "_unsigned_char","_byte",0},
2546 { "_unsigned_int","_wxCoord",0},
2547 { "_unsigned_int","_wxPrintQuality",0},
2548 { "_unsigned_int","_time_t",0},
2549 { "_unsigned_int","_size_t",0},
2550 { "_unsigned_int","_uint",0},
2551 { "_unsigned_int","_wxWindowID",0},
2552 { "_unsigned_int","_int",0},
2553 { "_short","_WXTYPE",0},
2554 { "_short","_unsigned_short",0},
2555 { "_short","_signed_short",0},
2556 { "_wxFrame","_wxSplashScreen",SwigwxSplashScreenTowxFrame
},
2557 { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame
},
2558 { "_wxWindowID","_wxCoord",0},
2559 { "_wxWindowID","_wxPrintQuality",0},
2560 { "_wxWindowID","_time_t",0},
2561 { "_wxWindowID","_size_t",0},
2562 { "_wxWindowID","_EBool",0},
2563 { "_wxWindowID","_uint",0},
2564 { "_wxWindowID","_int",0},
2565 { "_wxWindowID","_signed_int",0},
2566 { "_wxWindowID","_unsigned_int",0},
2567 { "_int","_wxCoord",0},
2568 { "_int","_wxPrintQuality",0},
2569 { "_int","_time_t",0},
2570 { "_int","_size_t",0},
2571 { "_int","_EBool",0},
2572 { "_int","_uint",0},
2573 { "_int","_wxWindowID",0},
2574 { "_int","_unsigned_int",0},
2575 { "_int","_signed_int",0},
2576 { "_time_t","_wxCoord",0},
2577 { "_time_t","_wxPrintQuality",0},
2578 { "_time_t","_unsigned_int",0},
2579 { "_time_t","_int",0},
2580 { "_time_t","_wxWindowID",0},
2581 { "_time_t","_uint",0},
2582 { "_time_t","_size_t",0},
2583 { "_wxCoord","_int",0},
2584 { "_wxCoord","_signed_int",0},
2585 { "_wxCoord","_unsigned_int",0},
2586 { "_wxCoord","_wxWindowID",0},
2587 { "_wxCoord","_uint",0},
2588 { "_wxCoord","_EBool",0},
2589 { "_wxCoord","_size_t",0},
2590 { "_wxCoord","_time_t",0},
2591 { "_wxCoord","_wxPrintQuality",0},
2592 { "_wxEvtHandler","_wxSplashScreen",SwigwxSplashScreenTowxEvtHandler
},
2593 { "_wxEvtHandler","_wxSplashScreenWindow",SwigwxSplashScreenWindowTowxEvtHandler
},
2594 { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler
},
2595 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler
},
2596 { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler
},
2597 { "_wxEvtHandler","_wxTopLevelWindow",SwigwxTopLevelWindowTowxEvtHandler
},
2598 { "_wxWindow","_wxSplashScreen",SwigwxSplashScreenTowxWindow
},
2599 { "_wxWindow","_wxSplashScreenWindow",SwigwxSplashScreenWindowTowxWindow
},
2600 { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow
},
2601 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow
},
2602 { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow
},
2603 { "_wxWindow","_wxTopLevelWindow",SwigwxTopLevelWindowTowxWindow
},
2606 static PyObject
*SWIG_globals
;
2610 SWIGEXPORT(void) initframesc() {
2612 SWIG_globals
= SWIG_newvarlink();
2613 m
= Py_InitModule("framesc", framescMethods
);
2614 d
= PyModule_GetDict(m
);
2615 PyDict_SetItemString(d
,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR
));
2616 PyDict_SetItemString(d
,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR
));
2617 PyDict_SetItemString(d
,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR
));
2618 PyDict_SetItemString(d
,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER
));
2619 PyDict_SetItemString(d
,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION
));
2620 PyDict_SetItemString(d
,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL
));
2621 PyDict_SetItemString(d
,"wxTOPLEVEL_EX_DIALOG", PyInt_FromLong((long) wxTOPLEVEL_EX_DIALOG
));
2622 PyDict_SetItemString(d
,"wxSPLASH_CENTRE_ON_PARENT", PyInt_FromLong((long) wxSPLASH_CENTRE_ON_PARENT
));
2623 PyDict_SetItemString(d
,"wxSPLASH_CENTRE_ON_SCREEN", PyInt_FromLong((long) wxSPLASH_CENTRE_ON_SCREEN
));
2624 PyDict_SetItemString(d
,"wxSPLASH_NO_CENTRE", PyInt_FromLong((long) wxSPLASH_NO_CENTRE
));
2625 PyDict_SetItemString(d
,"wxSPLASH_TIMEOUT", PyInt_FromLong((long) wxSPLASH_TIMEOUT
));
2626 PyDict_SetItemString(d
,"wxSPLASH_NO_TIMEOUT", PyInt_FromLong((long) wxSPLASH_NO_TIMEOUT
));
2629 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2630 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);