2 * FILE : src/msw/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 required";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 wxPyTState
* state
= wxPyBeginBlockThreads();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 wxPyEndBlockThreads(state
);
121 // This is very dangerous!!! But is the only way I could find
122 // to squash a memory leak. Currently it is okay, but if the
123 // validator architecture in wxWindows ever changes, problems
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_FromHWND(unsigned long hWnd
) {
145 wxWindow
* win
= new wxWindow
;
147 win
->SubclassWin(hWnd
);
153 static PyObject
*_wrap_wxWindow_FromHWND(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
154 PyObject
* _resultobj
;
157 char *_kwnames
[] = { "hWnd", NULL
};
160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxWindow_FromHWND",_kwnames
,&_arg0
))
163 wxPy_BEGIN_ALLOW_THREADS
;
164 _result
= (wxWindow
*)wxWindow_FromHWND(_arg0
);
166 wxPy_END_ALLOW_THREADS
;
167 if (PyErr_Occurred()) return NULL
;
168 }{ _resultobj
= wxPyMake_wxObject(_result
); }
172 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
175 src
= (wxEvtHandler
*) ptr
;
176 dest
= (wxObject
*) src
;
177 return (void *) dest
;
180 #define new_wxEvtHandler() (new wxEvtHandler())
181 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
182 PyObject
* _resultobj
;
183 wxEvtHandler
* _result
;
184 char *_kwnames
[] = { NULL
};
188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
191 wxPy_BEGIN_ALLOW_THREADS
;
192 _result
= (wxEvtHandler
*)new_wxEvtHandler();
194 wxPy_END_ALLOW_THREADS
;
195 if (PyErr_Occurred()) return NULL
;
197 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
198 _resultobj
= Py_BuildValue("s",_ptemp
);
201 _resultobj
= Py_None
;
206 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
207 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
208 PyObject
* _resultobj
;
210 wxEvtHandler
* _arg0
;
212 PyObject
* _argo0
= 0;
213 PyObject
* _argo1
= 0;
214 char *_kwnames
[] = { "self","event", NULL
};
217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
227 if (_argo1
== Py_None
) { _arg1
= NULL
; }
228 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
234 wxPy_BEGIN_ALLOW_THREADS
;
235 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
237 wxPy_END_ALLOW_THREADS
;
238 if (PyErr_Occurred()) return NULL
;
239 } _resultobj
= Py_BuildValue("i",_result
);
243 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
244 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
245 PyObject
* _resultobj
;
246 wxEvtHandler
* _arg0
;
248 PyObject
* _argo0
= 0;
249 PyObject
* _argo1
= 0;
250 char *_kwnames
[] = { "self","event", NULL
};
253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
263 if (_argo1
== Py_None
) { _arg1
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
270 wxPy_BEGIN_ALLOW_THREADS
;
271 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
273 wxPy_END_ALLOW_THREADS
;
274 if (PyErr_Occurred()) return NULL
;
275 } Py_INCREF(Py_None
);
276 _resultobj
= Py_None
;
280 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
281 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
282 PyObject
* _resultobj
;
284 wxEvtHandler
* _arg0
;
285 PyObject
* _argo0
= 0;
286 char *_kwnames
[] = { "self", NULL
};
289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
299 wxPy_BEGIN_ALLOW_THREADS
;
300 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
302 wxPy_END_ALLOW_THREADS
;
303 if (PyErr_Occurred()) return NULL
;
304 } _resultobj
= Py_BuildValue("i",_result
);
308 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
309 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
310 PyObject
* _resultobj
;
311 wxEvtHandler
* _arg0
;
313 PyObject
* _argo0
= 0;
315 char *_kwnames
[] = { "self","enabled", NULL
};
318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
327 _arg1
= (bool ) tempbool1
;
329 wxPy_BEGIN_ALLOW_THREADS
;
330 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
332 wxPy_END_ALLOW_THREADS
;
333 if (PyErr_Occurred()) return NULL
;
334 } Py_INCREF(Py_None
);
335 _resultobj
= Py_None
;
339 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
340 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
341 PyObject
* _resultobj
;
342 wxEvtHandler
* _result
;
343 wxEvtHandler
* _arg0
;
344 PyObject
* _argo0
= 0;
345 char *_kwnames
[] = { "self", NULL
};
348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
358 wxPy_BEGIN_ALLOW_THREADS
;
359 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
361 wxPy_END_ALLOW_THREADS
;
362 if (PyErr_Occurred()) return NULL
;
363 }{ _resultobj
= wxPyMake_wxObject(_result
); }
367 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
368 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
369 PyObject
* _resultobj
;
370 wxEvtHandler
* _result
;
371 wxEvtHandler
* _arg0
;
372 PyObject
* _argo0
= 0;
373 char *_kwnames
[] = { "self", NULL
};
376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
386 wxPy_BEGIN_ALLOW_THREADS
;
387 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
389 wxPy_END_ALLOW_THREADS
;
390 if (PyErr_Occurred()) return NULL
;
391 }{ _resultobj
= wxPyMake_wxObject(_result
); }
395 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
396 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
397 PyObject
* _resultobj
;
398 wxEvtHandler
* _arg0
;
399 wxEvtHandler
* _arg1
;
400 PyObject
* _argo0
= 0;
401 PyObject
* _argo1
= 0;
402 char *_kwnames
[] = { "self","handler", NULL
};
405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
422 wxPy_BEGIN_ALLOW_THREADS
;
423 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
425 wxPy_END_ALLOW_THREADS
;
426 if (PyErr_Occurred()) return NULL
;
427 } Py_INCREF(Py_None
);
428 _resultobj
= Py_None
;
432 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
433 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
434 PyObject
* _resultobj
;
435 wxEvtHandler
* _arg0
;
436 wxEvtHandler
* _arg1
;
437 PyObject
* _argo0
= 0;
438 PyObject
* _argo1
= 0;
439 char *_kwnames
[] = { "self","handler", NULL
};
442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
452 if (_argo1
== Py_None
) { _arg1
= NULL
; }
453 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
459 wxPy_BEGIN_ALLOW_THREADS
;
460 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
462 wxPy_END_ALLOW_THREADS
;
463 if (PyErr_Occurred()) return NULL
;
464 } Py_INCREF(Py_None
);
465 _resultobj
= Py_None
;
469 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
470 if (PyCallable_Check(func
)) {
471 self
->Connect(id
, lastId
, eventType
,
472 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
473 new wxPyCallback(func
));
475 else if (func
== Py_None
) {
476 self
->Disconnect(id
, lastId
, eventType
,
477 (wxObjectEventFunction
)
478 &wxPyCallback::EventThunker
);
481 PyErr_SetString(PyExc_TypeError
, "Expected callable object or None.");
484 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 wxEvtHandler
* _arg0
;
491 PyObject
* _argo0
= 0;
492 PyObject
* _obj4
= 0;
493 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
509 wxPy_BEGIN_ALLOW_THREADS
;
510 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
512 wxPy_END_ALLOW_THREADS
;
513 if (PyErr_Occurred()) return NULL
;
514 } Py_INCREF(Py_None
);
515 _resultobj
= Py_None
;
519 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
520 return self
->Disconnect(id
, lastId
, eventType
,
521 (wxObjectEventFunction
)
522 &wxPyCallback::EventThunker
);
524 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
525 PyObject
* _resultobj
;
527 wxEvtHandler
* _arg0
;
529 int _arg2
= (int ) -1;
530 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
545 wxPy_BEGIN_ALLOW_THREADS
;
546 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
548 wxPy_END_ALLOW_THREADS
;
549 if (PyErr_Occurred()) return NULL
;
550 } _resultobj
= Py_BuildValue("i",_result
);
554 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
555 self
->SetClientObject(new wxPyClientData(_self
));
557 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
558 PyObject
* _resultobj
;
559 wxEvtHandler
* _arg0
;
561 PyObject
* _argo0
= 0;
562 PyObject
* _obj1
= 0;
563 char *_kwnames
[] = { "self","_self", NULL
};
566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
579 wxPy_BEGIN_ALLOW_THREADS
;
580 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
582 wxPy_END_ALLOW_THREADS
;
583 if (PyErr_Occurred()) return NULL
;
584 } Py_INCREF(Py_None
);
585 _resultobj
= Py_None
;
589 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
592 src
= (wxValidator
*) ptr
;
593 dest
= (wxEvtHandler
*) src
;
594 return (void *) dest
;
597 static void *SwigwxValidatorTowxObject(void *ptr
) {
600 src
= (wxValidator
*) ptr
;
601 dest
= (wxObject
*) src
;
602 return (void *) dest
;
605 #define new_wxValidator() (new wxValidator())
606 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
607 PyObject
* _resultobj
;
608 wxValidator
* _result
;
609 char *_kwnames
[] = { NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
616 wxPy_BEGIN_ALLOW_THREADS
;
617 _result
= (wxValidator
*)new_wxValidator();
619 wxPy_END_ALLOW_THREADS
;
620 if (PyErr_Occurred()) return NULL
;
622 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
623 _resultobj
= Py_BuildValue("s",_ptemp
);
626 _resultobj
= Py_None
;
631 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
632 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
634 wxValidator
* _result
;
636 PyObject
* _argo0
= 0;
637 char *_kwnames
[] = { "self", NULL
};
640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
650 wxPy_BEGIN_ALLOW_THREADS
;
651 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
653 wxPy_END_ALLOW_THREADS
;
654 if (PyErr_Occurred()) return NULL
;
655 }{ _resultobj
= wxPyMake_wxObject(_result
); }
659 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
660 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
664 PyObject
* _argo0
= 0;
665 char *_kwnames
[] = { "self", NULL
};
668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
678 wxPy_BEGIN_ALLOW_THREADS
;
679 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
681 wxPy_END_ALLOW_THREADS
;
682 if (PyErr_Occurred()) return NULL
;
683 }{ _resultobj
= wxPyMake_wxObject(_result
); }
687 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
688 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
689 PyObject
* _resultobj
;
692 PyObject
* _argo0
= 0;
693 PyObject
* _argo1
= 0;
694 char *_kwnames
[] = { "self","window", NULL
};
697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
707 if (_argo1
== Py_None
) { _arg1
= NULL
; }
708 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
714 wxPy_BEGIN_ALLOW_THREADS
;
715 wxValidator_SetWindow(_arg0
,_arg1
);
717 wxPy_END_ALLOW_THREADS
;
718 if (PyErr_Occurred()) return NULL
;
719 } Py_INCREF(Py_None
);
720 _resultobj
= Py_None
;
724 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
725 PyObject
* _resultobj
;
727 char *_kwnames
[] = { NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
733 wxPy_BEGIN_ALLOW_THREADS
;
734 _result
= (bool )wxValidator::IsSilent();
736 wxPy_END_ALLOW_THREADS
;
737 if (PyErr_Occurred()) return NULL
;
738 } _resultobj
= Py_BuildValue("i",_result
);
742 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
743 PyObject
* _resultobj
;
744 int _arg0
= (int ) TRUE
;
745 char *_kwnames
[] = { "doIt", NULL
};
748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
751 wxPy_BEGIN_ALLOW_THREADS
;
752 wxValidator::SetBellOnError(_arg0
);
754 wxPy_END_ALLOW_THREADS
;
755 if (PyErr_Occurred()) return NULL
;
756 } Py_INCREF(Py_None
);
757 _resultobj
= Py_None
;
761 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
764 src
= (wxPyValidator
*) ptr
;
765 dest
= (wxValidator
*) src
;
766 return (void *) dest
;
769 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
772 src
= (wxPyValidator
*) ptr
;
773 dest
= (wxEvtHandler
*) src
;
774 return (void *) dest
;
777 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
780 src
= (wxPyValidator
*) ptr
;
781 dest
= (wxObject
*) src
;
782 return (void *) dest
;
785 #define new_wxPyValidator() (new wxPyValidator())
786 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
787 PyObject
* _resultobj
;
788 wxPyValidator
* _result
;
789 char *_kwnames
[] = { NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
796 wxPy_BEGIN_ALLOW_THREADS
;
797 _result
= (wxPyValidator
*)new_wxPyValidator();
799 wxPy_END_ALLOW_THREADS
;
800 if (PyErr_Occurred()) return NULL
;
802 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
803 _resultobj
= Py_BuildValue("s",_ptemp
);
806 _resultobj
= Py_None
;
811 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
812 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
813 PyObject
* _resultobj
;
814 wxPyValidator
* _arg0
;
817 int _arg3
= (int ) TRUE
;
818 PyObject
* _argo0
= 0;
819 PyObject
* _obj1
= 0;
820 PyObject
* _obj2
= 0;
821 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
840 wxPy_BEGIN_ALLOW_THREADS
;
841 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
843 wxPy_END_ALLOW_THREADS
;
844 if (PyErr_Occurred()) return NULL
;
845 } Py_INCREF(Py_None
);
846 _resultobj
= Py_None
;
850 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
853 src
= (wxWindow
*) ptr
;
854 dest
= (wxEvtHandler
*) src
;
855 return (void *) dest
;
858 static void *SwigwxWindowTowxObject(void *ptr
) {
861 src
= (wxWindow
*) ptr
;
862 dest
= (wxObject
*) src
;
863 return (void *) dest
;
866 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
867 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
868 PyObject
* _resultobj
;
872 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
873 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
874 long _arg4
= (long ) 0;
875 char * _arg5
= (char *) "panel";
876 PyObject
* _argo0
= 0;
878 PyObject
* _obj2
= 0;
880 PyObject
* _obj3
= 0;
881 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
897 if (! wxPoint_helper(_obj2
, &_arg2
))
903 if (! wxSize_helper(_obj3
, &_arg3
))
907 wxPy_BEGIN_ALLOW_THREADS
;
908 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
910 wxPy_END_ALLOW_THREADS
;
911 if (PyErr_Occurred()) return NULL
;
913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
914 _resultobj
= Py_BuildValue("s",_ptemp
);
917 _resultobj
= Py_None
;
922 #define new_wxPreWindow() (new wxWindow())
923 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
924 PyObject
* _resultobj
;
926 char *_kwnames
[] = { NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
933 wxPy_BEGIN_ALLOW_THREADS
;
934 _result
= (wxWindow
*)new_wxPreWindow();
936 wxPy_END_ALLOW_THREADS
;
937 if (PyErr_Occurred()) return NULL
;
939 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
940 _resultobj
= Py_BuildValue("s",_ptemp
);
943 _resultobj
= Py_None
;
948 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
949 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
950 PyObject
* _resultobj
;
955 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
956 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
957 long _arg5
= (long ) 0;
958 char * _arg6
= (char *) "panel";
959 PyObject
* _argo0
= 0;
960 PyObject
* _argo1
= 0;
962 PyObject
* _obj3
= 0;
964 PyObject
* _obj4
= 0;
965 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
987 if (! wxPoint_helper(_obj3
, &_arg3
))
993 if (! wxSize_helper(_obj4
, &_arg4
))
997 wxPy_BEGIN_ALLOW_THREADS
;
998 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1000 wxPy_END_ALLOW_THREADS
;
1001 if (PyErr_Occurred()) return NULL
;
1002 } _resultobj
= Py_BuildValue("i",_result
);
1006 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
1007 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1008 PyObject
* _resultobj
;
1010 PyObject
* _argo0
= 0;
1011 char *_kwnames
[] = { "self", NULL
};
1014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
1017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
1024 wxPy_BEGIN_ALLOW_THREADS
;
1025 wxWindow_CaptureMouse(_arg0
);
1027 wxPy_END_ALLOW_THREADS
;
1028 if (PyErr_Occurred()) return NULL
;
1029 } Py_INCREF(Py_None
);
1030 _resultobj
= Py_None
;
1034 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1035 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1036 PyObject
* _resultobj
;
1038 int _arg1
= (int ) wxBOTH
;
1039 PyObject
* _argo0
= 0;
1040 char *_kwnames
[] = { "self","direction", NULL
};
1043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1053 wxPy_BEGIN_ALLOW_THREADS
;
1054 wxWindow_Center(_arg0
,_arg1
);
1056 wxPy_END_ALLOW_THREADS
;
1057 if (PyErr_Occurred()) return NULL
;
1058 } Py_INCREF(Py_None
);
1059 _resultobj
= Py_None
;
1063 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1064 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1065 PyObject
* _resultobj
;
1067 int _arg1
= (int ) wxBOTH
;
1068 PyObject
* _argo0
= 0;
1069 char *_kwnames
[] = { "self","direction", NULL
};
1072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1082 wxPy_BEGIN_ALLOW_THREADS
;
1083 wxWindow_Centre(_arg0
,_arg1
);
1085 wxPy_END_ALLOW_THREADS
;
1086 if (PyErr_Occurred()) return NULL
;
1087 } Py_INCREF(Py_None
);
1088 _resultobj
= Py_None
;
1092 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1093 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1094 PyObject
* _resultobj
;
1096 int _arg1
= (int ) wxBOTH
;
1097 PyObject
* _argo0
= 0;
1098 char *_kwnames
[] = { "self","direction", NULL
};
1101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1111 wxPy_BEGIN_ALLOW_THREADS
;
1112 wxWindow_CentreOnParent(_arg0
,_arg1
);
1114 wxPy_END_ALLOW_THREADS
;
1115 if (PyErr_Occurred()) return NULL
;
1116 } Py_INCREF(Py_None
);
1117 _resultobj
= Py_None
;
1121 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1122 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1123 PyObject
* _resultobj
;
1125 int _arg1
= (int ) wxBOTH
;
1126 PyObject
* _argo0
= 0;
1127 char *_kwnames
[] = { "self","direction", NULL
};
1130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1140 wxPy_BEGIN_ALLOW_THREADS
;
1141 wxWindow_CenterOnParent(_arg0
,_arg1
);
1143 wxPy_END_ALLOW_THREADS
;
1144 if (PyErr_Occurred()) return NULL
;
1145 } Py_INCREF(Py_None
);
1146 _resultobj
= Py_None
;
1150 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1151 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1152 PyObject
* _resultobj
;
1154 int _arg1
= (int ) wxBOTH
;
1155 PyObject
* _argo0
= 0;
1156 char *_kwnames
[] = { "self","direction", NULL
};
1159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1169 wxPy_BEGIN_ALLOW_THREADS
;
1170 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1172 wxPy_END_ALLOW_THREADS
;
1173 if (PyErr_Occurred()) return NULL
;
1174 } Py_INCREF(Py_None
);
1175 _resultobj
= Py_None
;
1179 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1180 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1181 PyObject
* _resultobj
;
1183 int _arg1
= (int ) wxBOTH
;
1184 PyObject
* _argo0
= 0;
1185 char *_kwnames
[] = { "self","direction", NULL
};
1188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1198 wxPy_BEGIN_ALLOW_THREADS
;
1199 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1201 wxPy_END_ALLOW_THREADS
;
1202 if (PyErr_Occurred()) return NULL
;
1203 } Py_INCREF(Py_None
);
1204 _resultobj
= Py_None
;
1208 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1209 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1210 PyObject
* _resultobj
;
1212 PyObject
* _argo0
= 0;
1213 char *_kwnames
[] = { "self", NULL
};
1216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1226 wxPy_BEGIN_ALLOW_THREADS
;
1227 wxWindow_Clear(_arg0
);
1229 wxPy_END_ALLOW_THREADS
;
1230 if (PyErr_Occurred()) return NULL
;
1231 } Py_INCREF(Py_None
);
1232 _resultobj
= Py_None
;
1236 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1237 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1238 PyObject
* _resultobj
;
1242 PyObject
* _argo0
= 0;
1244 PyObject
* _obj1
= 0;
1246 PyObject
* _obj2
= 0;
1247 char *_kwnames
[] = { "self","x","y", NULL
};
1250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1260 temp
= (int) PyInt_AsLong(_obj1
);
1264 temp0
= (int) PyInt_AsLong(_obj2
);
1268 wxPy_BEGIN_ALLOW_THREADS
;
1269 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1271 wxPy_END_ALLOW_THREADS
;
1272 if (PyErr_Occurred()) return NULL
;
1273 } Py_INCREF(Py_None
);
1274 _resultobj
= Py_None
;
1277 o
= PyInt_FromLong((long) (*_arg1
));
1278 _resultobj
= t_output_helper(_resultobj
, o
);
1282 o
= PyInt_FromLong((long) (*_arg2
));
1283 _resultobj
= t_output_helper(_resultobj
, o
);
1288 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1289 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1294 PyObject
* _argo0
= 0;
1296 PyObject
* _obj1
= 0;
1297 char *_kwnames
[] = { "self","pt", NULL
};
1301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1312 if (! wxPoint_helper(_obj1
, &_arg1
))
1316 wxPy_BEGIN_ALLOW_THREADS
;
1317 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1319 wxPy_END_ALLOW_THREADS
;
1320 if (PyErr_Occurred()) return NULL
;
1321 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1322 _resultobj
= Py_BuildValue("s",_ptemp
);
1326 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1327 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1328 PyObject
* _resultobj
;
1331 int _arg1
= (int ) FALSE
;
1332 PyObject
* _argo0
= 0;
1333 char *_kwnames
[] = { "self","force", NULL
};
1336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1346 wxPy_BEGIN_ALLOW_THREADS
;
1347 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1349 wxPy_END_ALLOW_THREADS
;
1350 if (PyErr_Occurred()) return NULL
;
1351 } _resultobj
= Py_BuildValue("i",_result
);
1355 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1356 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1360 PyObject
* _argo0
= 0;
1361 char *_kwnames
[] = { "self", NULL
};
1364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1374 wxPy_BEGIN_ALLOW_THREADS
;
1375 _result
= (bool )wxWindow_Destroy(_arg0
);
1377 wxPy_END_ALLOW_THREADS
;
1378 if (PyErr_Occurred()) return NULL
;
1379 } _resultobj
= Py_BuildValue("i",_result
);
1383 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1384 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
* _resultobj
;
1387 PyObject
* _argo0
= 0;
1388 char *_kwnames
[] = { "self", NULL
};
1391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1401 wxPy_BEGIN_ALLOW_THREADS
;
1402 wxWindow_DestroyChildren(_arg0
);
1404 wxPy_END_ALLOW_THREADS
;
1405 if (PyErr_Occurred()) return NULL
;
1406 } Py_INCREF(Py_None
);
1407 _resultobj
= Py_None
;
1411 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1412 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1416 PyObject
* _argo0
= 0;
1417 char *_kwnames
[] = { "self", NULL
};
1420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1430 wxPy_BEGIN_ALLOW_THREADS
;
1431 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1433 wxPy_END_ALLOW_THREADS
;
1434 if (PyErr_Occurred()) return NULL
;
1435 } _resultobj
= Py_BuildValue("i",_result
);
1439 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1440 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1441 PyObject
* _resultobj
;
1444 PyObject
* _argo0
= 0;
1446 char *_kwnames
[] = { "self","accept", NULL
};
1449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1458 _arg1
= (bool ) tempbool1
;
1460 wxPy_BEGIN_ALLOW_THREADS
;
1461 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1463 wxPy_END_ALLOW_THREADS
;
1464 if (PyErr_Occurred()) return NULL
;
1465 } Py_INCREF(Py_None
);
1466 _resultobj
= Py_None
;
1470 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1471 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1475 PyObject
* _argo0
= 0;
1477 char *_kwnames
[] = { "self","enable", NULL
};
1480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1489 _arg1
= (bool ) tempbool1
;
1491 wxPy_BEGIN_ALLOW_THREADS
;
1492 wxWindow_Enable(_arg0
,_arg1
);
1494 wxPy_END_ALLOW_THREADS
;
1495 if (PyErr_Occurred()) return NULL
;
1496 } Py_INCREF(Py_None
);
1497 _resultobj
= Py_None
;
1501 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1502 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1503 PyObject
* _resultobj
;
1507 PyObject
* _argo0
= 0;
1508 char *_kwnames
[] = { "self","id", NULL
};
1511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1521 wxPy_BEGIN_ALLOW_THREADS
;
1522 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1524 wxPy_END_ALLOW_THREADS
;
1525 if (PyErr_Occurred()) return NULL
;
1526 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1530 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1531 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1532 PyObject
* _resultobj
;
1536 PyObject
* _argo0
= 0;
1537 PyObject
* _obj1
= 0;
1538 char *_kwnames
[] = { "self","name", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1551 #if PYTHON_API_VERSION >= 1009
1552 char* tmpPtr
; int tmpSize
;
1553 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1557 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1559 _arg1
= new wxString(tmpPtr
, tmpSize
);
1561 if (!PyString_Check(_obj1
)) {
1562 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1565 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1569 wxPy_BEGIN_ALLOW_THREADS
;
1570 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1572 wxPy_END_ALLOW_THREADS
;
1573 if (PyErr_Occurred()) return NULL
;
1574 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1582 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1583 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1584 PyObject
* _resultobj
;
1586 PyObject
* _argo0
= 0;
1587 char *_kwnames
[] = { "self", NULL
};
1590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1600 wxPy_BEGIN_ALLOW_THREADS
;
1601 wxWindow_Fit(_arg0
);
1603 wxPy_END_ALLOW_THREADS
;
1604 if (PyErr_Occurred()) return NULL
;
1605 } Py_INCREF(Py_None
);
1606 _resultobj
= Py_None
;
1610 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1611 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1612 PyObject
* _resultobj
;
1615 PyObject
* _argo0
= 0;
1616 char *_kwnames
[] = { "self", NULL
};
1620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1630 wxPy_BEGIN_ALLOW_THREADS
;
1631 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1633 wxPy_END_ALLOW_THREADS
;
1634 if (PyErr_Occurred()) return NULL
;
1635 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1636 _resultobj
= Py_BuildValue("s",_ptemp
);
1640 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1641 wxWindowList
& list
= self
->GetChildren();
1642 return wxPy_ConvertList(&list
, "wxWindow");
1644 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1645 PyObject
* _resultobj
;
1648 PyObject
* _argo0
= 0;
1649 char *_kwnames
[] = { "self", NULL
};
1652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1662 wxPy_BEGIN_ALLOW_THREADS
;
1663 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1665 wxPy_END_ALLOW_THREADS
;
1666 if (PyErr_Occurred()) return NULL
;
1668 _resultobj
= _result
;
1673 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1674 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1675 PyObject
* _resultobj
;
1678 PyObject
* _argo0
= 0;
1679 char *_kwnames
[] = { "self", NULL
};
1682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1692 wxPy_BEGIN_ALLOW_THREADS
;
1693 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1695 wxPy_END_ALLOW_THREADS
;
1696 if (PyErr_Occurred()) return NULL
;
1697 } _resultobj
= Py_BuildValue("i",_result
);
1701 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1702 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1706 PyObject
* _argo0
= 0;
1707 char *_kwnames
[] = { "self", NULL
};
1710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1720 wxPy_BEGIN_ALLOW_THREADS
;
1721 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1723 wxPy_END_ALLOW_THREADS
;
1724 if (PyErr_Occurred()) return NULL
;
1725 } _resultobj
= Py_BuildValue("i",_result
);
1729 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1730 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1737 PyObject
* _argo0
= 0;
1738 char *_kwnames
[] = { "self", NULL
};
1747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1757 wxPy_BEGIN_ALLOW_THREADS
;
1758 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1760 wxPy_END_ALLOW_THREADS
;
1761 if (PyErr_Occurred()) return NULL
;
1762 } Py_INCREF(Py_None
);
1763 _resultobj
= Py_None
;
1766 o
= PyInt_FromLong((long) (*_arg1
));
1767 _resultobj
= t_output_helper(_resultobj
, o
);
1771 o
= PyInt_FromLong((long) (*_arg2
));
1772 _resultobj
= t_output_helper(_resultobj
, o
);
1777 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1778 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1779 PyObject
* _resultobj
;
1782 PyObject
* _argo0
= 0;
1783 char *_kwnames
[] = { "self", NULL
};
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1797 wxPy_BEGIN_ALLOW_THREADS
;
1798 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1800 wxPy_END_ALLOW_THREADS
;
1801 if (PyErr_Occurred()) return NULL
;
1802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1803 _resultobj
= Py_BuildValue("s",_ptemp
);
1807 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1808 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1809 PyObject
* _resultobj
;
1810 wxLayoutConstraints
* _result
;
1812 PyObject
* _argo0
= 0;
1813 char *_kwnames
[] = { "self", NULL
};
1817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1827 wxPy_BEGIN_ALLOW_THREADS
;
1828 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1830 wxPy_END_ALLOW_THREADS
;
1831 if (PyErr_Occurred()) return NULL
;
1833 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1834 _resultobj
= Py_BuildValue("s",_ptemp
);
1837 _resultobj
= Py_None
;
1842 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1843 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1844 PyObject
* _resultobj
;
1845 wxEvtHandler
* _result
;
1847 PyObject
* _argo0
= 0;
1848 char *_kwnames
[] = { "self", NULL
};
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1861 wxPy_BEGIN_ALLOW_THREADS
;
1862 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1864 wxPy_END_ALLOW_THREADS
;
1865 if (PyErr_Occurred()) return NULL
;
1866 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1870 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1871 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
* _resultobj
;
1875 PyObject
* _argo0
= 0;
1876 char *_kwnames
[] = { "self", NULL
};
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1890 wxPy_BEGIN_ALLOW_THREADS
;
1891 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1892 _result
= (wxFont
*) &_result_ref
;
1894 wxPy_END_ALLOW_THREADS
;
1895 if (PyErr_Occurred()) return NULL
;
1897 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1898 _resultobj
= Py_BuildValue("s",_ptemp
);
1901 _resultobj
= Py_None
;
1906 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1907 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1908 PyObject
* _resultobj
;
1911 PyObject
* _argo0
= 0;
1912 char *_kwnames
[] = { "self", NULL
};
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1926 wxPy_BEGIN_ALLOW_THREADS
;
1927 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1929 wxPy_END_ALLOW_THREADS
;
1930 if (PyErr_Occurred()) return NULL
;
1931 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1932 _resultobj
= Py_BuildValue("s",_ptemp
);
1936 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1937 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1938 PyObject
* _resultobj
;
1941 PyObject
* _argo0
= 0;
1942 char *_kwnames
[] = { "self", NULL
};
1945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1955 wxPy_BEGIN_ALLOW_THREADS
;
1956 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1958 wxPy_END_ALLOW_THREADS
;
1959 if (PyErr_Occurred()) return NULL
;
1960 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1964 static long wxWindow_GetHandle(wxWindow
*self
) {
1965 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1967 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1968 PyObject
* _resultobj
;
1971 PyObject
* _argo0
= 0;
1972 char *_kwnames
[] = { "self", NULL
};
1975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1985 wxPy_BEGIN_ALLOW_THREADS
;
1986 _result
= (long )wxWindow_GetHandle(_arg0
);
1988 wxPy_END_ALLOW_THREADS
;
1989 if (PyErr_Occurred()) return NULL
;
1990 } _resultobj
= Py_BuildValue("l",_result
);
1994 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1995 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1996 PyObject
* _resultobj
;
1999 PyObject
* _argo0
= 0;
2000 char *_kwnames
[] = { "self", NULL
};
2003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
2006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2013 wxPy_BEGIN_ALLOW_THREADS
;
2014 _result
= (int )wxWindow_GetId(_arg0
);
2016 wxPy_END_ALLOW_THREADS
;
2017 if (PyErr_Occurred()) return NULL
;
2018 } _resultobj
= Py_BuildValue("i",_result
);
2022 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2023 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2024 PyObject
* _resultobj
;
2027 PyObject
* _argo0
= 0;
2028 char *_kwnames
[] = { "self", NULL
};
2031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
2034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2041 wxPy_BEGIN_ALLOW_THREADS
;
2042 _result
= new wxString (wxWindow_GetLabel(_arg0
));
2044 wxPy_END_ALLOW_THREADS
;
2045 if (PyErr_Occurred()) return NULL
;
2047 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2055 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2056 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2057 PyObject
* _resultobj
;
2060 PyObject
* _argo0
= 0;
2061 PyObject
* _obj1
= 0;
2062 char *_kwnames
[] = { "self","label", NULL
};
2065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2075 #if PYTHON_API_VERSION >= 1009
2076 char* tmpPtr
; int tmpSize
;
2077 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2078 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2081 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2083 _arg1
= new wxString(tmpPtr
, tmpSize
);
2085 if (!PyString_Check(_obj1
)) {
2086 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2089 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2093 wxPy_BEGIN_ALLOW_THREADS
;
2094 wxWindow_SetLabel(_arg0
,*_arg1
);
2096 wxPy_END_ALLOW_THREADS
;
2097 if (PyErr_Occurred()) return NULL
;
2098 } Py_INCREF(Py_None
);
2099 _resultobj
= Py_None
;
2107 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2108 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2109 PyObject
* _resultobj
;
2112 PyObject
* _argo0
= 0;
2113 char *_kwnames
[] = { "self", NULL
};
2116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2126 wxPy_BEGIN_ALLOW_THREADS
;
2127 _result
= new wxString (wxWindow_GetName(_arg0
));
2129 wxPy_END_ALLOW_THREADS
;
2130 if (PyErr_Occurred()) return NULL
;
2132 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2140 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2141 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2142 PyObject
* _resultobj
;
2145 PyObject
* _argo0
= 0;
2146 char *_kwnames
[] = { "self", NULL
};
2149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2159 wxPy_BEGIN_ALLOW_THREADS
;
2160 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2162 wxPy_END_ALLOW_THREADS
;
2163 if (PyErr_Occurred()) return NULL
;
2164 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2168 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2169 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2170 PyObject
* _resultobj
;
2176 PyObject
* _argo0
= 0;
2177 char *_kwnames
[] = { "self", NULL
};
2186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2196 wxPy_BEGIN_ALLOW_THREADS
;
2197 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2199 wxPy_END_ALLOW_THREADS
;
2200 if (PyErr_Occurred()) return NULL
;
2201 } Py_INCREF(Py_None
);
2202 _resultobj
= Py_None
;
2205 o
= PyInt_FromLong((long) (*_arg1
));
2206 _resultobj
= t_output_helper(_resultobj
, o
);
2210 o
= PyInt_FromLong((long) (*_arg2
));
2211 _resultobj
= t_output_helper(_resultobj
, o
);
2216 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2217 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2218 PyObject
* _resultobj
;
2221 PyObject
* _argo0
= 0;
2222 char *_kwnames
[] = { "self", NULL
};
2226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2236 wxPy_BEGIN_ALLOW_THREADS
;
2237 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2239 wxPy_END_ALLOW_THREADS
;
2240 if (PyErr_Occurred()) return NULL
;
2241 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2242 _resultobj
= Py_BuildValue("s",_ptemp
);
2246 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2247 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2248 PyObject
* _resultobj
;
2251 PyObject
* _argo0
= 0;
2252 char *_kwnames
[] = { "self", NULL
};
2256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2266 wxPy_BEGIN_ALLOW_THREADS
;
2267 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2269 wxPy_END_ALLOW_THREADS
;
2270 if (PyErr_Occurred()) return NULL
;
2271 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2272 _resultobj
= Py_BuildValue("s",_ptemp
);
2276 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2277 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2282 PyObject
* _argo0
= 0;
2283 char *_kwnames
[] = { "self","orientation", NULL
};
2286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2296 wxPy_BEGIN_ALLOW_THREADS
;
2297 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2299 wxPy_END_ALLOW_THREADS
;
2300 if (PyErr_Occurred()) return NULL
;
2301 } _resultobj
= Py_BuildValue("i",_result
);
2305 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2306 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2307 PyObject
* _resultobj
;
2311 PyObject
* _argo0
= 0;
2312 char *_kwnames
[] = { "self","orientation", NULL
};
2315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2325 wxPy_BEGIN_ALLOW_THREADS
;
2326 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2328 wxPy_END_ALLOW_THREADS
;
2329 if (PyErr_Occurred()) return NULL
;
2330 } _resultobj
= Py_BuildValue("i",_result
);
2334 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2335 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2336 PyObject
* _resultobj
;
2340 PyObject
* _argo0
= 0;
2341 char *_kwnames
[] = { "self","orientation", NULL
};
2344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2354 wxPy_BEGIN_ALLOW_THREADS
;
2355 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2357 wxPy_END_ALLOW_THREADS
;
2358 if (PyErr_Occurred()) return NULL
;
2359 } _resultobj
= Py_BuildValue("i",_result
);
2363 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2364 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2365 PyObject
* _resultobj
;
2371 PyObject
* _argo0
= 0;
2372 char *_kwnames
[] = { "self", NULL
};
2381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2391 wxPy_BEGIN_ALLOW_THREADS
;
2392 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2394 wxPy_END_ALLOW_THREADS
;
2395 if (PyErr_Occurred()) return NULL
;
2396 } Py_INCREF(Py_None
);
2397 _resultobj
= Py_None
;
2400 o
= PyInt_FromLong((long) (*_arg1
));
2401 _resultobj
= t_output_helper(_resultobj
, o
);
2405 o
= PyInt_FromLong((long) (*_arg2
));
2406 _resultobj
= t_output_helper(_resultobj
, o
);
2411 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2412 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2413 PyObject
* _resultobj
;
2416 PyObject
* _argo0
= 0;
2417 char *_kwnames
[] = { "self", NULL
};
2421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2431 wxPy_BEGIN_ALLOW_THREADS
;
2432 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2434 wxPy_END_ALLOW_THREADS
;
2435 if (PyErr_Occurred()) return NULL
;
2436 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2437 _resultobj
= Py_BuildValue("s",_ptemp
);
2441 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2442 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2443 PyObject
* _resultobj
;
2450 PyObject
* _argo0
= 0;
2451 PyObject
* _obj1
= 0;
2452 char *_kwnames
[] = { "self","string", NULL
};
2461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2471 #if PYTHON_API_VERSION >= 1009
2472 char* tmpPtr
; int tmpSize
;
2473 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2474 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2477 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2479 _arg1
= new wxString(tmpPtr
, tmpSize
);
2481 if (!PyString_Check(_obj1
)) {
2482 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2485 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2489 wxPy_BEGIN_ALLOW_THREADS
;
2490 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2492 wxPy_END_ALLOW_THREADS
;
2493 if (PyErr_Occurred()) return NULL
;
2494 } Py_INCREF(Py_None
);
2495 _resultobj
= Py_None
;
2498 o
= PyInt_FromLong((long) (*_arg2
));
2499 _resultobj
= t_output_helper(_resultobj
, o
);
2503 o
= PyInt_FromLong((long) (*_arg3
));
2504 _resultobj
= t_output_helper(_resultobj
, o
);
2513 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2514 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2515 PyObject
* _resultobj
;
2526 wxFont
* _arg6
= (wxFont
*) NULL
;
2527 PyObject
* _argo0
= 0;
2528 PyObject
* _obj1
= 0;
2529 PyObject
* _argo6
= 0;
2530 char *_kwnames
[] = { "self","string","font", NULL
};
2545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2555 #if PYTHON_API_VERSION >= 1009
2556 char* tmpPtr
; int tmpSize
;
2557 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2561 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2563 _arg1
= new wxString(tmpPtr
, tmpSize
);
2565 if (!PyString_Check(_obj1
)) {
2566 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2569 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2573 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2580 wxPy_BEGIN_ALLOW_THREADS
;
2581 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2583 wxPy_END_ALLOW_THREADS
;
2584 if (PyErr_Occurred()) return NULL
;
2585 } Py_INCREF(Py_None
);
2586 _resultobj
= Py_None
;
2589 o
= PyInt_FromLong((long) (*_arg2
));
2590 _resultobj
= t_output_helper(_resultobj
, o
);
2594 o
= PyInt_FromLong((long) (*_arg3
));
2595 _resultobj
= t_output_helper(_resultobj
, o
);
2599 o
= PyInt_FromLong((long) (*_arg4
));
2600 _resultobj
= t_output_helper(_resultobj
, o
);
2604 o
= PyInt_FromLong((long) (*_arg5
));
2605 _resultobj
= t_output_helper(_resultobj
, o
);
2614 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2615 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2616 PyObject
* _resultobj
;
2619 PyObject
* _argo0
= 0;
2620 char *_kwnames
[] = { "self", NULL
};
2623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2633 wxPy_BEGIN_ALLOW_THREADS
;
2634 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2636 wxPy_END_ALLOW_THREADS
;
2637 if (PyErr_Occurred()) return NULL
;
2639 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2647 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2648 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2649 PyObject
* _resultobj
;
2652 PyObject
* _argo0
= 0;
2653 char *_kwnames
[] = { "self", NULL
};
2657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2667 wxPy_BEGIN_ALLOW_THREADS
;
2668 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2670 wxPy_END_ALLOW_THREADS
;
2671 if (PyErr_Occurred()) return NULL
;
2672 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2673 _resultobj
= Py_BuildValue("s",_ptemp
);
2677 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2678 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2682 PyObject
* _argo0
= 0;
2683 char *_kwnames
[] = { "self", NULL
};
2686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2696 wxPy_BEGIN_ALLOW_THREADS
;
2697 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2699 wxPy_END_ALLOW_THREADS
;
2700 if (PyErr_Occurred()) return NULL
;
2701 } _resultobj
= Py_BuildValue("l",_result
);
2705 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2706 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2707 PyObject
* _resultobj
;
2710 PyObject
* _argo0
= 0;
2711 char *_kwnames
[] = { "self","style", NULL
};
2714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2724 wxPy_BEGIN_ALLOW_THREADS
;
2725 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2727 wxPy_END_ALLOW_THREADS
;
2728 if (PyErr_Occurred()) return NULL
;
2729 } Py_INCREF(Py_None
);
2730 _resultobj
= Py_None
;
2734 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2735 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2739 PyObject
* _argo0
= 0;
2740 char *_kwnames
[] = { "self","style", NULL
};
2743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2753 wxPy_BEGIN_ALLOW_THREADS
;
2754 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2756 wxPy_END_ALLOW_THREADS
;
2757 if (PyErr_Occurred()) return NULL
;
2758 } Py_INCREF(Py_None
);
2759 _resultobj
= Py_None
;
2763 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2764 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2765 PyObject
* _resultobj
;
2768 PyObject
* _argo0
= 0;
2769 char *_kwnames
[] = { "self", NULL
};
2772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2782 wxPy_BEGIN_ALLOW_THREADS
;
2783 _result
= (bool )wxWindow_Hide(_arg0
);
2785 wxPy_END_ALLOW_THREADS
;
2786 if (PyErr_Occurred()) return NULL
;
2787 } _resultobj
= Py_BuildValue("i",_result
);
2791 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2792 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2793 PyObject
* _resultobj
;
2795 PyObject
* _argo0
= 0;
2796 char *_kwnames
[] = { "self", NULL
};
2799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2809 wxPy_BEGIN_ALLOW_THREADS
;
2810 wxWindow_InitDialog(_arg0
);
2812 wxPy_END_ALLOW_THREADS
;
2813 if (PyErr_Occurred()) return NULL
;
2814 } Py_INCREF(Py_None
);
2815 _resultobj
= Py_None
;
2819 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2820 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
* _resultobj
;
2824 PyObject
* _argo0
= 0;
2825 char *_kwnames
[] = { "self", NULL
};
2828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2838 wxPy_BEGIN_ALLOW_THREADS
;
2839 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2841 wxPy_END_ALLOW_THREADS
;
2842 if (PyErr_Occurred()) return NULL
;
2843 } _resultobj
= Py_BuildValue("i",_result
);
2847 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2848 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2849 PyObject
* _resultobj
;
2854 int _arg3
= (int ) 0;
2855 int _arg4
= (int ) 0;
2856 PyObject
* _argo0
= 0;
2857 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2870 wxPy_BEGIN_ALLOW_THREADS
;
2871 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2873 wxPy_END_ALLOW_THREADS
;
2874 if (PyErr_Occurred()) return NULL
;
2875 } _resultobj
= Py_BuildValue("i",_result
);
2879 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2880 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2881 PyObject
* _resultobj
;
2885 PyObject
* _argo0
= 0;
2887 PyObject
* _obj1
= 0;
2888 char *_kwnames
[] = { "self","pt", NULL
};
2891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2902 if (! wxPoint_helper(_obj1
, &_arg1
))
2906 wxPy_BEGIN_ALLOW_THREADS
;
2907 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2909 wxPy_END_ALLOW_THREADS
;
2910 if (PyErr_Occurred()) return NULL
;
2911 } _resultobj
= Py_BuildValue("i",_result
);
2915 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2916 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2917 PyObject
* _resultobj
;
2921 PyObject
* _argo0
= 0;
2923 PyObject
* _obj1
= 0;
2924 char *_kwnames
[] = { "self","rect", NULL
};
2927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2938 if (! wxRect_helper(_obj1
, &_arg1
))
2942 wxPy_BEGIN_ALLOW_THREADS
;
2943 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2945 wxPy_END_ALLOW_THREADS
;
2946 if (PyErr_Occurred()) return NULL
;
2947 } _resultobj
= Py_BuildValue("i",_result
);
2951 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2952 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2953 PyObject
* _resultobj
;
2956 PyObject
* _argo0
= 0;
2957 char *_kwnames
[] = { "self", NULL
};
2960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2970 wxPy_BEGIN_ALLOW_THREADS
;
2971 _result
= (bool )wxWindow_IsRetained(_arg0
);
2973 wxPy_END_ALLOW_THREADS
;
2974 if (PyErr_Occurred()) return NULL
;
2975 } _resultobj
= Py_BuildValue("i",_result
);
2979 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2980 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2981 PyObject
* _resultobj
;
2984 PyObject
* _argo0
= 0;
2985 char *_kwnames
[] = { "self", NULL
};
2988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2998 wxPy_BEGIN_ALLOW_THREADS
;
2999 _result
= (bool )wxWindow_IsShown(_arg0
);
3001 wxPy_END_ALLOW_THREADS
;
3002 if (PyErr_Occurred()) return NULL
;
3003 } _resultobj
= Py_BuildValue("i",_result
);
3007 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3008 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3009 PyObject
* _resultobj
;
3012 PyObject
* _argo0
= 0;
3013 char *_kwnames
[] = { "self", NULL
};
3016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
3019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3026 wxPy_BEGIN_ALLOW_THREADS
;
3027 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
3029 wxPy_END_ALLOW_THREADS
;
3030 if (PyErr_Occurred()) return NULL
;
3031 } _resultobj
= Py_BuildValue("i",_result
);
3035 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3036 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3037 PyObject
* _resultobj
;
3039 PyObject
* _argo0
= 0;
3040 char *_kwnames
[] = { "self", NULL
};
3043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
3046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3053 wxPy_BEGIN_ALLOW_THREADS
;
3054 wxWindow_Layout(_arg0
);
3056 wxPy_END_ALLOW_THREADS
;
3057 if (PyErr_Occurred()) return NULL
;
3058 } Py_INCREF(Py_None
);
3059 _resultobj
= Py_None
;
3063 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3064 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3065 PyObject
* _resultobj
;
3070 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3071 PyObject
* _argo0
= 0;
3072 PyObject
* _argo1
= 0;
3073 PyObject
* _obj2
= 0;
3074 PyObject
* _argo3
= 0;
3075 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3088 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3089 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3095 #if PYTHON_API_VERSION >= 1009
3096 char* tmpPtr
; int tmpSize
;
3097 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3098 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3101 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3103 _arg2
= new wxString(tmpPtr
, tmpSize
);
3105 if (!PyString_Check(_obj2
)) {
3106 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3109 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3113 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3114 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3120 wxPy_BEGIN_ALLOW_THREADS
;
3121 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3123 wxPy_END_ALLOW_THREADS
;
3124 if (PyErr_Occurred()) return NULL
;
3125 } _resultobj
= Py_BuildValue("i",_result
);
3133 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3134 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3135 PyObject
* _resultobj
;
3137 PyObject
* _argo0
= 0;
3138 char *_kwnames
[] = { "self", NULL
};
3141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3151 wxPy_BEGIN_ALLOW_THREADS
;
3152 wxWindow_Lower(_arg0
);
3154 wxPy_END_ALLOW_THREADS
;
3155 if (PyErr_Occurred()) return NULL
;
3156 } Py_INCREF(Py_None
);
3157 _resultobj
= Py_None
;
3161 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3162 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3163 PyObject
* _resultobj
;
3165 bool _arg1
= (bool ) TRUE
;
3166 PyObject
* _argo0
= 0;
3167 int tempbool1
= (int) TRUE
;
3168 char *_kwnames
[] = { "self","flag", NULL
};
3171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3180 _arg1
= (bool ) tempbool1
;
3182 wxPy_BEGIN_ALLOW_THREADS
;
3183 wxWindow_MakeModal(_arg0
,_arg1
);
3185 wxPy_END_ALLOW_THREADS
;
3186 if (PyErr_Occurred()) return NULL
;
3187 } Py_INCREF(Py_None
);
3188 _resultobj
= Py_None
;
3192 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3193 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3194 PyObject
* _resultobj
;
3198 PyObject
* _argo0
= 0;
3199 char *_kwnames
[] = { "self","x","y", NULL
};
3202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3212 wxPy_BEGIN_ALLOW_THREADS
;
3213 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3215 wxPy_END_ALLOW_THREADS
;
3216 if (PyErr_Occurred()) return NULL
;
3217 } Py_INCREF(Py_None
);
3218 _resultobj
= Py_None
;
3222 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3223 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3224 PyObject
* _resultobj
;
3227 PyObject
* _argo0
= 0;
3229 PyObject
* _obj1
= 0;
3230 char *_kwnames
[] = { "self","point", NULL
};
3233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3244 if (! wxPoint_helper(_obj1
, &_arg1
))
3248 wxPy_BEGIN_ALLOW_THREADS
;
3249 wxWindow_Move(_arg0
,*_arg1
);
3251 wxPy_END_ALLOW_THREADS
;
3252 if (PyErr_Occurred()) return NULL
;
3253 } Py_INCREF(Py_None
);
3254 _resultobj
= Py_None
;
3258 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3259 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3260 PyObject
* _resultobj
;
3261 wxEvtHandler
* _result
;
3263 bool _arg1
= (bool ) FALSE
;
3264 PyObject
* _argo0
= 0;
3265 int tempbool1
= (int) FALSE
;
3266 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3278 _arg1
= (bool ) tempbool1
;
3280 wxPy_BEGIN_ALLOW_THREADS
;
3281 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3283 wxPy_END_ALLOW_THREADS
;
3284 if (PyErr_Occurred()) return NULL
;
3285 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3289 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3290 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3291 PyObject
* _resultobj
;
3293 wxEvtHandler
* _arg1
;
3294 PyObject
* _argo0
= 0;
3295 PyObject
* _argo1
= 0;
3296 char *_kwnames
[] = { "self","handler", NULL
};
3299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3309 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3310 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3316 wxPy_BEGIN_ALLOW_THREADS
;
3317 wxWindow_PushEventHandler(_arg0
,_arg1
);
3319 wxPy_END_ALLOW_THREADS
;
3320 if (PyErr_Occurred()) return NULL
;
3321 } Py_INCREF(Py_None
);
3322 _resultobj
= Py_None
;
3326 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3327 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3328 PyObject
* _resultobj
;
3334 PyObject
* _argo0
= 0;
3335 PyObject
* _argo1
= 0;
3336 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3349 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3350 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3356 wxPy_BEGIN_ALLOW_THREADS
;
3357 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3359 wxPy_END_ALLOW_THREADS
;
3360 if (PyErr_Occurred()) return NULL
;
3361 } _resultobj
= Py_BuildValue("i",_result
);
3365 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3366 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3367 PyObject
* _resultobj
;
3372 PyObject
* _argo0
= 0;
3373 PyObject
* _argo1
= 0;
3375 PyObject
* _obj2
= 0;
3376 char *_kwnames
[] = { "self","menu","pos", NULL
};
3379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3397 if (! wxPoint_helper(_obj2
, &_arg2
))
3401 wxPy_BEGIN_ALLOW_THREADS
;
3402 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3404 wxPy_END_ALLOW_THREADS
;
3405 if (PyErr_Occurred()) return NULL
;
3406 } _resultobj
= Py_BuildValue("i",_result
);
3410 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3411 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3412 PyObject
* _resultobj
;
3414 PyObject
* _argo0
= 0;
3415 char *_kwnames
[] = { "self", NULL
};
3418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3428 wxPy_BEGIN_ALLOW_THREADS
;
3429 wxWindow_Raise(_arg0
);
3431 wxPy_END_ALLOW_THREADS
;
3432 if (PyErr_Occurred()) return NULL
;
3433 } Py_INCREF(Py_None
);
3434 _resultobj
= Py_None
;
3438 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3439 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3440 PyObject
* _resultobj
;
3442 bool _arg1
= (bool ) TRUE
;
3443 wxRect
* _arg2
= (wxRect
*) NULL
;
3444 PyObject
* _argo0
= 0;
3445 int tempbool1
= (int) TRUE
;
3447 PyObject
* _obj2
= 0;
3448 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3460 _arg1
= (bool ) tempbool1
;
3464 if (! wxRect_helper(_obj2
, &_arg2
))
3468 wxPy_BEGIN_ALLOW_THREADS
;
3469 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3471 wxPy_END_ALLOW_THREADS
;
3472 if (PyErr_Occurred()) return NULL
;
3473 } Py_INCREF(Py_None
);
3474 _resultobj
= Py_None
;
3478 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3479 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3480 PyObject
* _resultobj
;
3483 PyObject
* _argo0
= 0;
3485 PyObject
* _obj1
= 0;
3486 char *_kwnames
[] = { "self","rect", NULL
};
3489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3500 if (! wxRect_helper(_obj1
, &_arg1
))
3504 wxPy_BEGIN_ALLOW_THREADS
;
3505 wxWindow_RefreshRect(_arg0
,*_arg1
);
3507 wxPy_END_ALLOW_THREADS
;
3508 if (PyErr_Occurred()) return NULL
;
3509 } Py_INCREF(Py_None
);
3510 _resultobj
= Py_None
;
3514 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3515 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3516 PyObject
* _resultobj
;
3518 PyObject
* _argo0
= 0;
3519 char *_kwnames
[] = { "self", NULL
};
3522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3532 wxPy_BEGIN_ALLOW_THREADS
;
3533 wxWindow_ReleaseMouse(_arg0
);
3535 wxPy_END_ALLOW_THREADS
;
3536 if (PyErr_Occurred()) return NULL
;
3537 } Py_INCREF(Py_None
);
3538 _resultobj
= Py_None
;
3542 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3543 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3544 PyObject
* _resultobj
;
3547 PyObject
* _argo0
= 0;
3548 PyObject
* _argo1
= 0;
3549 char *_kwnames
[] = { "self","child", NULL
};
3552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3562 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3563 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3569 wxPy_BEGIN_ALLOW_THREADS
;
3570 wxWindow_RemoveChild(_arg0
,_arg1
);
3572 wxPy_END_ALLOW_THREADS
;
3573 if (PyErr_Occurred()) return NULL
;
3574 } Py_INCREF(Py_None
);
3575 _resultobj
= Py_None
;
3579 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3580 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3581 PyObject
* _resultobj
;
3585 PyObject
* _argo0
= 0;
3586 PyObject
* _argo1
= 0;
3587 char *_kwnames
[] = { "self","newParent", NULL
};
3590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3600 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3601 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3607 wxPy_BEGIN_ALLOW_THREADS
;
3608 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3610 wxPy_END_ALLOW_THREADS
;
3611 if (PyErr_Occurred()) return NULL
;
3612 } _resultobj
= Py_BuildValue("i",_result
);
3616 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3617 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3618 PyObject
* _resultobj
;
3622 PyObject
* _argo0
= 0;
3624 PyObject
* _obj1
= 0;
3626 PyObject
* _obj2
= 0;
3627 char *_kwnames
[] = { "self","x","y", NULL
};
3630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3640 temp
= (int) PyInt_AsLong(_obj1
);
3644 temp0
= (int) PyInt_AsLong(_obj2
);
3648 wxPy_BEGIN_ALLOW_THREADS
;
3649 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3651 wxPy_END_ALLOW_THREADS
;
3652 if (PyErr_Occurred()) return NULL
;
3653 } Py_INCREF(Py_None
);
3654 _resultobj
= Py_None
;
3657 o
= PyInt_FromLong((long) (*_arg1
));
3658 _resultobj
= t_output_helper(_resultobj
, o
);
3662 o
= PyInt_FromLong((long) (*_arg2
));
3663 _resultobj
= t_output_helper(_resultobj
, o
);
3668 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3669 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3670 PyObject
* _resultobj
;
3674 PyObject
* _argo0
= 0;
3676 PyObject
* _obj1
= 0;
3677 char *_kwnames
[] = { "self","pt", NULL
};
3681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3692 if (! wxPoint_helper(_obj1
, &_arg1
))
3696 wxPy_BEGIN_ALLOW_THREADS
;
3697 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3699 wxPy_END_ALLOW_THREADS
;
3700 if (PyErr_Occurred()) return NULL
;
3701 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3702 _resultobj
= Py_BuildValue("s",_ptemp
);
3706 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3707 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3708 PyObject
* _resultobj
;
3712 wxRect
* _arg3
= (wxRect
*) NULL
;
3713 PyObject
* _argo0
= 0;
3715 PyObject
* _obj3
= 0;
3716 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3731 if (! wxRect_helper(_obj3
, &_arg3
))
3735 wxPy_BEGIN_ALLOW_THREADS
;
3736 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3738 wxPy_END_ALLOW_THREADS
;
3739 if (PyErr_Occurred()) return NULL
;
3740 } Py_INCREF(Py_None
);
3741 _resultobj
= Py_None
;
3745 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3746 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3747 PyObject
* _resultobj
;
3750 PyObject
* _argo0
= 0;
3752 char *_kwnames
[] = { "self","autoLayout", NULL
};
3755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
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_SetAutoLayout. Expected _wxWindow_p.");
3764 _arg1
= (bool ) tempbool1
;
3766 wxPy_BEGIN_ALLOW_THREADS
;
3767 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3769 wxPy_END_ALLOW_THREADS
;
3770 if (PyErr_Occurred()) return NULL
;
3771 } Py_INCREF(Py_None
);
3772 _resultobj
= Py_None
;
3776 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3777 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3778 PyObject
* _resultobj
;
3781 PyObject
* _argo0
= 0;
3782 char *_kwnames
[] = { "self", NULL
};
3785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3795 wxPy_BEGIN_ALLOW_THREADS
;
3796 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3798 wxPy_END_ALLOW_THREADS
;
3799 if (PyErr_Occurred()) return NULL
;
3800 } _resultobj
= Py_BuildValue("i",_result
);
3804 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3805 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3806 PyObject
* _resultobj
;
3809 PyObject
* _argo0
= 0;
3811 PyObject
* _obj1
= 0;
3812 char *_kwnames
[] = { "self","colour", NULL
};
3815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3826 if (! wxColour_helper(_obj1
, &_arg1
))
3830 wxPy_BEGIN_ALLOW_THREADS
;
3831 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3833 wxPy_END_ALLOW_THREADS
;
3834 if (PyErr_Occurred()) return NULL
;
3835 } Py_INCREF(Py_None
);
3836 _resultobj
= Py_None
;
3840 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3841 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3842 PyObject
* _resultobj
;
3844 wxLayoutConstraints
* _arg1
;
3845 PyObject
* _argo0
= 0;
3846 PyObject
* _argo1
= 0;
3847 char *_kwnames
[] = { "self","constraints", NULL
};
3850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3860 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3861 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3867 wxPy_BEGIN_ALLOW_THREADS
;
3868 wxWindow_SetConstraints(_arg0
,_arg1
);
3870 wxPy_END_ALLOW_THREADS
;
3871 if (PyErr_Occurred()) return NULL
;
3872 } Py_INCREF(Py_None
);
3873 _resultobj
= Py_None
;
3877 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3878 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3879 PyObject
* _resultobj
;
3881 wxLayoutConstraints
* _arg1
;
3882 PyObject
* _argo0
= 0;
3883 PyObject
* _argo1
= 0;
3884 char *_kwnames
[] = { "self","constraints", NULL
};
3887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3897 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3898 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3904 wxPy_BEGIN_ALLOW_THREADS
;
3905 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3907 wxPy_END_ALLOW_THREADS
;
3908 if (PyErr_Occurred()) return NULL
;
3909 } Py_INCREF(Py_None
);
3910 _resultobj
= Py_None
;
3914 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3915 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3916 PyObject
* _resultobj
;
3918 PyObject
* _argo0
= 0;
3919 char *_kwnames
[] = { "self", NULL
};
3922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3932 wxPy_BEGIN_ALLOW_THREADS
;
3933 wxWindow_SetFocus(_arg0
);
3935 wxPy_END_ALLOW_THREADS
;
3936 if (PyErr_Occurred()) return NULL
;
3937 } Py_INCREF(Py_None
);
3938 _resultobj
= Py_None
;
3942 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3943 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3944 PyObject
* _resultobj
;
3947 PyObject
* _argo0
= 0;
3948 char *_kwnames
[] = { "self", NULL
};
3951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3961 wxPy_BEGIN_ALLOW_THREADS
;
3962 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3964 wxPy_END_ALLOW_THREADS
;
3965 if (PyErr_Occurred()) return NULL
;
3966 } _resultobj
= Py_BuildValue("i",_result
);
3970 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3971 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3972 PyObject
* _resultobj
;
3975 PyObject
* _argo0
= 0;
3976 PyObject
* _argo1
= 0;
3977 char *_kwnames
[] = { "self","font", NULL
};
3980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3990 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3991 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3997 wxPy_BEGIN_ALLOW_THREADS
;
3998 wxWindow_SetFont(_arg0
,*_arg1
);
4000 wxPy_END_ALLOW_THREADS
;
4001 if (PyErr_Occurred()) return NULL
;
4002 } Py_INCREF(Py_None
);
4003 _resultobj
= Py_None
;
4007 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4008 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4009 PyObject
* _resultobj
;
4012 PyObject
* _argo0
= 0;
4014 PyObject
* _obj1
= 0;
4015 char *_kwnames
[] = { "self","colour", NULL
};
4018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
4021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4029 if (! wxColour_helper(_obj1
, &_arg1
))
4033 wxPy_BEGIN_ALLOW_THREADS
;
4034 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
4036 wxPy_END_ALLOW_THREADS
;
4037 if (PyErr_Occurred()) return NULL
;
4038 } Py_INCREF(Py_None
);
4039 _resultobj
= Py_None
;
4043 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4044 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4045 PyObject
* _resultobj
;
4048 PyObject
* _argo0
= 0;
4049 char *_kwnames
[] = { "self","id", NULL
};
4052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
4055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4062 wxPy_BEGIN_ALLOW_THREADS
;
4063 wxWindow_SetId(_arg0
,_arg1
);
4065 wxPy_END_ALLOW_THREADS
;
4066 if (PyErr_Occurred()) return NULL
;
4067 } Py_INCREF(Py_None
);
4068 _resultobj
= Py_None
;
4072 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4073 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4074 PyObject
* _resultobj
;
4077 PyObject
* _argo0
= 0;
4078 PyObject
* _obj1
= 0;
4079 char *_kwnames
[] = { "self","name", NULL
};
4082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4092 #if PYTHON_API_VERSION >= 1009
4093 char* tmpPtr
; int tmpSize
;
4094 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4095 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4098 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4100 _arg1
= new wxString(tmpPtr
, tmpSize
);
4102 if (!PyString_Check(_obj1
)) {
4103 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4106 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4110 wxPy_BEGIN_ALLOW_THREADS
;
4111 wxWindow_SetName(_arg0
,*_arg1
);
4113 wxPy_END_ALLOW_THREADS
;
4114 if (PyErr_Occurred()) return NULL
;
4115 } Py_INCREF(Py_None
);
4116 _resultobj
= Py_None
;
4124 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4125 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4126 PyObject
* _resultobj
;
4132 int _arg5
= (int ) TRUE
;
4133 PyObject
* _argo0
= 0;
4134 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4147 wxPy_BEGIN_ALLOW_THREADS
;
4148 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4150 wxPy_END_ALLOW_THREADS
;
4151 if (PyErr_Occurred()) return NULL
;
4152 } Py_INCREF(Py_None
);
4153 _resultobj
= Py_None
;
4157 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4158 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4159 PyObject
* _resultobj
;
4163 bool _arg3
= (bool ) TRUE
;
4164 PyObject
* _argo0
= 0;
4165 int tempbool3
= (int) TRUE
;
4166 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4178 _arg3
= (bool ) tempbool3
;
4180 wxPy_BEGIN_ALLOW_THREADS
;
4181 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4183 wxPy_END_ALLOW_THREADS
;
4184 if (PyErr_Occurred()) return NULL
;
4185 } Py_INCREF(Py_None
);
4186 _resultobj
= Py_None
;
4190 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4191 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4192 PyObject
* _resultobj
;
4198 int _arg5
= (int ) wxSIZE_AUTO
;
4199 PyObject
* _argo0
= 0;
4200 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4213 wxPy_BEGIN_ALLOW_THREADS
;
4214 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4216 wxPy_END_ALLOW_THREADS
;
4217 if (PyErr_Occurred()) return NULL
;
4218 } Py_INCREF(Py_None
);
4219 _resultobj
= Py_None
;
4223 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4224 self
->SetSize(size
);
4226 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4227 PyObject
* _resultobj
;
4230 PyObject
* _argo0
= 0;
4232 PyObject
* _obj1
= 0;
4233 char *_kwnames
[] = { "self","size", NULL
};
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4247 if (! wxSize_helper(_obj1
, &_arg1
))
4251 wxPy_BEGIN_ALLOW_THREADS
;
4252 wxWindow_SetSize(_arg0
,*_arg1
);
4254 wxPy_END_ALLOW_THREADS
;
4255 if (PyErr_Occurred()) return NULL
;
4256 } Py_INCREF(Py_None
);
4257 _resultobj
= Py_None
;
4261 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4264 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4265 PyObject
* _resultobj
;
4268 PyObject
* _argo0
= 0;
4270 PyObject
* _obj1
= 0;
4271 char *_kwnames
[] = { "self","pos", NULL
};
4274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4285 if (! wxPoint_helper(_obj1
, &_arg1
))
4289 wxPy_BEGIN_ALLOW_THREADS
;
4290 wxWindow_SetPosition(_arg0
,*_arg1
);
4292 wxPy_END_ALLOW_THREADS
;
4293 if (PyErr_Occurred()) return NULL
;
4294 } Py_INCREF(Py_None
);
4295 _resultobj
= Py_None
;
4299 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4300 self
->SetSize(rect
, sizeFlags
);
4302 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4303 PyObject
* _resultobj
;
4306 int _arg2
= (int ) wxSIZE_AUTO
;
4307 PyObject
* _argo0
= 0;
4309 PyObject
* _obj1
= 0;
4310 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4324 if (! wxRect_helper(_obj1
, &_arg1
))
4328 wxPy_BEGIN_ALLOW_THREADS
;
4329 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4331 wxPy_END_ALLOW_THREADS
;
4332 if (PyErr_Occurred()) return NULL
;
4333 } Py_INCREF(Py_None
);
4334 _resultobj
= Py_None
;
4338 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4339 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4340 PyObject
* _resultobj
;
4342 int _arg1
= (int ) -1;
4343 int _arg2
= (int ) -1;
4344 int _arg3
= (int ) -1;
4345 int _arg4
= (int ) -1;
4346 int _arg5
= (int ) -1;
4347 int _arg6
= (int ) -1;
4348 PyObject
* _argo0
= 0;
4349 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4362 wxPy_BEGIN_ALLOW_THREADS
;
4363 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4365 wxPy_END_ALLOW_THREADS
;
4366 if (PyErr_Occurred()) return NULL
;
4367 } Py_INCREF(Py_None
);
4368 _resultobj
= Py_None
;
4372 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4373 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4374 PyObject
* _resultobj
;
4378 PyObject
* _argo0
= 0;
4379 char *_kwnames
[] = { "self","width","height", NULL
};
4382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4392 wxPy_BEGIN_ALLOW_THREADS
;
4393 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4395 wxPy_END_ALLOW_THREADS
;
4396 if (PyErr_Occurred()) return NULL
;
4397 } Py_INCREF(Py_None
);
4398 _resultobj
= Py_None
;
4402 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4403 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4404 PyObject
* _resultobj
;
4407 PyObject
* _argo0
= 0;
4409 PyObject
* _obj1
= 0;
4410 char *_kwnames
[] = { "self","size", NULL
};
4413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4424 if (! wxSize_helper(_obj1
, &_arg1
))
4428 wxPy_BEGIN_ALLOW_THREADS
;
4429 wxWindow_SetClientSize(_arg0
,*_arg1
);
4431 wxPy_END_ALLOW_THREADS
;
4432 if (PyErr_Occurred()) return NULL
;
4433 } Py_INCREF(Py_None
);
4434 _resultobj
= Py_None
;
4438 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4439 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4440 PyObject
* _resultobj
;
4443 PyObject
* _argo0
= 0;
4444 PyObject
* _argo1
= 0;
4445 char *_kwnames
[] = { "self","cursor", NULL
};
4448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4458 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4459 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4465 wxPy_BEGIN_ALLOW_THREADS
;
4466 wxWindow_SetCursor(_arg0
,*_arg1
);
4468 wxPy_END_ALLOW_THREADS
;
4469 if (PyErr_Occurred()) return NULL
;
4470 } Py_INCREF(Py_None
);
4471 _resultobj
= Py_None
;
4475 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4476 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4477 PyObject
* _resultobj
;
4479 wxEvtHandler
* _arg1
;
4480 PyObject
* _argo0
= 0;
4481 PyObject
* _argo1
= 0;
4482 char *_kwnames
[] = { "self","handler", NULL
};
4485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4495 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4496 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4502 wxPy_BEGIN_ALLOW_THREADS
;
4503 wxWindow_SetEventHandler(_arg0
,_arg1
);
4505 wxPy_END_ALLOW_THREADS
;
4506 if (PyErr_Occurred()) return NULL
;
4507 } Py_INCREF(Py_None
);
4508 _resultobj
= Py_None
;
4512 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4513 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4514 PyObject
* _resultobj
;
4517 PyObject
* _argo0
= 0;
4518 char *_kwnames
[] = { "self","exStyle", NULL
};
4521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4531 wxPy_BEGIN_ALLOW_THREADS
;
4532 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4534 wxPy_END_ALLOW_THREADS
;
4535 if (PyErr_Occurred()) return NULL
;
4536 } Py_INCREF(Py_None
);
4537 _resultobj
= Py_None
;
4541 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4542 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4543 PyObject
* _resultobj
;
4546 PyObject
* _argo0
= 0;
4547 PyObject
* _obj1
= 0;
4548 char *_kwnames
[] = { "self","title", NULL
};
4551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4561 #if PYTHON_API_VERSION >= 1009
4562 char* tmpPtr
; int tmpSize
;
4563 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4564 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4567 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4569 _arg1
= new wxString(tmpPtr
, tmpSize
);
4571 if (!PyString_Check(_obj1
)) {
4572 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4575 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4579 wxPy_BEGIN_ALLOW_THREADS
;
4580 wxWindow_SetTitle(_arg0
,*_arg1
);
4582 wxPy_END_ALLOW_THREADS
;
4583 if (PyErr_Occurred()) return NULL
;
4584 } Py_INCREF(Py_None
);
4585 _resultobj
= Py_None
;
4593 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4594 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4595 PyObject
* _resultobj
;
4599 PyObject
* _argo0
= 0;
4601 char *_kwnames
[] = { "self","show", NULL
};
4604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4613 _arg1
= (bool ) tempbool1
;
4615 wxPy_BEGIN_ALLOW_THREADS
;
4616 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4618 wxPy_END_ALLOW_THREADS
;
4619 if (PyErr_Occurred()) return NULL
;
4620 } _resultobj
= Py_BuildValue("i",_result
);
4624 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4625 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4626 PyObject
* _resultobj
;
4629 PyObject
* _argo0
= 0;
4630 char *_kwnames
[] = { "self", NULL
};
4633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4643 wxPy_BEGIN_ALLOW_THREADS
;
4644 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4646 wxPy_END_ALLOW_THREADS
;
4647 if (PyErr_Occurred()) return NULL
;
4648 } _resultobj
= Py_BuildValue("i",_result
);
4652 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4653 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4654 PyObject
* _resultobj
;
4657 PyObject
* _argo0
= 0;
4658 char *_kwnames
[] = { "self", NULL
};
4661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4671 wxPy_BEGIN_ALLOW_THREADS
;
4672 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4674 wxPy_END_ALLOW_THREADS
;
4675 if (PyErr_Occurred()) return NULL
;
4676 } _resultobj
= Py_BuildValue("i",_result
);
4680 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4681 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4682 PyObject
* _resultobj
;
4685 PyObject
* _argo0
= 0;
4686 char *_kwnames
[] = { "self", NULL
};
4689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4699 wxPy_BEGIN_ALLOW_THREADS
;
4700 _result
= (bool )wxWindow_Validate(_arg0
);
4702 wxPy_END_ALLOW_THREADS
;
4703 if (PyErr_Occurred()) return NULL
;
4704 } _resultobj
= Py_BuildValue("i",_result
);
4708 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4709 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4710 PyObject
* _resultobj
;
4714 PyObject
* _argo0
= 0;
4715 char *_kwnames
[] = { "self","x","y", NULL
};
4718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4728 wxPy_BEGIN_ALLOW_THREADS
;
4729 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4731 wxPy_END_ALLOW_THREADS
;
4732 if (PyErr_Occurred()) return NULL
;
4733 } Py_INCREF(Py_None
);
4734 _resultobj
= Py_None
;
4738 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4739 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4740 PyObject
* _resultobj
;
4744 PyObject
* _argo0
= 0;
4746 PyObject
* _obj1
= 0;
4747 char *_kwnames
[] = { "self","pt", NULL
};
4751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4762 if (! wxPoint_helper(_obj1
, &_arg1
))
4766 wxPy_BEGIN_ALLOW_THREADS
;
4767 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4769 wxPy_END_ALLOW_THREADS
;
4770 if (PyErr_Occurred()) return NULL
;
4771 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4772 _resultobj
= Py_BuildValue("s",_ptemp
);
4776 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4777 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4778 PyObject
* _resultobj
;
4782 PyObject
* _argo0
= 0;
4784 PyObject
* _obj1
= 0;
4785 char *_kwnames
[] = { "self","sz", NULL
};
4789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4800 if (! wxSize_helper(_obj1
, &_arg1
))
4804 wxPy_BEGIN_ALLOW_THREADS
;
4805 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4807 wxPy_END_ALLOW_THREADS
;
4808 if (PyErr_Occurred()) return NULL
;
4809 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4810 _resultobj
= Py_BuildValue("s",_ptemp
);
4814 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4815 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4816 PyObject
* _resultobj
;
4820 PyObject
* _argo0
= 0;
4822 PyObject
* _obj1
= 0;
4823 char *_kwnames
[] = { "self","pt", NULL
};
4827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4838 if (! wxPoint_helper(_obj1
, &_arg1
))
4842 wxPy_BEGIN_ALLOW_THREADS
;
4843 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4845 wxPy_END_ALLOW_THREADS
;
4846 if (PyErr_Occurred()) return NULL
;
4847 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4848 _resultobj
= Py_BuildValue("s",_ptemp
);
4852 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4853 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4854 PyObject
* _resultobj
;
4858 PyObject
* _argo0
= 0;
4860 PyObject
* _obj1
= 0;
4861 char *_kwnames
[] = { "self","sz", NULL
};
4865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4876 if (! wxSize_helper(_obj1
, &_arg1
))
4880 wxPy_BEGIN_ALLOW_THREADS
;
4881 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4883 wxPy_END_ALLOW_THREADS
;
4884 if (PyErr_Occurred()) return NULL
;
4885 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4886 _resultobj
= Py_BuildValue("s",_ptemp
);
4890 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4891 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4892 PyObject
* _resultobj
;
4895 PyObject
* _argo0
= 0;
4896 PyObject
* _obj1
= 0;
4897 char *_kwnames
[] = { "self","tip", NULL
};
4900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4910 #if PYTHON_API_VERSION >= 1009
4911 char* tmpPtr
; int tmpSize
;
4912 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4913 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4916 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4918 _arg1
= new wxString(tmpPtr
, tmpSize
);
4920 if (!PyString_Check(_obj1
)) {
4921 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4924 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4928 wxPy_BEGIN_ALLOW_THREADS
;
4929 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4931 wxPy_END_ALLOW_THREADS
;
4932 if (PyErr_Occurred()) return NULL
;
4933 } Py_INCREF(Py_None
);
4934 _resultobj
= Py_None
;
4942 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4943 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4944 PyObject
* _resultobj
;
4947 PyObject
* _argo0
= 0;
4948 PyObject
* _argo1
= 0;
4949 char *_kwnames
[] = { "self","tooltip", NULL
};
4952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4962 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4963 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4969 wxPy_BEGIN_ALLOW_THREADS
;
4970 wxWindow_SetToolTip(_arg0
,_arg1
);
4972 wxPy_END_ALLOW_THREADS
;
4973 if (PyErr_Occurred()) return NULL
;
4974 } Py_INCREF(Py_None
);
4975 _resultobj
= Py_None
;
4979 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4980 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4981 PyObject
* _resultobj
;
4982 wxToolTip
* _result
;
4984 PyObject
* _argo0
= 0;
4985 char *_kwnames
[] = { "self", NULL
};
4988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4998 wxPy_BEGIN_ALLOW_THREADS
;
4999 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
5001 wxPy_END_ALLOW_THREADS
;
5002 if (PyErr_Occurred()) return NULL
;
5003 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5007 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
5008 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5009 PyObject
* _resultobj
;
5012 PyObject
* _argo0
= 0;
5013 PyObject
* _argo1
= 0;
5014 char *_kwnames
[] = { "self","sizer", NULL
};
5017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
5020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5027 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5028 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
5029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5034 wxPy_BEGIN_ALLOW_THREADS
;
5035 wxWindow_SetSizer(_arg0
,_arg1
);
5037 wxPy_END_ALLOW_THREADS
;
5038 if (PyErr_Occurred()) return NULL
;
5039 } Py_INCREF(Py_None
);
5040 _resultobj
= Py_None
;
5044 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5045 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5046 PyObject
* _resultobj
;
5049 PyObject
* _argo0
= 0;
5050 char *_kwnames
[] = { "self", NULL
};
5053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
5056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5063 wxPy_BEGIN_ALLOW_THREADS
;
5064 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5066 wxPy_END_ALLOW_THREADS
;
5067 if (PyErr_Occurred()) return NULL
;
5068 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
5072 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5073 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5074 PyObject
* _resultobj
;
5075 wxValidator
* _result
;
5077 PyObject
* _argo0
= 0;
5078 char *_kwnames
[] = { "self", NULL
};
5081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5091 wxPy_BEGIN_ALLOW_THREADS
;
5092 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5094 wxPy_END_ALLOW_THREADS
;
5095 if (PyErr_Occurred()) return NULL
;
5096 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5100 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5101 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5102 PyObject
* _resultobj
;
5104 wxValidator
* _arg1
;
5105 PyObject
* _argo0
= 0;
5106 PyObject
* _argo1
= 0;
5107 char *_kwnames
[] = { "self","validator", NULL
};
5110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5120 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5121 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5127 wxPy_BEGIN_ALLOW_THREADS
;
5128 wxWindow_SetValidator(_arg0
,*_arg1
);
5130 wxPy_END_ALLOW_THREADS
;
5131 if (PyErr_Occurred()) return NULL
;
5132 } Py_INCREF(Py_None
);
5133 _resultobj
= Py_None
;
5137 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5138 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5139 PyObject
* _resultobj
;
5141 wxDropTarget
* _arg1
;
5142 PyObject
* _argo0
= 0;
5143 PyObject
* _argo1
= 0;
5144 char *_kwnames
[] = { "self","target", NULL
};
5147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5157 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5158 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5164 wxPy_BEGIN_ALLOW_THREADS
;
5165 wxWindow_SetDropTarget(_arg0
,_arg1
);
5167 wxPy_END_ALLOW_THREADS
;
5168 if (PyErr_Occurred()) return NULL
;
5169 } Py_INCREF(Py_None
);
5170 _resultobj
= Py_None
;
5174 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5175 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5176 PyObject
* _resultobj
;
5177 wxDropTarget
* _result
;
5179 PyObject
* _argo0
= 0;
5180 char *_kwnames
[] = { "self", NULL
};
5184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5194 wxPy_BEGIN_ALLOW_THREADS
;
5195 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5197 wxPy_END_ALLOW_THREADS
;
5198 if (PyErr_Occurred()) return NULL
;
5200 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5201 _resultobj
= Py_BuildValue("s",_ptemp
);
5204 _resultobj
= Py_None
;
5209 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5210 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5211 PyObject
* _resultobj
;
5214 PyObject
* _argo0
= 0;
5215 char *_kwnames
[] = { "self", NULL
};
5219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5229 wxPy_BEGIN_ALLOW_THREADS
;
5230 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5232 wxPy_END_ALLOW_THREADS
;
5233 if (PyErr_Occurred()) return NULL
;
5234 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5235 _resultobj
= Py_BuildValue("s",_ptemp
);
5239 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5240 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5241 PyObject
* _resultobj
;
5244 PyObject
* _argo0
= 0;
5245 PyObject
* _argo1
= 0;
5246 char *_kwnames
[] = { "self","caret", NULL
};
5249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5259 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5260 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5266 wxPy_BEGIN_ALLOW_THREADS
;
5267 wxWindow_SetCaret(_arg0
,_arg1
);
5269 wxPy_END_ALLOW_THREADS
;
5270 if (PyErr_Occurred()) return NULL
;
5271 } Py_INCREF(Py_None
);
5272 _resultobj
= Py_None
;
5276 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5277 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5278 PyObject
* _resultobj
;
5281 PyObject
* _argo0
= 0;
5282 char *_kwnames
[] = { "self", NULL
};
5286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5296 wxPy_BEGIN_ALLOW_THREADS
;
5297 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5299 wxPy_END_ALLOW_THREADS
;
5300 if (PyErr_Occurred()) return NULL
;
5302 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5303 _resultobj
= Py_BuildValue("s",_ptemp
);
5306 _resultobj
= Py_None
;
5311 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5312 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5313 PyObject
* _resultobj
;
5315 PyObject
* _argo0
= 0;
5316 char *_kwnames
[] = { "self", NULL
};
5319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5329 wxPy_BEGIN_ALLOW_THREADS
;
5330 wxWindow_Freeze(_arg0
);
5332 wxPy_END_ALLOW_THREADS
;
5333 if (PyErr_Occurred()) return NULL
;
5334 } Py_INCREF(Py_None
);
5335 _resultobj
= Py_None
;
5339 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5340 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5341 PyObject
* _resultobj
;
5343 PyObject
* _argo0
= 0;
5344 char *_kwnames
[] = { "self", NULL
};
5347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5357 wxPy_BEGIN_ALLOW_THREADS
;
5358 wxWindow_Thaw(_arg0
);
5360 wxPy_END_ALLOW_THREADS
;
5361 if (PyErr_Occurred()) return NULL
;
5362 } Py_INCREF(Py_None
);
5363 _resultobj
= Py_None
;
5367 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5368 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5369 PyObject
* _resultobj
;
5371 PyObject
* _argo0
= 0;
5372 char *_kwnames
[] = { "self", NULL
};
5375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5385 wxPy_BEGIN_ALLOW_THREADS
;
5386 wxWindow_Update(_arg0
);
5388 wxPy_END_ALLOW_THREADS
;
5389 if (PyErr_Occurred()) return NULL
;
5390 } Py_INCREF(Py_None
);
5391 _resultobj
= Py_None
;
5395 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5396 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5397 PyObject
* _resultobj
;
5400 PyObject
* _argo0
= 0;
5401 char *_kwnames
[] = { "self", NULL
};
5404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5414 wxPy_BEGIN_ALLOW_THREADS
;
5415 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5417 wxPy_END_ALLOW_THREADS
;
5418 if (PyErr_Occurred()) return NULL
;
5420 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5428 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5429 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5430 PyObject
* _resultobj
;
5433 PyObject
* _argo0
= 0;
5434 PyObject
* _obj1
= 0;
5435 char *_kwnames
[] = { "self","helpText", NULL
};
5438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5448 #if PYTHON_API_VERSION >= 1009
5449 char* tmpPtr
; int tmpSize
;
5450 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5451 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5454 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5456 _arg1
= new wxString(tmpPtr
, tmpSize
);
5458 if (!PyString_Check(_obj1
)) {
5459 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5462 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5466 wxPy_BEGIN_ALLOW_THREADS
;
5467 wxWindow_SetHelpText(_arg0
,*_arg1
);
5469 wxPy_END_ALLOW_THREADS
;
5470 if (PyErr_Occurred()) return NULL
;
5471 } Py_INCREF(Py_None
);
5472 _resultobj
= Py_None
;
5480 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5481 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5482 PyObject
* _resultobj
;
5486 PyObject
* _argo0
= 0;
5487 char *_kwnames
[] = { "self","lines", NULL
};
5490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5500 wxPy_BEGIN_ALLOW_THREADS
;
5501 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5503 wxPy_END_ALLOW_THREADS
;
5504 if (PyErr_Occurred()) return NULL
;
5505 } _resultobj
= Py_BuildValue("i",_result
);
5509 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5510 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5511 PyObject
* _resultobj
;
5515 PyObject
* _argo0
= 0;
5516 char *_kwnames
[] = { "self","pages", NULL
};
5519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5529 wxPy_BEGIN_ALLOW_THREADS
;
5530 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5532 wxPy_END_ALLOW_THREADS
;
5533 if (PyErr_Occurred()) return NULL
;
5534 } _resultobj
= Py_BuildValue("i",_result
);
5538 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5539 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5540 PyObject
* _resultobj
;
5543 PyObject
* _argo0
= 0;
5544 char *_kwnames
[] = { "self", NULL
};
5547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5557 wxPy_BEGIN_ALLOW_THREADS
;
5558 _result
= (bool )wxWindow_LineUp(_arg0
);
5560 wxPy_END_ALLOW_THREADS
;
5561 if (PyErr_Occurred()) return NULL
;
5562 } _resultobj
= Py_BuildValue("i",_result
);
5566 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5567 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5568 PyObject
* _resultobj
;
5571 PyObject
* _argo0
= 0;
5572 char *_kwnames
[] = { "self", NULL
};
5575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5585 wxPy_BEGIN_ALLOW_THREADS
;
5586 _result
= (bool )wxWindow_LineDown(_arg0
);
5588 wxPy_END_ALLOW_THREADS
;
5589 if (PyErr_Occurred()) return NULL
;
5590 } _resultobj
= Py_BuildValue("i",_result
);
5594 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5595 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5596 PyObject
* _resultobj
;
5599 PyObject
* _argo0
= 0;
5600 char *_kwnames
[] = { "self", NULL
};
5603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5613 wxPy_BEGIN_ALLOW_THREADS
;
5614 _result
= (bool )wxWindow_PageUp(_arg0
);
5616 wxPy_END_ALLOW_THREADS
;
5617 if (PyErr_Occurred()) return NULL
;
5618 } _resultobj
= Py_BuildValue("i",_result
);
5622 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5623 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5624 PyObject
* _resultobj
;
5627 PyObject
* _argo0
= 0;
5628 char *_kwnames
[] = { "self", NULL
};
5631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5641 wxPy_BEGIN_ALLOW_THREADS
;
5642 _result
= (bool )wxWindow_PageDown(_arg0
);
5644 wxPy_END_ALLOW_THREADS
;
5645 if (PyErr_Occurred()) return NULL
;
5646 } _resultobj
= Py_BuildValue("i",_result
);
5650 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5651 PyObject
* _resultobj
;
5653 char *_kwnames
[] = { NULL
};
5656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5659 wxPy_BEGIN_ALLOW_THREADS
;
5660 _result
= (wxWindow
*)wxWindow::FindFocus();
5662 wxPy_END_ALLOW_THREADS
;
5663 if (PyErr_Occurred()) return NULL
;
5664 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5668 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5669 PyObject
* _resultobj
;
5671 char *_kwnames
[] = { NULL
};
5674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5677 wxPy_BEGIN_ALLOW_THREADS
;
5678 _result
= (int )wxWindow::NewControlId();
5680 wxPy_END_ALLOW_THREADS
;
5681 if (PyErr_Occurred()) return NULL
;
5682 } _resultobj
= Py_BuildValue("i",_result
);
5686 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5687 PyObject
* _resultobj
;
5690 char *_kwnames
[] = { "id", NULL
};
5693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5696 wxPy_BEGIN_ALLOW_THREADS
;
5697 _result
= (int )wxWindow::NextControlId(_arg0
);
5699 wxPy_END_ALLOW_THREADS
;
5700 if (PyErr_Occurred()) return NULL
;
5701 } _resultobj
= Py_BuildValue("i",_result
);
5705 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5706 PyObject
* _resultobj
;
5709 char *_kwnames
[] = { "id", NULL
};
5712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5715 wxPy_BEGIN_ALLOW_THREADS
;
5716 _result
= (int )wxWindow::PrevControlId(_arg0
);
5718 wxPy_END_ALLOW_THREADS
;
5719 if (PyErr_Occurred()) return NULL
;
5720 } _resultobj
= Py_BuildValue("i",_result
);
5724 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5725 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5726 PyObject
* _resultobj
;
5728 wxAcceleratorTable
* _arg1
;
5729 PyObject
* _argo0
= 0;
5730 PyObject
* _argo1
= 0;
5731 char *_kwnames
[] = { "self","accel", NULL
};
5734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5744 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5745 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5751 wxPy_BEGIN_ALLOW_THREADS
;
5752 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5754 wxPy_END_ALLOW_THREADS
;
5755 if (PyErr_Occurred()) return NULL
;
5756 } Py_INCREF(Py_None
);
5757 _resultobj
= Py_None
;
5761 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5762 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5763 PyObject
* _resultobj
;
5764 wxAcceleratorTable
* _result
;
5766 PyObject
* _argo0
= 0;
5767 char *_kwnames
[] = { "self", NULL
};
5771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5781 wxPy_BEGIN_ALLOW_THREADS
;
5782 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5784 wxPy_END_ALLOW_THREADS
;
5785 if (PyErr_Occurred()) return NULL
;
5787 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5788 _resultobj
= Py_BuildValue("s",_ptemp
);
5791 _resultobj
= Py_None
;
5796 static void *SwigwxPanelTowxWindow(void *ptr
) {
5799 src
= (wxPanel
*) ptr
;
5800 dest
= (wxWindow
*) src
;
5801 return (void *) dest
;
5804 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5807 src
= (wxPanel
*) ptr
;
5808 dest
= (wxEvtHandler
*) src
;
5809 return (void *) dest
;
5812 static void *SwigwxPanelTowxObject(void *ptr
) {
5815 src
= (wxPanel
*) ptr
;
5816 dest
= (wxObject
*) src
;
5817 return (void *) dest
;
5820 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5821 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5822 PyObject
* _resultobj
;
5826 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5827 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5828 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5829 char * _arg5
= (char *) "panel";
5830 PyObject
* _argo0
= 0;
5832 PyObject
* _obj2
= 0;
5834 PyObject
* _obj3
= 0;
5835 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5851 if (! wxPoint_helper(_obj2
, &_arg2
))
5857 if (! wxSize_helper(_obj3
, &_arg3
))
5861 wxPy_BEGIN_ALLOW_THREADS
;
5862 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5864 wxPy_END_ALLOW_THREADS
;
5865 if (PyErr_Occurred()) return NULL
;
5867 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5868 _resultobj
= Py_BuildValue("s",_ptemp
);
5871 _resultobj
= Py_None
;
5876 #define new_wxPrePanel() (new wxPanel())
5877 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5878 PyObject
* _resultobj
;
5880 char *_kwnames
[] = { NULL
};
5884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5887 wxPy_BEGIN_ALLOW_THREADS
;
5888 _result
= (wxPanel
*)new_wxPrePanel();
5890 wxPy_END_ALLOW_THREADS
;
5891 if (PyErr_Occurred()) return NULL
;
5893 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5894 _resultobj
= Py_BuildValue("s",_ptemp
);
5897 _resultobj
= Py_None
;
5902 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5903 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5904 PyObject
* _resultobj
;
5909 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5910 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5911 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5912 char * _arg6
= (char *) "panel";
5913 PyObject
* _argo0
= 0;
5914 PyObject
* _argo1
= 0;
5916 PyObject
* _obj3
= 0;
5918 PyObject
* _obj4
= 0;
5919 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5932 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5933 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5941 if (! wxPoint_helper(_obj3
, &_arg3
))
5947 if (! wxSize_helper(_obj4
, &_arg4
))
5951 wxPy_BEGIN_ALLOW_THREADS
;
5952 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5954 wxPy_END_ALLOW_THREADS
;
5955 if (PyErr_Occurred()) return NULL
;
5956 } _resultobj
= Py_BuildValue("i",_result
);
5960 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5961 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5962 PyObject
* _resultobj
;
5964 PyObject
* _argo0
= 0;
5965 char *_kwnames
[] = { "self", NULL
};
5968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5978 wxPy_BEGIN_ALLOW_THREADS
;
5979 wxPanel_InitDialog(_arg0
);
5981 wxPy_END_ALLOW_THREADS
;
5982 if (PyErr_Occurred()) return NULL
;
5983 } Py_INCREF(Py_None
);
5984 _resultobj
= Py_None
;
5988 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5989 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5990 PyObject
* _resultobj
;
5993 PyObject
* _argo0
= 0;
5994 char *_kwnames
[] = { "self", NULL
};
5997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
6000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
6007 wxPy_BEGIN_ALLOW_THREADS
;
6008 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
6010 wxPy_END_ALLOW_THREADS
;
6011 if (PyErr_Occurred()) return NULL
;
6012 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6016 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6017 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6018 PyObject
* _resultobj
;
6021 PyObject
* _argo0
= 0;
6022 PyObject
* _argo1
= 0;
6023 char *_kwnames
[] = { "self","btn", NULL
};
6026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
6029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
6036 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6037 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
6038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
6043 wxPy_BEGIN_ALLOW_THREADS
;
6044 wxPanel_SetDefaultItem(_arg0
,_arg1
);
6046 wxPy_END_ALLOW_THREADS
;
6047 if (PyErr_Occurred()) return NULL
;
6048 } Py_INCREF(Py_None
);
6049 _resultobj
= Py_None
;
6053 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
6054 wxScrolledWindow
*src
;
6056 src
= (wxScrolledWindow
*) ptr
;
6057 dest
= (wxPanel
*) src
;
6058 return (void *) dest
;
6061 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6062 wxScrolledWindow
*src
;
6064 src
= (wxScrolledWindow
*) ptr
;
6065 dest
= (wxWindow
*) src
;
6066 return (void *) dest
;
6069 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6070 wxScrolledWindow
*src
;
6072 src
= (wxScrolledWindow
*) ptr
;
6073 dest
= (wxEvtHandler
*) src
;
6074 return (void *) dest
;
6077 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6078 wxScrolledWindow
*src
;
6080 src
= (wxScrolledWindow
*) ptr
;
6081 dest
= (wxObject
*) src
;
6082 return (void *) dest
;
6085 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6086 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6087 PyObject
* _resultobj
;
6088 wxScrolledWindow
* _result
;
6090 wxWindowID _arg1
= (wxWindowID
) -1;
6091 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6092 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6093 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6094 char * _arg5
= (char *) "scrolledWindow";
6095 PyObject
* _argo0
= 0;
6097 PyObject
* _obj2
= 0;
6099 PyObject
* _obj3
= 0;
6100 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6116 if (! wxPoint_helper(_obj2
, &_arg2
))
6122 if (! wxSize_helper(_obj3
, &_arg3
))
6126 wxPy_BEGIN_ALLOW_THREADS
;
6127 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6129 wxPy_END_ALLOW_THREADS
;
6130 if (PyErr_Occurred()) return NULL
;
6132 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6133 _resultobj
= Py_BuildValue("s",_ptemp
);
6136 _resultobj
= Py_None
;
6141 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6142 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6143 PyObject
* _resultobj
;
6144 wxScrolledWindow
* _result
;
6145 char *_kwnames
[] = { NULL
};
6149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6152 wxPy_BEGIN_ALLOW_THREADS
;
6153 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6155 wxPy_END_ALLOW_THREADS
;
6156 if (PyErr_Occurred()) return NULL
;
6158 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6159 _resultobj
= Py_BuildValue("s",_ptemp
);
6162 _resultobj
= Py_None
;
6167 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6168 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6169 PyObject
* _resultobj
;
6171 wxScrolledWindow
* _arg0
;
6173 wxWindowID _arg2
= (wxWindowID
) -1;
6174 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6175 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6176 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6177 char * _arg6
= (char *) "scrolledWindow";
6178 PyObject
* _argo0
= 0;
6179 PyObject
* _argo1
= 0;
6181 PyObject
* _obj3
= 0;
6183 PyObject
* _obj4
= 0;
6184 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6197 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6198 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6206 if (! wxPoint_helper(_obj3
, &_arg3
))
6212 if (! wxSize_helper(_obj4
, &_arg4
))
6216 wxPy_BEGIN_ALLOW_THREADS
;
6217 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6219 wxPy_END_ALLOW_THREADS
;
6220 if (PyErr_Occurred()) return NULL
;
6221 } _resultobj
= Py_BuildValue("i",_result
);
6225 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6226 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6227 PyObject
* _resultobj
;
6228 wxScrolledWindow
* _arg0
;
6231 PyObject
* _argo0
= 0;
6234 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6246 _arg1
= (bool ) tempbool1
;
6247 _arg2
= (bool ) tempbool2
;
6249 wxPy_BEGIN_ALLOW_THREADS
;
6250 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6252 wxPy_END_ALLOW_THREADS
;
6253 if (PyErr_Occurred()) return NULL
;
6254 } Py_INCREF(Py_None
);
6255 _resultobj
= Py_None
;
6259 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6260 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6261 PyObject
* _resultobj
;
6263 wxScrolledWindow
* _arg0
;
6265 PyObject
* _argo0
= 0;
6266 char *_kwnames
[] = { "self","orient", NULL
};
6269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6279 wxPy_BEGIN_ALLOW_THREADS
;
6280 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6282 wxPy_END_ALLOW_THREADS
;
6283 if (PyErr_Occurred()) return NULL
;
6284 } _resultobj
= Py_BuildValue("i",_result
);
6288 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6289 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6290 PyObject
* _resultobj
;
6291 wxScrolledWindow
* _arg0
;
6296 PyObject
* _argo0
= 0;
6297 char *_kwnames
[] = { "self", NULL
};
6306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6309 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6310 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6316 wxPy_BEGIN_ALLOW_THREADS
;
6317 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6319 wxPy_END_ALLOW_THREADS
;
6320 if (PyErr_Occurred()) return NULL
;
6321 } Py_INCREF(Py_None
);
6322 _resultobj
= Py_None
;
6325 o
= PyInt_FromLong((long) (*_arg1
));
6326 _resultobj
= t_output_helper(_resultobj
, o
);
6330 o
= PyInt_FromLong((long) (*_arg2
));
6331 _resultobj
= t_output_helper(_resultobj
, o
);
6336 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6337 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6338 PyObject
* _resultobj
;
6340 wxScrolledWindow
* _arg0
;
6341 PyObject
* _argo0
= 0;
6342 char *_kwnames
[] = { "self", NULL
};
6345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6355 wxPy_BEGIN_ALLOW_THREADS
;
6356 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6358 wxPy_END_ALLOW_THREADS
;
6359 if (PyErr_Occurred()) return NULL
;
6360 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6364 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6365 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6366 PyObject
* _resultobj
;
6367 wxScrolledWindow
* _arg0
;
6372 PyObject
* _argo0
= 0;
6373 char *_kwnames
[] = { "self", NULL
};
6382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6392 wxPy_BEGIN_ALLOW_THREADS
;
6393 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6395 wxPy_END_ALLOW_THREADS
;
6396 if (PyErr_Occurred()) return NULL
;
6397 } Py_INCREF(Py_None
);
6398 _resultobj
= Py_None
;
6401 o
= PyInt_FromLong((long) (*_arg1
));
6402 _resultobj
= t_output_helper(_resultobj
, o
);
6406 o
= PyInt_FromLong((long) (*_arg2
));
6407 _resultobj
= t_output_helper(_resultobj
, o
);
6412 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6413 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6414 PyObject
* _resultobj
;
6416 wxScrolledWindow
* _arg0
;
6417 PyObject
* _argo0
= 0;
6418 char *_kwnames
[] = { "self", NULL
};
6421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6431 wxPy_BEGIN_ALLOW_THREADS
;
6432 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6434 wxPy_END_ALLOW_THREADS
;
6435 if (PyErr_Occurred()) return NULL
;
6436 } _resultobj
= Py_BuildValue("i",_result
);
6440 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6441 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6442 PyObject
* _resultobj
;
6443 wxScrolledWindow
* _arg0
;
6445 PyObject
* _argo0
= 0;
6446 PyObject
* _argo1
= 0;
6447 char *_kwnames
[] = { "self","dc", NULL
};
6450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6460 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6461 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6467 wxPy_BEGIN_ALLOW_THREADS
;
6468 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6470 wxPy_END_ALLOW_THREADS
;
6471 if (PyErr_Occurred()) return NULL
;
6472 } Py_INCREF(Py_None
);
6473 _resultobj
= Py_None
;
6477 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6478 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6479 PyObject
* _resultobj
;
6480 wxScrolledWindow
* _arg0
;
6483 PyObject
* _argo0
= 0;
6484 char *_kwnames
[] = { "self","x","y", NULL
};
6487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6497 wxPy_BEGIN_ALLOW_THREADS
;
6498 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6500 wxPy_END_ALLOW_THREADS
;
6501 if (PyErr_Occurred()) return NULL
;
6502 } Py_INCREF(Py_None
);
6503 _resultobj
= Py_None
;
6507 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6508 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6509 PyObject
* _resultobj
;
6510 wxScrolledWindow
* _arg0
;
6515 int _arg5
= (int ) 0;
6516 int _arg6
= (int ) 0;
6517 int _arg7
= (int ) FALSE
;
6518 PyObject
* _argo0
= 0;
6519 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6532 wxPy_BEGIN_ALLOW_THREADS
;
6533 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6535 wxPy_END_ALLOW_THREADS
;
6536 if (PyErr_Occurred()) return NULL
;
6537 } Py_INCREF(Py_None
);
6538 _resultobj
= Py_None
;
6542 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6543 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6544 PyObject
* _resultobj
;
6545 wxScrolledWindow
* _arg0
;
6548 PyObject
* _argo0
= 0;
6549 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6562 wxPy_BEGIN_ALLOW_THREADS
;
6563 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6565 wxPy_END_ALLOW_THREADS
;
6566 if (PyErr_Occurred()) return NULL
;
6567 } Py_INCREF(Py_None
);
6568 _resultobj
= Py_None
;
6572 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6573 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6574 PyObject
* _resultobj
;
6575 wxScrolledWindow
* _arg0
;
6577 PyObject
* _argo0
= 0;
6578 PyObject
* _argo1
= 0;
6579 char *_kwnames
[] = { "self","window", NULL
};
6582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6592 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6593 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6599 wxPy_BEGIN_ALLOW_THREADS
;
6600 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6602 wxPy_END_ALLOW_THREADS
;
6603 if (PyErr_Occurred()) return NULL
;
6604 } Py_INCREF(Py_None
);
6605 _resultobj
= Py_None
;
6609 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6610 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6611 PyObject
* _resultobj
;
6612 wxScrolledWindow
* _arg0
;
6617 PyObject
* _argo0
= 0;
6618 char *_kwnames
[] = { "self", NULL
};
6627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6637 wxPy_BEGIN_ALLOW_THREADS
;
6638 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6640 wxPy_END_ALLOW_THREADS
;
6641 if (PyErr_Occurred()) return NULL
;
6642 } Py_INCREF(Py_None
);
6643 _resultobj
= Py_None
;
6646 o
= PyInt_FromLong((long) (*_arg1
));
6647 _resultobj
= t_output_helper(_resultobj
, o
);
6651 o
= PyInt_FromLong((long) (*_arg2
));
6652 _resultobj
= t_output_helper(_resultobj
, o
);
6657 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6658 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6659 PyObject
* _resultobj
;
6660 wxScrolledWindow
* _arg0
;
6667 PyObject
* _argo0
= 0;
6668 char *_kwnames
[] = { "self","x","y", NULL
};
6677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6687 wxPy_BEGIN_ALLOW_THREADS
;
6688 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6690 wxPy_END_ALLOW_THREADS
;
6691 if (PyErr_Occurred()) return NULL
;
6692 } Py_INCREF(Py_None
);
6693 _resultobj
= Py_None
;
6696 o
= PyInt_FromLong((long) (*_arg3
));
6697 _resultobj
= t_output_helper(_resultobj
, o
);
6701 o
= PyInt_FromLong((long) (*_arg4
));
6702 _resultobj
= t_output_helper(_resultobj
, o
);
6707 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6708 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6709 PyObject
* _resultobj
;
6710 wxScrolledWindow
* _arg0
;
6717 PyObject
* _argo0
= 0;
6718 char *_kwnames
[] = { "self","x","y", NULL
};
6727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6737 wxPy_BEGIN_ALLOW_THREADS
;
6738 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6740 wxPy_END_ALLOW_THREADS
;
6741 if (PyErr_Occurred()) return NULL
;
6742 } Py_INCREF(Py_None
);
6743 _resultobj
= Py_None
;
6746 o
= PyInt_FromLong((long) (*_arg3
));
6747 _resultobj
= t_output_helper(_resultobj
, o
);
6751 o
= PyInt_FromLong((long) (*_arg4
));
6752 _resultobj
= t_output_helper(_resultobj
, o
);
6757 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6758 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6759 PyObject
* _resultobj
;
6760 wxScrolledWindow
* _arg0
;
6763 PyObject
* _argo0
= 0;
6764 char *_kwnames
[] = { "self","xs","ys", NULL
};
6767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6777 wxPy_BEGIN_ALLOW_THREADS
;
6778 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6780 wxPy_END_ALLOW_THREADS
;
6781 if (PyErr_Occurred()) return NULL
;
6782 } Py_INCREF(Py_None
);
6783 _resultobj
= Py_None
;
6787 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6788 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6789 PyObject
* _resultobj
;
6791 wxScrolledWindow
* _arg0
;
6792 PyObject
* _argo0
= 0;
6793 char *_kwnames
[] = { "self", NULL
};
6796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6806 wxPy_BEGIN_ALLOW_THREADS
;
6807 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6809 wxPy_END_ALLOW_THREADS
;
6810 if (PyErr_Occurred()) return NULL
;
6811 } _resultobj
= Py_BuildValue("d",_result
);
6815 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6816 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6817 PyObject
* _resultobj
;
6819 wxScrolledWindow
* _arg0
;
6820 PyObject
* _argo0
= 0;
6821 char *_kwnames
[] = { "self", NULL
};
6824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6834 wxPy_BEGIN_ALLOW_THREADS
;
6835 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6837 wxPy_END_ALLOW_THREADS
;
6838 if (PyErr_Occurred()) return NULL
;
6839 } _resultobj
= Py_BuildValue("d",_result
);
6843 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6844 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6845 PyObject
* _resultobj
;
6846 wxScrolledWindow
* _arg0
;
6847 PyObject
* _argo0
= 0;
6848 char *_kwnames
[] = { "self", NULL
};
6851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6861 wxPy_BEGIN_ALLOW_THREADS
;
6862 wxScrolledWindow_AdjustScrollbars(_arg0
);
6864 wxPy_END_ALLOW_THREADS
;
6865 if (PyErr_Occurred()) return NULL
;
6866 } Py_INCREF(Py_None
);
6867 _resultobj
= Py_None
;
6871 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6874 src
= (wxMenu
*) ptr
;
6875 dest
= (wxEvtHandler
*) src
;
6876 return (void *) dest
;
6879 static void *SwigwxMenuTowxObject(void *ptr
) {
6882 src
= (wxMenu
*) ptr
;
6883 dest
= (wxObject
*) src
;
6884 return (void *) dest
;
6887 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6888 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6889 PyObject
* _resultobj
;
6891 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6892 long _arg1
= (long ) 0;
6893 PyObject
* _obj0
= 0;
6894 char *_kwnames
[] = { "title","style", NULL
};
6898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6902 #if PYTHON_API_VERSION >= 1009
6903 char* tmpPtr
; int tmpSize
;
6904 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6905 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6908 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6910 _arg0
= new wxString(tmpPtr
, tmpSize
);
6912 if (!PyString_Check(_obj0
)) {
6913 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6916 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6920 wxPy_BEGIN_ALLOW_THREADS
;
6921 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6923 wxPy_END_ALLOW_THREADS
;
6924 if (PyErr_Occurred()) return NULL
;
6926 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6927 _resultobj
= Py_BuildValue("s",_ptemp
);
6930 _resultobj
= Py_None
;
6939 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6940 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6941 PyObject
* _resultobj
;
6945 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6946 int _arg4
= (int ) FALSE
;
6947 PyObject
* _argo0
= 0;
6948 PyObject
* _obj2
= 0;
6949 PyObject
* _obj3
= 0;
6950 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6963 #if PYTHON_API_VERSION >= 1009
6964 char* tmpPtr
; int tmpSize
;
6965 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6966 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6969 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6971 _arg2
= new wxString(tmpPtr
, tmpSize
);
6973 if (!PyString_Check(_obj2
)) {
6974 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6977 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6982 #if PYTHON_API_VERSION >= 1009
6983 char* tmpPtr
; int tmpSize
;
6984 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6985 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6988 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6990 _arg3
= new wxString(tmpPtr
, tmpSize
);
6992 if (!PyString_Check(_obj3
)) {
6993 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6996 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
7000 wxPy_BEGIN_ALLOW_THREADS
;
7001 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
7003 wxPy_END_ALLOW_THREADS
;
7004 if (PyErr_Occurred()) return NULL
;
7005 } Py_INCREF(Py_None
);
7006 _resultobj
= Py_None
;
7018 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7019 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7020 PyObject
* _resultobj
;
7025 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
7026 PyObject
* _argo0
= 0;
7027 PyObject
* _obj2
= 0;
7028 PyObject
* _argo3
= 0;
7029 PyObject
* _obj4
= 0;
7030 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
7033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
7036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7043 #if PYTHON_API_VERSION >= 1009
7044 char* tmpPtr
; int tmpSize
;
7045 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7046 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7049 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7051 _arg2
= new wxString(tmpPtr
, tmpSize
);
7053 if (!PyString_Check(_obj2
)) {
7054 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7057 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7061 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7062 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
7063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7069 #if PYTHON_API_VERSION >= 1009
7070 char* tmpPtr
; int tmpSize
;
7071 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7075 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7077 _arg4
= new wxString(tmpPtr
, tmpSize
);
7079 if (!PyString_Check(_obj4
)) {
7080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7083 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7087 wxPy_BEGIN_ALLOW_THREADS
;
7088 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7090 wxPy_END_ALLOW_THREADS
;
7091 if (PyErr_Occurred()) return NULL
;
7092 } Py_INCREF(Py_None
);
7093 _resultobj
= Py_None
;
7105 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7106 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7107 PyObject
* _resultobj
;
7110 PyObject
* _argo0
= 0;
7111 PyObject
* _argo1
= 0;
7112 char *_kwnames
[] = { "self","item", NULL
};
7115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7125 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7126 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7132 wxPy_BEGIN_ALLOW_THREADS
;
7133 wxMenu_AppendItem(_arg0
,_arg1
);
7135 wxPy_END_ALLOW_THREADS
;
7136 if (PyErr_Occurred()) return NULL
;
7137 } Py_INCREF(Py_None
);
7138 _resultobj
= Py_None
;
7142 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7143 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7144 PyObject
* _resultobj
;
7146 PyObject
* _argo0
= 0;
7147 char *_kwnames
[] = { "self", NULL
};
7150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7160 wxPy_BEGIN_ALLOW_THREADS
;
7161 wxMenu_AppendSeparator(_arg0
);
7163 wxPy_END_ALLOW_THREADS
;
7164 if (PyErr_Occurred()) return NULL
;
7165 } Py_INCREF(Py_None
);
7166 _resultobj
= Py_None
;
7170 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7171 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7172 PyObject
* _resultobj
;
7174 PyObject
* _argo0
= 0;
7175 char *_kwnames
[] = { "self", NULL
};
7178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7188 wxPy_BEGIN_ALLOW_THREADS
;
7189 wxMenu_Break(_arg0
);
7191 wxPy_END_ALLOW_THREADS
;
7192 if (PyErr_Occurred()) return NULL
;
7193 } Py_INCREF(Py_None
);
7194 _resultobj
= Py_None
;
7198 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7199 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7200 PyObject
* _resultobj
;
7204 PyObject
* _argo0
= 0;
7206 char *_kwnames
[] = { "self","id","flag", NULL
};
7209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7218 _arg2
= (bool ) tempbool2
;
7220 wxPy_BEGIN_ALLOW_THREADS
;
7221 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7223 wxPy_END_ALLOW_THREADS
;
7224 if (PyErr_Occurred()) return NULL
;
7225 } Py_INCREF(Py_None
);
7226 _resultobj
= Py_None
;
7230 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7231 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7232 PyObject
* _resultobj
;
7236 PyObject
* _argo0
= 0;
7237 char *_kwnames
[] = { "self","id", NULL
};
7240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7250 wxPy_BEGIN_ALLOW_THREADS
;
7251 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7253 wxPy_END_ALLOW_THREADS
;
7254 if (PyErr_Occurred()) return NULL
;
7255 } _resultobj
= Py_BuildValue("i",_result
);
7259 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7260 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7261 PyObject
* _resultobj
;
7265 PyObject
* _argo0
= 0;
7267 char *_kwnames
[] = { "self","id","enable", NULL
};
7270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7279 _arg2
= (bool ) tempbool2
;
7281 wxPy_BEGIN_ALLOW_THREADS
;
7282 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7284 wxPy_END_ALLOW_THREADS
;
7285 if (PyErr_Occurred()) return NULL
;
7286 } Py_INCREF(Py_None
);
7287 _resultobj
= Py_None
;
7291 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7292 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7293 PyObject
* _resultobj
;
7297 PyObject
* _argo0
= 0;
7298 char *_kwnames
[] = { "self","id", NULL
};
7301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7311 wxPy_BEGIN_ALLOW_THREADS
;
7312 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7314 wxPy_END_ALLOW_THREADS
;
7315 if (PyErr_Occurred()) return NULL
;
7316 } _resultobj
= Py_BuildValue("i",_result
);
7320 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7321 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7322 PyObject
* _resultobj
;
7326 PyObject
* _argo0
= 0;
7327 PyObject
* _obj1
= 0;
7328 char *_kwnames
[] = { "self","itemString", NULL
};
7331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7341 #if PYTHON_API_VERSION >= 1009
7342 char* tmpPtr
; int tmpSize
;
7343 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7347 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7349 _arg1
= new wxString(tmpPtr
, tmpSize
);
7351 if (!PyString_Check(_obj1
)) {
7352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7355 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7359 wxPy_BEGIN_ALLOW_THREADS
;
7360 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7362 wxPy_END_ALLOW_THREADS
;
7363 if (PyErr_Occurred()) return NULL
;
7364 } _resultobj
= Py_BuildValue("i",_result
);
7372 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7373 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7374 PyObject
* _resultobj
;
7375 wxMenuItem
* _result
;
7378 PyObject
* _argo0
= 0;
7379 char *_kwnames
[] = { "self","id", NULL
};
7382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7392 wxPy_BEGIN_ALLOW_THREADS
;
7393 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7395 wxPy_END_ALLOW_THREADS
;
7396 if (PyErr_Occurred()) return NULL
;
7397 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7401 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7402 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7403 PyObject
* _resultobj
;
7406 PyObject
* _argo0
= 0;
7407 char *_kwnames
[] = { "self", NULL
};
7410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7420 wxPy_BEGIN_ALLOW_THREADS
;
7421 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7423 wxPy_END_ALLOW_THREADS
;
7424 if (PyErr_Occurred()) return NULL
;
7426 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7434 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7435 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7436 PyObject
* _resultobj
;
7439 PyObject
* _argo0
= 0;
7440 PyObject
* _obj1
= 0;
7441 char *_kwnames
[] = { "self","title", NULL
};
7444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7454 #if PYTHON_API_VERSION >= 1009
7455 char* tmpPtr
; int tmpSize
;
7456 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7457 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7460 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7462 _arg1
= new wxString(tmpPtr
, tmpSize
);
7464 if (!PyString_Check(_obj1
)) {
7465 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7468 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7472 wxPy_BEGIN_ALLOW_THREADS
;
7473 wxMenu_SetTitle(_arg0
,*_arg1
);
7475 wxPy_END_ALLOW_THREADS
;
7476 if (PyErr_Occurred()) return NULL
;
7477 } Py_INCREF(Py_None
);
7478 _resultobj
= Py_None
;
7486 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7487 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7488 PyObject
* _resultobj
;
7492 PyObject
* _argo0
= 0;
7493 char *_kwnames
[] = { "self","id", NULL
};
7496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7506 wxPy_BEGIN_ALLOW_THREADS
;
7507 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7509 wxPy_END_ALLOW_THREADS
;
7510 if (PyErr_Occurred()) return NULL
;
7512 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7520 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7521 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7522 PyObject
* _resultobj
;
7526 PyObject
* _argo0
= 0;
7527 PyObject
* _obj2
= 0;
7528 char *_kwnames
[] = { "self","id","label", NULL
};
7531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7541 #if PYTHON_API_VERSION >= 1009
7542 char* tmpPtr
; int tmpSize
;
7543 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7544 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7547 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7549 _arg2
= new wxString(tmpPtr
, tmpSize
);
7551 if (!PyString_Check(_obj2
)) {
7552 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7555 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7559 wxPy_BEGIN_ALLOW_THREADS
;
7560 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7562 wxPy_END_ALLOW_THREADS
;
7563 if (PyErr_Occurred()) return NULL
;
7564 } Py_INCREF(Py_None
);
7565 _resultobj
= Py_None
;
7573 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7574 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7575 PyObject
* _resultobj
;
7579 PyObject
* _argo0
= 0;
7580 char *_kwnames
[] = { "self","id", NULL
};
7583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7593 wxPy_BEGIN_ALLOW_THREADS
;
7594 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7596 wxPy_END_ALLOW_THREADS
;
7597 if (PyErr_Occurred()) return NULL
;
7599 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7607 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7608 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7609 PyObject
* _resultobj
;
7613 PyObject
* _argo0
= 0;
7614 PyObject
* _obj2
= 0;
7615 char *_kwnames
[] = { "self","id","helpString", NULL
};
7618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7628 #if PYTHON_API_VERSION >= 1009
7629 char* tmpPtr
; int tmpSize
;
7630 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7631 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7634 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7636 _arg2
= new wxString(tmpPtr
, tmpSize
);
7638 if (!PyString_Check(_obj2
)) {
7639 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7642 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7646 wxPy_BEGIN_ALLOW_THREADS
;
7647 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7649 wxPy_END_ALLOW_THREADS
;
7650 if (PyErr_Occurred()) return NULL
;
7651 } Py_INCREF(Py_None
);
7652 _resultobj
= Py_None
;
7660 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7661 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7662 PyObject
* _resultobj
;
7664 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7665 PyObject
* _argo0
= 0;
7666 PyObject
* _argo1
= 0;
7667 char *_kwnames
[] = { "self","source", NULL
};
7670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7680 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7681 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7687 wxPy_BEGIN_ALLOW_THREADS
;
7688 wxMenu_UpdateUI(_arg0
,_arg1
);
7690 wxPy_END_ALLOW_THREADS
;
7691 if (PyErr_Occurred()) return NULL
;
7692 } Py_INCREF(Py_None
);
7693 _resultobj
= Py_None
;
7697 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7698 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7699 PyObject
* _resultobj
;
7703 PyObject
* _argo0
= 0;
7704 char *_kwnames
[] = { "self","id", NULL
};
7707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7717 wxPy_BEGIN_ALLOW_THREADS
;
7718 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7720 wxPy_END_ALLOW_THREADS
;
7721 if (PyErr_Occurred()) return NULL
;
7722 } _resultobj
= Py_BuildValue("i",_result
);
7726 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7727 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7728 PyObject
* _resultobj
;
7732 PyObject
* _argo0
= 0;
7733 PyObject
* _argo1
= 0;
7734 char *_kwnames
[] = { "self","item", NULL
};
7737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7747 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7748 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7754 wxPy_BEGIN_ALLOW_THREADS
;
7755 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7757 wxPy_END_ALLOW_THREADS
;
7758 if (PyErr_Occurred()) return NULL
;
7759 } _resultobj
= Py_BuildValue("i",_result
);
7763 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7764 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7765 PyObject
* _resultobj
;
7770 PyObject
* _argo0
= 0;
7771 PyObject
* _argo2
= 0;
7772 char *_kwnames
[] = { "self","pos","item", NULL
};
7775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
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_Insert. Expected _wxMenu_p.");
7785 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7786 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7792 wxPy_BEGIN_ALLOW_THREADS
;
7793 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7795 wxPy_END_ALLOW_THREADS
;
7796 if (PyErr_Occurred()) return NULL
;
7797 } _resultobj
= Py_BuildValue("i",_result
);
7801 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7802 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7803 PyObject
* _resultobj
;
7804 wxMenuItem
* _result
;
7807 PyObject
* _argo0
= 0;
7808 char *_kwnames
[] = { "self","id", NULL
};
7811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7821 wxPy_BEGIN_ALLOW_THREADS
;
7822 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7824 wxPy_END_ALLOW_THREADS
;
7825 if (PyErr_Occurred()) return NULL
;
7826 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7830 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7831 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7832 PyObject
* _resultobj
;
7833 wxMenuItem
* _result
;
7836 PyObject
* _argo0
= 0;
7837 PyObject
* _argo1
= 0;
7838 char *_kwnames
[] = { "self","item", NULL
};
7841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7851 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7852 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7858 wxPy_BEGIN_ALLOW_THREADS
;
7859 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7861 wxPy_END_ALLOW_THREADS
;
7862 if (PyErr_Occurred()) return NULL
;
7863 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7867 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7868 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7869 PyObject
* _resultobj
;
7871 PyObject
* _argo0
= 0;
7872 char *_kwnames
[] = { "self", NULL
};
7875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7885 wxPy_BEGIN_ALLOW_THREADS
;
7886 wxMenu_Destroy(_arg0
);
7888 wxPy_END_ALLOW_THREADS
;
7889 if (PyErr_Occurred()) return NULL
;
7890 } Py_INCREF(Py_None
);
7891 _resultobj
= Py_None
;
7895 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7896 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7897 PyObject
* _resultobj
;
7901 PyObject
* _argo0
= 0;
7902 char *_kwnames
[] = { "self","id", NULL
};
7905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7915 wxPy_BEGIN_ALLOW_THREADS
;
7916 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7918 wxPy_END_ALLOW_THREADS
;
7919 if (PyErr_Occurred()) return NULL
;
7920 } _resultobj
= Py_BuildValue("i",_result
);
7924 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7925 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7926 PyObject
* _resultobj
;
7930 PyObject
* _argo0
= 0;
7931 PyObject
* _argo1
= 0;
7932 char *_kwnames
[] = { "self","item", NULL
};
7935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7945 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7946 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7952 wxPy_BEGIN_ALLOW_THREADS
;
7953 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7955 wxPy_END_ALLOW_THREADS
;
7956 if (PyErr_Occurred()) return NULL
;
7957 } _resultobj
= Py_BuildValue("i",_result
);
7961 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7962 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7963 PyObject
* _resultobj
;
7966 PyObject
* _argo0
= 0;
7967 char *_kwnames
[] = { "self", NULL
};
7970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7980 wxPy_BEGIN_ALLOW_THREADS
;
7981 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7983 wxPy_END_ALLOW_THREADS
;
7984 if (PyErr_Occurred()) return NULL
;
7985 } _resultobj
= Py_BuildValue("i",_result
);
7989 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7990 wxMenuItemList
& list
= self
->GetMenuItems();
7991 return wxPy_ConvertList(&list
, "wxMenuItem");
7993 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7994 PyObject
* _resultobj
;
7997 PyObject
* _argo0
= 0;
7998 char *_kwnames
[] = { "self", NULL
};
8001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
8004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
8011 wxPy_BEGIN_ALLOW_THREADS
;
8012 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
8014 wxPy_END_ALLOW_THREADS
;
8015 if (PyErr_Occurred()) return NULL
;
8017 _resultobj
= _result
;
8022 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
8023 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8024 PyObject
* _resultobj
;
8026 wxEvtHandler
* _arg1
;
8027 PyObject
* _argo0
= 0;
8028 PyObject
* _argo1
= 0;
8029 char *_kwnames
[] = { "self","handler", NULL
};
8032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
8035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
8042 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8043 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
8044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
8049 wxPy_BEGIN_ALLOW_THREADS
;
8050 wxMenu_SetEventHandler(_arg0
,_arg1
);
8052 wxPy_END_ALLOW_THREADS
;
8053 if (PyErr_Occurred()) return NULL
;
8054 } Py_INCREF(Py_None
);
8055 _resultobj
= Py_None
;
8059 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8060 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8061 PyObject
* _resultobj
;
8062 wxEvtHandler
* _result
;
8064 PyObject
* _argo0
= 0;
8065 char *_kwnames
[] = { "self", NULL
};
8068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8078 wxPy_BEGIN_ALLOW_THREADS
;
8079 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8081 wxPy_END_ALLOW_THREADS
;
8082 if (PyErr_Occurred()) return NULL
;
8083 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8087 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8088 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8089 PyObject
* _resultobj
;
8092 PyObject
* _argo0
= 0;
8093 PyObject
* _argo1
= 0;
8094 char *_kwnames
[] = { "self","win", NULL
};
8097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8107 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8108 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8114 wxPy_BEGIN_ALLOW_THREADS
;
8115 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8117 wxPy_END_ALLOW_THREADS
;
8118 if (PyErr_Occurred()) return NULL
;
8119 } Py_INCREF(Py_None
);
8120 _resultobj
= Py_None
;
8124 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8125 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8126 PyObject
* _resultobj
;
8129 PyObject
* _argo0
= 0;
8130 char *_kwnames
[] = { "self", NULL
};
8133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8143 wxPy_BEGIN_ALLOW_THREADS
;
8144 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8146 wxPy_END_ALLOW_THREADS
;
8147 if (PyErr_Occurred()) return NULL
;
8148 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8152 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8153 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8154 PyObject
* _resultobj
;
8157 PyObject
* _argo0
= 0;
8158 char *_kwnames
[] = { "self", NULL
};
8161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8171 wxPy_BEGIN_ALLOW_THREADS
;
8172 _result
= (long )wxMenu_GetStyle(_arg0
);
8174 wxPy_END_ALLOW_THREADS
;
8175 if (PyErr_Occurred()) return NULL
;
8176 } _resultobj
= Py_BuildValue("l",_result
);
8180 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8181 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8182 PyObject
* _resultobj
;
8185 PyObject
* _argo0
= 0;
8186 char *_kwnames
[] = { "self", NULL
};
8189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8199 wxPy_BEGIN_ALLOW_THREADS
;
8200 _result
= (bool )wxMenu_IsAttached(_arg0
);
8202 wxPy_END_ALLOW_THREADS
;
8203 if (PyErr_Occurred()) return NULL
;
8204 } _resultobj
= Py_BuildValue("i",_result
);
8208 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8209 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8210 PyObject
* _resultobj
;
8213 PyObject
* _argo0
= 0;
8214 PyObject
* _argo1
= 0;
8215 char *_kwnames
[] = { "self","parent", NULL
};
8218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8228 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8229 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8235 wxPy_BEGIN_ALLOW_THREADS
;
8236 wxMenu_SetParent(_arg0
,_arg1
);
8238 wxPy_END_ALLOW_THREADS
;
8239 if (PyErr_Occurred()) return NULL
;
8240 } Py_INCREF(Py_None
);
8241 _resultobj
= Py_None
;
8245 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8246 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8247 PyObject
* _resultobj
;
8250 PyObject
* _argo0
= 0;
8251 char *_kwnames
[] = { "self", NULL
};
8254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8264 wxPy_BEGIN_ALLOW_THREADS
;
8265 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8267 wxPy_END_ALLOW_THREADS
;
8268 if (PyErr_Occurred()) return NULL
;
8269 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8273 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8276 src
= (wxMenuBar
*) ptr
;
8277 dest
= (wxWindow
*) src
;
8278 return (void *) dest
;
8281 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8284 src
= (wxMenuBar
*) ptr
;
8285 dest
= (wxEvtHandler
*) src
;
8286 return (void *) dest
;
8289 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8292 src
= (wxMenuBar
*) ptr
;
8293 dest
= (wxObject
*) src
;
8294 return (void *) dest
;
8297 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8298 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8299 PyObject
* _resultobj
;
8300 wxMenuBar
* _result
;
8301 long _arg0
= (long ) 0;
8302 char *_kwnames
[] = { "style", NULL
};
8306 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8309 wxPy_BEGIN_ALLOW_THREADS
;
8310 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8312 wxPy_END_ALLOW_THREADS
;
8313 if (PyErr_Occurred()) return NULL
;
8315 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8316 _resultobj
= Py_BuildValue("s",_ptemp
);
8319 _resultobj
= Py_None
;
8324 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8325 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8326 PyObject
* _resultobj
;
8331 PyObject
* _argo0
= 0;
8332 PyObject
* _argo1
= 0;
8333 PyObject
* _obj2
= 0;
8334 char *_kwnames
[] = { "self","menu","title", NULL
};
8337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8347 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8348 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8354 #if PYTHON_API_VERSION >= 1009
8355 char* tmpPtr
; int tmpSize
;
8356 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8357 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8360 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8362 _arg2
= new wxString(tmpPtr
, tmpSize
);
8364 if (!PyString_Check(_obj2
)) {
8365 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8368 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8372 wxPy_BEGIN_ALLOW_THREADS
;
8373 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8375 wxPy_END_ALLOW_THREADS
;
8376 if (PyErr_Occurred()) return NULL
;
8377 } _resultobj
= Py_BuildValue("i",_result
);
8385 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8386 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8387 PyObject
* _resultobj
;
8393 PyObject
* _argo0
= 0;
8394 PyObject
* _argo2
= 0;
8395 PyObject
* _obj3
= 0;
8396 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8409 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8410 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8416 #if PYTHON_API_VERSION >= 1009
8417 char* tmpPtr
; int tmpSize
;
8418 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8419 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8422 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8424 _arg3
= new wxString(tmpPtr
, tmpSize
);
8426 if (!PyString_Check(_obj3
)) {
8427 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8430 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8434 wxPy_BEGIN_ALLOW_THREADS
;
8435 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8437 wxPy_END_ALLOW_THREADS
;
8438 if (PyErr_Occurred()) return NULL
;
8439 } _resultobj
= Py_BuildValue("i",_result
);
8447 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8448 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8449 PyObject
* _resultobj
;
8452 PyObject
* _argo0
= 0;
8453 char *_kwnames
[] = { "self", NULL
};
8456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8466 wxPy_BEGIN_ALLOW_THREADS
;
8467 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8469 wxPy_END_ALLOW_THREADS
;
8470 if (PyErr_Occurred()) return NULL
;
8471 } _resultobj
= Py_BuildValue("i",_result
);
8475 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8476 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8477 PyObject
* _resultobj
;
8481 PyObject
* _argo0
= 0;
8482 char *_kwnames
[] = { "self","pos", NULL
};
8485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8495 wxPy_BEGIN_ALLOW_THREADS
;
8496 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8498 wxPy_END_ALLOW_THREADS
;
8499 if (PyErr_Occurred()) return NULL
;
8500 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8504 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8505 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8506 PyObject
* _resultobj
;
8512 PyObject
* _argo0
= 0;
8513 PyObject
* _argo2
= 0;
8514 PyObject
* _obj3
= 0;
8515 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8528 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8529 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8535 #if PYTHON_API_VERSION >= 1009
8536 char* tmpPtr
; int tmpSize
;
8537 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8538 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8541 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8543 _arg3
= new wxString(tmpPtr
, tmpSize
);
8545 if (!PyString_Check(_obj3
)) {
8546 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8549 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8553 wxPy_BEGIN_ALLOW_THREADS
;
8554 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8556 wxPy_END_ALLOW_THREADS
;
8557 if (PyErr_Occurred()) return NULL
;
8558 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8566 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8567 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8568 PyObject
* _resultobj
;
8572 PyObject
* _argo0
= 0;
8573 char *_kwnames
[] = { "self","pos", NULL
};
8576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8586 wxPy_BEGIN_ALLOW_THREADS
;
8587 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8589 wxPy_END_ALLOW_THREADS
;
8590 if (PyErr_Occurred()) return NULL
;
8591 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8595 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8596 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8597 PyObject
* _resultobj
;
8601 PyObject
* _argo0
= 0;
8603 char *_kwnames
[] = { "self","pos","enable", NULL
};
8606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8615 _arg2
= (bool ) tempbool2
;
8617 wxPy_BEGIN_ALLOW_THREADS
;
8618 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8620 wxPy_END_ALLOW_THREADS
;
8621 if (PyErr_Occurred()) return NULL
;
8622 } Py_INCREF(Py_None
);
8623 _resultobj
= Py_None
;
8627 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8628 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8629 PyObject
* _resultobj
;
8633 PyObject
* _argo0
= 0;
8634 PyObject
* _obj2
= 0;
8635 char *_kwnames
[] = { "self","pos","label", NULL
};
8638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8648 #if PYTHON_API_VERSION >= 1009
8649 char* tmpPtr
; int tmpSize
;
8650 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8651 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8654 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8656 _arg2
= new wxString(tmpPtr
, tmpSize
);
8658 if (!PyString_Check(_obj2
)) {
8659 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8662 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8666 wxPy_BEGIN_ALLOW_THREADS
;
8667 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8669 wxPy_END_ALLOW_THREADS
;
8670 if (PyErr_Occurred()) return NULL
;
8671 } Py_INCREF(Py_None
);
8672 _resultobj
= Py_None
;
8680 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8681 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8682 PyObject
* _resultobj
;
8686 PyObject
* _argo0
= 0;
8687 char *_kwnames
[] = { "self","pos", NULL
};
8690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8700 wxPy_BEGIN_ALLOW_THREADS
;
8701 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8703 wxPy_END_ALLOW_THREADS
;
8704 if (PyErr_Occurred()) return NULL
;
8706 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8714 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8715 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8716 PyObject
* _resultobj
;
8720 PyObject
* _argo0
= 0;
8721 PyObject
* _obj1
= 0;
8722 char *_kwnames
[] = { "self","title", NULL
};
8725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8735 #if PYTHON_API_VERSION >= 1009
8736 char* tmpPtr
; int tmpSize
;
8737 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8738 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8741 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8743 _arg1
= new wxString(tmpPtr
, tmpSize
);
8745 if (!PyString_Check(_obj1
)) {
8746 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8749 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8753 wxPy_BEGIN_ALLOW_THREADS
;
8754 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8756 wxPy_END_ALLOW_THREADS
;
8757 if (PyErr_Occurred()) return NULL
;
8758 } _resultobj
= Py_BuildValue("i",_result
);
8766 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8767 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8768 PyObject
* _resultobj
;
8773 PyObject
* _argo0
= 0;
8774 PyObject
* _obj1
= 0;
8775 PyObject
* _obj2
= 0;
8776 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8789 #if PYTHON_API_VERSION >= 1009
8790 char* tmpPtr
; int tmpSize
;
8791 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8792 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8795 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8797 _arg1
= new wxString(tmpPtr
, tmpSize
);
8799 if (!PyString_Check(_obj1
)) {
8800 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8803 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8807 #if PYTHON_API_VERSION >= 1009
8808 char* tmpPtr
; int tmpSize
;
8809 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8810 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8813 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8815 _arg2
= new wxString(tmpPtr
, tmpSize
);
8817 if (!PyString_Check(_obj2
)) {
8818 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8821 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8825 wxPy_BEGIN_ALLOW_THREADS
;
8826 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8828 wxPy_END_ALLOW_THREADS
;
8829 if (PyErr_Occurred()) return NULL
;
8830 } _resultobj
= Py_BuildValue("i",_result
);
8842 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8843 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8844 PyObject
* _resultobj
;
8845 wxMenuItem
* _result
;
8848 PyObject
* _argo0
= 0;
8849 char *_kwnames
[] = { "self","id", NULL
};
8852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8862 wxPy_BEGIN_ALLOW_THREADS
;
8863 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8865 wxPy_END_ALLOW_THREADS
;
8866 if (PyErr_Occurred()) return NULL
;
8867 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8871 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8872 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8873 PyObject
* _resultobj
;
8877 PyObject
* _argo0
= 0;
8879 char *_kwnames
[] = { "self","id","enable", NULL
};
8882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8891 _arg2
= (bool ) tempbool2
;
8893 wxPy_BEGIN_ALLOW_THREADS
;
8894 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8896 wxPy_END_ALLOW_THREADS
;
8897 if (PyErr_Occurred()) return NULL
;
8898 } Py_INCREF(Py_None
);
8899 _resultobj
= Py_None
;
8903 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8904 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8905 PyObject
* _resultobj
;
8909 PyObject
* _argo0
= 0;
8911 char *_kwnames
[] = { "self","id","check", NULL
};
8914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8923 _arg2
= (bool ) tempbool2
;
8925 wxPy_BEGIN_ALLOW_THREADS
;
8926 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8928 wxPy_END_ALLOW_THREADS
;
8929 if (PyErr_Occurred()) return NULL
;
8930 } Py_INCREF(Py_None
);
8931 _resultobj
= Py_None
;
8935 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8936 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8937 PyObject
* _resultobj
;
8941 PyObject
* _argo0
= 0;
8942 char *_kwnames
[] = { "self","id", NULL
};
8945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8955 wxPy_BEGIN_ALLOW_THREADS
;
8956 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8958 wxPy_END_ALLOW_THREADS
;
8959 if (PyErr_Occurred()) return NULL
;
8960 } _resultobj
= Py_BuildValue("i",_result
);
8964 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8965 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8966 PyObject
* _resultobj
;
8970 PyObject
* _argo0
= 0;
8971 char *_kwnames
[] = { "self","id", NULL
};
8974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8984 wxPy_BEGIN_ALLOW_THREADS
;
8985 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8987 wxPy_END_ALLOW_THREADS
;
8988 if (PyErr_Occurred()) return NULL
;
8989 } _resultobj
= Py_BuildValue("i",_result
);
8993 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8994 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8995 PyObject
* _resultobj
;
8999 PyObject
* _argo0
= 0;
9000 PyObject
* _obj2
= 0;
9001 char *_kwnames
[] = { "self","id","label", NULL
};
9004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9014 #if PYTHON_API_VERSION >= 1009
9015 char* tmpPtr
; int tmpSize
;
9016 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9017 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9020 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9022 _arg2
= new wxString(tmpPtr
, tmpSize
);
9024 if (!PyString_Check(_obj2
)) {
9025 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9028 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9032 wxPy_BEGIN_ALLOW_THREADS
;
9033 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
9035 wxPy_END_ALLOW_THREADS
;
9036 if (PyErr_Occurred()) return NULL
;
9037 } Py_INCREF(Py_None
);
9038 _resultobj
= Py_None
;
9046 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9047 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9048 PyObject
* _resultobj
;
9052 PyObject
* _argo0
= 0;
9053 char *_kwnames
[] = { "self","id", NULL
};
9056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
9059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9066 wxPy_BEGIN_ALLOW_THREADS
;
9067 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9069 wxPy_END_ALLOW_THREADS
;
9070 if (PyErr_Occurred()) return NULL
;
9072 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9080 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9081 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9082 PyObject
* _resultobj
;
9086 PyObject
* _argo0
= 0;
9087 PyObject
* _obj2
= 0;
9088 char *_kwnames
[] = { "self","id","helpString", NULL
};
9091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9101 #if PYTHON_API_VERSION >= 1009
9102 char* tmpPtr
; int tmpSize
;
9103 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9107 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9109 _arg2
= new wxString(tmpPtr
, tmpSize
);
9111 if (!PyString_Check(_obj2
)) {
9112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9115 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9119 wxPy_BEGIN_ALLOW_THREADS
;
9120 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9122 wxPy_END_ALLOW_THREADS
;
9123 if (PyErr_Occurred()) return NULL
;
9124 } Py_INCREF(Py_None
);
9125 _resultobj
= Py_None
;
9133 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9134 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9135 PyObject
* _resultobj
;
9139 PyObject
* _argo0
= 0;
9140 char *_kwnames
[] = { "self","id", NULL
};
9143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9153 wxPy_BEGIN_ALLOW_THREADS
;
9154 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9156 wxPy_END_ALLOW_THREADS
;
9157 if (PyErr_Occurred()) return NULL
;
9159 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9167 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9170 src
= (wxMenuItem
*) ptr
;
9171 dest
= (wxObject
*) src
;
9172 return (void *) dest
;
9175 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9176 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9177 PyObject
* _resultobj
;
9178 wxMenuItem
* _result
;
9179 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9180 int _arg1
= (int ) wxID_SEPARATOR
;
9181 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9182 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9183 bool _arg4
= (bool ) FALSE
;
9184 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9185 PyObject
* _argo0
= 0;
9186 PyObject
* _obj2
= 0;
9187 PyObject
* _obj3
= 0;
9188 int tempbool4
= (int) FALSE
;
9189 PyObject
* _argo5
= 0;
9190 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9205 #if PYTHON_API_VERSION >= 1009
9206 char* tmpPtr
; int tmpSize
;
9207 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9208 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9211 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9213 _arg2
= new wxString(tmpPtr
, tmpSize
);
9215 if (!PyString_Check(_obj2
)) {
9216 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9219 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9224 #if PYTHON_API_VERSION >= 1009
9225 char* tmpPtr
; int tmpSize
;
9226 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9227 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9230 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9232 _arg3
= new wxString(tmpPtr
, tmpSize
);
9234 if (!PyString_Check(_obj3
)) {
9235 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9238 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9241 _arg4
= (bool ) tempbool4
;
9243 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9244 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9250 wxPy_BEGIN_ALLOW_THREADS
;
9251 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9253 wxPy_END_ALLOW_THREADS
;
9254 if (PyErr_Occurred()) return NULL
;
9256 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9257 _resultobj
= Py_BuildValue("s",_ptemp
);
9260 _resultobj
= Py_None
;
9273 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9274 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9275 PyObject
* _resultobj
;
9278 PyObject
* _argo0
= 0;
9279 char *_kwnames
[] = { "self", NULL
};
9282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9292 wxPy_BEGIN_ALLOW_THREADS
;
9293 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9295 wxPy_END_ALLOW_THREADS
;
9296 if (PyErr_Occurred()) return NULL
;
9297 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9301 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9302 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9303 PyObject
* _resultobj
;
9306 PyObject
* _argo0
= 0;
9307 char *_kwnames
[] = { "self","id", NULL
};
9310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9320 wxPy_BEGIN_ALLOW_THREADS
;
9321 wxMenuItem_SetId(_arg0
,_arg1
);
9323 wxPy_END_ALLOW_THREADS
;
9324 if (PyErr_Occurred()) return NULL
;
9325 } Py_INCREF(Py_None
);
9326 _resultobj
= Py_None
;
9330 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9331 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9332 PyObject
* _resultobj
;
9335 PyObject
* _argo0
= 0;
9336 char *_kwnames
[] = { "self", NULL
};
9339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9349 wxPy_BEGIN_ALLOW_THREADS
;
9350 _result
= (int )wxMenuItem_GetId(_arg0
);
9352 wxPy_END_ALLOW_THREADS
;
9353 if (PyErr_Occurred()) return NULL
;
9354 } _resultobj
= Py_BuildValue("i",_result
);
9358 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9359 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9360 PyObject
* _resultobj
;
9363 PyObject
* _argo0
= 0;
9364 char *_kwnames
[] = { "self", NULL
};
9367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9377 wxPy_BEGIN_ALLOW_THREADS
;
9378 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9380 wxPy_END_ALLOW_THREADS
;
9381 if (PyErr_Occurred()) return NULL
;
9382 } _resultobj
= Py_BuildValue("i",_result
);
9386 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9387 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9388 PyObject
* _resultobj
;
9391 PyObject
* _argo0
= 0;
9392 PyObject
* _obj1
= 0;
9393 char *_kwnames
[] = { "self","str", NULL
};
9396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9406 #if PYTHON_API_VERSION >= 1009
9407 char* tmpPtr
; int tmpSize
;
9408 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9412 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9414 _arg1
= new wxString(tmpPtr
, tmpSize
);
9416 if (!PyString_Check(_obj1
)) {
9417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9420 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9424 wxPy_BEGIN_ALLOW_THREADS
;
9425 wxMenuItem_SetText(_arg0
,*_arg1
);
9427 wxPy_END_ALLOW_THREADS
;
9428 if (PyErr_Occurred()) return NULL
;
9429 } Py_INCREF(Py_None
);
9430 _resultobj
= Py_None
;
9438 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9439 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9440 PyObject
* _resultobj
;
9443 PyObject
* _argo0
= 0;
9444 char *_kwnames
[] = { "self", NULL
};
9447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9457 wxPy_BEGIN_ALLOW_THREADS
;
9458 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9460 wxPy_END_ALLOW_THREADS
;
9461 if (PyErr_Occurred()) return NULL
;
9463 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9471 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9472 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9473 PyObject
* _resultobj
;
9476 PyObject
* _argo0
= 0;
9477 char *_kwnames
[] = { "self", NULL
};
9480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9490 wxPy_BEGIN_ALLOW_THREADS
;
9491 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9492 _result
= (wxString
*) &_result_ref
;
9494 wxPy_END_ALLOW_THREADS
;
9495 if (PyErr_Occurred()) return NULL
;
9497 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9502 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9503 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9504 PyObject
* _resultobj
;
9507 PyObject
* _argo0
= 0;
9509 char *_kwnames
[] = { "self","checkable", NULL
};
9512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
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_SetCheckable. Expected _wxMenuItem_p.");
9521 _arg1
= (bool ) tempbool1
;
9523 wxPy_BEGIN_ALLOW_THREADS
;
9524 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9526 wxPy_END_ALLOW_THREADS
;
9527 if (PyErr_Occurred()) return NULL
;
9528 } Py_INCREF(Py_None
);
9529 _resultobj
= Py_None
;
9533 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9534 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9535 PyObject
* _resultobj
;
9538 PyObject
* _argo0
= 0;
9539 char *_kwnames
[] = { "self", NULL
};
9542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9552 wxPy_BEGIN_ALLOW_THREADS
;
9553 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9555 wxPy_END_ALLOW_THREADS
;
9556 if (PyErr_Occurred()) return NULL
;
9557 } _resultobj
= Py_BuildValue("i",_result
);
9561 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9562 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9563 PyObject
* _resultobj
;
9566 PyObject
* _argo0
= 0;
9567 char *_kwnames
[] = { "self", NULL
};
9570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9580 wxPy_BEGIN_ALLOW_THREADS
;
9581 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9583 wxPy_END_ALLOW_THREADS
;
9584 if (PyErr_Occurred()) return NULL
;
9585 } _resultobj
= Py_BuildValue("i",_result
);
9589 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9590 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9591 PyObject
* _resultobj
;
9594 PyObject
* _argo0
= 0;
9595 PyObject
* _argo1
= 0;
9596 char *_kwnames
[] = { "self","menu", NULL
};
9599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9609 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9610 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9616 wxPy_BEGIN_ALLOW_THREADS
;
9617 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9619 wxPy_END_ALLOW_THREADS
;
9620 if (PyErr_Occurred()) return NULL
;
9621 } Py_INCREF(Py_None
);
9622 _resultobj
= Py_None
;
9626 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9627 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9628 PyObject
* _resultobj
;
9631 PyObject
* _argo0
= 0;
9632 char *_kwnames
[] = { "self", NULL
};
9635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9645 wxPy_BEGIN_ALLOW_THREADS
;
9646 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9648 wxPy_END_ALLOW_THREADS
;
9649 if (PyErr_Occurred()) return NULL
;
9650 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9654 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9655 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9656 PyObject
* _resultobj
;
9658 bool _arg1
= (bool ) TRUE
;
9659 PyObject
* _argo0
= 0;
9660 int tempbool1
= (int) TRUE
;
9661 char *_kwnames
[] = { "self","enable", NULL
};
9664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9673 _arg1
= (bool ) tempbool1
;
9675 wxPy_BEGIN_ALLOW_THREADS
;
9676 wxMenuItem_Enable(_arg0
,_arg1
);
9678 wxPy_END_ALLOW_THREADS
;
9679 if (PyErr_Occurred()) return NULL
;
9680 } Py_INCREF(Py_None
);
9681 _resultobj
= Py_None
;
9685 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9686 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9687 PyObject
* _resultobj
;
9690 PyObject
* _argo0
= 0;
9691 char *_kwnames
[] = { "self", NULL
};
9694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9704 wxPy_BEGIN_ALLOW_THREADS
;
9705 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9707 wxPy_END_ALLOW_THREADS
;
9708 if (PyErr_Occurred()) return NULL
;
9709 } _resultobj
= Py_BuildValue("i",_result
);
9713 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9714 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9715 PyObject
* _resultobj
;
9717 bool _arg1
= (bool ) TRUE
;
9718 PyObject
* _argo0
= 0;
9719 int tempbool1
= (int) TRUE
;
9720 char *_kwnames
[] = { "self","check", NULL
};
9723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9732 _arg1
= (bool ) tempbool1
;
9734 wxPy_BEGIN_ALLOW_THREADS
;
9735 wxMenuItem_Check(_arg0
,_arg1
);
9737 wxPy_END_ALLOW_THREADS
;
9738 if (PyErr_Occurred()) return NULL
;
9739 } Py_INCREF(Py_None
);
9740 _resultobj
= Py_None
;
9744 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9745 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9746 PyObject
* _resultobj
;
9749 PyObject
* _argo0
= 0;
9750 char *_kwnames
[] = { "self", NULL
};
9753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9763 wxPy_BEGIN_ALLOW_THREADS
;
9764 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9766 wxPy_END_ALLOW_THREADS
;
9767 if (PyErr_Occurred()) return NULL
;
9768 } _resultobj
= Py_BuildValue("i",_result
);
9772 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9773 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9774 PyObject
* _resultobj
;
9776 PyObject
* _argo0
= 0;
9777 char *_kwnames
[] = { "self", NULL
};
9780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9790 wxPy_BEGIN_ALLOW_THREADS
;
9791 wxMenuItem_Toggle(_arg0
);
9793 wxPy_END_ALLOW_THREADS
;
9794 if (PyErr_Occurred()) return NULL
;
9795 } Py_INCREF(Py_None
);
9796 _resultobj
= Py_None
;
9800 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9801 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9802 PyObject
* _resultobj
;
9805 PyObject
* _argo0
= 0;
9806 PyObject
* _obj1
= 0;
9807 char *_kwnames
[] = { "self","str", NULL
};
9810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9820 #if PYTHON_API_VERSION >= 1009
9821 char* tmpPtr
; int tmpSize
;
9822 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9823 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9826 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9828 _arg1
= new wxString(tmpPtr
, tmpSize
);
9830 if (!PyString_Check(_obj1
)) {
9831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9834 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9838 wxPy_BEGIN_ALLOW_THREADS
;
9839 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9841 wxPy_END_ALLOW_THREADS
;
9842 if (PyErr_Occurred()) return NULL
;
9843 } Py_INCREF(Py_None
);
9844 _resultobj
= Py_None
;
9852 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9853 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9854 PyObject
* _resultobj
;
9857 PyObject
* _argo0
= 0;
9858 char *_kwnames
[] = { "self", NULL
};
9861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9871 wxPy_BEGIN_ALLOW_THREADS
;
9872 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9873 _result
= (wxString
*) &_result_ref
;
9875 wxPy_END_ALLOW_THREADS
;
9876 if (PyErr_Occurred()) return NULL
;
9878 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9883 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9884 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9885 PyObject
* _resultobj
;
9886 wxAcceleratorEntry
* _result
;
9888 PyObject
* _argo0
= 0;
9889 char *_kwnames
[] = { "self", NULL
};
9893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9903 wxPy_BEGIN_ALLOW_THREADS
;
9904 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9906 wxPy_END_ALLOW_THREADS
;
9907 if (PyErr_Occurred()) return NULL
;
9909 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9910 _resultobj
= Py_BuildValue("s",_ptemp
);
9913 _resultobj
= Py_None
;
9918 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9919 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9920 PyObject
* _resultobj
;
9922 wxAcceleratorEntry
* _arg1
;
9923 PyObject
* _argo0
= 0;
9924 PyObject
* _argo1
= 0;
9925 char *_kwnames
[] = { "self","accel", NULL
};
9928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9938 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9939 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9945 wxPy_BEGIN_ALLOW_THREADS
;
9946 wxMenuItem_SetAccel(_arg0
,_arg1
);
9948 wxPy_END_ALLOW_THREADS
;
9949 if (PyErr_Occurred()) return NULL
;
9950 } Py_INCREF(Py_None
);
9951 _resultobj
= Py_None
;
9955 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9956 PyObject
* _resultobj
;
9959 PyObject
* _obj0
= 0;
9960 char *_kwnames
[] = { "text", NULL
};
9963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9966 #if PYTHON_API_VERSION >= 1009
9967 char* tmpPtr
; int tmpSize
;
9968 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9969 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9972 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9974 _arg0
= new wxString(tmpPtr
, tmpSize
);
9976 if (!PyString_Check(_obj0
)) {
9977 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9980 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9984 wxPy_BEGIN_ALLOW_THREADS
;
9985 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9987 wxPy_END_ALLOW_THREADS
;
9988 if (PyErr_Occurred()) return NULL
;
9990 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10002 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
10003 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10004 PyObject
* _resultobj
;
10005 wxMenuItem
* _arg0
;
10007 PyObject
* _argo0
= 0;
10008 PyObject
* _argo1
= 0;
10009 char *_kwnames
[] = { "self","font", NULL
};
10012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
10015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
10022 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10023 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
10024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
10029 wxPy_BEGIN_ALLOW_THREADS
;
10030 wxMenuItem_SetFont(_arg0
,*_arg1
);
10032 wxPy_END_ALLOW_THREADS
;
10033 if (PyErr_Occurred()) return NULL
;
10034 } Py_INCREF(Py_None
);
10035 _resultobj
= Py_None
;
10039 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
10040 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10041 PyObject
* _resultobj
;
10043 wxMenuItem
* _arg0
;
10044 PyObject
* _argo0
= 0;
10045 char *_kwnames
[] = { "self", NULL
};
10049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
10052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
10059 wxPy_BEGIN_ALLOW_THREADS
;
10060 wxFont
& _result_ref
= wxMenuItem_GetFont(_arg0
);
10061 _result
= (wxFont
*) &_result_ref
;
10063 wxPy_END_ALLOW_THREADS
;
10064 if (PyErr_Occurred()) return NULL
;
10066 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
10067 _resultobj
= Py_BuildValue("s",_ptemp
);
10069 Py_INCREF(Py_None
);
10070 _resultobj
= Py_None
;
10075 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
10076 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10077 PyObject
* _resultobj
;
10078 wxMenuItem
* _arg0
;
10080 PyObject
* _argo0
= 0;
10082 PyObject
* _obj1
= 0;
10083 char *_kwnames
[] = { "self","colText", NULL
};
10086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
10089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
10097 if (! wxColour_helper(_obj1
, &_arg1
))
10101 wxPy_BEGIN_ALLOW_THREADS
;
10102 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
10104 wxPy_END_ALLOW_THREADS
;
10105 if (PyErr_Occurred()) return NULL
;
10106 } Py_INCREF(Py_None
);
10107 _resultobj
= Py_None
;
10111 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
10112 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10113 PyObject
* _resultobj
;
10114 wxColour
* _result
;
10115 wxMenuItem
* _arg0
;
10116 PyObject
* _argo0
= 0;
10117 char *_kwnames
[] = { "self", NULL
};
10121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
10124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
10131 wxPy_BEGIN_ALLOW_THREADS
;
10132 _result
= new wxColour (wxMenuItem_GetTextColour(_arg0
));
10134 wxPy_END_ALLOW_THREADS
;
10135 if (PyErr_Occurred()) return NULL
;
10136 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10137 _resultobj
= Py_BuildValue("s",_ptemp
);
10141 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
10142 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10143 PyObject
* _resultobj
;
10144 wxMenuItem
* _arg0
;
10146 PyObject
* _argo0
= 0;
10148 PyObject
* _obj1
= 0;
10149 char *_kwnames
[] = { "self","colBack", NULL
};
10152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
10155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
10163 if (! wxColour_helper(_obj1
, &_arg1
))
10167 wxPy_BEGIN_ALLOW_THREADS
;
10168 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
10170 wxPy_END_ALLOW_THREADS
;
10171 if (PyErr_Occurred()) return NULL
;
10172 } Py_INCREF(Py_None
);
10173 _resultobj
= Py_None
;
10177 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10178 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10179 PyObject
* _resultobj
;
10180 wxColour
* _result
;
10181 wxMenuItem
* _arg0
;
10182 PyObject
* _argo0
= 0;
10183 char *_kwnames
[] = { "self", NULL
};
10187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10197 wxPy_BEGIN_ALLOW_THREADS
;
10198 _result
= new wxColour (wxMenuItem_GetBackgroundColour(_arg0
));
10200 wxPy_END_ALLOW_THREADS
;
10201 if (PyErr_Occurred()) return NULL
;
10202 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10203 _resultobj
= Py_BuildValue("s",_ptemp
);
10207 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10208 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10209 PyObject
* _resultobj
;
10210 wxMenuItem
* _arg0
;
10212 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10213 PyObject
* _argo0
= 0;
10214 PyObject
* _argo1
= 0;
10215 PyObject
* _argo2
= 0;
10216 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
10229 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10230 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10236 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10237 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10243 wxPy_BEGIN_ALLOW_THREADS
;
10244 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10246 wxPy_END_ALLOW_THREADS
;
10247 if (PyErr_Occurred()) return NULL
;
10248 } Py_INCREF(Py_None
);
10249 _resultobj
= Py_None
;
10253 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10254 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10255 PyObject
* _resultobj
;
10256 wxMenuItem
* _arg0
;
10258 PyObject
* _argo0
= 0;
10259 PyObject
* _argo1
= 0;
10260 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10273 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10274 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10280 wxPy_BEGIN_ALLOW_THREADS
;
10281 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10283 wxPy_END_ALLOW_THREADS
;
10284 if (PyErr_Occurred()) return NULL
;
10285 } Py_INCREF(Py_None
);
10286 _resultobj
= Py_None
;
10290 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10291 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10292 PyObject
* _resultobj
;
10293 wxBitmap
* _result
;
10294 wxMenuItem
* _arg0
;
10295 bool _arg1
= (bool ) TRUE
;
10296 PyObject
* _argo0
= 0;
10297 int tempbool1
= (int) TRUE
;
10298 char *_kwnames
[] = { "self","bChecked", NULL
};
10302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10311 _arg1
= (bool ) tempbool1
;
10313 wxPy_BEGIN_ALLOW_THREADS
;
10314 const wxBitmap
& _result_ref
= wxMenuItem_GetBitmap(_arg0
,_arg1
);
10315 _result
= (wxBitmap
*) &_result_ref
;
10317 wxPy_END_ALLOW_THREADS
;
10318 if (PyErr_Occurred()) return NULL
;
10320 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
10321 _resultobj
= Py_BuildValue("s",_ptemp
);
10323 Py_INCREF(Py_None
);
10324 _resultobj
= Py_None
;
10329 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10330 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10331 PyObject
* _resultobj
;
10332 wxMenuItem
* _arg0
;
10334 PyObject
* _argo0
= 0;
10335 char *_kwnames
[] = { "self","nWidth", NULL
};
10338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10348 wxPy_BEGIN_ALLOW_THREADS
;
10349 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10351 wxPy_END_ALLOW_THREADS
;
10352 if (PyErr_Occurred()) return NULL
;
10353 } Py_INCREF(Py_None
);
10354 _resultobj
= Py_None
;
10358 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10359 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10360 PyObject
* _resultobj
;
10362 wxMenuItem
* _arg0
;
10363 PyObject
* _argo0
= 0;
10364 char *_kwnames
[] = { "self", NULL
};
10367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10377 wxPy_BEGIN_ALLOW_THREADS
;
10378 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10380 wxPy_END_ALLOW_THREADS
;
10381 if (PyErr_Occurred()) return NULL
;
10382 } _resultobj
= Py_BuildValue("i",_result
);
10386 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10387 PyObject
* _resultobj
;
10389 char *_kwnames
[] = { NULL
};
10392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10395 wxPy_BEGIN_ALLOW_THREADS
;
10396 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10398 wxPy_END_ALLOW_THREADS
;
10399 if (PyErr_Occurred()) return NULL
;
10400 } _resultobj
= Py_BuildValue("i",_result
);
10404 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10405 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10406 PyObject
* _resultobj
;
10408 wxMenuItem
* _arg0
;
10409 PyObject
* _argo0
= 0;
10410 char *_kwnames
[] = { "self", NULL
};
10413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
10416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
10423 wxPy_BEGIN_ALLOW_THREADS
;
10424 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10426 wxPy_END_ALLOW_THREADS
;
10427 if (PyErr_Occurred()) return NULL
;
10428 } _resultobj
= Py_BuildValue("i",_result
);
10432 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10433 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10434 PyObject
* _resultobj
;
10435 wxMenuItem
* _arg0
;
10436 PyObject
* _argo0
= 0;
10437 char *_kwnames
[] = { "self", NULL
};
10440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10450 wxPy_BEGIN_ALLOW_THREADS
;
10451 wxMenuItem_ResetOwnerDrawn(_arg0
);
10453 wxPy_END_ALLOW_THREADS
;
10454 if (PyErr_Occurred()) return NULL
;
10455 } Py_INCREF(Py_None
);
10456 _resultobj
= Py_None
;
10460 static PyMethodDef windowscMethods
[] = {
10461 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10591 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10592 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10593 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10594 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10595 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10596 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10597 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10598 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10599 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10600 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10601 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10602 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10603 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10604 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10605 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10606 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10607 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10608 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10609 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10610 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10611 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10612 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10613 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10614 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10615 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10616 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10617 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10618 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10619 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10620 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10621 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10622 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10623 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10624 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10625 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10626 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10627 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10628 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10629 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10630 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10631 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10632 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10633 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10634 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10635 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10636 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10637 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10638 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10639 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10640 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10641 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10642 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10643 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10644 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10645 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10646 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10647 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10648 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10649 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10650 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10651 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10652 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10653 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10654 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10655 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10656 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10657 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10658 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10659 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10660 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10661 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10662 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10663 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10664 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10665 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10666 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10667 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10668 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10669 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10670 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10671 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10672 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10673 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10674 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10675 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10676 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10677 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10678 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10679 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10680 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10681 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10682 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10683 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10684 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10685 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10686 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10687 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10688 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10689 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10690 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10691 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10692 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10693 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10694 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10695 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10696 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10697 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10698 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10699 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10700 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10701 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10702 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10703 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10704 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10705 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10706 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10707 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10708 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10709 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10710 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10711 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10712 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10713 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10714 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10715 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10716 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10717 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10718 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10719 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10720 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10721 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10722 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10723 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10724 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10725 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10726 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10727 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10728 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10729 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10730 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10731 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10732 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10733 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10734 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10735 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10736 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10737 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10738 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10756 * This table is used by the pointer type-checker
10758 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10759 { "_signed_long","_long",0},
10760 { "_wxPrintQuality","_wxCoord",0},
10761 { "_wxPrintQuality","_int",0},
10762 { "_wxPrintQuality","_signed_int",0},
10763 { "_wxPrintQuality","_unsigned_int",0},
10764 { "_wxPrintQuality","_wxWindowID",0},
10765 { "_wxPrintQuality","_uint",0},
10766 { "_wxPrintQuality","_EBool",0},
10767 { "_wxPrintQuality","_size_t",0},
10768 { "_wxPrintQuality","_time_t",0},
10769 { "_byte","_unsigned_char",0},
10770 { "_long","_unsigned_long",0},
10771 { "_long","_signed_long",0},
10772 { "_size_t","_wxCoord",0},
10773 { "_size_t","_wxPrintQuality",0},
10774 { "_size_t","_time_t",0},
10775 { "_size_t","_unsigned_int",0},
10776 { "_size_t","_int",0},
10777 { "_size_t","_wxWindowID",0},
10778 { "_size_t","_uint",0},
10779 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10780 { "_uint","_wxCoord",0},
10781 { "_uint","_wxPrintQuality",0},
10782 { "_uint","_time_t",0},
10783 { "_uint","_size_t",0},
10784 { "_uint","_unsigned_int",0},
10785 { "_uint","_int",0},
10786 { "_uint","_wxWindowID",0},
10787 { "_wxChar","_char",0},
10788 { "_char","_wxChar",0},
10789 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10790 { "_EBool","_wxCoord",0},
10791 { "_EBool","_wxPrintQuality",0},
10792 { "_EBool","_signed_int",0},
10793 { "_EBool","_int",0},
10794 { "_EBool","_wxWindowID",0},
10795 { "_unsigned_long","_long",0},
10796 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10797 { "_signed_int","_wxCoord",0},
10798 { "_signed_int","_wxPrintQuality",0},
10799 { "_signed_int","_EBool",0},
10800 { "_signed_int","_wxWindowID",0},
10801 { "_signed_int","_int",0},
10802 { "_WXTYPE","_short",0},
10803 { "_WXTYPE","_signed_short",0},
10804 { "_WXTYPE","_unsigned_short",0},
10805 { "_unsigned_short","_WXTYPE",0},
10806 { "_unsigned_short","_short",0},
10807 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10808 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10809 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10810 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10811 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10812 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10813 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10814 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10815 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10816 { "_signed_short","_WXTYPE",0},
10817 { "_signed_short","_short",0},
10818 { "_unsigned_char","_byte",0},
10819 { "_unsigned_int","_wxCoord",0},
10820 { "_unsigned_int","_wxPrintQuality",0},
10821 { "_unsigned_int","_time_t",0},
10822 { "_unsigned_int","_size_t",0},
10823 { "_unsigned_int","_uint",0},
10824 { "_unsigned_int","_wxWindowID",0},
10825 { "_unsigned_int","_int",0},
10826 { "_short","_WXTYPE",0},
10827 { "_short","_unsigned_short",0},
10828 { "_short","_signed_short",0},
10829 { "_wxWindowID","_wxCoord",0},
10830 { "_wxWindowID","_wxPrintQuality",0},
10831 { "_wxWindowID","_time_t",0},
10832 { "_wxWindowID","_size_t",0},
10833 { "_wxWindowID","_EBool",0},
10834 { "_wxWindowID","_uint",0},
10835 { "_wxWindowID","_int",0},
10836 { "_wxWindowID","_signed_int",0},
10837 { "_wxWindowID","_unsigned_int",0},
10838 { "_int","_wxCoord",0},
10839 { "_int","_wxPrintQuality",0},
10840 { "_int","_time_t",0},
10841 { "_int","_size_t",0},
10842 { "_int","_EBool",0},
10843 { "_int","_uint",0},
10844 { "_int","_wxWindowID",0},
10845 { "_int","_unsigned_int",0},
10846 { "_int","_signed_int",0},
10847 { "_time_t","_wxCoord",0},
10848 { "_time_t","_wxPrintQuality",0},
10849 { "_time_t","_unsigned_int",0},
10850 { "_time_t","_int",0},
10851 { "_time_t","_wxWindowID",0},
10852 { "_time_t","_uint",0},
10853 { "_time_t","_size_t",0},
10854 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10855 { "_wxCoord","_int",0},
10856 { "_wxCoord","_signed_int",0},
10857 { "_wxCoord","_unsigned_int",0},
10858 { "_wxCoord","_wxWindowID",0},
10859 { "_wxCoord","_uint",0},
10860 { "_wxCoord","_EBool",0},
10861 { "_wxCoord","_size_t",0},
10862 { "_wxCoord","_time_t",0},
10863 { "_wxCoord","_wxPrintQuality",0},
10864 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10865 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10866 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10867 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10868 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10869 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10870 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10871 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10872 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10873 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10876 static PyObject
*SWIG_globals
;
10880 SWIGEXPORT(void) initwindowsc() {
10882 SWIG_globals
= SWIG_newvarlink();
10883 m
= Py_InitModule("windowsc", windowscMethods
);
10884 d
= PyModule_GetDict(m
);
10887 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10888 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);