2 * FILE : src/gtk/windows.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 initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.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";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* wxPyValidator::Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 bool doSave
= wxPyRestoreThread();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 // This is very dangerous!!! But is the only way I could find
120 // to squash a memory leak. Currently it is okay, but if the
121 // validator architecture in wxWindows ever changes, problems
125 wxPySaveThread(doSave
);
130 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
131 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
132 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
137 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
138 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
139 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
141 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
144 wxWindow
* wxWindow_FindFocus() {
145 return wxWindow::FindFocus();
148 int wxWindow_NewControlId() {
149 return wxWindow::NewControlId();
151 int wxWindow_NextControlId(int id
) {
152 return wxWindow::NextControlId(id
);
154 int wxWindow_PrevControlId(int id
) {
155 return wxWindow::PrevControlId(id
);
160 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
161 PyObject
* _resultobj
;
163 char *_kwnames
[] = { NULL
};
166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
169 wxPy_BEGIN_ALLOW_THREADS
;
170 _result
= (wxWindow
*)wxWindow_FindFocus();
172 wxPy_END_ALLOW_THREADS
;
173 if (PyErr_Occurred()) return NULL
;
174 }{ _resultobj
= wxPyMake_wxObject(_result
); }
178 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
179 PyObject
* _resultobj
;
181 char *_kwnames
[] = { NULL
};
184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
187 wxPy_BEGIN_ALLOW_THREADS
;
188 _result
= (int )wxWindow_NewControlId();
190 wxPy_END_ALLOW_THREADS
;
191 if (PyErr_Occurred()) return NULL
;
192 } _resultobj
= Py_BuildValue("i",_result
);
196 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
197 PyObject
* _resultobj
;
200 char *_kwnames
[] = { "id", NULL
};
203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
206 wxPy_BEGIN_ALLOW_THREADS
;
207 _result
= (int )wxWindow_NextControlId(_arg0
);
209 wxPy_END_ALLOW_THREADS
;
210 if (PyErr_Occurred()) return NULL
;
211 } _resultobj
= Py_BuildValue("i",_result
);
215 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
216 PyObject
* _resultobj
;
219 char *_kwnames
[] = { "id", NULL
};
222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
225 wxPy_BEGIN_ALLOW_THREADS
;
226 _result
= (int )wxWindow_PrevControlId(_arg0
);
228 wxPy_END_ALLOW_THREADS
;
229 if (PyErr_Occurred()) return NULL
;
230 } _resultobj
= Py_BuildValue("i",_result
);
234 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
237 src
= (wxEvtHandler
*) ptr
;
238 dest
= (wxObject
*) src
;
239 return (void *) dest
;
242 #define new_wxEvtHandler() (new wxEvtHandler())
243 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
244 PyObject
* _resultobj
;
245 wxEvtHandler
* _result
;
246 char *_kwnames
[] = { NULL
};
250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
253 wxPy_BEGIN_ALLOW_THREADS
;
254 _result
= (wxEvtHandler
*)new_wxEvtHandler();
256 wxPy_END_ALLOW_THREADS
;
257 if (PyErr_Occurred()) return NULL
;
259 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
260 _resultobj
= Py_BuildValue("s",_ptemp
);
263 _resultobj
= Py_None
;
268 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
269 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
270 PyObject
* _resultobj
;
272 wxEvtHandler
* _arg0
;
274 PyObject
* _argo0
= 0;
275 PyObject
* _argo1
= 0;
276 char *_kwnames
[] = { "self","event", NULL
};
279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
289 if (_argo1
== Py_None
) { _arg1
= NULL
; }
290 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
296 wxPy_BEGIN_ALLOW_THREADS
;
297 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
299 wxPy_END_ALLOW_THREADS
;
300 if (PyErr_Occurred()) return NULL
;
301 } _resultobj
= Py_BuildValue("i",_result
);
305 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
306 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
307 PyObject
* _resultobj
;
308 wxEvtHandler
* _arg0
;
310 PyObject
* _argo0
= 0;
311 PyObject
* _argo1
= 0;
312 char *_kwnames
[] = { "self","event", NULL
};
315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
325 if (_argo1
== Py_None
) { _arg1
= NULL
; }
326 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
332 wxPy_BEGIN_ALLOW_THREADS
;
333 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
335 wxPy_END_ALLOW_THREADS
;
336 if (PyErr_Occurred()) return NULL
;
337 } Py_INCREF(Py_None
);
338 _resultobj
= Py_None
;
342 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
343 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
344 PyObject
* _resultobj
;
346 wxEvtHandler
* _arg0
;
347 PyObject
* _argo0
= 0;
348 char *_kwnames
[] = { "self", NULL
};
351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
361 wxPy_BEGIN_ALLOW_THREADS
;
362 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
364 wxPy_END_ALLOW_THREADS
;
365 if (PyErr_Occurred()) return NULL
;
366 } _resultobj
= Py_BuildValue("i",_result
);
370 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
371 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
373 wxEvtHandler
* _arg0
;
375 PyObject
* _argo0
= 0;
377 char *_kwnames
[] = { "self","enabled", NULL
};
380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
389 _arg1
= (bool ) tempbool1
;
391 wxPy_BEGIN_ALLOW_THREADS
;
392 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
394 wxPy_END_ALLOW_THREADS
;
395 if (PyErr_Occurred()) return NULL
;
396 } Py_INCREF(Py_None
);
397 _resultobj
= Py_None
;
401 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
402 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
403 PyObject
* _resultobj
;
404 wxEvtHandler
* _result
;
405 wxEvtHandler
* _arg0
;
406 PyObject
* _argo0
= 0;
407 char *_kwnames
[] = { "self", NULL
};
410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
420 wxPy_BEGIN_ALLOW_THREADS
;
421 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
423 wxPy_END_ALLOW_THREADS
;
424 if (PyErr_Occurred()) return NULL
;
425 }{ _resultobj
= wxPyMake_wxObject(_result
); }
429 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
430 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 PyObject
* _resultobj
;
432 wxEvtHandler
* _result
;
433 wxEvtHandler
* _arg0
;
434 PyObject
* _argo0
= 0;
435 char *_kwnames
[] = { "self", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
448 wxPy_BEGIN_ALLOW_THREADS
;
449 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
451 wxPy_END_ALLOW_THREADS
;
452 if (PyErr_Occurred()) return NULL
;
453 }{ _resultobj
= wxPyMake_wxObject(_result
); }
457 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
458 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
459 PyObject
* _resultobj
;
460 wxEvtHandler
* _arg0
;
461 wxEvtHandler
* _arg1
;
462 PyObject
* _argo0
= 0;
463 PyObject
* _argo1
= 0;
464 char *_kwnames
[] = { "self","handler", NULL
};
467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
477 if (_argo1
== Py_None
) { _arg1
= NULL
; }
478 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
484 wxPy_BEGIN_ALLOW_THREADS
;
485 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
487 wxPy_END_ALLOW_THREADS
;
488 if (PyErr_Occurred()) return NULL
;
489 } Py_INCREF(Py_None
);
490 _resultobj
= Py_None
;
494 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
495 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
496 PyObject
* _resultobj
;
497 wxEvtHandler
* _arg0
;
498 wxEvtHandler
* _arg1
;
499 PyObject
* _argo0
= 0;
500 PyObject
* _argo1
= 0;
501 char *_kwnames
[] = { "self","handler", NULL
};
504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
514 if (_argo1
== Py_None
) { _arg1
= NULL
; }
515 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
521 wxPy_BEGIN_ALLOW_THREADS
;
522 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
524 wxPy_END_ALLOW_THREADS
;
525 if (PyErr_Occurred()) return NULL
;
526 } Py_INCREF(Py_None
);
527 _resultobj
= Py_None
;
531 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
532 if (PyCallable_Check(func
)) {
533 self
->Connect(id
, lastId
, eventType
,
534 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
535 new wxPyCallback(func
));
538 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
539 PyObject
* _resultobj
;
540 wxEvtHandler
* _arg0
;
545 PyObject
* _argo0
= 0;
546 PyObject
* _obj4
= 0;
547 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
563 wxPy_BEGIN_ALLOW_THREADS
;
564 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
566 wxPy_END_ALLOW_THREADS
;
567 if (PyErr_Occurred()) return NULL
;
568 } Py_INCREF(Py_None
);
569 _resultobj
= Py_None
;
573 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
574 return self
->Disconnect(id
, lastId
, eventType
,
575 (wxObjectEventFunction
)
576 &wxPyCallback::EventThunker
);
578 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
579 PyObject
* _resultobj
;
581 wxEvtHandler
* _arg0
;
583 int _arg2
= (int ) -1;
584 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
585 PyObject
* _argo0
= 0;
586 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
599 wxPy_BEGIN_ALLOW_THREADS
;
600 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
602 wxPy_END_ALLOW_THREADS
;
603 if (PyErr_Occurred()) return NULL
;
604 } _resultobj
= Py_BuildValue("i",_result
);
608 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
611 src
= (wxValidator
*) ptr
;
612 dest
= (wxEvtHandler
*) src
;
613 return (void *) dest
;
616 static void *SwigwxValidatorTowxObject(void *ptr
) {
619 src
= (wxValidator
*) ptr
;
620 dest
= (wxObject
*) src
;
621 return (void *) dest
;
624 #define new_wxValidator() (new wxValidator())
625 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
626 PyObject
* _resultobj
;
627 wxValidator
* _result
;
628 char *_kwnames
[] = { NULL
};
632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
635 wxPy_BEGIN_ALLOW_THREADS
;
636 _result
= (wxValidator
*)new_wxValidator();
638 wxPy_END_ALLOW_THREADS
;
639 if (PyErr_Occurred()) return NULL
;
641 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
642 _resultobj
= Py_BuildValue("s",_ptemp
);
645 _resultobj
= Py_None
;
650 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
651 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
652 PyObject
* _resultobj
;
653 wxValidator
* _result
;
655 PyObject
* _argo0
= 0;
656 char *_kwnames
[] = { "self", NULL
};
659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
669 wxPy_BEGIN_ALLOW_THREADS
;
670 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
672 wxPy_END_ALLOW_THREADS
;
673 if (PyErr_Occurred()) return NULL
;
674 }{ _resultobj
= wxPyMake_wxObject(_result
); }
678 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
679 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
680 PyObject
* _resultobj
;
683 PyObject
* _argo0
= 0;
684 char *_kwnames
[] = { "self", NULL
};
687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
697 wxPy_BEGIN_ALLOW_THREADS
;
698 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
700 wxPy_END_ALLOW_THREADS
;
701 if (PyErr_Occurred()) return NULL
;
702 }{ _resultobj
= wxPyMake_wxObject(_result
); }
706 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
707 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
708 PyObject
* _resultobj
;
711 PyObject
* _argo0
= 0;
712 PyObject
* _argo1
= 0;
713 char *_kwnames
[] = { "self","window", NULL
};
716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
726 if (_argo1
== Py_None
) { _arg1
= NULL
; }
727 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
733 wxPy_BEGIN_ALLOW_THREADS
;
734 wxValidator_SetWindow(_arg0
,_arg1
);
736 wxPy_END_ALLOW_THREADS
;
737 if (PyErr_Occurred()) return NULL
;
738 } Py_INCREF(Py_None
);
739 _resultobj
= Py_None
;
743 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
744 PyObject
* _resultobj
;
746 char *_kwnames
[] = { NULL
};
749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
752 wxPy_BEGIN_ALLOW_THREADS
;
753 _result
= (bool )wxValidator::IsSilent();
755 wxPy_END_ALLOW_THREADS
;
756 if (PyErr_Occurred()) return NULL
;
757 } _resultobj
= Py_BuildValue("i",_result
);
761 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
762 PyObject
* _resultobj
;
763 int _arg0
= (int ) TRUE
;
764 char *_kwnames
[] = { "doIt", NULL
};
767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
770 wxPy_BEGIN_ALLOW_THREADS
;
771 wxValidator::SetBellOnError(_arg0
);
773 wxPy_END_ALLOW_THREADS
;
774 if (PyErr_Occurred()) return NULL
;
775 } Py_INCREF(Py_None
);
776 _resultobj
= Py_None
;
780 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
783 src
= (wxPyValidator
*) ptr
;
784 dest
= (wxValidator
*) src
;
785 return (void *) dest
;
788 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
791 src
= (wxPyValidator
*) ptr
;
792 dest
= (wxEvtHandler
*) src
;
793 return (void *) dest
;
796 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
799 src
= (wxPyValidator
*) ptr
;
800 dest
= (wxObject
*) src
;
801 return (void *) dest
;
804 #define new_wxPyValidator() (new wxPyValidator())
805 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
806 PyObject
* _resultobj
;
807 wxPyValidator
* _result
;
808 char *_kwnames
[] = { NULL
};
812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
815 wxPy_BEGIN_ALLOW_THREADS
;
816 _result
= (wxPyValidator
*)new_wxPyValidator();
818 wxPy_END_ALLOW_THREADS
;
819 if (PyErr_Occurred()) return NULL
;
821 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
822 _resultobj
= Py_BuildValue("s",_ptemp
);
825 _resultobj
= Py_None
;
830 #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2))
831 static PyObject
*_wrap_wxPyValidator__setSelf(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
832 PyObject
* _resultobj
;
833 wxPyValidator
* _arg0
;
836 int _arg3
= (int ) TRUE
;
837 PyObject
* _argo0
= 0;
838 PyObject
* _obj1
= 0;
839 PyObject
* _obj2
= 0;
840 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setSelf",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p.");
859 wxPy_BEGIN_ALLOW_THREADS
;
860 wxPyValidator__setSelf(_arg0
,_arg1
,_arg2
,_arg3
);
862 wxPy_END_ALLOW_THREADS
;
863 if (PyErr_Occurred()) return NULL
;
864 } Py_INCREF(Py_None
);
865 _resultobj
= Py_None
;
869 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
872 src
= (wxWindow
*) ptr
;
873 dest
= (wxEvtHandler
*) src
;
874 return (void *) dest
;
877 static void *SwigwxWindowTowxObject(void *ptr
) {
880 src
= (wxWindow
*) ptr
;
881 dest
= (wxObject
*) src
;
882 return (void *) dest
;
885 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
886 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
887 PyObject
* _resultobj
;
891 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
892 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
893 long _arg4
= (long ) 0;
894 char * _arg5
= (char *) "panel";
895 PyObject
* _argo0
= 0;
897 PyObject
* _obj2
= 0;
899 PyObject
* _obj3
= 0;
900 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
916 if (! wxPoint_helper(_obj2
, &_arg2
))
922 if (! wxSize_helper(_obj3
, &_arg3
))
926 wxPy_BEGIN_ALLOW_THREADS
;
927 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
929 wxPy_END_ALLOW_THREADS
;
930 if (PyErr_Occurred()) return NULL
;
932 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
933 _resultobj
= Py_BuildValue("s",_ptemp
);
936 _resultobj
= Py_None
;
941 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
942 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
943 PyObject
* _resultobj
;
945 PyObject
* _argo0
= 0;
946 char *_kwnames
[] = { "self", NULL
};
949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
959 wxPy_BEGIN_ALLOW_THREADS
;
960 wxWindow_CaptureMouse(_arg0
);
962 wxPy_END_ALLOW_THREADS
;
963 if (PyErr_Occurred()) return NULL
;
964 } Py_INCREF(Py_None
);
965 _resultobj
= Py_None
;
969 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
970 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
971 PyObject
* _resultobj
;
973 int _arg1
= (int ) wxBOTH
;
974 PyObject
* _argo0
= 0;
975 char *_kwnames
[] = { "self","direction", NULL
};
978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
988 wxPy_BEGIN_ALLOW_THREADS
;
989 wxWindow_Center(_arg0
,_arg1
);
991 wxPy_END_ALLOW_THREADS
;
992 if (PyErr_Occurred()) return NULL
;
993 } Py_INCREF(Py_None
);
994 _resultobj
= Py_None
;
998 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
999 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 PyObject
* _resultobj
;
1002 int _arg1
= (int ) wxBOTH
;
1003 PyObject
* _argo0
= 0;
1004 char *_kwnames
[] = { "self","direction", NULL
};
1007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1017 wxPy_BEGIN_ALLOW_THREADS
;
1018 wxWindow_Centre(_arg0
,_arg1
);
1020 wxPy_END_ALLOW_THREADS
;
1021 if (PyErr_Occurred()) return NULL
;
1022 } Py_INCREF(Py_None
);
1023 _resultobj
= Py_None
;
1027 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1028 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1029 PyObject
* _resultobj
;
1031 int _arg1
= (int ) wxBOTH
;
1032 PyObject
* _argo0
= 0;
1033 char *_kwnames
[] = { "self","direction", NULL
};
1036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1046 wxPy_BEGIN_ALLOW_THREADS
;
1047 wxWindow_CentreOnParent(_arg0
,_arg1
);
1049 wxPy_END_ALLOW_THREADS
;
1050 if (PyErr_Occurred()) return NULL
;
1051 } Py_INCREF(Py_None
);
1052 _resultobj
= Py_None
;
1056 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1057 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1058 PyObject
* _resultobj
;
1060 int _arg1
= (int ) wxBOTH
;
1061 PyObject
* _argo0
= 0;
1062 char *_kwnames
[] = { "self","direction", NULL
};
1065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1075 wxPy_BEGIN_ALLOW_THREADS
;
1076 wxWindow_CenterOnParent(_arg0
,_arg1
);
1078 wxPy_END_ALLOW_THREADS
;
1079 if (PyErr_Occurred()) return NULL
;
1080 } Py_INCREF(Py_None
);
1081 _resultobj
= Py_None
;
1085 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1086 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1087 PyObject
* _resultobj
;
1089 int _arg1
= (int ) wxBOTH
;
1090 PyObject
* _argo0
= 0;
1091 char *_kwnames
[] = { "self","direction", NULL
};
1094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1104 wxPy_BEGIN_ALLOW_THREADS
;
1105 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1107 wxPy_END_ALLOW_THREADS
;
1108 if (PyErr_Occurred()) return NULL
;
1109 } Py_INCREF(Py_None
);
1110 _resultobj
= Py_None
;
1114 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1115 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1116 PyObject
* _resultobj
;
1118 int _arg1
= (int ) wxBOTH
;
1119 PyObject
* _argo0
= 0;
1120 char *_kwnames
[] = { "self","direction", NULL
};
1123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1133 wxPy_BEGIN_ALLOW_THREADS
;
1134 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1136 wxPy_END_ALLOW_THREADS
;
1137 if (PyErr_Occurred()) return NULL
;
1138 } Py_INCREF(Py_None
);
1139 _resultobj
= Py_None
;
1143 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1144 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1145 PyObject
* _resultobj
;
1147 PyObject
* _argo0
= 0;
1148 char *_kwnames
[] = { "self", NULL
};
1151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1161 wxPy_BEGIN_ALLOW_THREADS
;
1162 wxWindow_Clear(_arg0
);
1164 wxPy_END_ALLOW_THREADS
;
1165 if (PyErr_Occurred()) return NULL
;
1166 } Py_INCREF(Py_None
);
1167 _resultobj
= Py_None
;
1171 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1172 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1173 PyObject
* _resultobj
;
1177 PyObject
* _argo0
= 0;
1179 PyObject
* _obj1
= 0;
1181 PyObject
* _obj2
= 0;
1182 char *_kwnames
[] = { "self","x","y", NULL
};
1185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1195 temp
= (int) PyInt_AsLong(_obj1
);
1199 temp0
= (int) PyInt_AsLong(_obj2
);
1203 wxPy_BEGIN_ALLOW_THREADS
;
1204 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1206 wxPy_END_ALLOW_THREADS
;
1207 if (PyErr_Occurred()) return NULL
;
1208 } Py_INCREF(Py_None
);
1209 _resultobj
= Py_None
;
1212 o
= PyInt_FromLong((long) (*_arg1
));
1213 _resultobj
= t_output_helper(_resultobj
, o
);
1217 o
= PyInt_FromLong((long) (*_arg2
));
1218 _resultobj
= t_output_helper(_resultobj
, o
);
1223 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1224 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1225 PyObject
* _resultobj
;
1229 PyObject
* _argo0
= 0;
1231 PyObject
* _obj1
= 0;
1232 char *_kwnames
[] = { "self","pt", NULL
};
1236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1247 if (! wxPoint_helper(_obj1
, &_arg1
))
1251 wxPy_BEGIN_ALLOW_THREADS
;
1252 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1254 wxPy_END_ALLOW_THREADS
;
1255 if (PyErr_Occurred()) return NULL
;
1256 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1257 _resultobj
= Py_BuildValue("s",_ptemp
);
1261 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1262 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1263 PyObject
* _resultobj
;
1266 int _arg1
= (int ) FALSE
;
1267 PyObject
* _argo0
= 0;
1268 char *_kwnames
[] = { "self","force", NULL
};
1271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1281 wxPy_BEGIN_ALLOW_THREADS
;
1282 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1284 wxPy_END_ALLOW_THREADS
;
1285 if (PyErr_Occurred()) return NULL
;
1286 } _resultobj
= Py_BuildValue("i",_result
);
1290 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1291 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1292 PyObject
* _resultobj
;
1295 PyObject
* _argo0
= 0;
1296 char *_kwnames
[] = { "self", NULL
};
1299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1309 wxPy_BEGIN_ALLOW_THREADS
;
1310 _result
= (bool )wxWindow_Destroy(_arg0
);
1312 wxPy_END_ALLOW_THREADS
;
1313 if (PyErr_Occurred()) return NULL
;
1314 } _resultobj
= Py_BuildValue("i",_result
);
1318 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1319 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1320 PyObject
* _resultobj
;
1322 PyObject
* _argo0
= 0;
1323 char *_kwnames
[] = { "self", NULL
};
1326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1336 wxPy_BEGIN_ALLOW_THREADS
;
1337 wxWindow_DestroyChildren(_arg0
);
1339 wxPy_END_ALLOW_THREADS
;
1340 if (PyErr_Occurred()) return NULL
;
1341 } Py_INCREF(Py_None
);
1342 _resultobj
= Py_None
;
1346 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1347 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1348 PyObject
* _resultobj
;
1351 PyObject
* _argo0
= 0;
1352 char *_kwnames
[] = { "self", NULL
};
1355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1365 wxPy_BEGIN_ALLOW_THREADS
;
1366 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1368 wxPy_END_ALLOW_THREADS
;
1369 if (PyErr_Occurred()) return NULL
;
1370 } _resultobj
= Py_BuildValue("i",_result
);
1374 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1375 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1376 PyObject
* _resultobj
;
1379 PyObject
* _argo0
= 0;
1381 char *_kwnames
[] = { "self","enable", NULL
};
1384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1393 _arg1
= (bool ) tempbool1
;
1395 wxPy_BEGIN_ALLOW_THREADS
;
1396 wxWindow_Enable(_arg0
,_arg1
);
1398 wxPy_END_ALLOW_THREADS
;
1399 if (PyErr_Occurred()) return NULL
;
1400 } Py_INCREF(Py_None
);
1401 _resultobj
= Py_None
;
1405 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1406 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1407 PyObject
* _resultobj
;
1411 PyObject
* _argo0
= 0;
1412 char *_kwnames
[] = { "self","id", NULL
};
1415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1425 wxPy_BEGIN_ALLOW_THREADS
;
1426 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1428 wxPy_END_ALLOW_THREADS
;
1429 if (PyErr_Occurred()) return NULL
;
1430 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1434 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1435 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1436 PyObject
* _resultobj
;
1440 PyObject
* _argo0
= 0;
1441 PyObject
* _obj1
= 0;
1442 char *_kwnames
[] = { "self","name", NULL
};
1445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1455 #if PYTHON_API_VERSION >= 1009
1456 char* tmpPtr
; int tmpSize
;
1457 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1458 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1461 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1463 _arg1
= new wxString(tmpPtr
, tmpSize
);
1465 if (!PyString_Check(_obj1
)) {
1466 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1469 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1473 wxPy_BEGIN_ALLOW_THREADS
;
1474 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1476 wxPy_END_ALLOW_THREADS
;
1477 if (PyErr_Occurred()) return NULL
;
1478 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1486 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1487 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1488 PyObject
* _resultobj
;
1490 PyObject
* _argo0
= 0;
1491 char *_kwnames
[] = { "self", NULL
};
1494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1504 wxPy_BEGIN_ALLOW_THREADS
;
1505 wxWindow_Fit(_arg0
);
1507 wxPy_END_ALLOW_THREADS
;
1508 if (PyErr_Occurred()) return NULL
;
1509 } Py_INCREF(Py_None
);
1510 _resultobj
= Py_None
;
1514 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1515 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1516 PyObject
* _resultobj
;
1519 PyObject
* _argo0
= 0;
1520 char *_kwnames
[] = { "self", NULL
};
1524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1534 wxPy_BEGIN_ALLOW_THREADS
;
1535 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1537 wxPy_END_ALLOW_THREADS
;
1538 if (PyErr_Occurred()) return NULL
;
1539 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1540 _resultobj
= Py_BuildValue("s",_ptemp
);
1544 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1545 wxWindowList
& list
= self
->GetChildren();
1546 return wxPy_ConvertList(&list
, "wxWindow");
1548 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1549 PyObject
* _resultobj
;
1552 PyObject
* _argo0
= 0;
1553 char *_kwnames
[] = { "self", NULL
};
1556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1566 wxPy_BEGIN_ALLOW_THREADS
;
1567 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1569 wxPy_END_ALLOW_THREADS
;
1570 if (PyErr_Occurred()) return NULL
;
1572 _resultobj
= _result
;
1577 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1578 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1579 PyObject
* _resultobj
;
1582 PyObject
* _argo0
= 0;
1583 char *_kwnames
[] = { "self", NULL
};
1586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1596 wxPy_BEGIN_ALLOW_THREADS
;
1597 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1599 wxPy_END_ALLOW_THREADS
;
1600 if (PyErr_Occurred()) return NULL
;
1601 } _resultobj
= Py_BuildValue("i",_result
);
1605 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1606 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1607 PyObject
* _resultobj
;
1610 PyObject
* _argo0
= 0;
1611 char *_kwnames
[] = { "self", NULL
};
1614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1624 wxPy_BEGIN_ALLOW_THREADS
;
1625 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1627 wxPy_END_ALLOW_THREADS
;
1628 if (PyErr_Occurred()) return NULL
;
1629 } _resultobj
= Py_BuildValue("i",_result
);
1633 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1634 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1635 PyObject
* _resultobj
;
1641 PyObject
* _argo0
= 0;
1642 char *_kwnames
[] = { "self", NULL
};
1651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1661 wxPy_BEGIN_ALLOW_THREADS
;
1662 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1664 wxPy_END_ALLOW_THREADS
;
1665 if (PyErr_Occurred()) return NULL
;
1666 } Py_INCREF(Py_None
);
1667 _resultobj
= Py_None
;
1670 o
= PyInt_FromLong((long) (*_arg1
));
1671 _resultobj
= t_output_helper(_resultobj
, o
);
1675 o
= PyInt_FromLong((long) (*_arg2
));
1676 _resultobj
= t_output_helper(_resultobj
, o
);
1681 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1682 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1683 PyObject
* _resultobj
;
1686 PyObject
* _argo0
= 0;
1687 char *_kwnames
[] = { "self", NULL
};
1691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1701 wxPy_BEGIN_ALLOW_THREADS
;
1702 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1704 wxPy_END_ALLOW_THREADS
;
1705 if (PyErr_Occurred()) return NULL
;
1706 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1707 _resultobj
= Py_BuildValue("s",_ptemp
);
1711 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1712 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1713 PyObject
* _resultobj
;
1714 wxLayoutConstraints
* _result
;
1716 PyObject
* _argo0
= 0;
1717 char *_kwnames
[] = { "self", NULL
};
1721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1731 wxPy_BEGIN_ALLOW_THREADS
;
1732 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1734 wxPy_END_ALLOW_THREADS
;
1735 if (PyErr_Occurred()) return NULL
;
1737 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1738 _resultobj
= Py_BuildValue("s",_ptemp
);
1741 _resultobj
= Py_None
;
1746 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1747 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
* _resultobj
;
1749 wxEvtHandler
* _result
;
1751 PyObject
* _argo0
= 0;
1752 char *_kwnames
[] = { "self", NULL
};
1755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1765 wxPy_BEGIN_ALLOW_THREADS
;
1766 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1768 wxPy_END_ALLOW_THREADS
;
1769 if (PyErr_Occurred()) return NULL
;
1770 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1774 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1775 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1776 PyObject
* _resultobj
;
1779 PyObject
* _argo0
= 0;
1780 char *_kwnames
[] = { "self", NULL
};
1784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1794 wxPy_BEGIN_ALLOW_THREADS
;
1795 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1796 _result
= (wxFont
*) &_result_ref
;
1798 wxPy_END_ALLOW_THREADS
;
1799 if (PyErr_Occurred()) return NULL
;
1801 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1802 _resultobj
= Py_BuildValue("s",_ptemp
);
1805 _resultobj
= Py_None
;
1810 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1811 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1812 PyObject
* _resultobj
;
1815 PyObject
* _argo0
= 0;
1816 char *_kwnames
[] = { "self", NULL
};
1820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1830 wxPy_BEGIN_ALLOW_THREADS
;
1831 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1833 wxPy_END_ALLOW_THREADS
;
1834 if (PyErr_Occurred()) return NULL
;
1835 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1836 _resultobj
= Py_BuildValue("s",_ptemp
);
1840 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1841 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
* _resultobj
;
1845 PyObject
* _argo0
= 0;
1846 char *_kwnames
[] = { "self", NULL
};
1849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1859 wxPy_BEGIN_ALLOW_THREADS
;
1860 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1862 wxPy_END_ALLOW_THREADS
;
1863 if (PyErr_Occurred()) return NULL
;
1864 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1868 static long wxWindow_GetHandle(wxWindow
*self
) {
1869 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1871 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
* _resultobj
;
1875 PyObject
* _argo0
= 0;
1876 char *_kwnames
[] = { "self", NULL
};
1879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1889 wxPy_BEGIN_ALLOW_THREADS
;
1890 _result
= (long )wxWindow_GetHandle(_arg0
);
1892 wxPy_END_ALLOW_THREADS
;
1893 if (PyErr_Occurred()) return NULL
;
1894 } _resultobj
= Py_BuildValue("l",_result
);
1898 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1899 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1900 PyObject
* _resultobj
;
1903 PyObject
* _argo0
= 0;
1904 char *_kwnames
[] = { "self", NULL
};
1907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1917 wxPy_BEGIN_ALLOW_THREADS
;
1918 _result
= (int )wxWindow_GetId(_arg0
);
1920 wxPy_END_ALLOW_THREADS
;
1921 if (PyErr_Occurred()) return NULL
;
1922 } _resultobj
= Py_BuildValue("i",_result
);
1926 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1927 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1928 PyObject
* _resultobj
;
1931 PyObject
* _argo0
= 0;
1932 char *_kwnames
[] = { "self", NULL
};
1935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
1938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1945 wxPy_BEGIN_ALLOW_THREADS
;
1946 _result
= new wxString (wxWindow_GetLabel(_arg0
));
1948 wxPy_END_ALLOW_THREADS
;
1949 if (PyErr_Occurred()) return NULL
;
1951 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1959 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1960 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1961 PyObject
* _resultobj
;
1964 PyObject
* _argo0
= 0;
1965 PyObject
* _obj1
= 0;
1966 char *_kwnames
[] = { "self","label", NULL
};
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
1972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
1979 #if PYTHON_API_VERSION >= 1009
1980 char* tmpPtr
; int tmpSize
;
1981 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1982 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1985 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1987 _arg1
= new wxString(tmpPtr
, tmpSize
);
1989 if (!PyString_Check(_obj1
)) {
1990 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1993 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1997 wxPy_BEGIN_ALLOW_THREADS
;
1998 wxWindow_SetLabel(_arg0
,*_arg1
);
2000 wxPy_END_ALLOW_THREADS
;
2001 if (PyErr_Occurred()) return NULL
;
2002 } Py_INCREF(Py_None
);
2003 _resultobj
= Py_None
;
2011 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2012 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2013 PyObject
* _resultobj
;
2016 PyObject
* _argo0
= 0;
2017 char *_kwnames
[] = { "self", NULL
};
2020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2030 wxPy_BEGIN_ALLOW_THREADS
;
2031 _result
= new wxString (wxWindow_GetName(_arg0
));
2033 wxPy_END_ALLOW_THREADS
;
2034 if (PyErr_Occurred()) return NULL
;
2036 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2044 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2045 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2046 PyObject
* _resultobj
;
2049 PyObject
* _argo0
= 0;
2050 char *_kwnames
[] = { "self", NULL
};
2053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2063 wxPy_BEGIN_ALLOW_THREADS
;
2064 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2066 wxPy_END_ALLOW_THREADS
;
2067 if (PyErr_Occurred()) return NULL
;
2068 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2072 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2073 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2074 PyObject
* _resultobj
;
2080 PyObject
* _argo0
= 0;
2081 char *_kwnames
[] = { "self", NULL
};
2090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2100 wxPy_BEGIN_ALLOW_THREADS
;
2101 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2103 wxPy_END_ALLOW_THREADS
;
2104 if (PyErr_Occurred()) return NULL
;
2105 } Py_INCREF(Py_None
);
2106 _resultobj
= Py_None
;
2109 o
= PyInt_FromLong((long) (*_arg1
));
2110 _resultobj
= t_output_helper(_resultobj
, o
);
2114 o
= PyInt_FromLong((long) (*_arg2
));
2115 _resultobj
= t_output_helper(_resultobj
, o
);
2120 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2121 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2122 PyObject
* _resultobj
;
2125 PyObject
* _argo0
= 0;
2126 char *_kwnames
[] = { "self", NULL
};
2130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2140 wxPy_BEGIN_ALLOW_THREADS
;
2141 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2143 wxPy_END_ALLOW_THREADS
;
2144 if (PyErr_Occurred()) return NULL
;
2145 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2146 _resultobj
= Py_BuildValue("s",_ptemp
);
2150 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2151 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2152 PyObject
* _resultobj
;
2155 PyObject
* _argo0
= 0;
2156 char *_kwnames
[] = { "self", NULL
};
2160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2170 wxPy_BEGIN_ALLOW_THREADS
;
2171 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2173 wxPy_END_ALLOW_THREADS
;
2174 if (PyErr_Occurred()) return NULL
;
2175 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2176 _resultobj
= Py_BuildValue("s",_ptemp
);
2180 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2181 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2182 PyObject
* _resultobj
;
2186 PyObject
* _argo0
= 0;
2187 char *_kwnames
[] = { "self","orientation", NULL
};
2190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2200 wxPy_BEGIN_ALLOW_THREADS
;
2201 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2203 wxPy_END_ALLOW_THREADS
;
2204 if (PyErr_Occurred()) return NULL
;
2205 } _resultobj
= Py_BuildValue("i",_result
);
2209 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2210 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2211 PyObject
* _resultobj
;
2215 PyObject
* _argo0
= 0;
2216 char *_kwnames
[] = { "self","orientation", NULL
};
2219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2229 wxPy_BEGIN_ALLOW_THREADS
;
2230 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2232 wxPy_END_ALLOW_THREADS
;
2233 if (PyErr_Occurred()) return NULL
;
2234 } _resultobj
= Py_BuildValue("i",_result
);
2238 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2239 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2240 PyObject
* _resultobj
;
2244 PyObject
* _argo0
= 0;
2245 char *_kwnames
[] = { "self","orientation", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2258 wxPy_BEGIN_ALLOW_THREADS
;
2259 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2261 wxPy_END_ALLOW_THREADS
;
2262 if (PyErr_Occurred()) return NULL
;
2263 } _resultobj
= Py_BuildValue("i",_result
);
2267 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2268 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2269 PyObject
* _resultobj
;
2275 PyObject
* _argo0
= 0;
2276 char *_kwnames
[] = { "self", NULL
};
2285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2295 wxPy_BEGIN_ALLOW_THREADS
;
2296 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2298 wxPy_END_ALLOW_THREADS
;
2299 if (PyErr_Occurred()) return NULL
;
2300 } Py_INCREF(Py_None
);
2301 _resultobj
= Py_None
;
2304 o
= PyInt_FromLong((long) (*_arg1
));
2305 _resultobj
= t_output_helper(_resultobj
, o
);
2309 o
= PyInt_FromLong((long) (*_arg2
));
2310 _resultobj
= t_output_helper(_resultobj
, o
);
2315 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2316 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2317 PyObject
* _resultobj
;
2320 PyObject
* _argo0
= 0;
2321 char *_kwnames
[] = { "self", NULL
};
2325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2335 wxPy_BEGIN_ALLOW_THREADS
;
2336 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2338 wxPy_END_ALLOW_THREADS
;
2339 if (PyErr_Occurred()) return NULL
;
2340 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2341 _resultobj
= Py_BuildValue("s",_ptemp
);
2345 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2346 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2347 PyObject
* _resultobj
;
2354 PyObject
* _argo0
= 0;
2355 PyObject
* _obj1
= 0;
2356 char *_kwnames
[] = { "self","string", NULL
};
2365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2375 #if PYTHON_API_VERSION >= 1009
2376 char* tmpPtr
; int tmpSize
;
2377 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2378 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2381 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2383 _arg1
= new wxString(tmpPtr
, tmpSize
);
2385 if (!PyString_Check(_obj1
)) {
2386 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2389 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2393 wxPy_BEGIN_ALLOW_THREADS
;
2394 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2396 wxPy_END_ALLOW_THREADS
;
2397 if (PyErr_Occurred()) return NULL
;
2398 } Py_INCREF(Py_None
);
2399 _resultobj
= Py_None
;
2402 o
= PyInt_FromLong((long) (*_arg2
));
2403 _resultobj
= t_output_helper(_resultobj
, o
);
2407 o
= PyInt_FromLong((long) (*_arg3
));
2408 _resultobj
= t_output_helper(_resultobj
, o
);
2417 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2418 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2419 PyObject
* _resultobj
;
2430 wxFont
* _arg6
= (wxFont
*) NULL
;
2431 PyObject
* _argo0
= 0;
2432 PyObject
* _obj1
= 0;
2433 PyObject
* _argo6
= 0;
2434 char *_kwnames
[] = { "self","string","font", NULL
};
2449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2459 #if PYTHON_API_VERSION >= 1009
2460 char* tmpPtr
; int tmpSize
;
2461 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2462 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2465 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2467 _arg1
= new wxString(tmpPtr
, tmpSize
);
2469 if (!PyString_Check(_obj1
)) {
2470 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2473 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2477 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2478 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2484 wxPy_BEGIN_ALLOW_THREADS
;
2485 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2487 wxPy_END_ALLOW_THREADS
;
2488 if (PyErr_Occurred()) return NULL
;
2489 } Py_INCREF(Py_None
);
2490 _resultobj
= Py_None
;
2493 o
= PyInt_FromLong((long) (*_arg2
));
2494 _resultobj
= t_output_helper(_resultobj
, o
);
2498 o
= PyInt_FromLong((long) (*_arg3
));
2499 _resultobj
= t_output_helper(_resultobj
, o
);
2503 o
= PyInt_FromLong((long) (*_arg4
));
2504 _resultobj
= t_output_helper(_resultobj
, o
);
2508 o
= PyInt_FromLong((long) (*_arg5
));
2509 _resultobj
= t_output_helper(_resultobj
, o
);
2518 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2519 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2520 PyObject
* _resultobj
;
2523 PyObject
* _argo0
= 0;
2524 char *_kwnames
[] = { "self", NULL
};
2527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2537 wxPy_BEGIN_ALLOW_THREADS
;
2538 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2540 wxPy_END_ALLOW_THREADS
;
2541 if (PyErr_Occurred()) return NULL
;
2543 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2551 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2552 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2553 PyObject
* _resultobj
;
2556 PyObject
* _argo0
= 0;
2557 char *_kwnames
[] = { "self", NULL
};
2561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2571 wxPy_BEGIN_ALLOW_THREADS
;
2572 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2574 wxPy_END_ALLOW_THREADS
;
2575 if (PyErr_Occurred()) return NULL
;
2576 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2577 _resultobj
= Py_BuildValue("s",_ptemp
);
2581 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2582 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2583 PyObject
* _resultobj
;
2586 PyObject
* _argo0
= 0;
2587 char *_kwnames
[] = { "self", NULL
};
2590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2600 wxPy_BEGIN_ALLOW_THREADS
;
2601 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2603 wxPy_END_ALLOW_THREADS
;
2604 if (PyErr_Occurred()) return NULL
;
2605 } _resultobj
= Py_BuildValue("l",_result
);
2609 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2610 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
* _resultobj
;
2614 PyObject
* _argo0
= 0;
2615 char *_kwnames
[] = { "self","style", NULL
};
2618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2628 wxPy_BEGIN_ALLOW_THREADS
;
2629 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2631 wxPy_END_ALLOW_THREADS
;
2632 if (PyErr_Occurred()) return NULL
;
2633 } Py_INCREF(Py_None
);
2634 _resultobj
= Py_None
;
2638 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2639 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2640 PyObject
* _resultobj
;
2643 PyObject
* _argo0
= 0;
2644 char *_kwnames
[] = { "self","style", NULL
};
2647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2657 wxPy_BEGIN_ALLOW_THREADS
;
2658 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2660 wxPy_END_ALLOW_THREADS
;
2661 if (PyErr_Occurred()) return NULL
;
2662 } Py_INCREF(Py_None
);
2663 _resultobj
= Py_None
;
2667 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2668 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2669 PyObject
* _resultobj
;
2672 PyObject
* _argo0
= 0;
2673 char *_kwnames
[] = { "self", NULL
};
2676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2686 wxPy_BEGIN_ALLOW_THREADS
;
2687 _result
= (bool )wxWindow_Hide(_arg0
);
2689 wxPy_END_ALLOW_THREADS
;
2690 if (PyErr_Occurred()) return NULL
;
2691 } _resultobj
= Py_BuildValue("i",_result
);
2695 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2696 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2697 PyObject
* _resultobj
;
2699 PyObject
* _argo0
= 0;
2700 char *_kwnames
[] = { "self", NULL
};
2703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2713 wxPy_BEGIN_ALLOW_THREADS
;
2714 wxWindow_InitDialog(_arg0
);
2716 wxPy_END_ALLOW_THREADS
;
2717 if (PyErr_Occurred()) return NULL
;
2718 } Py_INCREF(Py_None
);
2719 _resultobj
= Py_None
;
2723 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2724 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2725 PyObject
* _resultobj
;
2728 PyObject
* _argo0
= 0;
2729 char *_kwnames
[] = { "self", NULL
};
2732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2742 wxPy_BEGIN_ALLOW_THREADS
;
2743 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2745 wxPy_END_ALLOW_THREADS
;
2746 if (PyErr_Occurred()) return NULL
;
2747 } _resultobj
= Py_BuildValue("i",_result
);
2751 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2752 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2753 PyObject
* _resultobj
;
2758 int _arg3
= (int ) 0;
2759 int _arg4
= (int ) 0;
2760 PyObject
* _argo0
= 0;
2761 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2774 wxPy_BEGIN_ALLOW_THREADS
;
2775 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2777 wxPy_END_ALLOW_THREADS
;
2778 if (PyErr_Occurred()) return NULL
;
2779 } _resultobj
= Py_BuildValue("i",_result
);
2783 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2784 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2785 PyObject
* _resultobj
;
2789 PyObject
* _argo0
= 0;
2791 PyObject
* _obj1
= 0;
2792 char *_kwnames
[] = { "self","pt", NULL
};
2795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2806 if (! wxPoint_helper(_obj1
, &_arg1
))
2810 wxPy_BEGIN_ALLOW_THREADS
;
2811 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2813 wxPy_END_ALLOW_THREADS
;
2814 if (PyErr_Occurred()) return NULL
;
2815 } _resultobj
= Py_BuildValue("i",_result
);
2819 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2820 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
* _resultobj
;
2825 PyObject
* _argo0
= 0;
2827 PyObject
* _obj1
= 0;
2828 char *_kwnames
[] = { "self","rect", NULL
};
2831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2842 if (! wxRect_helper(_obj1
, &_arg1
))
2846 wxPy_BEGIN_ALLOW_THREADS
;
2847 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2849 wxPy_END_ALLOW_THREADS
;
2850 if (PyErr_Occurred()) return NULL
;
2851 } _resultobj
= Py_BuildValue("i",_result
);
2855 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2856 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2857 PyObject
* _resultobj
;
2860 PyObject
* _argo0
= 0;
2861 char *_kwnames
[] = { "self", NULL
};
2864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2874 wxPy_BEGIN_ALLOW_THREADS
;
2875 _result
= (bool )wxWindow_IsRetained(_arg0
);
2877 wxPy_END_ALLOW_THREADS
;
2878 if (PyErr_Occurred()) return NULL
;
2879 } _resultobj
= Py_BuildValue("i",_result
);
2883 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2884 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2885 PyObject
* _resultobj
;
2888 PyObject
* _argo0
= 0;
2889 char *_kwnames
[] = { "self", NULL
};
2892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2902 wxPy_BEGIN_ALLOW_THREADS
;
2903 _result
= (bool )wxWindow_IsShown(_arg0
);
2905 wxPy_END_ALLOW_THREADS
;
2906 if (PyErr_Occurred()) return NULL
;
2907 } _resultobj
= Py_BuildValue("i",_result
);
2911 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2912 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2913 PyObject
* _resultobj
;
2916 PyObject
* _argo0
= 0;
2917 char *_kwnames
[] = { "self", NULL
};
2920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
2923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2930 wxPy_BEGIN_ALLOW_THREADS
;
2931 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2933 wxPy_END_ALLOW_THREADS
;
2934 if (PyErr_Occurred()) return NULL
;
2935 } _resultobj
= Py_BuildValue("i",_result
);
2939 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2940 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2941 PyObject
* _resultobj
;
2943 PyObject
* _argo0
= 0;
2944 char *_kwnames
[] = { "self", NULL
};
2947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
2950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2957 wxPy_BEGIN_ALLOW_THREADS
;
2958 wxWindow_Layout(_arg0
);
2960 wxPy_END_ALLOW_THREADS
;
2961 if (PyErr_Occurred()) return NULL
;
2962 } Py_INCREF(Py_None
);
2963 _resultobj
= Py_None
;
2967 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2968 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2969 PyObject
* _resultobj
;
2974 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
2975 PyObject
* _argo0
= 0;
2976 PyObject
* _argo1
= 0;
2977 PyObject
* _obj2
= 0;
2978 PyObject
* _argo3
= 0;
2979 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
2982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
2985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2992 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2993 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2999 #if PYTHON_API_VERSION >= 1009
3000 char* tmpPtr
; int tmpSize
;
3001 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3002 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3005 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3007 _arg2
= new wxString(tmpPtr
, tmpSize
);
3009 if (!PyString_Check(_obj2
)) {
3010 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3013 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3017 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3018 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3024 wxPy_BEGIN_ALLOW_THREADS
;
3025 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3027 wxPy_END_ALLOW_THREADS
;
3028 if (PyErr_Occurred()) return NULL
;
3029 } _resultobj
= Py_BuildValue("i",_result
);
3037 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3038 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3039 PyObject
* _resultobj
;
3041 PyObject
* _argo0
= 0;
3042 char *_kwnames
[] = { "self", NULL
};
3045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3055 wxPy_BEGIN_ALLOW_THREADS
;
3056 wxWindow_Lower(_arg0
);
3058 wxPy_END_ALLOW_THREADS
;
3059 if (PyErr_Occurred()) return NULL
;
3060 } Py_INCREF(Py_None
);
3061 _resultobj
= Py_None
;
3065 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3066 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3067 PyObject
* _resultobj
;
3070 PyObject
* _argo0
= 0;
3072 char *_kwnames
[] = { "self","flag", NULL
};
3075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3084 _arg1
= (bool ) tempbool1
;
3086 wxPy_BEGIN_ALLOW_THREADS
;
3087 wxWindow_MakeModal(_arg0
,_arg1
);
3089 wxPy_END_ALLOW_THREADS
;
3090 if (PyErr_Occurred()) return NULL
;
3091 } Py_INCREF(Py_None
);
3092 _resultobj
= Py_None
;
3096 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3097 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3098 PyObject
* _resultobj
;
3102 PyObject
* _argo0
= 0;
3103 char *_kwnames
[] = { "self","x","y", NULL
};
3106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3116 wxPy_BEGIN_ALLOW_THREADS
;
3117 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3119 wxPy_END_ALLOW_THREADS
;
3120 if (PyErr_Occurred()) return NULL
;
3121 } Py_INCREF(Py_None
);
3122 _resultobj
= Py_None
;
3126 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3127 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3128 PyObject
* _resultobj
;
3131 PyObject
* _argo0
= 0;
3133 PyObject
* _obj1
= 0;
3134 char *_kwnames
[] = { "self","point", NULL
};
3137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3148 if (! wxPoint_helper(_obj1
, &_arg1
))
3152 wxPy_BEGIN_ALLOW_THREADS
;
3153 wxWindow_Move(_arg0
,*_arg1
);
3155 wxPy_END_ALLOW_THREADS
;
3156 if (PyErr_Occurred()) return NULL
;
3157 } Py_INCREF(Py_None
);
3158 _resultobj
= Py_None
;
3162 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3163 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
* _resultobj
;
3165 wxEvtHandler
* _result
;
3167 bool _arg1
= (bool ) FALSE
;
3168 PyObject
* _argo0
= 0;
3169 int tempbool1
= (int) FALSE
;
3170 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3182 _arg1
= (bool ) tempbool1
;
3184 wxPy_BEGIN_ALLOW_THREADS
;
3185 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3187 wxPy_END_ALLOW_THREADS
;
3188 if (PyErr_Occurred()) return NULL
;
3189 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3193 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3194 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3195 PyObject
* _resultobj
;
3197 wxEvtHandler
* _arg1
;
3198 PyObject
* _argo0
= 0;
3199 PyObject
* _argo1
= 0;
3200 char *_kwnames
[] = { "self","handler", NULL
};
3203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3213 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3214 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3220 wxPy_BEGIN_ALLOW_THREADS
;
3221 wxWindow_PushEventHandler(_arg0
,_arg1
);
3223 wxPy_END_ALLOW_THREADS
;
3224 if (PyErr_Occurred()) return NULL
;
3225 } Py_INCREF(Py_None
);
3226 _resultobj
= Py_None
;
3230 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3231 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3232 PyObject
* _resultobj
;
3238 PyObject
* _argo0
= 0;
3239 PyObject
* _argo1
= 0;
3240 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3253 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3254 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3260 wxPy_BEGIN_ALLOW_THREADS
;
3261 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3263 wxPy_END_ALLOW_THREADS
;
3264 if (PyErr_Occurred()) return NULL
;
3265 } _resultobj
= Py_BuildValue("i",_result
);
3269 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3270 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3271 PyObject
* _resultobj
;
3276 PyObject
* _argo0
= 0;
3277 PyObject
* _argo1
= 0;
3279 PyObject
* _obj2
= 0;
3280 char *_kwnames
[] = { "self","menu","pos", NULL
};
3283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3293 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3294 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3301 if (! wxPoint_helper(_obj2
, &_arg2
))
3305 wxPy_BEGIN_ALLOW_THREADS
;
3306 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3308 wxPy_END_ALLOW_THREADS
;
3309 if (PyErr_Occurred()) return NULL
;
3310 } _resultobj
= Py_BuildValue("i",_result
);
3314 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3315 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3316 PyObject
* _resultobj
;
3318 PyObject
* _argo0
= 0;
3319 char *_kwnames
[] = { "self", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3332 wxPy_BEGIN_ALLOW_THREADS
;
3333 wxWindow_Raise(_arg0
);
3335 wxPy_END_ALLOW_THREADS
;
3336 if (PyErr_Occurred()) return NULL
;
3337 } Py_INCREF(Py_None
);
3338 _resultobj
= Py_None
;
3342 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3343 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3344 PyObject
* _resultobj
;
3346 bool _arg1
= (bool ) TRUE
;
3347 wxRect
* _arg2
= (wxRect
*) NULL
;
3348 PyObject
* _argo0
= 0;
3349 int tempbool1
= (int) TRUE
;
3351 PyObject
* _obj2
= 0;
3352 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3364 _arg1
= (bool ) tempbool1
;
3368 if (! wxRect_helper(_obj2
, &_arg2
))
3372 wxPy_BEGIN_ALLOW_THREADS
;
3373 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3375 wxPy_END_ALLOW_THREADS
;
3376 if (PyErr_Occurred()) return NULL
;
3377 } Py_INCREF(Py_None
);
3378 _resultobj
= Py_None
;
3382 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3383 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3384 PyObject
* _resultobj
;
3386 PyObject
* _argo0
= 0;
3387 char *_kwnames
[] = { "self", NULL
};
3390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3400 wxPy_BEGIN_ALLOW_THREADS
;
3401 wxWindow_ReleaseMouse(_arg0
);
3403 wxPy_END_ALLOW_THREADS
;
3404 if (PyErr_Occurred()) return NULL
;
3405 } Py_INCREF(Py_None
);
3406 _resultobj
= Py_None
;
3410 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3411 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3412 PyObject
* _resultobj
;
3415 PyObject
* _argo0
= 0;
3416 PyObject
* _argo1
= 0;
3417 char *_kwnames
[] = { "self","child", NULL
};
3420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3430 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3431 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3437 wxPy_BEGIN_ALLOW_THREADS
;
3438 wxWindow_RemoveChild(_arg0
,_arg1
);
3440 wxPy_END_ALLOW_THREADS
;
3441 if (PyErr_Occurred()) return NULL
;
3442 } Py_INCREF(Py_None
);
3443 _resultobj
= Py_None
;
3447 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3448 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3449 PyObject
* _resultobj
;
3453 PyObject
* _argo0
= 0;
3454 PyObject
* _argo1
= 0;
3455 char *_kwnames
[] = { "self","newParent", NULL
};
3458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3468 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3469 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3475 wxPy_BEGIN_ALLOW_THREADS
;
3476 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3478 wxPy_END_ALLOW_THREADS
;
3479 if (PyErr_Occurred()) return NULL
;
3480 } _resultobj
= Py_BuildValue("i",_result
);
3484 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3485 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3486 PyObject
* _resultobj
;
3490 PyObject
* _argo0
= 0;
3492 PyObject
* _obj1
= 0;
3494 PyObject
* _obj2
= 0;
3495 char *_kwnames
[] = { "self","x","y", NULL
};
3498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3508 temp
= (int) PyInt_AsLong(_obj1
);
3512 temp0
= (int) PyInt_AsLong(_obj2
);
3516 wxPy_BEGIN_ALLOW_THREADS
;
3517 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3519 wxPy_END_ALLOW_THREADS
;
3520 if (PyErr_Occurred()) return NULL
;
3521 } Py_INCREF(Py_None
);
3522 _resultobj
= Py_None
;
3525 o
= PyInt_FromLong((long) (*_arg1
));
3526 _resultobj
= t_output_helper(_resultobj
, o
);
3530 o
= PyInt_FromLong((long) (*_arg2
));
3531 _resultobj
= t_output_helper(_resultobj
, o
);
3536 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3537 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3538 PyObject
* _resultobj
;
3542 PyObject
* _argo0
= 0;
3544 PyObject
* _obj1
= 0;
3545 char *_kwnames
[] = { "self","pt", NULL
};
3549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3560 if (! wxPoint_helper(_obj1
, &_arg1
))
3564 wxPy_BEGIN_ALLOW_THREADS
;
3565 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3567 wxPy_END_ALLOW_THREADS
;
3568 if (PyErr_Occurred()) return NULL
;
3569 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3570 _resultobj
= Py_BuildValue("s",_ptemp
);
3574 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3575 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3576 PyObject
* _resultobj
;
3580 wxRect
* _arg3
= (wxRect
*) NULL
;
3581 PyObject
* _argo0
= 0;
3583 PyObject
* _obj3
= 0;
3584 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3599 if (! wxRect_helper(_obj3
, &_arg3
))
3603 wxPy_BEGIN_ALLOW_THREADS
;
3604 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3606 wxPy_END_ALLOW_THREADS
;
3607 if (PyErr_Occurred()) return NULL
;
3608 } Py_INCREF(Py_None
);
3609 _resultobj
= Py_None
;
3613 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3614 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3615 PyObject
* _resultobj
;
3617 wxAcceleratorTable
* _arg1
;
3618 PyObject
* _argo0
= 0;
3619 PyObject
* _argo1
= 0;
3620 char *_kwnames
[] = { "self","accel", NULL
};
3623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
3626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
3633 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3634 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
3635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3640 wxPy_BEGIN_ALLOW_THREADS
;
3641 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
3643 wxPy_END_ALLOW_THREADS
;
3644 if (PyErr_Occurred()) return NULL
;
3645 } Py_INCREF(Py_None
);
3646 _resultobj
= Py_None
;
3650 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3651 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3652 PyObject
* _resultobj
;
3655 PyObject
* _argo0
= 0;
3657 char *_kwnames
[] = { "self","autoLayout", NULL
};
3660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3669 _arg1
= (bool ) tempbool1
;
3671 wxPy_BEGIN_ALLOW_THREADS
;
3672 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3674 wxPy_END_ALLOW_THREADS
;
3675 if (PyErr_Occurred()) return NULL
;
3676 } Py_INCREF(Py_None
);
3677 _resultobj
= Py_None
;
3681 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3682 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3683 PyObject
* _resultobj
;
3686 PyObject
* _argo0
= 0;
3687 char *_kwnames
[] = { "self", NULL
};
3690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3700 wxPy_BEGIN_ALLOW_THREADS
;
3701 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3703 wxPy_END_ALLOW_THREADS
;
3704 if (PyErr_Occurred()) return NULL
;
3705 } _resultobj
= Py_BuildValue("i",_result
);
3709 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3710 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3711 PyObject
* _resultobj
;
3714 PyObject
* _argo0
= 0;
3716 PyObject
* _obj1
= 0;
3717 char *_kwnames
[] = { "self","colour", NULL
};
3720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3731 if (! wxColour_helper(_obj1
, &_arg1
))
3735 wxPy_BEGIN_ALLOW_THREADS
;
3736 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3738 wxPy_END_ALLOW_THREADS
;
3739 if (PyErr_Occurred()) return NULL
;
3740 } Py_INCREF(Py_None
);
3741 _resultobj
= Py_None
;
3745 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3746 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3747 PyObject
* _resultobj
;
3749 wxLayoutConstraints
* _arg1
;
3750 PyObject
* _argo0
= 0;
3751 PyObject
* _argo1
= 0;
3752 char *_kwnames
[] = { "self","constraints", NULL
};
3755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3765 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3766 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3772 wxPy_BEGIN_ALLOW_THREADS
;
3773 wxWindow_SetConstraints(_arg0
,_arg1
);
3775 wxPy_END_ALLOW_THREADS
;
3776 if (PyErr_Occurred()) return NULL
;
3777 } Py_INCREF(Py_None
);
3778 _resultobj
= Py_None
;
3782 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3783 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3784 PyObject
* _resultobj
;
3786 wxLayoutConstraints
* _arg1
;
3787 PyObject
* _argo0
= 0;
3788 PyObject
* _argo1
= 0;
3789 char *_kwnames
[] = { "self","constraints", NULL
};
3792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3802 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3803 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3809 wxPy_BEGIN_ALLOW_THREADS
;
3810 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3812 wxPy_END_ALLOW_THREADS
;
3813 if (PyErr_Occurred()) return NULL
;
3814 } Py_INCREF(Py_None
);
3815 _resultobj
= Py_None
;
3819 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3820 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3821 PyObject
* _resultobj
;
3823 PyObject
* _argo0
= 0;
3824 char *_kwnames
[] = { "self", NULL
};
3827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3837 wxPy_BEGIN_ALLOW_THREADS
;
3838 wxWindow_SetFocus(_arg0
);
3840 wxPy_END_ALLOW_THREADS
;
3841 if (PyErr_Occurred()) return NULL
;
3842 } Py_INCREF(Py_None
);
3843 _resultobj
= Py_None
;
3847 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3848 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3849 PyObject
* _resultobj
;
3852 PyObject
* _argo0
= 0;
3853 char *_kwnames
[] = { "self", NULL
};
3856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3866 wxPy_BEGIN_ALLOW_THREADS
;
3867 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3869 wxPy_END_ALLOW_THREADS
;
3870 if (PyErr_Occurred()) return NULL
;
3871 } _resultobj
= Py_BuildValue("i",_result
);
3875 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3876 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3877 PyObject
* _resultobj
;
3880 PyObject
* _argo0
= 0;
3881 PyObject
* _argo1
= 0;
3882 char *_kwnames
[] = { "self","font", NULL
};
3885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3895 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3896 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3902 wxPy_BEGIN_ALLOW_THREADS
;
3903 wxWindow_SetFont(_arg0
,*_arg1
);
3905 wxPy_END_ALLOW_THREADS
;
3906 if (PyErr_Occurred()) return NULL
;
3907 } Py_INCREF(Py_None
);
3908 _resultobj
= Py_None
;
3912 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3913 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3914 PyObject
* _resultobj
;
3917 PyObject
* _argo0
= 0;
3919 PyObject
* _obj1
= 0;
3920 char *_kwnames
[] = { "self","colour", NULL
};
3923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
3926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3934 if (! wxColour_helper(_obj1
, &_arg1
))
3938 wxPy_BEGIN_ALLOW_THREADS
;
3939 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3941 wxPy_END_ALLOW_THREADS
;
3942 if (PyErr_Occurred()) return NULL
;
3943 } Py_INCREF(Py_None
);
3944 _resultobj
= Py_None
;
3948 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3949 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3950 PyObject
* _resultobj
;
3953 PyObject
* _argo0
= 0;
3954 char *_kwnames
[] = { "self","id", NULL
};
3957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
3960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3967 wxPy_BEGIN_ALLOW_THREADS
;
3968 wxWindow_SetId(_arg0
,_arg1
);
3970 wxPy_END_ALLOW_THREADS
;
3971 if (PyErr_Occurred()) return NULL
;
3972 } Py_INCREF(Py_None
);
3973 _resultobj
= Py_None
;
3977 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
3978 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3979 PyObject
* _resultobj
;
3982 PyObject
* _argo0
= 0;
3983 PyObject
* _obj1
= 0;
3984 char *_kwnames
[] = { "self","name", NULL
};
3987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
3990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
3997 #if PYTHON_API_VERSION >= 1009
3998 char* tmpPtr
; int tmpSize
;
3999 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4000 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4003 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4005 _arg1
= new wxString(tmpPtr
, tmpSize
);
4007 if (!PyString_Check(_obj1
)) {
4008 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4011 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4015 wxPy_BEGIN_ALLOW_THREADS
;
4016 wxWindow_SetName(_arg0
,*_arg1
);
4018 wxPy_END_ALLOW_THREADS
;
4019 if (PyErr_Occurred()) return NULL
;
4020 } Py_INCREF(Py_None
);
4021 _resultobj
= Py_None
;
4029 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4030 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4031 PyObject
* _resultobj
;
4037 int _arg5
= (int ) TRUE
;
4038 PyObject
* _argo0
= 0;
4039 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4052 wxPy_BEGIN_ALLOW_THREADS
;
4053 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4055 wxPy_END_ALLOW_THREADS
;
4056 if (PyErr_Occurred()) return NULL
;
4057 } Py_INCREF(Py_None
);
4058 _resultobj
= Py_None
;
4062 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4063 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4064 PyObject
* _resultobj
;
4068 bool _arg3
= (bool ) TRUE
;
4069 PyObject
* _argo0
= 0;
4070 int tempbool3
= (int) TRUE
;
4071 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4083 _arg3
= (bool ) tempbool3
;
4085 wxPy_BEGIN_ALLOW_THREADS
;
4086 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4088 wxPy_END_ALLOW_THREADS
;
4089 if (PyErr_Occurred()) return NULL
;
4090 } Py_INCREF(Py_None
);
4091 _resultobj
= Py_None
;
4095 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4096 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4097 PyObject
* _resultobj
;
4103 int _arg5
= (int ) wxSIZE_AUTO
;
4104 PyObject
* _argo0
= 0;
4105 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4118 wxPy_BEGIN_ALLOW_THREADS
;
4119 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4121 wxPy_END_ALLOW_THREADS
;
4122 if (PyErr_Occurred()) return NULL
;
4123 } Py_INCREF(Py_None
);
4124 _resultobj
= Py_None
;
4128 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4129 self
->SetSize(size
);
4131 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4132 PyObject
* _resultobj
;
4135 PyObject
* _argo0
= 0;
4137 PyObject
* _obj1
= 0;
4138 char *_kwnames
[] = { "self","size", NULL
};
4141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4152 if (! wxSize_helper(_obj1
, &_arg1
))
4156 wxPy_BEGIN_ALLOW_THREADS
;
4157 wxWindow_SetSize(_arg0
,*_arg1
);
4159 wxPy_END_ALLOW_THREADS
;
4160 if (PyErr_Occurred()) return NULL
;
4161 } Py_INCREF(Py_None
);
4162 _resultobj
= Py_None
;
4166 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4169 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4170 PyObject
* _resultobj
;
4173 PyObject
* _argo0
= 0;
4175 PyObject
* _obj1
= 0;
4176 char *_kwnames
[] = { "self","pos", NULL
};
4179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4190 if (! wxPoint_helper(_obj1
, &_arg1
))
4194 wxPy_BEGIN_ALLOW_THREADS
;
4195 wxWindow_SetPosition(_arg0
,*_arg1
);
4197 wxPy_END_ALLOW_THREADS
;
4198 if (PyErr_Occurred()) return NULL
;
4199 } Py_INCREF(Py_None
);
4200 _resultobj
= Py_None
;
4204 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4205 self
->SetSize(rect
, sizeFlags
);
4207 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4208 PyObject
* _resultobj
;
4211 int _arg2
= (int ) wxSIZE_AUTO
;
4212 PyObject
* _argo0
= 0;
4214 PyObject
* _obj1
= 0;
4215 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4229 if (! wxRect_helper(_obj1
, &_arg1
))
4233 wxPy_BEGIN_ALLOW_THREADS
;
4234 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4236 wxPy_END_ALLOW_THREADS
;
4237 if (PyErr_Occurred()) return NULL
;
4238 } Py_INCREF(Py_None
);
4239 _resultobj
= Py_None
;
4243 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4244 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4245 PyObject
* _resultobj
;
4247 int _arg1
= (int ) -1;
4248 int _arg2
= (int ) -1;
4249 int _arg3
= (int ) -1;
4250 int _arg4
= (int ) -1;
4251 int _arg5
= (int ) -1;
4252 int _arg6
= (int ) -1;
4253 PyObject
* _argo0
= 0;
4254 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4267 wxPy_BEGIN_ALLOW_THREADS
;
4268 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4270 wxPy_END_ALLOW_THREADS
;
4271 if (PyErr_Occurred()) return NULL
;
4272 } Py_INCREF(Py_None
);
4273 _resultobj
= Py_None
;
4277 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4278 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4279 PyObject
* _resultobj
;
4283 PyObject
* _argo0
= 0;
4284 char *_kwnames
[] = { "self","width","height", NULL
};
4287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4297 wxPy_BEGIN_ALLOW_THREADS
;
4298 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4300 wxPy_END_ALLOW_THREADS
;
4301 if (PyErr_Occurred()) return NULL
;
4302 } Py_INCREF(Py_None
);
4303 _resultobj
= Py_None
;
4307 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4308 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4309 PyObject
* _resultobj
;
4312 PyObject
* _argo0
= 0;
4314 PyObject
* _obj1
= 0;
4315 char *_kwnames
[] = { "self","size", NULL
};
4318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4329 if (! wxSize_helper(_obj1
, &_arg1
))
4333 wxPy_BEGIN_ALLOW_THREADS
;
4334 wxWindow_SetClientSize(_arg0
,*_arg1
);
4336 wxPy_END_ALLOW_THREADS
;
4337 if (PyErr_Occurred()) return NULL
;
4338 } Py_INCREF(Py_None
);
4339 _resultobj
= Py_None
;
4343 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4344 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4345 PyObject
* _resultobj
;
4348 PyObject
* _argo0
= 0;
4349 PyObject
* _argo1
= 0;
4350 char *_kwnames
[] = { "self","cursor", NULL
};
4353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4363 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4364 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4370 wxPy_BEGIN_ALLOW_THREADS
;
4371 wxWindow_SetCursor(_arg0
,*_arg1
);
4373 wxPy_END_ALLOW_THREADS
;
4374 if (PyErr_Occurred()) return NULL
;
4375 } Py_INCREF(Py_None
);
4376 _resultobj
= Py_None
;
4380 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4381 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4382 PyObject
* _resultobj
;
4384 wxEvtHandler
* _arg1
;
4385 PyObject
* _argo0
= 0;
4386 PyObject
* _argo1
= 0;
4387 char *_kwnames
[] = { "self","handler", NULL
};
4390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4400 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4401 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4407 wxPy_BEGIN_ALLOW_THREADS
;
4408 wxWindow_SetEventHandler(_arg0
,_arg1
);
4410 wxPy_END_ALLOW_THREADS
;
4411 if (PyErr_Occurred()) return NULL
;
4412 } Py_INCREF(Py_None
);
4413 _resultobj
= Py_None
;
4417 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4418 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4419 PyObject
* _resultobj
;
4422 PyObject
* _argo0
= 0;
4423 char *_kwnames
[] = { "self","exStyle", NULL
};
4426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4436 wxPy_BEGIN_ALLOW_THREADS
;
4437 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4439 wxPy_END_ALLOW_THREADS
;
4440 if (PyErr_Occurred()) return NULL
;
4441 } Py_INCREF(Py_None
);
4442 _resultobj
= Py_None
;
4446 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4447 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4448 PyObject
* _resultobj
;
4451 PyObject
* _argo0
= 0;
4452 PyObject
* _obj1
= 0;
4453 char *_kwnames
[] = { "self","title", NULL
};
4456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4466 #if PYTHON_API_VERSION >= 1009
4467 char* tmpPtr
; int tmpSize
;
4468 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4469 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4472 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4474 _arg1
= new wxString(tmpPtr
, tmpSize
);
4476 if (!PyString_Check(_obj1
)) {
4477 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4480 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4484 wxPy_BEGIN_ALLOW_THREADS
;
4485 wxWindow_SetTitle(_arg0
,*_arg1
);
4487 wxPy_END_ALLOW_THREADS
;
4488 if (PyErr_Occurred()) return NULL
;
4489 } Py_INCREF(Py_None
);
4490 _resultobj
= Py_None
;
4498 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4499 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4500 PyObject
* _resultobj
;
4504 PyObject
* _argo0
= 0;
4506 char *_kwnames
[] = { "self","show", NULL
};
4509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4518 _arg1
= (bool ) tempbool1
;
4520 wxPy_BEGIN_ALLOW_THREADS
;
4521 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4523 wxPy_END_ALLOW_THREADS
;
4524 if (PyErr_Occurred()) return NULL
;
4525 } _resultobj
= Py_BuildValue("i",_result
);
4529 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4530 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4531 PyObject
* _resultobj
;
4534 PyObject
* _argo0
= 0;
4535 char *_kwnames
[] = { "self", NULL
};
4538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4548 wxPy_BEGIN_ALLOW_THREADS
;
4549 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4551 wxPy_END_ALLOW_THREADS
;
4552 if (PyErr_Occurred()) return NULL
;
4553 } _resultobj
= Py_BuildValue("i",_result
);
4557 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4558 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4559 PyObject
* _resultobj
;
4562 PyObject
* _argo0
= 0;
4563 char *_kwnames
[] = { "self", NULL
};
4566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4576 wxPy_BEGIN_ALLOW_THREADS
;
4577 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4579 wxPy_END_ALLOW_THREADS
;
4580 if (PyErr_Occurred()) return NULL
;
4581 } _resultobj
= Py_BuildValue("i",_result
);
4585 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4586 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4587 PyObject
* _resultobj
;
4590 PyObject
* _argo0
= 0;
4591 char *_kwnames
[] = { "self", NULL
};
4594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4604 wxPy_BEGIN_ALLOW_THREADS
;
4605 _result
= (bool )wxWindow_Validate(_arg0
);
4607 wxPy_END_ALLOW_THREADS
;
4608 if (PyErr_Occurred()) return NULL
;
4609 } _resultobj
= Py_BuildValue("i",_result
);
4613 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4614 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4615 PyObject
* _resultobj
;
4619 PyObject
* _argo0
= 0;
4620 char *_kwnames
[] = { "self","x","y", NULL
};
4623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4633 wxPy_BEGIN_ALLOW_THREADS
;
4634 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4636 wxPy_END_ALLOW_THREADS
;
4637 if (PyErr_Occurred()) return NULL
;
4638 } Py_INCREF(Py_None
);
4639 _resultobj
= Py_None
;
4643 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4644 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4645 PyObject
* _resultobj
;
4649 PyObject
* _argo0
= 0;
4651 PyObject
* _obj1
= 0;
4652 char *_kwnames
[] = { "self","pt", NULL
};
4656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4667 if (! wxPoint_helper(_obj1
, &_arg1
))
4671 wxPy_BEGIN_ALLOW_THREADS
;
4672 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4674 wxPy_END_ALLOW_THREADS
;
4675 if (PyErr_Occurred()) return NULL
;
4676 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4677 _resultobj
= Py_BuildValue("s",_ptemp
);
4681 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4682 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4683 PyObject
* _resultobj
;
4687 PyObject
* _argo0
= 0;
4689 PyObject
* _obj1
= 0;
4690 char *_kwnames
[] = { "self","sz", NULL
};
4694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4705 if (! wxSize_helper(_obj1
, &_arg1
))
4709 wxPy_BEGIN_ALLOW_THREADS
;
4710 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4712 wxPy_END_ALLOW_THREADS
;
4713 if (PyErr_Occurred()) return NULL
;
4714 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4715 _resultobj
= Py_BuildValue("s",_ptemp
);
4719 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4720 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4721 PyObject
* _resultobj
;
4725 PyObject
* _argo0
= 0;
4727 PyObject
* _obj1
= 0;
4728 char *_kwnames
[] = { "self","pt", NULL
};
4732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4743 if (! wxPoint_helper(_obj1
, &_arg1
))
4747 wxPy_BEGIN_ALLOW_THREADS
;
4748 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4750 wxPy_END_ALLOW_THREADS
;
4751 if (PyErr_Occurred()) return NULL
;
4752 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4753 _resultobj
= Py_BuildValue("s",_ptemp
);
4757 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4758 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4759 PyObject
* _resultobj
;
4763 PyObject
* _argo0
= 0;
4765 PyObject
* _obj1
= 0;
4766 char *_kwnames
[] = { "self","sz", NULL
};
4770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4781 if (! wxSize_helper(_obj1
, &_arg1
))
4785 wxPy_BEGIN_ALLOW_THREADS
;
4786 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4788 wxPy_END_ALLOW_THREADS
;
4789 if (PyErr_Occurred()) return NULL
;
4790 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4791 _resultobj
= Py_BuildValue("s",_ptemp
);
4795 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4796 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4797 PyObject
* _resultobj
;
4800 PyObject
* _argo0
= 0;
4801 PyObject
* _obj1
= 0;
4802 char *_kwnames
[] = { "self","tip", NULL
};
4805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4815 #if PYTHON_API_VERSION >= 1009
4816 char* tmpPtr
; int tmpSize
;
4817 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4818 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4821 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4823 _arg1
= new wxString(tmpPtr
, tmpSize
);
4825 if (!PyString_Check(_obj1
)) {
4826 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4829 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4833 wxPy_BEGIN_ALLOW_THREADS
;
4834 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4836 wxPy_END_ALLOW_THREADS
;
4837 if (PyErr_Occurred()) return NULL
;
4838 } Py_INCREF(Py_None
);
4839 _resultobj
= Py_None
;
4847 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4848 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4849 PyObject
* _resultobj
;
4852 PyObject
* _argo0
= 0;
4853 PyObject
* _argo1
= 0;
4854 char *_kwnames
[] = { "self","tooltip", NULL
};
4857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4867 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4868 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4874 wxPy_BEGIN_ALLOW_THREADS
;
4875 wxWindow_SetToolTip(_arg0
,_arg1
);
4877 wxPy_END_ALLOW_THREADS
;
4878 if (PyErr_Occurred()) return NULL
;
4879 } Py_INCREF(Py_None
);
4880 _resultobj
= Py_None
;
4884 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4885 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4886 PyObject
* _resultobj
;
4887 wxToolTip
* _result
;
4889 PyObject
* _argo0
= 0;
4890 char *_kwnames
[] = { "self", NULL
};
4893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4903 wxPy_BEGIN_ALLOW_THREADS
;
4904 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4906 wxPy_END_ALLOW_THREADS
;
4907 if (PyErr_Occurred()) return NULL
;
4908 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4912 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4913 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4914 PyObject
* _resultobj
;
4917 PyObject
* _argo0
= 0;
4918 PyObject
* _argo1
= 0;
4919 char *_kwnames
[] = { "self","sizer", NULL
};
4922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4932 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4933 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4939 wxPy_BEGIN_ALLOW_THREADS
;
4940 wxWindow_SetSizer(_arg0
,_arg1
);
4942 wxPy_END_ALLOW_THREADS
;
4943 if (PyErr_Occurred()) return NULL
;
4944 } Py_INCREF(Py_None
);
4945 _resultobj
= Py_None
;
4949 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4950 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4951 PyObject
* _resultobj
;
4954 PyObject
* _argo0
= 0;
4955 char *_kwnames
[] = { "self", NULL
};
4958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
4961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
4968 wxPy_BEGIN_ALLOW_THREADS
;
4969 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
4971 wxPy_END_ALLOW_THREADS
;
4972 if (PyErr_Occurred()) return NULL
;
4973 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4977 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
4978 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4979 PyObject
* _resultobj
;
4980 wxValidator
* _result
;
4982 PyObject
* _argo0
= 0;
4983 char *_kwnames
[] = { "self", NULL
};
4986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
4989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
4996 wxPy_BEGIN_ALLOW_THREADS
;
4997 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
4999 wxPy_END_ALLOW_THREADS
;
5000 if (PyErr_Occurred()) return NULL
;
5001 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5005 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5006 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5007 PyObject
* _resultobj
;
5009 wxValidator
* _arg1
;
5010 PyObject
* _argo0
= 0;
5011 PyObject
* _argo1
= 0;
5012 char *_kwnames
[] = { "self","validator", NULL
};
5015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5025 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5026 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5032 wxPy_BEGIN_ALLOW_THREADS
;
5033 wxWindow_SetValidator(_arg0
,*_arg1
);
5035 wxPy_END_ALLOW_THREADS
;
5036 if (PyErr_Occurred()) return NULL
;
5037 } Py_INCREF(Py_None
);
5038 _resultobj
= Py_None
;
5042 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5043 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5044 PyObject
* _resultobj
;
5046 wxDropTarget
* _arg1
;
5047 PyObject
* _argo0
= 0;
5048 PyObject
* _argo1
= 0;
5049 char *_kwnames
[] = { "self","target", NULL
};
5052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5062 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5063 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5069 wxPy_BEGIN_ALLOW_THREADS
;
5070 wxWindow_SetDropTarget(_arg0
,_arg1
);
5072 wxPy_END_ALLOW_THREADS
;
5073 if (PyErr_Occurred()) return NULL
;
5074 } Py_INCREF(Py_None
);
5075 _resultobj
= Py_None
;
5079 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5080 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5081 PyObject
* _resultobj
;
5082 wxDropTarget
* _result
;
5084 PyObject
* _argo0
= 0;
5085 char *_kwnames
[] = { "self", NULL
};
5089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5099 wxPy_BEGIN_ALLOW_THREADS
;
5100 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5102 wxPy_END_ALLOW_THREADS
;
5103 if (PyErr_Occurred()) return NULL
;
5105 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5106 _resultobj
= Py_BuildValue("s",_ptemp
);
5109 _resultobj
= Py_None
;
5114 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5115 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5116 PyObject
* _resultobj
;
5119 PyObject
* _argo0
= 0;
5120 char *_kwnames
[] = { "self", NULL
};
5124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5134 wxPy_BEGIN_ALLOW_THREADS
;
5135 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5137 wxPy_END_ALLOW_THREADS
;
5138 if (PyErr_Occurred()) return NULL
;
5139 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5140 _resultobj
= Py_BuildValue("s",_ptemp
);
5144 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5145 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5146 PyObject
* _resultobj
;
5149 PyObject
* _argo0
= 0;
5150 PyObject
* _argo1
= 0;
5151 char *_kwnames
[] = { "self","caret", NULL
};
5154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5164 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5165 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5171 wxPy_BEGIN_ALLOW_THREADS
;
5172 wxWindow_SetCaret(_arg0
,_arg1
);
5174 wxPy_END_ALLOW_THREADS
;
5175 if (PyErr_Occurred()) return NULL
;
5176 } Py_INCREF(Py_None
);
5177 _resultobj
= Py_None
;
5181 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5182 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5183 PyObject
* _resultobj
;
5186 PyObject
* _argo0
= 0;
5187 char *_kwnames
[] = { "self", NULL
};
5191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5201 wxPy_BEGIN_ALLOW_THREADS
;
5202 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5204 wxPy_END_ALLOW_THREADS
;
5205 if (PyErr_Occurred()) return NULL
;
5207 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5208 _resultobj
= Py_BuildValue("s",_ptemp
);
5211 _resultobj
= Py_None
;
5216 static void *SwigwxPanelTowxWindow(void *ptr
) {
5219 src
= (wxPanel
*) ptr
;
5220 dest
= (wxWindow
*) src
;
5221 return (void *) dest
;
5224 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5227 src
= (wxPanel
*) ptr
;
5228 dest
= (wxEvtHandler
*) src
;
5229 return (void *) dest
;
5232 static void *SwigwxPanelTowxObject(void *ptr
) {
5235 src
= (wxPanel
*) ptr
;
5236 dest
= (wxObject
*) src
;
5237 return (void *) dest
;
5240 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5241 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5246 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5247 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5248 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5249 char * _arg5
= (char *) "panel";
5250 PyObject
* _argo0
= 0;
5252 PyObject
* _obj2
= 0;
5254 PyObject
* _obj3
= 0;
5255 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5271 if (! wxPoint_helper(_obj2
, &_arg2
))
5277 if (! wxSize_helper(_obj3
, &_arg3
))
5281 wxPy_BEGIN_ALLOW_THREADS
;
5282 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5284 wxPy_END_ALLOW_THREADS
;
5285 if (PyErr_Occurred()) return NULL
;
5287 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5288 _resultobj
= Py_BuildValue("s",_ptemp
);
5291 _resultobj
= Py_None
;
5296 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5297 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5298 PyObject
* _resultobj
;
5300 PyObject
* _argo0
= 0;
5301 char *_kwnames
[] = { "self", NULL
};
5304 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5307 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5308 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5314 wxPy_BEGIN_ALLOW_THREADS
;
5315 wxPanel_InitDialog(_arg0
);
5317 wxPy_END_ALLOW_THREADS
;
5318 if (PyErr_Occurred()) return NULL
;
5319 } Py_INCREF(Py_None
);
5320 _resultobj
= Py_None
;
5324 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5325 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5326 PyObject
* _resultobj
;
5329 PyObject
* _argo0
= 0;
5330 char *_kwnames
[] = { "self", NULL
};
5333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5343 wxPy_BEGIN_ALLOW_THREADS
;
5344 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5346 wxPy_END_ALLOW_THREADS
;
5347 if (PyErr_Occurred()) return NULL
;
5348 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5352 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5353 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5354 PyObject
* _resultobj
;
5357 PyObject
* _argo0
= 0;
5358 PyObject
* _argo1
= 0;
5359 char *_kwnames
[] = { "self","btn", NULL
};
5362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5372 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5373 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5379 wxPy_BEGIN_ALLOW_THREADS
;
5380 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5382 wxPy_END_ALLOW_THREADS
;
5383 if (PyErr_Occurred()) return NULL
;
5384 } Py_INCREF(Py_None
);
5385 _resultobj
= Py_None
;
5389 static void *SwigwxDialogTowxPanel(void *ptr
) {
5392 src
= (wxDialog
*) ptr
;
5393 dest
= (wxPanel
*) src
;
5394 return (void *) dest
;
5397 static void *SwigwxDialogTowxWindow(void *ptr
) {
5400 src
= (wxDialog
*) ptr
;
5401 dest
= (wxWindow
*) src
;
5402 return (void *) dest
;
5405 static void *SwigwxDialogTowxEvtHandler(void *ptr
) {
5408 src
= (wxDialog
*) ptr
;
5409 dest
= (wxEvtHandler
*) src
;
5410 return (void *) dest
;
5413 static void *SwigwxDialogTowxObject(void *ptr
) {
5416 src
= (wxDialog
*) ptr
;
5417 dest
= (wxObject
*) src
;
5418 return (void *) dest
;
5421 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5422 static PyObject
*_wrap_new_wxDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5423 PyObject
* _resultobj
;
5428 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5429 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5430 long _arg5
= (long ) wxDEFAULT_DIALOG_STYLE
;
5431 char * _arg6
= (char *) "dialogBox";
5432 PyObject
* _argo0
= 0;
5433 PyObject
* _obj2
= 0;
5435 PyObject
* _obj3
= 0;
5437 PyObject
* _obj4
= 0;
5438 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
5442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxDialog",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
5452 #if PYTHON_API_VERSION >= 1009
5453 char* tmpPtr
; int tmpSize
;
5454 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
5455 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5458 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
5460 _arg2
= new wxString(tmpPtr
, tmpSize
);
5462 if (!PyString_Check(_obj2
)) {
5463 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5466 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
5472 if (! wxPoint_helper(_obj3
, &_arg3
))
5478 if (! wxSize_helper(_obj4
, &_arg4
))
5482 wxPy_BEGIN_ALLOW_THREADS
;
5483 _result
= (wxDialog
*)new_wxDialog(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5485 wxPy_END_ALLOW_THREADS
;
5486 if (PyErr_Occurred()) return NULL
;
5488 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
5489 _resultobj
= Py_BuildValue("s",_ptemp
);
5492 _resultobj
= Py_None
;
5501 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
5502 static PyObject
*_wrap_wxDialog_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5503 PyObject
* _resultobj
;
5505 int _arg1
= (int ) wxBOTH
;
5506 PyObject
* _argo0
= 0;
5507 char *_kwnames
[] = { "self","direction", NULL
};
5510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDialog_Centre",_kwnames
,&_argo0
,&_arg1
))
5513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
5520 wxPy_BEGIN_ALLOW_THREADS
;
5521 wxDialog_Centre(_arg0
,_arg1
);
5523 wxPy_END_ALLOW_THREADS
;
5524 if (PyErr_Occurred()) return NULL
;
5525 } Py_INCREF(Py_None
);
5526 _resultobj
= Py_None
;
5530 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
5531 static PyObject
*_wrap_wxDialog_EndModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5532 PyObject
* _resultobj
;
5535 PyObject
* _argo0
= 0;
5536 char *_kwnames
[] = { "self","retCode", NULL
};
5539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_EndModal",_kwnames
,&_argo0
,&_arg1
))
5542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
5549 wxPy_BEGIN_ALLOW_THREADS
;
5550 wxDialog_EndModal(_arg0
,_arg1
);
5552 wxPy_END_ALLOW_THREADS
;
5553 if (PyErr_Occurred()) return NULL
;
5554 } Py_INCREF(Py_None
);
5555 _resultobj
= Py_None
;
5559 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
5560 static PyObject
*_wrap_wxDialog_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5561 PyObject
* _resultobj
;
5564 PyObject
* _argo0
= 0;
5565 char *_kwnames
[] = { "self", NULL
};
5568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetTitle",_kwnames
,&_argo0
))
5571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
5578 wxPy_BEGIN_ALLOW_THREADS
;
5579 _result
= new wxString (wxDialog_GetTitle(_arg0
));
5581 wxPy_END_ALLOW_THREADS
;
5582 if (PyErr_Occurred()) return NULL
;
5584 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5592 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
5593 static PyObject
*_wrap_wxDialog_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5594 PyObject
* _resultobj
;
5597 PyObject
* _argo0
= 0;
5599 char *_kwnames
[] = { "self","iconize", NULL
};
5602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Iconize",_kwnames
,&_argo0
,&tempbool1
))
5605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
5611 _arg1
= (bool ) tempbool1
;
5613 wxPy_BEGIN_ALLOW_THREADS
;
5614 wxDialog_Iconize(_arg0
,_arg1
);
5616 wxPy_END_ALLOW_THREADS
;
5617 if (PyErr_Occurred()) return NULL
;
5618 } Py_INCREF(Py_None
);
5619 _resultobj
= Py_None
;
5623 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
5624 static PyObject
*_wrap_wxDialog_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5625 PyObject
* _resultobj
;
5628 PyObject
* _argo0
= 0;
5629 char *_kwnames
[] = { "self", NULL
};
5632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsIconized",_kwnames
,&_argo0
))
5635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
5642 wxPy_BEGIN_ALLOW_THREADS
;
5643 _result
= (bool )wxDialog_IsIconized(_arg0
);
5645 wxPy_END_ALLOW_THREADS
;
5646 if (PyErr_Occurred()) return NULL
;
5647 } _resultobj
= Py_BuildValue("i",_result
);
5651 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
5652 static PyObject
*_wrap_wxDialog_SetModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5653 PyObject
* _resultobj
;
5656 PyObject
* _argo0
= 0;
5658 char *_kwnames
[] = { "self","flag", NULL
};
5661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetModal",_kwnames
,&_argo0
,&tempbool1
))
5664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
5670 _arg1
= (bool ) tempbool1
;
5672 wxPy_BEGIN_ALLOW_THREADS
;
5673 wxDialog_SetModal(_arg0
,_arg1
);
5675 wxPy_END_ALLOW_THREADS
;
5676 if (PyErr_Occurred()) return NULL
;
5677 } Py_INCREF(Py_None
);
5678 _resultobj
= Py_None
;
5682 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
5683 static PyObject
*_wrap_wxDialog_IsModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5684 PyObject
* _resultobj
;
5687 PyObject
* _argo0
= 0;
5688 char *_kwnames
[] = { "self", NULL
};
5691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsModal",_kwnames
,&_argo0
))
5694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
5701 wxPy_BEGIN_ALLOW_THREADS
;
5702 _result
= (bool )wxDialog_IsModal(_arg0
);
5704 wxPy_END_ALLOW_THREADS
;
5705 if (PyErr_Occurred()) return NULL
;
5706 } _resultobj
= Py_BuildValue("i",_result
);
5710 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5711 static PyObject
*_wrap_wxDialog_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5712 PyObject
* _resultobj
;
5715 PyObject
* _argo0
= 0;
5716 PyObject
* _obj1
= 0;
5717 char *_kwnames
[] = { "self","title", NULL
};
5720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_SetTitle",_kwnames
,&_argo0
,&_obj1
))
5723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
5730 #if PYTHON_API_VERSION >= 1009
5731 char* tmpPtr
; int tmpSize
;
5732 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5733 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5736 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5738 _arg1
= new wxString(tmpPtr
, tmpSize
);
5740 if (!PyString_Check(_obj1
)) {
5741 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5744 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5748 wxPy_BEGIN_ALLOW_THREADS
;
5749 wxDialog_SetTitle(_arg0
,*_arg1
);
5751 wxPy_END_ALLOW_THREADS
;
5752 if (PyErr_Occurred()) return NULL
;
5753 } Py_INCREF(Py_None
);
5754 _resultobj
= Py_None
;
5762 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5763 static PyObject
*_wrap_wxDialog_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5764 PyObject
* _resultobj
;
5768 PyObject
* _argo0
= 0;
5770 char *_kwnames
[] = { "self","show", NULL
};
5773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Show",_kwnames
,&_argo0
,&tempbool1
))
5776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
5782 _arg1
= (bool ) tempbool1
;
5784 wxPy_BEGIN_ALLOW_THREADS
;
5785 _result
= (bool )wxDialog_Show(_arg0
,_arg1
);
5787 wxPy_END_ALLOW_THREADS
;
5788 if (PyErr_Occurred()) return NULL
;
5789 } _resultobj
= Py_BuildValue("i",_result
);
5793 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
5794 static PyObject
*_wrap_wxDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5795 PyObject
* _resultobj
;
5798 PyObject
* _argo0
= 0;
5799 char *_kwnames
[] = { "self", NULL
};
5802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_ShowModal",_kwnames
,&_argo0
))
5805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
5812 wxPy_BEGIN_ALLOW_THREADS
;
5813 _result
= (int )wxDialog_ShowModal(_arg0
);
5815 wxPy_END_ALLOW_THREADS
;
5816 if (PyErr_Occurred()) return NULL
;
5817 } _resultobj
= Py_BuildValue("i",_result
);
5821 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
5822 static PyObject
*_wrap_wxDialog_GetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5823 PyObject
* _resultobj
;
5826 PyObject
* _argo0
= 0;
5827 char *_kwnames
[] = { "self", NULL
};
5830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetReturnCode",_kwnames
,&_argo0
))
5833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
5840 wxPy_BEGIN_ALLOW_THREADS
;
5841 _result
= (int )wxDialog_GetReturnCode(_arg0
);
5843 wxPy_END_ALLOW_THREADS
;
5844 if (PyErr_Occurred()) return NULL
;
5845 } _resultobj
= Py_BuildValue("i",_result
);
5849 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5850 static PyObject
*_wrap_wxDialog_SetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5851 PyObject
* _resultobj
;
5854 PyObject
* _argo0
= 0;
5855 char *_kwnames
[] = { "self","retCode", NULL
};
5858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetReturnCode",_kwnames
,&_argo0
,&_arg1
))
5861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
5868 wxPy_BEGIN_ALLOW_THREADS
;
5869 wxDialog_SetReturnCode(_arg0
,_arg1
);
5871 wxPy_END_ALLOW_THREADS
;
5872 if (PyErr_Occurred()) return NULL
;
5873 } Py_INCREF(Py_None
);
5874 _resultobj
= Py_None
;
5878 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
5879 static PyObject
*_wrap_wxDialog_CreateTextSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5880 PyObject
* _resultobj
;
5884 PyObject
* _argo0
= 0;
5885 PyObject
* _obj1
= 0;
5886 char *_kwnames
[] = { "self","message", NULL
};
5889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_CreateTextSizer",_kwnames
,&_argo0
,&_obj1
))
5892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
5899 #if PYTHON_API_VERSION >= 1009
5900 char* tmpPtr
; int tmpSize
;
5901 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5902 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5905 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5907 _arg1
= new wxString(tmpPtr
, tmpSize
);
5909 if (!PyString_Check(_obj1
)) {
5910 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5913 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5917 wxPy_BEGIN_ALLOW_THREADS
;
5918 _result
= (wxSizer
*)wxDialog_CreateTextSizer(_arg0
,*_arg1
);
5920 wxPy_END_ALLOW_THREADS
;
5921 if (PyErr_Occurred()) return NULL
;
5922 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5930 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
5931 static PyObject
*_wrap_wxDialog_CreateButtonSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5932 PyObject
* _resultobj
;
5936 PyObject
* _argo0
= 0;
5937 char *_kwnames
[] = { "self","flags", NULL
};
5940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDialog_CreateButtonSizer",_kwnames
,&_argo0
,&_arg1
))
5943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
5950 wxPy_BEGIN_ALLOW_THREADS
;
5951 _result
= (wxSizer
*)wxDialog_CreateButtonSizer(_arg0
,_arg1
);
5953 wxPy_END_ALLOW_THREADS
;
5954 if (PyErr_Occurred()) return NULL
;
5955 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5959 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5960 wxScrolledWindow
*src
;
5962 src
= (wxScrolledWindow
*) ptr
;
5963 dest
= (wxPanel
*) src
;
5964 return (void *) dest
;
5967 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5968 wxScrolledWindow
*src
;
5970 src
= (wxScrolledWindow
*) ptr
;
5971 dest
= (wxWindow
*) src
;
5972 return (void *) dest
;
5975 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
5976 wxScrolledWindow
*src
;
5978 src
= (wxScrolledWindow
*) ptr
;
5979 dest
= (wxEvtHandler
*) src
;
5980 return (void *) dest
;
5983 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
5984 wxScrolledWindow
*src
;
5986 src
= (wxScrolledWindow
*) ptr
;
5987 dest
= (wxObject
*) src
;
5988 return (void *) dest
;
5991 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5992 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5993 PyObject
* _resultobj
;
5994 wxScrolledWindow
* _result
;
5996 wxWindowID _arg1
= (wxWindowID
) -1;
5997 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5998 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5999 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6000 char * _arg5
= (char *) "scrolledWindow";
6001 PyObject
* _argo0
= 0;
6003 PyObject
* _obj2
= 0;
6005 PyObject
* _obj3
= 0;
6006 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6022 if (! wxPoint_helper(_obj2
, &_arg2
))
6028 if (! wxSize_helper(_obj3
, &_arg3
))
6032 wxPy_BEGIN_ALLOW_THREADS
;
6033 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6035 wxPy_END_ALLOW_THREADS
;
6036 if (PyErr_Occurred()) return NULL
;
6038 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6039 _resultobj
= Py_BuildValue("s",_ptemp
);
6042 _resultobj
= Py_None
;
6047 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6048 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6049 PyObject
* _resultobj
;
6050 wxScrolledWindow
* _arg0
;
6053 PyObject
* _argo0
= 0;
6056 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6068 _arg1
= (bool ) tempbool1
;
6069 _arg2
= (bool ) tempbool2
;
6071 wxPy_BEGIN_ALLOW_THREADS
;
6072 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6074 wxPy_END_ALLOW_THREADS
;
6075 if (PyErr_Occurred()) return NULL
;
6076 } Py_INCREF(Py_None
);
6077 _resultobj
= Py_None
;
6081 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6082 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6083 PyObject
* _resultobj
;
6085 wxScrolledWindow
* _arg0
;
6087 PyObject
* _argo0
= 0;
6088 char *_kwnames
[] = { "self","orient", NULL
};
6091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6101 wxPy_BEGIN_ALLOW_THREADS
;
6102 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6104 wxPy_END_ALLOW_THREADS
;
6105 if (PyErr_Occurred()) return NULL
;
6106 } _resultobj
= Py_BuildValue("i",_result
);
6110 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6111 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6112 PyObject
* _resultobj
;
6113 wxScrolledWindow
* _arg0
;
6118 PyObject
* _argo0
= 0;
6119 char *_kwnames
[] = { "self", NULL
};
6128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6138 wxPy_BEGIN_ALLOW_THREADS
;
6139 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6141 wxPy_END_ALLOW_THREADS
;
6142 if (PyErr_Occurred()) return NULL
;
6143 } Py_INCREF(Py_None
);
6144 _resultobj
= Py_None
;
6147 o
= PyInt_FromLong((long) (*_arg1
));
6148 _resultobj
= t_output_helper(_resultobj
, o
);
6152 o
= PyInt_FromLong((long) (*_arg2
));
6153 _resultobj
= t_output_helper(_resultobj
, o
);
6158 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6159 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6160 PyObject
* _resultobj
;
6162 wxScrolledWindow
* _arg0
;
6163 PyObject
* _argo0
= 0;
6164 char *_kwnames
[] = { "self", NULL
};
6167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6177 wxPy_BEGIN_ALLOW_THREADS
;
6178 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6180 wxPy_END_ALLOW_THREADS
;
6181 if (PyErr_Occurred()) return NULL
;
6182 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6186 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6187 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6188 PyObject
* _resultobj
;
6189 wxScrolledWindow
* _arg0
;
6194 PyObject
* _argo0
= 0;
6195 char *_kwnames
[] = { "self", NULL
};
6204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6214 wxPy_BEGIN_ALLOW_THREADS
;
6215 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6217 wxPy_END_ALLOW_THREADS
;
6218 if (PyErr_Occurred()) return NULL
;
6219 } Py_INCREF(Py_None
);
6220 _resultobj
= Py_None
;
6223 o
= PyInt_FromLong((long) (*_arg1
));
6224 _resultobj
= t_output_helper(_resultobj
, o
);
6228 o
= PyInt_FromLong((long) (*_arg2
));
6229 _resultobj
= t_output_helper(_resultobj
, o
);
6234 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6235 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6236 PyObject
* _resultobj
;
6238 wxScrolledWindow
* _arg0
;
6239 PyObject
* _argo0
= 0;
6240 char *_kwnames
[] = { "self", NULL
};
6243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6253 wxPy_BEGIN_ALLOW_THREADS
;
6254 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6256 wxPy_END_ALLOW_THREADS
;
6257 if (PyErr_Occurred()) return NULL
;
6258 } _resultobj
= Py_BuildValue("i",_result
);
6262 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6263 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6264 PyObject
* _resultobj
;
6265 wxScrolledWindow
* _arg0
;
6267 PyObject
* _argo0
= 0;
6268 PyObject
* _argo1
= 0;
6269 char *_kwnames
[] = { "self","dc", NULL
};
6272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6282 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6283 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6289 wxPy_BEGIN_ALLOW_THREADS
;
6290 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6292 wxPy_END_ALLOW_THREADS
;
6293 if (PyErr_Occurred()) return NULL
;
6294 } Py_INCREF(Py_None
);
6295 _resultobj
= Py_None
;
6299 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6300 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6301 PyObject
* _resultobj
;
6302 wxScrolledWindow
* _arg0
;
6305 PyObject
* _argo0
= 0;
6306 char *_kwnames
[] = { "self","x","y", NULL
};
6309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6319 wxPy_BEGIN_ALLOW_THREADS
;
6320 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6322 wxPy_END_ALLOW_THREADS
;
6323 if (PyErr_Occurred()) return NULL
;
6324 } Py_INCREF(Py_None
);
6325 _resultobj
= Py_None
;
6329 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6330 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6331 PyObject
* _resultobj
;
6332 wxScrolledWindow
* _arg0
;
6337 int _arg5
= (int ) 0;
6338 int _arg6
= (int ) 0;
6339 int _arg7
= (int ) FALSE
;
6340 PyObject
* _argo0
= 0;
6341 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6354 wxPy_BEGIN_ALLOW_THREADS
;
6355 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6357 wxPy_END_ALLOW_THREADS
;
6358 if (PyErr_Occurred()) return NULL
;
6359 } Py_INCREF(Py_None
);
6360 _resultobj
= Py_None
;
6364 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6365 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6366 PyObject
* _resultobj
;
6367 wxScrolledWindow
* _arg0
;
6370 PyObject
* _argo0
= 0;
6371 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6384 wxPy_BEGIN_ALLOW_THREADS
;
6385 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6387 wxPy_END_ALLOW_THREADS
;
6388 if (PyErr_Occurred()) return NULL
;
6389 } Py_INCREF(Py_None
);
6390 _resultobj
= Py_None
;
6394 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6395 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6396 PyObject
* _resultobj
;
6397 wxScrolledWindow
* _arg0
;
6399 PyObject
* _argo0
= 0;
6400 PyObject
* _argo1
= 0;
6401 char *_kwnames
[] = { "self","window", NULL
};
6404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6414 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6415 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6421 wxPy_BEGIN_ALLOW_THREADS
;
6422 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6424 wxPy_END_ALLOW_THREADS
;
6425 if (PyErr_Occurred()) return NULL
;
6426 } Py_INCREF(Py_None
);
6427 _resultobj
= Py_None
;
6431 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6432 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6433 PyObject
* _resultobj
;
6434 wxScrolledWindow
* _arg0
;
6439 PyObject
* _argo0
= 0;
6440 char *_kwnames
[] = { "self", NULL
};
6449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6459 wxPy_BEGIN_ALLOW_THREADS
;
6460 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6462 wxPy_END_ALLOW_THREADS
;
6463 if (PyErr_Occurred()) return NULL
;
6464 } Py_INCREF(Py_None
);
6465 _resultobj
= Py_None
;
6468 o
= PyInt_FromLong((long) (*_arg1
));
6469 _resultobj
= t_output_helper(_resultobj
, o
);
6473 o
= PyInt_FromLong((long) (*_arg2
));
6474 _resultobj
= t_output_helper(_resultobj
, o
);
6479 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
6480 static PyObject
*_wrap_wxScrolledWindow_ViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6481 PyObject
* _resultobj
;
6482 wxScrolledWindow
* _arg0
;
6487 PyObject
* _argo0
= 0;
6488 char *_kwnames
[] = { "self", NULL
};
6497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_ViewStart",_kwnames
,&_argo0
))
6500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
6507 wxPy_BEGIN_ALLOW_THREADS
;
6508 wxScrolledWindow_ViewStart(_arg0
,_arg1
,_arg2
);
6510 wxPy_END_ALLOW_THREADS
;
6511 if (PyErr_Occurred()) return NULL
;
6512 } Py_INCREF(Py_None
);
6513 _resultobj
= Py_None
;
6516 o
= PyInt_FromLong((long) (*_arg1
));
6517 _resultobj
= t_output_helper(_resultobj
, o
);
6521 o
= PyInt_FromLong((long) (*_arg2
));
6522 _resultobj
= t_output_helper(_resultobj
, o
);
6527 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6528 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6529 PyObject
* _resultobj
;
6530 wxScrolledWindow
* _arg0
;
6537 PyObject
* _argo0
= 0;
6538 char *_kwnames
[] = { "self","x","y", NULL
};
6547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6557 wxPy_BEGIN_ALLOW_THREADS
;
6558 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6560 wxPy_END_ALLOW_THREADS
;
6561 if (PyErr_Occurred()) return NULL
;
6562 } Py_INCREF(Py_None
);
6563 _resultobj
= Py_None
;
6566 o
= PyInt_FromLong((long) (*_arg3
));
6567 _resultobj
= t_output_helper(_resultobj
, o
);
6571 o
= PyInt_FromLong((long) (*_arg4
));
6572 _resultobj
= t_output_helper(_resultobj
, o
);
6577 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6578 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6579 PyObject
* _resultobj
;
6580 wxScrolledWindow
* _arg0
;
6587 PyObject
* _argo0
= 0;
6588 char *_kwnames
[] = { "self","x","y", NULL
};
6597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6607 wxPy_BEGIN_ALLOW_THREADS
;
6608 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6610 wxPy_END_ALLOW_THREADS
;
6611 if (PyErr_Occurred()) return NULL
;
6612 } Py_INCREF(Py_None
);
6613 _resultobj
= Py_None
;
6616 o
= PyInt_FromLong((long) (*_arg3
));
6617 _resultobj
= t_output_helper(_resultobj
, o
);
6621 o
= PyInt_FromLong((long) (*_arg4
));
6622 _resultobj
= t_output_helper(_resultobj
, o
);
6627 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6628 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6629 PyObject
* _resultobj
;
6630 wxScrolledWindow
* _arg0
;
6633 PyObject
* _argo0
= 0;
6634 char *_kwnames
[] = { "self","xs","ys", NULL
};
6637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6647 wxPy_BEGIN_ALLOW_THREADS
;
6648 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6650 wxPy_END_ALLOW_THREADS
;
6651 if (PyErr_Occurred()) return NULL
;
6652 } Py_INCREF(Py_None
);
6653 _resultobj
= Py_None
;
6657 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6658 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6659 PyObject
* _resultobj
;
6661 wxScrolledWindow
* _arg0
;
6662 PyObject
* _argo0
= 0;
6663 char *_kwnames
[] = { "self", NULL
};
6666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6676 wxPy_BEGIN_ALLOW_THREADS
;
6677 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6679 wxPy_END_ALLOW_THREADS
;
6680 if (PyErr_Occurred()) return NULL
;
6681 } _resultobj
= Py_BuildValue("d",_result
);
6685 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6686 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6687 PyObject
* _resultobj
;
6689 wxScrolledWindow
* _arg0
;
6690 PyObject
* _argo0
= 0;
6691 char *_kwnames
[] = { "self", NULL
};
6694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6704 wxPy_BEGIN_ALLOW_THREADS
;
6705 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6707 wxPy_END_ALLOW_THREADS
;
6708 if (PyErr_Occurred()) return NULL
;
6709 } _resultobj
= Py_BuildValue("d",_result
);
6713 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6714 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6715 PyObject
* _resultobj
;
6716 wxScrolledWindow
* _arg0
;
6717 PyObject
* _argo0
= 0;
6718 char *_kwnames
[] = { "self", NULL
};
6721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6731 wxPy_BEGIN_ALLOW_THREADS
;
6732 wxScrolledWindow_AdjustScrollbars(_arg0
);
6734 wxPy_END_ALLOW_THREADS
;
6735 if (PyErr_Occurred()) return NULL
;
6736 } Py_INCREF(Py_None
);
6737 _resultobj
= Py_None
;
6741 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6744 src
= (wxMenu
*) ptr
;
6745 dest
= (wxEvtHandler
*) src
;
6746 return (void *) dest
;
6749 static void *SwigwxMenuTowxObject(void *ptr
) {
6752 src
= (wxMenu
*) ptr
;
6753 dest
= (wxObject
*) src
;
6754 return (void *) dest
;
6757 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6758 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6759 PyObject
* _resultobj
;
6761 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6762 long _arg1
= (long ) 0;
6763 PyObject
* _obj0
= 0;
6764 char *_kwnames
[] = { "title","style", NULL
};
6768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6772 #if PYTHON_API_VERSION >= 1009
6773 char* tmpPtr
; int tmpSize
;
6774 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6775 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6778 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6780 _arg0
= new wxString(tmpPtr
, tmpSize
);
6782 if (!PyString_Check(_obj0
)) {
6783 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6786 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6790 wxPy_BEGIN_ALLOW_THREADS
;
6791 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6793 wxPy_END_ALLOW_THREADS
;
6794 if (PyErr_Occurred()) return NULL
;
6796 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6797 _resultobj
= Py_BuildValue("s",_ptemp
);
6800 _resultobj
= Py_None
;
6809 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6810 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6811 PyObject
* _resultobj
;
6815 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6816 int _arg4
= (int ) FALSE
;
6817 PyObject
* _argo0
= 0;
6818 PyObject
* _obj2
= 0;
6819 PyObject
* _obj3
= 0;
6820 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6833 #if PYTHON_API_VERSION >= 1009
6834 char* tmpPtr
; int tmpSize
;
6835 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6836 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6839 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6841 _arg2
= new wxString(tmpPtr
, tmpSize
);
6843 if (!PyString_Check(_obj2
)) {
6844 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6847 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6852 #if PYTHON_API_VERSION >= 1009
6853 char* tmpPtr
; int tmpSize
;
6854 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6855 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6858 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6860 _arg3
= new wxString(tmpPtr
, tmpSize
);
6862 if (!PyString_Check(_obj3
)) {
6863 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6866 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6870 wxPy_BEGIN_ALLOW_THREADS
;
6871 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6873 wxPy_END_ALLOW_THREADS
;
6874 if (PyErr_Occurred()) return NULL
;
6875 } Py_INCREF(Py_None
);
6876 _resultobj
= Py_None
;
6888 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6889 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6890 PyObject
* _resultobj
;
6895 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6896 PyObject
* _argo0
= 0;
6897 PyObject
* _obj2
= 0;
6898 PyObject
* _argo3
= 0;
6899 PyObject
* _obj4
= 0;
6900 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6913 #if PYTHON_API_VERSION >= 1009
6914 char* tmpPtr
; int tmpSize
;
6915 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6916 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6919 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6921 _arg2
= new wxString(tmpPtr
, tmpSize
);
6923 if (!PyString_Check(_obj2
)) {
6924 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6927 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6931 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6932 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6939 #if PYTHON_API_VERSION >= 1009
6940 char* tmpPtr
; int tmpSize
;
6941 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6942 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6945 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
6947 _arg4
= new wxString(tmpPtr
, tmpSize
);
6949 if (!PyString_Check(_obj4
)) {
6950 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6953 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
6957 wxPy_BEGIN_ALLOW_THREADS
;
6958 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
6960 wxPy_END_ALLOW_THREADS
;
6961 if (PyErr_Occurred()) return NULL
;
6962 } Py_INCREF(Py_None
);
6963 _resultobj
= Py_None
;
6975 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6976 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6977 PyObject
* _resultobj
;
6980 PyObject
* _argo0
= 0;
6981 PyObject
* _argo1
= 0;
6982 char *_kwnames
[] = { "self","item", NULL
};
6985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
6988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6995 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6996 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
6997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7002 wxPy_BEGIN_ALLOW_THREADS
;
7003 wxMenu_AppendItem(_arg0
,_arg1
);
7005 wxPy_END_ALLOW_THREADS
;
7006 if (PyErr_Occurred()) return NULL
;
7007 } Py_INCREF(Py_None
);
7008 _resultobj
= Py_None
;
7012 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7013 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7014 PyObject
* _resultobj
;
7016 PyObject
* _argo0
= 0;
7017 char *_kwnames
[] = { "self", NULL
};
7020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7030 wxPy_BEGIN_ALLOW_THREADS
;
7031 wxMenu_AppendSeparator(_arg0
);
7033 wxPy_END_ALLOW_THREADS
;
7034 if (PyErr_Occurred()) return NULL
;
7035 } Py_INCREF(Py_None
);
7036 _resultobj
= Py_None
;
7040 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7041 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7042 PyObject
* _resultobj
;
7044 PyObject
* _argo0
= 0;
7045 char *_kwnames
[] = { "self", NULL
};
7048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7058 wxPy_BEGIN_ALLOW_THREADS
;
7059 wxMenu_Break(_arg0
);
7061 wxPy_END_ALLOW_THREADS
;
7062 if (PyErr_Occurred()) return NULL
;
7063 } Py_INCREF(Py_None
);
7064 _resultobj
= Py_None
;
7068 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7069 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7070 PyObject
* _resultobj
;
7074 PyObject
* _argo0
= 0;
7076 char *_kwnames
[] = { "self","id","flag", NULL
};
7079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7088 _arg2
= (bool ) tempbool2
;
7090 wxPy_BEGIN_ALLOW_THREADS
;
7091 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7093 wxPy_END_ALLOW_THREADS
;
7094 if (PyErr_Occurred()) return NULL
;
7095 } Py_INCREF(Py_None
);
7096 _resultobj
= Py_None
;
7100 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7101 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7102 PyObject
* _resultobj
;
7106 PyObject
* _argo0
= 0;
7107 char *_kwnames
[] = { "self","id", NULL
};
7110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7120 wxPy_BEGIN_ALLOW_THREADS
;
7121 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7123 wxPy_END_ALLOW_THREADS
;
7124 if (PyErr_Occurred()) return NULL
;
7125 } _resultobj
= Py_BuildValue("i",_result
);
7129 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7130 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7131 PyObject
* _resultobj
;
7135 PyObject
* _argo0
= 0;
7137 char *_kwnames
[] = { "self","id","enable", NULL
};
7140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7149 _arg2
= (bool ) tempbool2
;
7151 wxPy_BEGIN_ALLOW_THREADS
;
7152 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7154 wxPy_END_ALLOW_THREADS
;
7155 if (PyErr_Occurred()) return NULL
;
7156 } Py_INCREF(Py_None
);
7157 _resultobj
= Py_None
;
7161 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7162 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7163 PyObject
* _resultobj
;
7167 PyObject
* _argo0
= 0;
7168 char *_kwnames
[] = { "self","id", NULL
};
7171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7181 wxPy_BEGIN_ALLOW_THREADS
;
7182 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7184 wxPy_END_ALLOW_THREADS
;
7185 if (PyErr_Occurred()) return NULL
;
7186 } _resultobj
= Py_BuildValue("i",_result
);
7190 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7191 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7192 PyObject
* _resultobj
;
7196 PyObject
* _argo0
= 0;
7197 PyObject
* _obj1
= 0;
7198 char *_kwnames
[] = { "self","itemString", NULL
};
7201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7211 #if PYTHON_API_VERSION >= 1009
7212 char* tmpPtr
; int tmpSize
;
7213 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7214 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7217 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7219 _arg1
= new wxString(tmpPtr
, tmpSize
);
7221 if (!PyString_Check(_obj1
)) {
7222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7225 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7229 wxPy_BEGIN_ALLOW_THREADS
;
7230 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7232 wxPy_END_ALLOW_THREADS
;
7233 if (PyErr_Occurred()) return NULL
;
7234 } _resultobj
= Py_BuildValue("i",_result
);
7242 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7243 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7244 PyObject
* _resultobj
;
7245 wxMenuItem
* _result
;
7248 PyObject
* _argo0
= 0;
7249 char *_kwnames
[] = { "self","id", NULL
};
7252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7262 wxPy_BEGIN_ALLOW_THREADS
;
7263 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7265 wxPy_END_ALLOW_THREADS
;
7266 if (PyErr_Occurred()) return NULL
;
7267 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7271 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7272 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7273 PyObject
* _resultobj
;
7276 PyObject
* _argo0
= 0;
7277 char *_kwnames
[] = { "self", NULL
};
7280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7290 wxPy_BEGIN_ALLOW_THREADS
;
7291 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7293 wxPy_END_ALLOW_THREADS
;
7294 if (PyErr_Occurred()) return NULL
;
7296 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7304 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7305 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7306 PyObject
* _resultobj
;
7309 PyObject
* _argo0
= 0;
7310 PyObject
* _obj1
= 0;
7311 char *_kwnames
[] = { "self","title", NULL
};
7314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7324 #if PYTHON_API_VERSION >= 1009
7325 char* tmpPtr
; int tmpSize
;
7326 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7327 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7330 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7332 _arg1
= new wxString(tmpPtr
, tmpSize
);
7334 if (!PyString_Check(_obj1
)) {
7335 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7338 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7342 wxPy_BEGIN_ALLOW_THREADS
;
7343 wxMenu_SetTitle(_arg0
,*_arg1
);
7345 wxPy_END_ALLOW_THREADS
;
7346 if (PyErr_Occurred()) return NULL
;
7347 } Py_INCREF(Py_None
);
7348 _resultobj
= Py_None
;
7356 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7357 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7358 PyObject
* _resultobj
;
7362 PyObject
* _argo0
= 0;
7363 char *_kwnames
[] = { "self","id", NULL
};
7366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7376 wxPy_BEGIN_ALLOW_THREADS
;
7377 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7379 wxPy_END_ALLOW_THREADS
;
7380 if (PyErr_Occurred()) return NULL
;
7382 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7390 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7391 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7392 PyObject
* _resultobj
;
7396 PyObject
* _argo0
= 0;
7397 PyObject
* _obj2
= 0;
7398 char *_kwnames
[] = { "self","id","label", NULL
};
7401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7411 #if PYTHON_API_VERSION >= 1009
7412 char* tmpPtr
; int tmpSize
;
7413 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7414 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7417 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7419 _arg2
= new wxString(tmpPtr
, tmpSize
);
7421 if (!PyString_Check(_obj2
)) {
7422 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7425 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7429 wxPy_BEGIN_ALLOW_THREADS
;
7430 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7432 wxPy_END_ALLOW_THREADS
;
7433 if (PyErr_Occurred()) return NULL
;
7434 } Py_INCREF(Py_None
);
7435 _resultobj
= Py_None
;
7443 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7444 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7445 PyObject
* _resultobj
;
7449 PyObject
* _argo0
= 0;
7450 char *_kwnames
[] = { "self","id", NULL
};
7453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7463 wxPy_BEGIN_ALLOW_THREADS
;
7464 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7466 wxPy_END_ALLOW_THREADS
;
7467 if (PyErr_Occurred()) return NULL
;
7469 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7477 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7478 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7479 PyObject
* _resultobj
;
7483 PyObject
* _argo0
= 0;
7484 PyObject
* _obj2
= 0;
7485 char *_kwnames
[] = { "self","id","helpString", NULL
};
7488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7498 #if PYTHON_API_VERSION >= 1009
7499 char* tmpPtr
; int tmpSize
;
7500 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7501 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7504 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7506 _arg2
= new wxString(tmpPtr
, tmpSize
);
7508 if (!PyString_Check(_obj2
)) {
7509 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7512 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7516 wxPy_BEGIN_ALLOW_THREADS
;
7517 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7519 wxPy_END_ALLOW_THREADS
;
7520 if (PyErr_Occurred()) return NULL
;
7521 } Py_INCREF(Py_None
);
7522 _resultobj
= Py_None
;
7530 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7531 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7532 PyObject
* _resultobj
;
7534 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7535 PyObject
* _argo0
= 0;
7536 PyObject
* _argo1
= 0;
7537 char *_kwnames
[] = { "self","source", NULL
};
7540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7550 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7551 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7557 wxPy_BEGIN_ALLOW_THREADS
;
7558 wxMenu_UpdateUI(_arg0
,_arg1
);
7560 wxPy_END_ALLOW_THREADS
;
7561 if (PyErr_Occurred()) return NULL
;
7562 } Py_INCREF(Py_None
);
7563 _resultobj
= Py_None
;
7567 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7568 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7569 PyObject
* _resultobj
;
7573 PyObject
* _argo0
= 0;
7574 char *_kwnames
[] = { "self","id", NULL
};
7577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7587 wxPy_BEGIN_ALLOW_THREADS
;
7588 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7590 wxPy_END_ALLOW_THREADS
;
7591 if (PyErr_Occurred()) return NULL
;
7592 } _resultobj
= Py_BuildValue("i",_result
);
7596 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7597 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7598 PyObject
* _resultobj
;
7602 PyObject
* _argo0
= 0;
7603 PyObject
* _argo1
= 0;
7604 char *_kwnames
[] = { "self","item", NULL
};
7607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7617 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7618 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7624 wxPy_BEGIN_ALLOW_THREADS
;
7625 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7627 wxPy_END_ALLOW_THREADS
;
7628 if (PyErr_Occurred()) return NULL
;
7629 } _resultobj
= Py_BuildValue("i",_result
);
7633 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7634 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7635 PyObject
* _resultobj
;
7640 PyObject
* _argo0
= 0;
7641 PyObject
* _argo2
= 0;
7642 char *_kwnames
[] = { "self","pos","item", NULL
};
7645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7655 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7656 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7662 wxPy_BEGIN_ALLOW_THREADS
;
7663 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7665 wxPy_END_ALLOW_THREADS
;
7666 if (PyErr_Occurred()) return NULL
;
7667 } _resultobj
= Py_BuildValue("i",_result
);
7671 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7672 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7673 PyObject
* _resultobj
;
7674 wxMenuItem
* _result
;
7677 PyObject
* _argo0
= 0;
7678 char *_kwnames
[] = { "self","id", NULL
};
7681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7691 wxPy_BEGIN_ALLOW_THREADS
;
7692 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7694 wxPy_END_ALLOW_THREADS
;
7695 if (PyErr_Occurred()) return NULL
;
7696 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7700 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7701 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7702 PyObject
* _resultobj
;
7703 wxMenuItem
* _result
;
7706 PyObject
* _argo0
= 0;
7707 PyObject
* _argo1
= 0;
7708 char *_kwnames
[] = { "self","item", NULL
};
7711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7721 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7722 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7728 wxPy_BEGIN_ALLOW_THREADS
;
7729 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7731 wxPy_END_ALLOW_THREADS
;
7732 if (PyErr_Occurred()) return NULL
;
7733 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7737 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7738 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7739 PyObject
* _resultobj
;
7741 PyObject
* _argo0
= 0;
7742 char *_kwnames
[] = { "self", NULL
};
7745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7755 wxPy_BEGIN_ALLOW_THREADS
;
7756 wxMenu_Destroy(_arg0
);
7758 wxPy_END_ALLOW_THREADS
;
7759 if (PyErr_Occurred()) return NULL
;
7760 } Py_INCREF(Py_None
);
7761 _resultobj
= Py_None
;
7765 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7766 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7767 PyObject
* _resultobj
;
7771 PyObject
* _argo0
= 0;
7772 char *_kwnames
[] = { "self","id", NULL
};
7775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7785 wxPy_BEGIN_ALLOW_THREADS
;
7786 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7788 wxPy_END_ALLOW_THREADS
;
7789 if (PyErr_Occurred()) return NULL
;
7790 } _resultobj
= Py_BuildValue("i",_result
);
7794 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7795 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7796 PyObject
* _resultobj
;
7800 PyObject
* _argo0
= 0;
7801 PyObject
* _argo1
= 0;
7802 char *_kwnames
[] = { "self","item", NULL
};
7805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7815 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7816 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7822 wxPy_BEGIN_ALLOW_THREADS
;
7823 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7825 wxPy_END_ALLOW_THREADS
;
7826 if (PyErr_Occurred()) return NULL
;
7827 } _resultobj
= Py_BuildValue("i",_result
);
7831 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7832 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7833 PyObject
* _resultobj
;
7836 PyObject
* _argo0
= 0;
7837 char *_kwnames
[] = { "self", NULL
};
7840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7850 wxPy_BEGIN_ALLOW_THREADS
;
7851 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7853 wxPy_END_ALLOW_THREADS
;
7854 if (PyErr_Occurred()) return NULL
;
7855 } _resultobj
= Py_BuildValue("i",_result
);
7859 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7860 wxMenuItemList
& list
= self
->GetMenuItems();
7861 return wxPy_ConvertList(&list
, "wxMenuItem");
7863 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7864 PyObject
* _resultobj
;
7867 PyObject
* _argo0
= 0;
7868 char *_kwnames
[] = { "self", NULL
};
7871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7881 wxPy_BEGIN_ALLOW_THREADS
;
7882 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7884 wxPy_END_ALLOW_THREADS
;
7885 if (PyErr_Occurred()) return NULL
;
7887 _resultobj
= _result
;
7892 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7893 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7894 PyObject
* _resultobj
;
7896 wxEvtHandler
* _arg1
;
7897 PyObject
* _argo0
= 0;
7898 PyObject
* _argo1
= 0;
7899 char *_kwnames
[] = { "self","handler", NULL
};
7902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7912 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7913 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7919 wxPy_BEGIN_ALLOW_THREADS
;
7920 wxMenu_SetEventHandler(_arg0
,_arg1
);
7922 wxPy_END_ALLOW_THREADS
;
7923 if (PyErr_Occurred()) return NULL
;
7924 } Py_INCREF(Py_None
);
7925 _resultobj
= Py_None
;
7929 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7930 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7931 PyObject
* _resultobj
;
7932 wxEvtHandler
* _result
;
7934 PyObject
* _argo0
= 0;
7935 char *_kwnames
[] = { "self", NULL
};
7938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7948 wxPy_BEGIN_ALLOW_THREADS
;
7949 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
7951 wxPy_END_ALLOW_THREADS
;
7952 if (PyErr_Occurred()) return NULL
;
7953 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7957 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7958 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7959 PyObject
* _resultobj
;
7962 PyObject
* _argo0
= 0;
7963 PyObject
* _argo1
= 0;
7964 char *_kwnames
[] = { "self","win", NULL
};
7967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
7970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7977 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7978 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7984 wxPy_BEGIN_ALLOW_THREADS
;
7985 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
7987 wxPy_END_ALLOW_THREADS
;
7988 if (PyErr_Occurred()) return NULL
;
7989 } Py_INCREF(Py_None
);
7990 _resultobj
= Py_None
;
7994 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7995 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7996 PyObject
* _resultobj
;
7999 PyObject
* _argo0
= 0;
8000 char *_kwnames
[] = { "self", NULL
};
8003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8013 wxPy_BEGIN_ALLOW_THREADS
;
8014 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8016 wxPy_END_ALLOW_THREADS
;
8017 if (PyErr_Occurred()) return NULL
;
8018 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8022 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8023 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8024 PyObject
* _resultobj
;
8027 PyObject
* _argo0
= 0;
8028 char *_kwnames
[] = { "self", NULL
};
8031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8041 wxPy_BEGIN_ALLOW_THREADS
;
8042 _result
= (long )wxMenu_GetStyle(_arg0
);
8044 wxPy_END_ALLOW_THREADS
;
8045 if (PyErr_Occurred()) return NULL
;
8046 } _resultobj
= Py_BuildValue("l",_result
);
8050 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8051 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8052 PyObject
* _resultobj
;
8055 PyObject
* _argo0
= 0;
8056 char *_kwnames
[] = { "self", NULL
};
8059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8069 wxPy_BEGIN_ALLOW_THREADS
;
8070 _result
= (bool )wxMenu_IsAttached(_arg0
);
8072 wxPy_END_ALLOW_THREADS
;
8073 if (PyErr_Occurred()) return NULL
;
8074 } _resultobj
= Py_BuildValue("i",_result
);
8078 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8079 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8080 PyObject
* _resultobj
;
8083 PyObject
* _argo0
= 0;
8084 PyObject
* _argo1
= 0;
8085 char *_kwnames
[] = { "self","parent", NULL
};
8088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8098 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8099 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8105 wxPy_BEGIN_ALLOW_THREADS
;
8106 wxMenu_SetParent(_arg0
,_arg1
);
8108 wxPy_END_ALLOW_THREADS
;
8109 if (PyErr_Occurred()) return NULL
;
8110 } Py_INCREF(Py_None
);
8111 _resultobj
= Py_None
;
8115 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8116 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8117 PyObject
* _resultobj
;
8120 PyObject
* _argo0
= 0;
8121 char *_kwnames
[] = { "self", NULL
};
8124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8134 wxPy_BEGIN_ALLOW_THREADS
;
8135 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8137 wxPy_END_ALLOW_THREADS
;
8138 if (PyErr_Occurred()) return NULL
;
8139 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8143 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8146 src
= (wxMenuBar
*) ptr
;
8147 dest
= (wxWindow
*) src
;
8148 return (void *) dest
;
8151 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8154 src
= (wxMenuBar
*) ptr
;
8155 dest
= (wxEvtHandler
*) src
;
8156 return (void *) dest
;
8159 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8162 src
= (wxMenuBar
*) ptr
;
8163 dest
= (wxObject
*) src
;
8164 return (void *) dest
;
8167 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8168 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8169 PyObject
* _resultobj
;
8170 wxMenuBar
* _result
;
8171 long _arg0
= (long ) 0;
8172 char *_kwnames
[] = { "style", NULL
};
8176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8179 wxPy_BEGIN_ALLOW_THREADS
;
8180 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8182 wxPy_END_ALLOW_THREADS
;
8183 if (PyErr_Occurred()) return NULL
;
8185 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8186 _resultobj
= Py_BuildValue("s",_ptemp
);
8189 _resultobj
= Py_None
;
8194 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8195 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8196 PyObject
* _resultobj
;
8201 PyObject
* _argo0
= 0;
8202 PyObject
* _argo1
= 0;
8203 PyObject
* _obj2
= 0;
8204 char *_kwnames
[] = { "self","menu","title", NULL
};
8207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8217 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8218 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8224 #if PYTHON_API_VERSION >= 1009
8225 char* tmpPtr
; int tmpSize
;
8226 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8227 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8230 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8232 _arg2
= new wxString(tmpPtr
, tmpSize
);
8234 if (!PyString_Check(_obj2
)) {
8235 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8238 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8242 wxPy_BEGIN_ALLOW_THREADS
;
8243 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8245 wxPy_END_ALLOW_THREADS
;
8246 if (PyErr_Occurred()) return NULL
;
8247 } _resultobj
= Py_BuildValue("i",_result
);
8255 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8256 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8257 PyObject
* _resultobj
;
8263 PyObject
* _argo0
= 0;
8264 PyObject
* _argo2
= 0;
8265 PyObject
* _obj3
= 0;
8266 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8279 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8280 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8286 #if PYTHON_API_VERSION >= 1009
8287 char* tmpPtr
; int tmpSize
;
8288 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8289 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8292 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8294 _arg3
= new wxString(tmpPtr
, tmpSize
);
8296 if (!PyString_Check(_obj3
)) {
8297 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8300 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8304 wxPy_BEGIN_ALLOW_THREADS
;
8305 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8307 wxPy_END_ALLOW_THREADS
;
8308 if (PyErr_Occurred()) return NULL
;
8309 } _resultobj
= Py_BuildValue("i",_result
);
8317 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8318 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8319 PyObject
* _resultobj
;
8322 PyObject
* _argo0
= 0;
8323 char *_kwnames
[] = { "self", NULL
};
8326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8336 wxPy_BEGIN_ALLOW_THREADS
;
8337 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8339 wxPy_END_ALLOW_THREADS
;
8340 if (PyErr_Occurred()) return NULL
;
8341 } _resultobj
= Py_BuildValue("i",_result
);
8345 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8346 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8347 PyObject
* _resultobj
;
8351 PyObject
* _argo0
= 0;
8352 char *_kwnames
[] = { "self","pos", NULL
};
8355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8365 wxPy_BEGIN_ALLOW_THREADS
;
8366 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8368 wxPy_END_ALLOW_THREADS
;
8369 if (PyErr_Occurred()) return NULL
;
8370 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8374 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8375 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8382 PyObject
* _argo0
= 0;
8383 PyObject
* _argo2
= 0;
8384 PyObject
* _obj3
= 0;
8385 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8398 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8399 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8405 #if PYTHON_API_VERSION >= 1009
8406 char* tmpPtr
; int tmpSize
;
8407 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8408 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8411 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8413 _arg3
= new wxString(tmpPtr
, tmpSize
);
8415 if (!PyString_Check(_obj3
)) {
8416 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8419 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8423 wxPy_BEGIN_ALLOW_THREADS
;
8424 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8426 wxPy_END_ALLOW_THREADS
;
8427 if (PyErr_Occurred()) return NULL
;
8428 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8436 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8437 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8438 PyObject
* _resultobj
;
8442 PyObject
* _argo0
= 0;
8443 char *_kwnames
[] = { "self","pos", NULL
};
8446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8456 wxPy_BEGIN_ALLOW_THREADS
;
8457 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8459 wxPy_END_ALLOW_THREADS
;
8460 if (PyErr_Occurred()) return NULL
;
8461 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8465 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8466 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8467 PyObject
* _resultobj
;
8471 PyObject
* _argo0
= 0;
8473 char *_kwnames
[] = { "self","pos","enable", NULL
};
8476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8485 _arg2
= (bool ) tempbool2
;
8487 wxPy_BEGIN_ALLOW_THREADS
;
8488 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8490 wxPy_END_ALLOW_THREADS
;
8491 if (PyErr_Occurred()) return NULL
;
8492 } Py_INCREF(Py_None
);
8493 _resultobj
= Py_None
;
8497 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8498 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8499 PyObject
* _resultobj
;
8503 PyObject
* _argo0
= 0;
8504 PyObject
* _obj2
= 0;
8505 char *_kwnames
[] = { "self","pos","label", NULL
};
8508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8518 #if PYTHON_API_VERSION >= 1009
8519 char* tmpPtr
; int tmpSize
;
8520 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8521 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8524 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8526 _arg2
= new wxString(tmpPtr
, tmpSize
);
8528 if (!PyString_Check(_obj2
)) {
8529 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8532 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8536 wxPy_BEGIN_ALLOW_THREADS
;
8537 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8539 wxPy_END_ALLOW_THREADS
;
8540 if (PyErr_Occurred()) return NULL
;
8541 } Py_INCREF(Py_None
);
8542 _resultobj
= Py_None
;
8550 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8551 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8552 PyObject
* _resultobj
;
8556 PyObject
* _argo0
= 0;
8557 char *_kwnames
[] = { "self","pos", NULL
};
8560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8570 wxPy_BEGIN_ALLOW_THREADS
;
8571 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8573 wxPy_END_ALLOW_THREADS
;
8574 if (PyErr_Occurred()) return NULL
;
8576 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8584 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8585 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8586 PyObject
* _resultobj
;
8591 PyObject
* _argo0
= 0;
8592 PyObject
* _obj1
= 0;
8593 PyObject
* _obj2
= 0;
8594 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8607 #if PYTHON_API_VERSION >= 1009
8608 char* tmpPtr
; int tmpSize
;
8609 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8610 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8613 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8615 _arg1
= new wxString(tmpPtr
, tmpSize
);
8617 if (!PyString_Check(_obj1
)) {
8618 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8621 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8625 #if PYTHON_API_VERSION >= 1009
8626 char* tmpPtr
; int tmpSize
;
8627 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8628 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8631 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8633 _arg2
= new wxString(tmpPtr
, tmpSize
);
8635 if (!PyString_Check(_obj2
)) {
8636 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8639 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8643 wxPy_BEGIN_ALLOW_THREADS
;
8644 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8646 wxPy_END_ALLOW_THREADS
;
8647 if (PyErr_Occurred()) return NULL
;
8648 } _resultobj
= Py_BuildValue("i",_result
);
8660 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8661 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8662 PyObject
* _resultobj
;
8663 wxMenuItem
* _result
;
8666 PyObject
* _argo0
= 0;
8667 char *_kwnames
[] = { "self","id", NULL
};
8670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8680 wxPy_BEGIN_ALLOW_THREADS
;
8681 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8683 wxPy_END_ALLOW_THREADS
;
8684 if (PyErr_Occurred()) return NULL
;
8685 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8689 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8690 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8691 PyObject
* _resultobj
;
8695 PyObject
* _argo0
= 0;
8697 char *_kwnames
[] = { "self","id","enable", NULL
};
8700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8709 _arg2
= (bool ) tempbool2
;
8711 wxPy_BEGIN_ALLOW_THREADS
;
8712 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8714 wxPy_END_ALLOW_THREADS
;
8715 if (PyErr_Occurred()) return NULL
;
8716 } Py_INCREF(Py_None
);
8717 _resultobj
= Py_None
;
8721 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8722 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8723 PyObject
* _resultobj
;
8727 PyObject
* _argo0
= 0;
8729 char *_kwnames
[] = { "self","id","check", NULL
};
8732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8741 _arg2
= (bool ) tempbool2
;
8743 wxPy_BEGIN_ALLOW_THREADS
;
8744 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8746 wxPy_END_ALLOW_THREADS
;
8747 if (PyErr_Occurred()) return NULL
;
8748 } Py_INCREF(Py_None
);
8749 _resultobj
= Py_None
;
8753 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8754 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8755 PyObject
* _resultobj
;
8759 PyObject
* _argo0
= 0;
8760 char *_kwnames
[] = { "self","id", NULL
};
8763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8773 wxPy_BEGIN_ALLOW_THREADS
;
8774 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8776 wxPy_END_ALLOW_THREADS
;
8777 if (PyErr_Occurred()) return NULL
;
8778 } _resultobj
= Py_BuildValue("i",_result
);
8782 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8783 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8784 PyObject
* _resultobj
;
8788 PyObject
* _argo0
= 0;
8789 char *_kwnames
[] = { "self","id", NULL
};
8792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8802 wxPy_BEGIN_ALLOW_THREADS
;
8803 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8805 wxPy_END_ALLOW_THREADS
;
8806 if (PyErr_Occurred()) return NULL
;
8807 } _resultobj
= Py_BuildValue("i",_result
);
8811 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8812 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8813 PyObject
* _resultobj
;
8817 PyObject
* _argo0
= 0;
8818 PyObject
* _obj2
= 0;
8819 char *_kwnames
[] = { "self","id","label", NULL
};
8822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8832 #if PYTHON_API_VERSION >= 1009
8833 char* tmpPtr
; int tmpSize
;
8834 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8835 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8838 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8840 _arg2
= new wxString(tmpPtr
, tmpSize
);
8842 if (!PyString_Check(_obj2
)) {
8843 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8846 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8850 wxPy_BEGIN_ALLOW_THREADS
;
8851 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8853 wxPy_END_ALLOW_THREADS
;
8854 if (PyErr_Occurred()) return NULL
;
8855 } Py_INCREF(Py_None
);
8856 _resultobj
= Py_None
;
8864 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8865 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8866 PyObject
* _resultobj
;
8870 PyObject
* _argo0
= 0;
8871 char *_kwnames
[] = { "self","id", NULL
};
8874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8884 wxPy_BEGIN_ALLOW_THREADS
;
8885 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8887 wxPy_END_ALLOW_THREADS
;
8888 if (PyErr_Occurred()) return NULL
;
8890 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8898 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8899 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8900 PyObject
* _resultobj
;
8904 PyObject
* _argo0
= 0;
8905 PyObject
* _obj2
= 0;
8906 char *_kwnames
[] = { "self","id","helpString", NULL
};
8909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8919 #if PYTHON_API_VERSION >= 1009
8920 char* tmpPtr
; int tmpSize
;
8921 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8922 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8925 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8927 _arg2
= new wxString(tmpPtr
, tmpSize
);
8929 if (!PyString_Check(_obj2
)) {
8930 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8933 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8937 wxPy_BEGIN_ALLOW_THREADS
;
8938 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8940 wxPy_END_ALLOW_THREADS
;
8941 if (PyErr_Occurred()) return NULL
;
8942 } Py_INCREF(Py_None
);
8943 _resultobj
= Py_None
;
8951 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8952 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8953 PyObject
* _resultobj
;
8957 PyObject
* _argo0
= 0;
8958 char *_kwnames
[] = { "self","id", NULL
};
8961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
8964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
8971 wxPy_BEGIN_ALLOW_THREADS
;
8972 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
8974 wxPy_END_ALLOW_THREADS
;
8975 if (PyErr_Occurred()) return NULL
;
8977 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8985 static void *SwigwxMenuItemTowxObject(void *ptr
) {
8988 src
= (wxMenuItem
*) ptr
;
8989 dest
= (wxObject
*) src
;
8990 return (void *) dest
;
8993 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8994 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8995 PyObject
* _resultobj
;
8996 wxMenuItem
* _result
;
8997 wxMenu
* _arg0
= (wxMenu
*) NULL
;
8998 int _arg1
= (int ) wxID_SEPARATOR
;
8999 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9000 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9001 bool _arg4
= (bool ) FALSE
;
9002 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9003 PyObject
* _argo0
= 0;
9004 PyObject
* _obj2
= 0;
9005 PyObject
* _obj3
= 0;
9006 int tempbool4
= (int) FALSE
;
9007 PyObject
* _argo5
= 0;
9008 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9023 #if PYTHON_API_VERSION >= 1009
9024 char* tmpPtr
; int tmpSize
;
9025 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9026 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9029 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9031 _arg2
= new wxString(tmpPtr
, tmpSize
);
9033 if (!PyString_Check(_obj2
)) {
9034 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9037 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9042 #if PYTHON_API_VERSION >= 1009
9043 char* tmpPtr
; int tmpSize
;
9044 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9045 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9048 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9050 _arg3
= new wxString(tmpPtr
, tmpSize
);
9052 if (!PyString_Check(_obj3
)) {
9053 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9056 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9059 _arg4
= (bool ) tempbool4
;
9061 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9062 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9068 wxPy_BEGIN_ALLOW_THREADS
;
9069 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9071 wxPy_END_ALLOW_THREADS
;
9072 if (PyErr_Occurred()) return NULL
;
9074 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9075 _resultobj
= Py_BuildValue("s",_ptemp
);
9078 _resultobj
= Py_None
;
9091 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9092 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9093 PyObject
* _resultobj
;
9096 PyObject
* _argo0
= 0;
9097 char *_kwnames
[] = { "self", NULL
};
9100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9110 wxPy_BEGIN_ALLOW_THREADS
;
9111 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9113 wxPy_END_ALLOW_THREADS
;
9114 if (PyErr_Occurred()) return NULL
;
9115 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9119 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9120 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9121 PyObject
* _resultobj
;
9124 PyObject
* _argo0
= 0;
9125 char *_kwnames
[] = { "self","id", NULL
};
9128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9138 wxPy_BEGIN_ALLOW_THREADS
;
9139 wxMenuItem_SetId(_arg0
,_arg1
);
9141 wxPy_END_ALLOW_THREADS
;
9142 if (PyErr_Occurred()) return NULL
;
9143 } Py_INCREF(Py_None
);
9144 _resultobj
= Py_None
;
9148 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9149 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9150 PyObject
* _resultobj
;
9153 PyObject
* _argo0
= 0;
9154 char *_kwnames
[] = { "self", NULL
};
9157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9167 wxPy_BEGIN_ALLOW_THREADS
;
9168 _result
= (int )wxMenuItem_GetId(_arg0
);
9170 wxPy_END_ALLOW_THREADS
;
9171 if (PyErr_Occurred()) return NULL
;
9172 } _resultobj
= Py_BuildValue("i",_result
);
9176 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9177 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9178 PyObject
* _resultobj
;
9181 PyObject
* _argo0
= 0;
9182 char *_kwnames
[] = { "self", NULL
};
9185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9195 wxPy_BEGIN_ALLOW_THREADS
;
9196 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9198 wxPy_END_ALLOW_THREADS
;
9199 if (PyErr_Occurred()) return NULL
;
9200 } _resultobj
= Py_BuildValue("i",_result
);
9204 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9205 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9206 PyObject
* _resultobj
;
9209 PyObject
* _argo0
= 0;
9210 PyObject
* _obj1
= 0;
9211 char *_kwnames
[] = { "self","str", NULL
};
9214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9224 #if PYTHON_API_VERSION >= 1009
9225 char* tmpPtr
; int tmpSize
;
9226 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9227 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9230 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9232 _arg1
= new wxString(tmpPtr
, tmpSize
);
9234 if (!PyString_Check(_obj1
)) {
9235 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9238 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9242 wxPy_BEGIN_ALLOW_THREADS
;
9243 wxMenuItem_SetText(_arg0
,*_arg1
);
9245 wxPy_END_ALLOW_THREADS
;
9246 if (PyErr_Occurred()) return NULL
;
9247 } Py_INCREF(Py_None
);
9248 _resultobj
= Py_None
;
9256 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9257 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9258 PyObject
* _resultobj
;
9261 PyObject
* _argo0
= 0;
9262 char *_kwnames
[] = { "self", NULL
};
9265 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9268 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9269 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9275 wxPy_BEGIN_ALLOW_THREADS
;
9276 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9278 wxPy_END_ALLOW_THREADS
;
9279 if (PyErr_Occurred()) return NULL
;
9281 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9289 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9290 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9291 PyObject
* _resultobj
;
9294 PyObject
* _argo0
= 0;
9295 char *_kwnames
[] = { "self", NULL
};
9298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9308 wxPy_BEGIN_ALLOW_THREADS
;
9309 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9310 _result
= (wxString
*) &_result_ref
;
9312 wxPy_END_ALLOW_THREADS
;
9313 if (PyErr_Occurred()) return NULL
;
9315 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9320 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9321 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9322 PyObject
* _resultobj
;
9325 PyObject
* _argo0
= 0;
9327 char *_kwnames
[] = { "self","checkable", NULL
};
9330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9339 _arg1
= (bool ) tempbool1
;
9341 wxPy_BEGIN_ALLOW_THREADS
;
9342 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9344 wxPy_END_ALLOW_THREADS
;
9345 if (PyErr_Occurred()) return NULL
;
9346 } Py_INCREF(Py_None
);
9347 _resultobj
= Py_None
;
9351 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9352 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9353 PyObject
* _resultobj
;
9356 PyObject
* _argo0
= 0;
9357 char *_kwnames
[] = { "self", NULL
};
9360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9363 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9364 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9370 wxPy_BEGIN_ALLOW_THREADS
;
9371 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9373 wxPy_END_ALLOW_THREADS
;
9374 if (PyErr_Occurred()) return NULL
;
9375 } _resultobj
= Py_BuildValue("i",_result
);
9379 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9380 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9381 PyObject
* _resultobj
;
9384 PyObject
* _argo0
= 0;
9385 char *_kwnames
[] = { "self", NULL
};
9388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9398 wxPy_BEGIN_ALLOW_THREADS
;
9399 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9401 wxPy_END_ALLOW_THREADS
;
9402 if (PyErr_Occurred()) return NULL
;
9403 } _resultobj
= Py_BuildValue("i",_result
);
9407 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9408 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9409 PyObject
* _resultobj
;
9412 PyObject
* _argo0
= 0;
9413 PyObject
* _argo1
= 0;
9414 char *_kwnames
[] = { "self","menu", NULL
};
9417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9427 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9428 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9434 wxPy_BEGIN_ALLOW_THREADS
;
9435 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9437 wxPy_END_ALLOW_THREADS
;
9438 if (PyErr_Occurred()) return NULL
;
9439 } Py_INCREF(Py_None
);
9440 _resultobj
= Py_None
;
9444 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9445 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9446 PyObject
* _resultobj
;
9449 PyObject
* _argo0
= 0;
9450 char *_kwnames
[] = { "self", NULL
};
9453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9463 wxPy_BEGIN_ALLOW_THREADS
;
9464 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9466 wxPy_END_ALLOW_THREADS
;
9467 if (PyErr_Occurred()) return NULL
;
9468 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9472 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9473 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9474 PyObject
* _resultobj
;
9476 bool _arg1
= (bool ) TRUE
;
9477 PyObject
* _argo0
= 0;
9478 int tempbool1
= (int) TRUE
;
9479 char *_kwnames
[] = { "self","enable", NULL
};
9482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9491 _arg1
= (bool ) tempbool1
;
9493 wxPy_BEGIN_ALLOW_THREADS
;
9494 wxMenuItem_Enable(_arg0
,_arg1
);
9496 wxPy_END_ALLOW_THREADS
;
9497 if (PyErr_Occurred()) return NULL
;
9498 } Py_INCREF(Py_None
);
9499 _resultobj
= Py_None
;
9503 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9504 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9505 PyObject
* _resultobj
;
9508 PyObject
* _argo0
= 0;
9509 char *_kwnames
[] = { "self", NULL
};
9512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9522 wxPy_BEGIN_ALLOW_THREADS
;
9523 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9525 wxPy_END_ALLOW_THREADS
;
9526 if (PyErr_Occurred()) return NULL
;
9527 } _resultobj
= Py_BuildValue("i",_result
);
9531 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9532 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9533 PyObject
* _resultobj
;
9535 bool _arg1
= (bool ) TRUE
;
9536 PyObject
* _argo0
= 0;
9537 int tempbool1
= (int) TRUE
;
9538 char *_kwnames
[] = { "self","check", NULL
};
9541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9550 _arg1
= (bool ) tempbool1
;
9552 wxPy_BEGIN_ALLOW_THREADS
;
9553 wxMenuItem_Check(_arg0
,_arg1
);
9555 wxPy_END_ALLOW_THREADS
;
9556 if (PyErr_Occurred()) return NULL
;
9557 } Py_INCREF(Py_None
);
9558 _resultobj
= Py_None
;
9562 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9563 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9564 PyObject
* _resultobj
;
9567 PyObject
* _argo0
= 0;
9568 char *_kwnames
[] = { "self", NULL
};
9571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9581 wxPy_BEGIN_ALLOW_THREADS
;
9582 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9584 wxPy_END_ALLOW_THREADS
;
9585 if (PyErr_Occurred()) return NULL
;
9586 } _resultobj
= Py_BuildValue("i",_result
);
9590 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9591 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9592 PyObject
* _resultobj
;
9594 PyObject
* _argo0
= 0;
9595 char *_kwnames
[] = { "self", NULL
};
9598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9608 wxPy_BEGIN_ALLOW_THREADS
;
9609 wxMenuItem_Toggle(_arg0
);
9611 wxPy_END_ALLOW_THREADS
;
9612 if (PyErr_Occurred()) return NULL
;
9613 } Py_INCREF(Py_None
);
9614 _resultobj
= Py_None
;
9618 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9619 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9620 PyObject
* _resultobj
;
9623 PyObject
* _argo0
= 0;
9624 PyObject
* _obj1
= 0;
9625 char *_kwnames
[] = { "self","str", NULL
};
9628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9638 #if PYTHON_API_VERSION >= 1009
9639 char* tmpPtr
; int tmpSize
;
9640 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9641 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9644 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9646 _arg1
= new wxString(tmpPtr
, tmpSize
);
9648 if (!PyString_Check(_obj1
)) {
9649 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9652 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9656 wxPy_BEGIN_ALLOW_THREADS
;
9657 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9659 wxPy_END_ALLOW_THREADS
;
9660 if (PyErr_Occurred()) return NULL
;
9661 } Py_INCREF(Py_None
);
9662 _resultobj
= Py_None
;
9670 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9671 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9672 PyObject
* _resultobj
;
9675 PyObject
* _argo0
= 0;
9676 char *_kwnames
[] = { "self", NULL
};
9679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9689 wxPy_BEGIN_ALLOW_THREADS
;
9690 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9691 _result
= (wxString
*) &_result_ref
;
9693 wxPy_END_ALLOW_THREADS
;
9694 if (PyErr_Occurred()) return NULL
;
9696 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9701 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9702 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9703 PyObject
* _resultobj
;
9704 wxAcceleratorEntry
* _result
;
9706 PyObject
* _argo0
= 0;
9707 char *_kwnames
[] = { "self", NULL
};
9711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9721 wxPy_BEGIN_ALLOW_THREADS
;
9722 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9724 wxPy_END_ALLOW_THREADS
;
9725 if (PyErr_Occurred()) return NULL
;
9727 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9728 _resultobj
= Py_BuildValue("s",_ptemp
);
9731 _resultobj
= Py_None
;
9736 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9737 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9738 PyObject
* _resultobj
;
9740 wxAcceleratorEntry
* _arg1
;
9741 PyObject
* _argo0
= 0;
9742 PyObject
* _argo1
= 0;
9743 char *_kwnames
[] = { "self","accel", NULL
};
9746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9756 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9757 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9763 wxPy_BEGIN_ALLOW_THREADS
;
9764 wxMenuItem_SetAccel(_arg0
,_arg1
);
9766 wxPy_END_ALLOW_THREADS
;
9767 if (PyErr_Occurred()) return NULL
;
9768 } Py_INCREF(Py_None
);
9769 _resultobj
= Py_None
;
9773 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9774 PyObject
* _resultobj
;
9777 PyObject
* _obj0
= 0;
9778 char *_kwnames
[] = { "text", NULL
};
9781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9784 #if PYTHON_API_VERSION >= 1009
9785 char* tmpPtr
; int tmpSize
;
9786 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9787 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9790 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9792 _arg0
= new wxString(tmpPtr
, tmpSize
);
9794 if (!PyString_Check(_obj0
)) {
9795 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9798 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9802 wxPy_BEGIN_ALLOW_THREADS
;
9803 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9805 wxPy_END_ALLOW_THREADS
;
9806 if (PyErr_Occurred()) return NULL
;
9808 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9820 static PyMethodDef windowscMethods
[] = {
9821 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
9822 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9823 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9824 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9825 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9826 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
9827 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9828 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
9829 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9830 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9831 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9832 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9833 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9834 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9835 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9836 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
9837 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9838 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
9839 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9840 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
9841 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9842 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9843 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9844 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9845 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9846 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9847 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9848 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9849 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9850 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
9851 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9852 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9853 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9854 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9855 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9856 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
9857 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9858 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9859 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9860 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
9861 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9862 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
9863 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
9864 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
9865 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
9866 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
9867 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9868 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9869 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9870 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9871 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9872 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
9873 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
9874 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
9875 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
9876 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9877 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
9878 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9879 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9880 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
9881 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
9882 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
9883 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9884 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9885 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9886 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9887 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9888 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9889 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9890 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
9891 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9892 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9893 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9894 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
9895 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
9896 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9897 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
9898 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
9899 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
9900 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
9901 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9902 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
9903 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
9904 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
9905 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9906 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9907 { "wxScrolledWindow_ViewStart", (PyCFunction
) _wrap_wxScrolledWindow_ViewStart
, METH_VARARGS
| METH_KEYWORDS
},
9908 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
9909 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxDialog_CreateButtonSizer", (PyCFunction
) _wrap_wxDialog_CreateButtonSizer
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxDialog_CreateTextSizer", (PyCFunction
) _wrap_wxDialog_CreateTextSizer
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "wxDialog_SetReturnCode", (PyCFunction
) _wrap_wxDialog_SetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "wxDialog_GetReturnCode", (PyCFunction
) _wrap_wxDialog_GetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "wxDialog_ShowModal", (PyCFunction
) _wrap_wxDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "wxDialog_Show", (PyCFunction
) _wrap_wxDialog_Show
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "wxDialog_SetTitle", (PyCFunction
) _wrap_wxDialog_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "wxDialog_IsModal", (PyCFunction
) _wrap_wxDialog_IsModal
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxDialog_SetModal", (PyCFunction
) _wrap_wxDialog_SetModal
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxDialog_IsIconized", (PyCFunction
) _wrap_wxDialog_IsIconized
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "wxDialog_Iconize", (PyCFunction
) _wrap_wxDialog_Iconize
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "wxDialog_GetTitle", (PyCFunction
) _wrap_wxDialog_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxDialog_EndModal", (PyCFunction
) _wrap_wxDialog_EndModal
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "wxDialog_Centre", (PyCFunction
) _wrap_wxDialog_Centre
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "new_wxDialog", (PyCFunction
) _wrap_new_wxDialog
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxPyValidator__setSelf", (PyCFunction
) _wrap_wxPyValidator__setSelf
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10095 * This table is used by the pointer type-checker
10097 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10098 { "_signed_long","_long",0},
10099 { "_wxPrintQuality","_wxCoord",0},
10100 { "_wxPrintQuality","_int",0},
10101 { "_wxPrintQuality","_signed_int",0},
10102 { "_wxPrintQuality","_unsigned_int",0},
10103 { "_wxPrintQuality","_wxWindowID",0},
10104 { "_wxPrintQuality","_uint",0},
10105 { "_wxPrintQuality","_EBool",0},
10106 { "_wxPrintQuality","_size_t",0},
10107 { "_wxPrintQuality","_time_t",0},
10108 { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10109 { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10110 { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler
},
10111 { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10112 { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10113 { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10114 { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler
},
10115 { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler
},
10116 { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler
},
10117 { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10118 { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler
},
10119 { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10120 { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10121 { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10122 { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler
},
10123 { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10124 { "_byte","_unsigned_char",0},
10125 { "_long","_unsigned_long",0},
10126 { "_long","_signed_long",0},
10127 { "_class_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject
},
10128 { "_class_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10129 { "_class_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject
},
10130 { "_class_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10131 { "_class_wxObject","_class_wxMenu",SwigwxMenuTowxObject
},
10132 { "_class_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10133 { "_class_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10134 { "_class_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10135 { "_class_wxObject","_class_wxDialog",SwigwxDialogTowxObject
},
10136 { "_class_wxObject","_wxDialog",SwigwxDialogTowxObject
},
10137 { "_class_wxObject","_class_wxPanel",SwigwxPanelTowxObject
},
10138 { "_class_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10139 { "_class_wxObject","_class_wxWindow",SwigwxWindowTowxObject
},
10140 { "_class_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10141 { "_class_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject
},
10142 { "_class_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10143 { "_class_wxObject","_class_wxValidator",SwigwxValidatorTowxObject
},
10144 { "_class_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10145 { "_class_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10146 { "_class_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10147 { "_size_t","_wxCoord",0},
10148 { "_size_t","_wxPrintQuality",0},
10149 { "_size_t","_time_t",0},
10150 { "_size_t","_unsigned_int",0},
10151 { "_size_t","_int",0},
10152 { "_size_t","_wxWindowID",0},
10153 { "_size_t","_uint",0},
10154 { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10155 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10156 { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel
},
10157 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel
},
10158 { "_uint","_wxCoord",0},
10159 { "_uint","_wxPrintQuality",0},
10160 { "_uint","_time_t",0},
10161 { "_uint","_size_t",0},
10162 { "_uint","_unsigned_int",0},
10163 { "_uint","_int",0},
10164 { "_uint","_wxWindowID",0},
10165 { "_wxChar","_char",0},
10166 { "_char","_wxChar",0},
10167 { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10168 { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10169 { "_EBool","_wxCoord",0},
10170 { "_EBool","_wxPrintQuality",0},
10171 { "_EBool","_signed_int",0},
10172 { "_EBool","_int",0},
10173 { "_EBool","_wxWindowID",0},
10174 { "_unsigned_long","_long",0},
10175 { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10176 { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10177 { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel
},
10178 { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel
},
10179 { "_signed_int","_wxCoord",0},
10180 { "_signed_int","_wxPrintQuality",0},
10181 { "_signed_int","_EBool",0},
10182 { "_signed_int","_wxWindowID",0},
10183 { "_signed_int","_int",0},
10184 { "_WXTYPE","_short",0},
10185 { "_WXTYPE","_signed_short",0},
10186 { "_WXTYPE","_unsigned_short",0},
10187 { "_unsigned_short","_WXTYPE",0},
10188 { "_unsigned_short","_short",0},
10189 { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow
},
10190 { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10191 { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10192 { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10193 { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow
},
10194 { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow
},
10195 { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow
},
10196 { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10197 { "_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject
},
10198 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10199 { "_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject
},
10200 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10201 { "_wxObject","_class_wxMenu",SwigwxMenuTowxObject
},
10202 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10203 { "_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10204 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10205 { "_wxObject","_class_wxDialog",SwigwxDialogTowxObject
},
10206 { "_wxObject","_wxDialog",SwigwxDialogTowxObject
},
10207 { "_wxObject","_class_wxPanel",SwigwxPanelTowxObject
},
10208 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10209 { "_wxObject","_class_wxWindow",SwigwxWindowTowxObject
},
10210 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10211 { "_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject
},
10212 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10213 { "_wxObject","_class_wxValidator",SwigwxValidatorTowxObject
},
10214 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10215 { "_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10216 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10217 { "_signed_short","_WXTYPE",0},
10218 { "_signed_short","_short",0},
10219 { "_unsigned_char","_byte",0},
10220 { "_unsigned_int","_wxCoord",0},
10221 { "_unsigned_int","_wxPrintQuality",0},
10222 { "_unsigned_int","_time_t",0},
10223 { "_unsigned_int","_size_t",0},
10224 { "_unsigned_int","_uint",0},
10225 { "_unsigned_int","_wxWindowID",0},
10226 { "_unsigned_int","_int",0},
10227 { "_short","_WXTYPE",0},
10228 { "_short","_unsigned_short",0},
10229 { "_short","_signed_short",0},
10230 { "_wxWindowID","_wxCoord",0},
10231 { "_wxWindowID","_wxPrintQuality",0},
10232 { "_wxWindowID","_time_t",0},
10233 { "_wxWindowID","_size_t",0},
10234 { "_wxWindowID","_EBool",0},
10235 { "_wxWindowID","_uint",0},
10236 { "_wxWindowID","_int",0},
10237 { "_wxWindowID","_signed_int",0},
10238 { "_wxWindowID","_unsigned_int",0},
10239 { "_int","_wxCoord",0},
10240 { "_int","_wxPrintQuality",0},
10241 { "_int","_time_t",0},
10242 { "_int","_size_t",0},
10243 { "_int","_EBool",0},
10244 { "_int","_uint",0},
10245 { "_int","_wxWindowID",0},
10246 { "_int","_unsigned_int",0},
10247 { "_int","_signed_int",0},
10248 { "_time_t","_wxCoord",0},
10249 { "_time_t","_wxPrintQuality",0},
10250 { "_time_t","_unsigned_int",0},
10251 { "_time_t","_int",0},
10252 { "_time_t","_wxWindowID",0},
10253 { "_time_t","_uint",0},
10254 { "_time_t","_size_t",0},
10255 { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10256 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10257 { "_wxCoord","_int",0},
10258 { "_wxCoord","_signed_int",0},
10259 { "_wxCoord","_unsigned_int",0},
10260 { "_wxCoord","_wxWindowID",0},
10261 { "_wxCoord","_uint",0},
10262 { "_wxCoord","_EBool",0},
10263 { "_wxCoord","_size_t",0},
10264 { "_wxCoord","_time_t",0},
10265 { "_wxCoord","_wxPrintQuality",0},
10266 { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10267 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10268 { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler
},
10269 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10270 { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10271 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10272 { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler
},
10273 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler
},
10274 { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler
},
10275 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10276 { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler
},
10277 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10278 { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10279 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10280 { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler
},
10281 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10282 { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow
},
10283 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10284 { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10285 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10286 { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow
},
10287 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow
},
10288 { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow
},
10289 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10292 static PyObject
*SWIG_globals
;
10296 SWIGEXPORT(void) initwindowsc() {
10298 SWIG_globals
= SWIG_newvarlink();
10299 m
= Py_InitModule("windowsc", windowscMethods
);
10300 d
= PyModule_GetDict(m
);
10303 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10304 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);