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
));
476 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
477 PyObject
* _resultobj
;
478 wxEvtHandler
* _arg0
;
483 PyObject
* _argo0
= 0;
484 PyObject
* _obj4
= 0;
485 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
501 wxPy_BEGIN_ALLOW_THREADS
;
502 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
504 wxPy_END_ALLOW_THREADS
;
505 if (PyErr_Occurred()) return NULL
;
506 } Py_INCREF(Py_None
);
507 _resultobj
= Py_None
;
511 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
512 return self
->Disconnect(id
, lastId
, eventType
,
513 (wxObjectEventFunction
)
514 &wxPyCallback::EventThunker
);
516 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
517 PyObject
* _resultobj
;
519 wxEvtHandler
* _arg0
;
521 int _arg2
= (int ) -1;
522 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
523 PyObject
* _argo0
= 0;
524 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
537 wxPy_BEGIN_ALLOW_THREADS
;
538 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
540 wxPy_END_ALLOW_THREADS
;
541 if (PyErr_Occurred()) return NULL
;
542 } _resultobj
= Py_BuildValue("i",_result
);
546 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
547 self
->SetClientObject(new wxPyClientData(_self
));
549 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
550 PyObject
* _resultobj
;
551 wxEvtHandler
* _arg0
;
553 PyObject
* _argo0
= 0;
554 PyObject
* _obj1
= 0;
555 char *_kwnames
[] = { "self","_self", NULL
};
558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
571 wxPy_BEGIN_ALLOW_THREADS
;
572 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
574 wxPy_END_ALLOW_THREADS
;
575 if (PyErr_Occurred()) return NULL
;
576 } Py_INCREF(Py_None
);
577 _resultobj
= Py_None
;
581 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
584 src
= (wxValidator
*) ptr
;
585 dest
= (wxEvtHandler
*) src
;
586 return (void *) dest
;
589 static void *SwigwxValidatorTowxObject(void *ptr
) {
592 src
= (wxValidator
*) ptr
;
593 dest
= (wxObject
*) src
;
594 return (void *) dest
;
597 #define new_wxValidator() (new wxValidator())
598 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
599 PyObject
* _resultobj
;
600 wxValidator
* _result
;
601 char *_kwnames
[] = { NULL
};
605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
608 wxPy_BEGIN_ALLOW_THREADS
;
609 _result
= (wxValidator
*)new_wxValidator();
611 wxPy_END_ALLOW_THREADS
;
612 if (PyErr_Occurred()) return NULL
;
614 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
615 _resultobj
= Py_BuildValue("s",_ptemp
);
618 _resultobj
= Py_None
;
623 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
624 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
625 PyObject
* _resultobj
;
626 wxValidator
* _result
;
628 PyObject
* _argo0
= 0;
629 char *_kwnames
[] = { "self", NULL
};
632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
642 wxPy_BEGIN_ALLOW_THREADS
;
643 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
645 wxPy_END_ALLOW_THREADS
;
646 if (PyErr_Occurred()) return NULL
;
647 }{ _resultobj
= wxPyMake_wxObject(_result
); }
651 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
652 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
653 PyObject
* _resultobj
;
656 PyObject
* _argo0
= 0;
657 char *_kwnames
[] = { "self", NULL
};
660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
670 wxPy_BEGIN_ALLOW_THREADS
;
671 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
673 wxPy_END_ALLOW_THREADS
;
674 if (PyErr_Occurred()) return NULL
;
675 }{ _resultobj
= wxPyMake_wxObject(_result
); }
679 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
680 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
681 PyObject
* _resultobj
;
684 PyObject
* _argo0
= 0;
685 PyObject
* _argo1
= 0;
686 char *_kwnames
[] = { "self","window", NULL
};
689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
699 if (_argo1
== Py_None
) { _arg1
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
706 wxPy_BEGIN_ALLOW_THREADS
;
707 wxValidator_SetWindow(_arg0
,_arg1
);
709 wxPy_END_ALLOW_THREADS
;
710 if (PyErr_Occurred()) return NULL
;
711 } Py_INCREF(Py_None
);
712 _resultobj
= Py_None
;
716 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
717 PyObject
* _resultobj
;
719 char *_kwnames
[] = { NULL
};
722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
725 wxPy_BEGIN_ALLOW_THREADS
;
726 _result
= (bool )wxValidator::IsSilent();
728 wxPy_END_ALLOW_THREADS
;
729 if (PyErr_Occurred()) return NULL
;
730 } _resultobj
= Py_BuildValue("i",_result
);
734 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
735 PyObject
* _resultobj
;
736 int _arg0
= (int ) TRUE
;
737 char *_kwnames
[] = { "doIt", NULL
};
740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
743 wxPy_BEGIN_ALLOW_THREADS
;
744 wxValidator::SetBellOnError(_arg0
);
746 wxPy_END_ALLOW_THREADS
;
747 if (PyErr_Occurred()) return NULL
;
748 } Py_INCREF(Py_None
);
749 _resultobj
= Py_None
;
753 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
756 src
= (wxPyValidator
*) ptr
;
757 dest
= (wxValidator
*) src
;
758 return (void *) dest
;
761 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
764 src
= (wxPyValidator
*) ptr
;
765 dest
= (wxEvtHandler
*) src
;
766 return (void *) dest
;
769 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
772 src
= (wxPyValidator
*) ptr
;
773 dest
= (wxObject
*) src
;
774 return (void *) dest
;
777 #define new_wxPyValidator() (new wxPyValidator())
778 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
779 PyObject
* _resultobj
;
780 wxPyValidator
* _result
;
781 char *_kwnames
[] = { NULL
};
785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
788 wxPy_BEGIN_ALLOW_THREADS
;
789 _result
= (wxPyValidator
*)new_wxPyValidator();
791 wxPy_END_ALLOW_THREADS
;
792 if (PyErr_Occurred()) return NULL
;
794 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
795 _resultobj
= Py_BuildValue("s",_ptemp
);
798 _resultobj
= Py_None
;
803 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
804 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
805 PyObject
* _resultobj
;
806 wxPyValidator
* _arg0
;
809 int _arg3
= (int ) TRUE
;
810 PyObject
* _argo0
= 0;
811 PyObject
* _obj1
= 0;
812 PyObject
* _obj2
= 0;
813 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
832 wxPy_BEGIN_ALLOW_THREADS
;
833 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
835 wxPy_END_ALLOW_THREADS
;
836 if (PyErr_Occurred()) return NULL
;
837 } Py_INCREF(Py_None
);
838 _resultobj
= Py_None
;
842 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
845 src
= (wxWindow
*) ptr
;
846 dest
= (wxEvtHandler
*) src
;
847 return (void *) dest
;
850 static void *SwigwxWindowTowxObject(void *ptr
) {
853 src
= (wxWindow
*) ptr
;
854 dest
= (wxObject
*) src
;
855 return (void *) dest
;
858 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
859 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
860 PyObject
* _resultobj
;
864 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
865 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
866 long _arg4
= (long ) 0;
867 char * _arg5
= (char *) "panel";
868 PyObject
* _argo0
= 0;
870 PyObject
* _obj2
= 0;
872 PyObject
* _obj3
= 0;
873 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
889 if (! wxPoint_helper(_obj2
, &_arg2
))
895 if (! wxSize_helper(_obj3
, &_arg3
))
899 wxPy_BEGIN_ALLOW_THREADS
;
900 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
902 wxPy_END_ALLOW_THREADS
;
903 if (PyErr_Occurred()) return NULL
;
905 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
906 _resultobj
= Py_BuildValue("s",_ptemp
);
909 _resultobj
= Py_None
;
914 #define new_wxPreWindow() (new wxWindow())
915 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
916 PyObject
* _resultobj
;
918 char *_kwnames
[] = { NULL
};
922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
925 wxPy_BEGIN_ALLOW_THREADS
;
926 _result
= (wxWindow
*)new_wxPreWindow();
928 wxPy_END_ALLOW_THREADS
;
929 if (PyErr_Occurred()) return NULL
;
931 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
932 _resultobj
= Py_BuildValue("s",_ptemp
);
935 _resultobj
= Py_None
;
940 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
941 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
942 PyObject
* _resultobj
;
947 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
948 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
949 long _arg5
= (long ) 0;
950 char * _arg6
= (char *) "panel";
951 PyObject
* _argo0
= 0;
952 PyObject
* _argo1
= 0;
954 PyObject
* _obj3
= 0;
956 PyObject
* _obj4
= 0;
957 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
970 if (_argo1
== Py_None
) { _arg1
= NULL
; }
971 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
979 if (! wxPoint_helper(_obj3
, &_arg3
))
985 if (! wxSize_helper(_obj4
, &_arg4
))
989 wxPy_BEGIN_ALLOW_THREADS
;
990 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
992 wxPy_END_ALLOW_THREADS
;
993 if (PyErr_Occurred()) return NULL
;
994 } _resultobj
= Py_BuildValue("i",_result
);
998 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
999 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 PyObject
* _resultobj
;
1002 PyObject
* _argo0
= 0;
1003 char *_kwnames
[] = { "self", NULL
};
1006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
1009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
1016 wxPy_BEGIN_ALLOW_THREADS
;
1017 wxWindow_CaptureMouse(_arg0
);
1019 wxPy_END_ALLOW_THREADS
;
1020 if (PyErr_Occurred()) return NULL
;
1021 } Py_INCREF(Py_None
);
1022 _resultobj
= Py_None
;
1026 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1027 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1028 PyObject
* _resultobj
;
1030 int _arg1
= (int ) wxBOTH
;
1031 PyObject
* _argo0
= 0;
1032 char *_kwnames
[] = { "self","direction", NULL
};
1035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1045 wxPy_BEGIN_ALLOW_THREADS
;
1046 wxWindow_Center(_arg0
,_arg1
);
1048 wxPy_END_ALLOW_THREADS
;
1049 if (PyErr_Occurred()) return NULL
;
1050 } Py_INCREF(Py_None
);
1051 _resultobj
= Py_None
;
1055 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1056 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1057 PyObject
* _resultobj
;
1059 int _arg1
= (int ) wxBOTH
;
1060 PyObject
* _argo0
= 0;
1061 char *_kwnames
[] = { "self","direction", NULL
};
1064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1074 wxPy_BEGIN_ALLOW_THREADS
;
1075 wxWindow_Centre(_arg0
,_arg1
);
1077 wxPy_END_ALLOW_THREADS
;
1078 if (PyErr_Occurred()) return NULL
;
1079 } Py_INCREF(Py_None
);
1080 _resultobj
= Py_None
;
1084 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1085 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1086 PyObject
* _resultobj
;
1088 int _arg1
= (int ) wxBOTH
;
1089 PyObject
* _argo0
= 0;
1090 char *_kwnames
[] = { "self","direction", NULL
};
1093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1103 wxPy_BEGIN_ALLOW_THREADS
;
1104 wxWindow_CentreOnParent(_arg0
,_arg1
);
1106 wxPy_END_ALLOW_THREADS
;
1107 if (PyErr_Occurred()) return NULL
;
1108 } Py_INCREF(Py_None
);
1109 _resultobj
= Py_None
;
1113 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1114 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1115 PyObject
* _resultobj
;
1117 int _arg1
= (int ) wxBOTH
;
1118 PyObject
* _argo0
= 0;
1119 char *_kwnames
[] = { "self","direction", NULL
};
1122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1132 wxPy_BEGIN_ALLOW_THREADS
;
1133 wxWindow_CenterOnParent(_arg0
,_arg1
);
1135 wxPy_END_ALLOW_THREADS
;
1136 if (PyErr_Occurred()) return NULL
;
1137 } Py_INCREF(Py_None
);
1138 _resultobj
= Py_None
;
1142 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1143 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1144 PyObject
* _resultobj
;
1146 int _arg1
= (int ) wxBOTH
;
1147 PyObject
* _argo0
= 0;
1148 char *_kwnames
[] = { "self","direction", NULL
};
1151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1161 wxPy_BEGIN_ALLOW_THREADS
;
1162 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1164 wxPy_END_ALLOW_THREADS
;
1165 if (PyErr_Occurred()) return NULL
;
1166 } Py_INCREF(Py_None
);
1167 _resultobj
= Py_None
;
1171 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1172 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1173 PyObject
* _resultobj
;
1175 int _arg1
= (int ) wxBOTH
;
1176 PyObject
* _argo0
= 0;
1177 char *_kwnames
[] = { "self","direction", NULL
};
1180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1190 wxPy_BEGIN_ALLOW_THREADS
;
1191 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1193 wxPy_END_ALLOW_THREADS
;
1194 if (PyErr_Occurred()) return NULL
;
1195 } Py_INCREF(Py_None
);
1196 _resultobj
= Py_None
;
1200 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1201 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1202 PyObject
* _resultobj
;
1204 PyObject
* _argo0
= 0;
1205 char *_kwnames
[] = { "self", NULL
};
1208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1218 wxPy_BEGIN_ALLOW_THREADS
;
1219 wxWindow_Clear(_arg0
);
1221 wxPy_END_ALLOW_THREADS
;
1222 if (PyErr_Occurred()) return NULL
;
1223 } Py_INCREF(Py_None
);
1224 _resultobj
= Py_None
;
1228 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1229 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1230 PyObject
* _resultobj
;
1234 PyObject
* _argo0
= 0;
1236 PyObject
* _obj1
= 0;
1238 PyObject
* _obj2
= 0;
1239 char *_kwnames
[] = { "self","x","y", NULL
};
1242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1252 temp
= (int) PyInt_AsLong(_obj1
);
1256 temp0
= (int) PyInt_AsLong(_obj2
);
1260 wxPy_BEGIN_ALLOW_THREADS
;
1261 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1263 wxPy_END_ALLOW_THREADS
;
1264 if (PyErr_Occurred()) return NULL
;
1265 } Py_INCREF(Py_None
);
1266 _resultobj
= Py_None
;
1269 o
= PyInt_FromLong((long) (*_arg1
));
1270 _resultobj
= t_output_helper(_resultobj
, o
);
1274 o
= PyInt_FromLong((long) (*_arg2
));
1275 _resultobj
= t_output_helper(_resultobj
, o
);
1280 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1281 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1282 PyObject
* _resultobj
;
1286 PyObject
* _argo0
= 0;
1288 PyObject
* _obj1
= 0;
1289 char *_kwnames
[] = { "self","pt", NULL
};
1293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1304 if (! wxPoint_helper(_obj1
, &_arg1
))
1308 wxPy_BEGIN_ALLOW_THREADS
;
1309 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1311 wxPy_END_ALLOW_THREADS
;
1312 if (PyErr_Occurred()) return NULL
;
1313 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1314 _resultobj
= Py_BuildValue("s",_ptemp
);
1318 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1319 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1320 PyObject
* _resultobj
;
1323 int _arg1
= (int ) FALSE
;
1324 PyObject
* _argo0
= 0;
1325 char *_kwnames
[] = { "self","force", NULL
};
1328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1338 wxPy_BEGIN_ALLOW_THREADS
;
1339 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1341 wxPy_END_ALLOW_THREADS
;
1342 if (PyErr_Occurred()) return NULL
;
1343 } _resultobj
= Py_BuildValue("i",_result
);
1347 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1348 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1349 PyObject
* _resultobj
;
1352 PyObject
* _argo0
= 0;
1353 char *_kwnames
[] = { "self", NULL
};
1356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1366 wxPy_BEGIN_ALLOW_THREADS
;
1367 _result
= (bool )wxWindow_Destroy(_arg0
);
1369 wxPy_END_ALLOW_THREADS
;
1370 if (PyErr_Occurred()) return NULL
;
1371 } _resultobj
= Py_BuildValue("i",_result
);
1375 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1376 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1377 PyObject
* _resultobj
;
1379 PyObject
* _argo0
= 0;
1380 char *_kwnames
[] = { "self", NULL
};
1383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1393 wxPy_BEGIN_ALLOW_THREADS
;
1394 wxWindow_DestroyChildren(_arg0
);
1396 wxPy_END_ALLOW_THREADS
;
1397 if (PyErr_Occurred()) return NULL
;
1398 } Py_INCREF(Py_None
);
1399 _resultobj
= Py_None
;
1403 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1404 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1405 PyObject
* _resultobj
;
1408 PyObject
* _argo0
= 0;
1409 char *_kwnames
[] = { "self", NULL
};
1412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1422 wxPy_BEGIN_ALLOW_THREADS
;
1423 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1425 wxPy_END_ALLOW_THREADS
;
1426 if (PyErr_Occurred()) return NULL
;
1427 } _resultobj
= Py_BuildValue("i",_result
);
1431 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1432 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1433 PyObject
* _resultobj
;
1436 PyObject
* _argo0
= 0;
1438 char *_kwnames
[] = { "self","accept", NULL
};
1441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1450 _arg1
= (bool ) tempbool1
;
1452 wxPy_BEGIN_ALLOW_THREADS
;
1453 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1455 wxPy_END_ALLOW_THREADS
;
1456 if (PyErr_Occurred()) return NULL
;
1457 } Py_INCREF(Py_None
);
1458 _resultobj
= Py_None
;
1462 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1463 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1464 PyObject
* _resultobj
;
1467 PyObject
* _argo0
= 0;
1469 char *_kwnames
[] = { "self","enable", NULL
};
1472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1481 _arg1
= (bool ) tempbool1
;
1483 wxPy_BEGIN_ALLOW_THREADS
;
1484 wxWindow_Enable(_arg0
,_arg1
);
1486 wxPy_END_ALLOW_THREADS
;
1487 if (PyErr_Occurred()) return NULL
;
1488 } Py_INCREF(Py_None
);
1489 _resultobj
= Py_None
;
1493 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1494 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1495 PyObject
* _resultobj
;
1499 PyObject
* _argo0
= 0;
1500 char *_kwnames
[] = { "self","id", NULL
};
1503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1513 wxPy_BEGIN_ALLOW_THREADS
;
1514 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1516 wxPy_END_ALLOW_THREADS
;
1517 if (PyErr_Occurred()) return NULL
;
1518 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1522 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1523 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1524 PyObject
* _resultobj
;
1528 PyObject
* _argo0
= 0;
1529 PyObject
* _obj1
= 0;
1530 char *_kwnames
[] = { "self","name", NULL
};
1533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1543 #if PYTHON_API_VERSION >= 1009
1544 char* tmpPtr
; int tmpSize
;
1545 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1546 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1549 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1551 _arg1
= new wxString(tmpPtr
, tmpSize
);
1553 if (!PyString_Check(_obj1
)) {
1554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1557 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1561 wxPy_BEGIN_ALLOW_THREADS
;
1562 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1564 wxPy_END_ALLOW_THREADS
;
1565 if (PyErr_Occurred()) return NULL
;
1566 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1574 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1575 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1576 PyObject
* _resultobj
;
1578 PyObject
* _argo0
= 0;
1579 char *_kwnames
[] = { "self", NULL
};
1582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1592 wxPy_BEGIN_ALLOW_THREADS
;
1593 wxWindow_Fit(_arg0
);
1595 wxPy_END_ALLOW_THREADS
;
1596 if (PyErr_Occurred()) return NULL
;
1597 } Py_INCREF(Py_None
);
1598 _resultobj
= Py_None
;
1602 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1603 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1604 PyObject
* _resultobj
;
1607 PyObject
* _argo0
= 0;
1608 char *_kwnames
[] = { "self", NULL
};
1612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1622 wxPy_BEGIN_ALLOW_THREADS
;
1623 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1625 wxPy_END_ALLOW_THREADS
;
1626 if (PyErr_Occurred()) return NULL
;
1627 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1628 _resultobj
= Py_BuildValue("s",_ptemp
);
1632 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1633 wxWindowList
& list
= self
->GetChildren();
1634 return wxPy_ConvertList(&list
, "wxWindow");
1636 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1637 PyObject
* _resultobj
;
1640 PyObject
* _argo0
= 0;
1641 char *_kwnames
[] = { "self", NULL
};
1644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1654 wxPy_BEGIN_ALLOW_THREADS
;
1655 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1657 wxPy_END_ALLOW_THREADS
;
1658 if (PyErr_Occurred()) return NULL
;
1660 _resultobj
= _result
;
1665 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1666 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1667 PyObject
* _resultobj
;
1670 PyObject
* _argo0
= 0;
1671 char *_kwnames
[] = { "self", NULL
};
1674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1684 wxPy_BEGIN_ALLOW_THREADS
;
1685 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1687 wxPy_END_ALLOW_THREADS
;
1688 if (PyErr_Occurred()) return NULL
;
1689 } _resultobj
= Py_BuildValue("i",_result
);
1693 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1694 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1695 PyObject
* _resultobj
;
1698 PyObject
* _argo0
= 0;
1699 char *_kwnames
[] = { "self", NULL
};
1702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1712 wxPy_BEGIN_ALLOW_THREADS
;
1713 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1715 wxPy_END_ALLOW_THREADS
;
1716 if (PyErr_Occurred()) return NULL
;
1717 } _resultobj
= Py_BuildValue("i",_result
);
1721 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1722 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1723 PyObject
* _resultobj
;
1729 PyObject
* _argo0
= 0;
1730 char *_kwnames
[] = { "self", NULL
};
1739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1749 wxPy_BEGIN_ALLOW_THREADS
;
1750 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1752 wxPy_END_ALLOW_THREADS
;
1753 if (PyErr_Occurred()) return NULL
;
1754 } Py_INCREF(Py_None
);
1755 _resultobj
= Py_None
;
1758 o
= PyInt_FromLong((long) (*_arg1
));
1759 _resultobj
= t_output_helper(_resultobj
, o
);
1763 o
= PyInt_FromLong((long) (*_arg2
));
1764 _resultobj
= t_output_helper(_resultobj
, o
);
1769 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1770 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1771 PyObject
* _resultobj
;
1774 PyObject
* _argo0
= 0;
1775 char *_kwnames
[] = { "self", NULL
};
1779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1789 wxPy_BEGIN_ALLOW_THREADS
;
1790 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1792 wxPy_END_ALLOW_THREADS
;
1793 if (PyErr_Occurred()) return NULL
;
1794 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1795 _resultobj
= Py_BuildValue("s",_ptemp
);
1799 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1800 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1801 PyObject
* _resultobj
;
1802 wxLayoutConstraints
* _result
;
1804 PyObject
* _argo0
= 0;
1805 char *_kwnames
[] = { "self", NULL
};
1809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1819 wxPy_BEGIN_ALLOW_THREADS
;
1820 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1822 wxPy_END_ALLOW_THREADS
;
1823 if (PyErr_Occurred()) return NULL
;
1825 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1826 _resultobj
= Py_BuildValue("s",_ptemp
);
1829 _resultobj
= Py_None
;
1834 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1835 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1836 PyObject
* _resultobj
;
1837 wxEvtHandler
* _result
;
1839 PyObject
* _argo0
= 0;
1840 char *_kwnames
[] = { "self", NULL
};
1843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1853 wxPy_BEGIN_ALLOW_THREADS
;
1854 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1856 wxPy_END_ALLOW_THREADS
;
1857 if (PyErr_Occurred()) return NULL
;
1858 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1862 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1863 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1864 PyObject
* _resultobj
;
1867 PyObject
* _argo0
= 0;
1868 char *_kwnames
[] = { "self", NULL
};
1872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1882 wxPy_BEGIN_ALLOW_THREADS
;
1883 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1884 _result
= (wxFont
*) &_result_ref
;
1886 wxPy_END_ALLOW_THREADS
;
1887 if (PyErr_Occurred()) return NULL
;
1889 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1890 _resultobj
= Py_BuildValue("s",_ptemp
);
1893 _resultobj
= Py_None
;
1898 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1899 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1900 PyObject
* _resultobj
;
1903 PyObject
* _argo0
= 0;
1904 char *_kwnames
[] = { "self", NULL
};
1908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1918 wxPy_BEGIN_ALLOW_THREADS
;
1919 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1921 wxPy_END_ALLOW_THREADS
;
1922 if (PyErr_Occurred()) return NULL
;
1923 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1924 _resultobj
= Py_BuildValue("s",_ptemp
);
1928 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1929 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1930 PyObject
* _resultobj
;
1933 PyObject
* _argo0
= 0;
1934 char *_kwnames
[] = { "self", NULL
};
1937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1947 wxPy_BEGIN_ALLOW_THREADS
;
1948 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1950 wxPy_END_ALLOW_THREADS
;
1951 if (PyErr_Occurred()) return NULL
;
1952 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1956 static long wxWindow_GetHandle(wxWindow
*self
) {
1957 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1959 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1960 PyObject
* _resultobj
;
1963 PyObject
* _argo0
= 0;
1964 char *_kwnames
[] = { "self", NULL
};
1967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1977 wxPy_BEGIN_ALLOW_THREADS
;
1978 _result
= (long )wxWindow_GetHandle(_arg0
);
1980 wxPy_END_ALLOW_THREADS
;
1981 if (PyErr_Occurred()) return NULL
;
1982 } _resultobj
= Py_BuildValue("l",_result
);
1986 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1987 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1988 PyObject
* _resultobj
;
1991 PyObject
* _argo0
= 0;
1992 char *_kwnames
[] = { "self", NULL
};
1995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2005 wxPy_BEGIN_ALLOW_THREADS
;
2006 _result
= (int )wxWindow_GetId(_arg0
);
2008 wxPy_END_ALLOW_THREADS
;
2009 if (PyErr_Occurred()) return NULL
;
2010 } _resultobj
= Py_BuildValue("i",_result
);
2014 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2015 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2016 PyObject
* _resultobj
;
2019 PyObject
* _argo0
= 0;
2020 char *_kwnames
[] = { "self", NULL
};
2023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
2026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2033 wxPy_BEGIN_ALLOW_THREADS
;
2034 _result
= new wxString (wxWindow_GetLabel(_arg0
));
2036 wxPy_END_ALLOW_THREADS
;
2037 if (PyErr_Occurred()) return NULL
;
2039 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2047 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2048 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2049 PyObject
* _resultobj
;
2052 PyObject
* _argo0
= 0;
2053 PyObject
* _obj1
= 0;
2054 char *_kwnames
[] = { "self","label", NULL
};
2057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2067 #if PYTHON_API_VERSION >= 1009
2068 char* tmpPtr
; int tmpSize
;
2069 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2070 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2073 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2075 _arg1
= new wxString(tmpPtr
, tmpSize
);
2077 if (!PyString_Check(_obj1
)) {
2078 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2081 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2085 wxPy_BEGIN_ALLOW_THREADS
;
2086 wxWindow_SetLabel(_arg0
,*_arg1
);
2088 wxPy_END_ALLOW_THREADS
;
2089 if (PyErr_Occurred()) return NULL
;
2090 } Py_INCREF(Py_None
);
2091 _resultobj
= Py_None
;
2099 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2100 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2101 PyObject
* _resultobj
;
2104 PyObject
* _argo0
= 0;
2105 char *_kwnames
[] = { "self", NULL
};
2108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2118 wxPy_BEGIN_ALLOW_THREADS
;
2119 _result
= new wxString (wxWindow_GetName(_arg0
));
2121 wxPy_END_ALLOW_THREADS
;
2122 if (PyErr_Occurred()) return NULL
;
2124 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2132 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2133 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2134 PyObject
* _resultobj
;
2137 PyObject
* _argo0
= 0;
2138 char *_kwnames
[] = { "self", NULL
};
2141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2151 wxPy_BEGIN_ALLOW_THREADS
;
2152 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2154 wxPy_END_ALLOW_THREADS
;
2155 if (PyErr_Occurred()) return NULL
;
2156 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2160 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2161 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2162 PyObject
* _resultobj
;
2168 PyObject
* _argo0
= 0;
2169 char *_kwnames
[] = { "self", NULL
};
2178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2188 wxPy_BEGIN_ALLOW_THREADS
;
2189 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2191 wxPy_END_ALLOW_THREADS
;
2192 if (PyErr_Occurred()) return NULL
;
2193 } Py_INCREF(Py_None
);
2194 _resultobj
= Py_None
;
2197 o
= PyInt_FromLong((long) (*_arg1
));
2198 _resultobj
= t_output_helper(_resultobj
, o
);
2202 o
= PyInt_FromLong((long) (*_arg2
));
2203 _resultobj
= t_output_helper(_resultobj
, o
);
2208 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2209 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2210 PyObject
* _resultobj
;
2213 PyObject
* _argo0
= 0;
2214 char *_kwnames
[] = { "self", NULL
};
2218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2228 wxPy_BEGIN_ALLOW_THREADS
;
2229 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2231 wxPy_END_ALLOW_THREADS
;
2232 if (PyErr_Occurred()) return NULL
;
2233 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2234 _resultobj
= Py_BuildValue("s",_ptemp
);
2238 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2239 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2240 PyObject
* _resultobj
;
2243 PyObject
* _argo0
= 0;
2244 char *_kwnames
[] = { "self", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2258 wxPy_BEGIN_ALLOW_THREADS
;
2259 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2261 wxPy_END_ALLOW_THREADS
;
2262 if (PyErr_Occurred()) return NULL
;
2263 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2264 _resultobj
= Py_BuildValue("s",_ptemp
);
2268 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2269 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2270 PyObject
* _resultobj
;
2274 PyObject
* _argo0
= 0;
2275 char *_kwnames
[] = { "self","orientation", NULL
};
2278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2288 wxPy_BEGIN_ALLOW_THREADS
;
2289 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2291 wxPy_END_ALLOW_THREADS
;
2292 if (PyErr_Occurred()) return NULL
;
2293 } _resultobj
= Py_BuildValue("i",_result
);
2297 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2298 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2299 PyObject
* _resultobj
;
2303 PyObject
* _argo0
= 0;
2304 char *_kwnames
[] = { "self","orientation", NULL
};
2307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2317 wxPy_BEGIN_ALLOW_THREADS
;
2318 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2320 wxPy_END_ALLOW_THREADS
;
2321 if (PyErr_Occurred()) return NULL
;
2322 } _resultobj
= Py_BuildValue("i",_result
);
2326 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2327 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2328 PyObject
* _resultobj
;
2332 PyObject
* _argo0
= 0;
2333 char *_kwnames
[] = { "self","orientation", NULL
};
2336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2346 wxPy_BEGIN_ALLOW_THREADS
;
2347 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2349 wxPy_END_ALLOW_THREADS
;
2350 if (PyErr_Occurred()) return NULL
;
2351 } _resultobj
= Py_BuildValue("i",_result
);
2355 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2356 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2357 PyObject
* _resultobj
;
2363 PyObject
* _argo0
= 0;
2364 char *_kwnames
[] = { "self", NULL
};
2373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2383 wxPy_BEGIN_ALLOW_THREADS
;
2384 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2386 wxPy_END_ALLOW_THREADS
;
2387 if (PyErr_Occurred()) return NULL
;
2388 } Py_INCREF(Py_None
);
2389 _resultobj
= Py_None
;
2392 o
= PyInt_FromLong((long) (*_arg1
));
2393 _resultobj
= t_output_helper(_resultobj
, o
);
2397 o
= PyInt_FromLong((long) (*_arg2
));
2398 _resultobj
= t_output_helper(_resultobj
, o
);
2403 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2404 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2405 PyObject
* _resultobj
;
2408 PyObject
* _argo0
= 0;
2409 char *_kwnames
[] = { "self", NULL
};
2413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2423 wxPy_BEGIN_ALLOW_THREADS
;
2424 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2426 wxPy_END_ALLOW_THREADS
;
2427 if (PyErr_Occurred()) return NULL
;
2428 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2429 _resultobj
= Py_BuildValue("s",_ptemp
);
2433 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2434 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2435 PyObject
* _resultobj
;
2442 PyObject
* _argo0
= 0;
2443 PyObject
* _obj1
= 0;
2444 char *_kwnames
[] = { "self","string", NULL
};
2453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2463 #if PYTHON_API_VERSION >= 1009
2464 char* tmpPtr
; int tmpSize
;
2465 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2466 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2469 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2471 _arg1
= new wxString(tmpPtr
, tmpSize
);
2473 if (!PyString_Check(_obj1
)) {
2474 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2477 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2481 wxPy_BEGIN_ALLOW_THREADS
;
2482 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2484 wxPy_END_ALLOW_THREADS
;
2485 if (PyErr_Occurred()) return NULL
;
2486 } Py_INCREF(Py_None
);
2487 _resultobj
= Py_None
;
2490 o
= PyInt_FromLong((long) (*_arg2
));
2491 _resultobj
= t_output_helper(_resultobj
, o
);
2495 o
= PyInt_FromLong((long) (*_arg3
));
2496 _resultobj
= t_output_helper(_resultobj
, o
);
2505 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2506 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2507 PyObject
* _resultobj
;
2518 wxFont
* _arg6
= (wxFont
*) NULL
;
2519 PyObject
* _argo0
= 0;
2520 PyObject
* _obj1
= 0;
2521 PyObject
* _argo6
= 0;
2522 char *_kwnames
[] = { "self","string","font", NULL
};
2537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2540 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2541 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2547 #if PYTHON_API_VERSION >= 1009
2548 char* tmpPtr
; int tmpSize
;
2549 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2550 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2553 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2555 _arg1
= new wxString(tmpPtr
, tmpSize
);
2557 if (!PyString_Check(_obj1
)) {
2558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2561 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2565 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2566 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2572 wxPy_BEGIN_ALLOW_THREADS
;
2573 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2575 wxPy_END_ALLOW_THREADS
;
2576 if (PyErr_Occurred()) return NULL
;
2577 } Py_INCREF(Py_None
);
2578 _resultobj
= Py_None
;
2581 o
= PyInt_FromLong((long) (*_arg2
));
2582 _resultobj
= t_output_helper(_resultobj
, o
);
2586 o
= PyInt_FromLong((long) (*_arg3
));
2587 _resultobj
= t_output_helper(_resultobj
, o
);
2591 o
= PyInt_FromLong((long) (*_arg4
));
2592 _resultobj
= t_output_helper(_resultobj
, o
);
2596 o
= PyInt_FromLong((long) (*_arg5
));
2597 _resultobj
= t_output_helper(_resultobj
, o
);
2606 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2607 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2608 PyObject
* _resultobj
;
2611 PyObject
* _argo0
= 0;
2612 char *_kwnames
[] = { "self", NULL
};
2615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2625 wxPy_BEGIN_ALLOW_THREADS
;
2626 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2628 wxPy_END_ALLOW_THREADS
;
2629 if (PyErr_Occurred()) return NULL
;
2631 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2639 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2640 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2641 PyObject
* _resultobj
;
2644 PyObject
* _argo0
= 0;
2645 char *_kwnames
[] = { "self", NULL
};
2649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2659 wxPy_BEGIN_ALLOW_THREADS
;
2660 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2662 wxPy_END_ALLOW_THREADS
;
2663 if (PyErr_Occurred()) return NULL
;
2664 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2665 _resultobj
= Py_BuildValue("s",_ptemp
);
2669 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2670 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2671 PyObject
* _resultobj
;
2674 PyObject
* _argo0
= 0;
2675 char *_kwnames
[] = { "self", NULL
};
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2688 wxPy_BEGIN_ALLOW_THREADS
;
2689 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2691 wxPy_END_ALLOW_THREADS
;
2692 if (PyErr_Occurred()) return NULL
;
2693 } _resultobj
= Py_BuildValue("l",_result
);
2697 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2698 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2699 PyObject
* _resultobj
;
2702 PyObject
* _argo0
= 0;
2703 char *_kwnames
[] = { "self","style", NULL
};
2706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2716 wxPy_BEGIN_ALLOW_THREADS
;
2717 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2719 wxPy_END_ALLOW_THREADS
;
2720 if (PyErr_Occurred()) return NULL
;
2721 } Py_INCREF(Py_None
);
2722 _resultobj
= Py_None
;
2726 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2727 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2728 PyObject
* _resultobj
;
2731 PyObject
* _argo0
= 0;
2732 char *_kwnames
[] = { "self","style", NULL
};
2735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2745 wxPy_BEGIN_ALLOW_THREADS
;
2746 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2748 wxPy_END_ALLOW_THREADS
;
2749 if (PyErr_Occurred()) return NULL
;
2750 } Py_INCREF(Py_None
);
2751 _resultobj
= Py_None
;
2755 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2756 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2757 PyObject
* _resultobj
;
2760 PyObject
* _argo0
= 0;
2761 char *_kwnames
[] = { "self", NULL
};
2764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2774 wxPy_BEGIN_ALLOW_THREADS
;
2775 _result
= (bool )wxWindow_Hide(_arg0
);
2777 wxPy_END_ALLOW_THREADS
;
2778 if (PyErr_Occurred()) return NULL
;
2779 } _resultobj
= Py_BuildValue("i",_result
);
2783 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2784 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2785 PyObject
* _resultobj
;
2787 PyObject
* _argo0
= 0;
2788 char *_kwnames
[] = { "self", NULL
};
2791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2801 wxPy_BEGIN_ALLOW_THREADS
;
2802 wxWindow_InitDialog(_arg0
);
2804 wxPy_END_ALLOW_THREADS
;
2805 if (PyErr_Occurred()) return NULL
;
2806 } Py_INCREF(Py_None
);
2807 _resultobj
= Py_None
;
2811 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2812 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2813 PyObject
* _resultobj
;
2816 PyObject
* _argo0
= 0;
2817 char *_kwnames
[] = { "self", NULL
};
2820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2830 wxPy_BEGIN_ALLOW_THREADS
;
2831 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2833 wxPy_END_ALLOW_THREADS
;
2834 if (PyErr_Occurred()) return NULL
;
2835 } _resultobj
= Py_BuildValue("i",_result
);
2839 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2840 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2841 PyObject
* _resultobj
;
2846 int _arg3
= (int ) 0;
2847 int _arg4
= (int ) 0;
2848 PyObject
* _argo0
= 0;
2849 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2862 wxPy_BEGIN_ALLOW_THREADS
;
2863 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2865 wxPy_END_ALLOW_THREADS
;
2866 if (PyErr_Occurred()) return NULL
;
2867 } _resultobj
= Py_BuildValue("i",_result
);
2871 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2872 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2873 PyObject
* _resultobj
;
2877 PyObject
* _argo0
= 0;
2879 PyObject
* _obj1
= 0;
2880 char *_kwnames
[] = { "self","pt", NULL
};
2883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2894 if (! wxPoint_helper(_obj1
, &_arg1
))
2898 wxPy_BEGIN_ALLOW_THREADS
;
2899 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2901 wxPy_END_ALLOW_THREADS
;
2902 if (PyErr_Occurred()) return NULL
;
2903 } _resultobj
= Py_BuildValue("i",_result
);
2907 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2908 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2909 PyObject
* _resultobj
;
2913 PyObject
* _argo0
= 0;
2915 PyObject
* _obj1
= 0;
2916 char *_kwnames
[] = { "self","rect", NULL
};
2919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2930 if (! wxRect_helper(_obj1
, &_arg1
))
2934 wxPy_BEGIN_ALLOW_THREADS
;
2935 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2937 wxPy_END_ALLOW_THREADS
;
2938 if (PyErr_Occurred()) return NULL
;
2939 } _resultobj
= Py_BuildValue("i",_result
);
2943 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2944 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2945 PyObject
* _resultobj
;
2948 PyObject
* _argo0
= 0;
2949 char *_kwnames
[] = { "self", NULL
};
2952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2962 wxPy_BEGIN_ALLOW_THREADS
;
2963 _result
= (bool )wxWindow_IsRetained(_arg0
);
2965 wxPy_END_ALLOW_THREADS
;
2966 if (PyErr_Occurred()) return NULL
;
2967 } _resultobj
= Py_BuildValue("i",_result
);
2971 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2972 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2973 PyObject
* _resultobj
;
2976 PyObject
* _argo0
= 0;
2977 char *_kwnames
[] = { "self", NULL
};
2980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2990 wxPy_BEGIN_ALLOW_THREADS
;
2991 _result
= (bool )wxWindow_IsShown(_arg0
);
2993 wxPy_END_ALLOW_THREADS
;
2994 if (PyErr_Occurred()) return NULL
;
2995 } _resultobj
= Py_BuildValue("i",_result
);
2999 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3000 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3001 PyObject
* _resultobj
;
3004 PyObject
* _argo0
= 0;
3005 char *_kwnames
[] = { "self", NULL
};
3008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
3011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3018 wxPy_BEGIN_ALLOW_THREADS
;
3019 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
3021 wxPy_END_ALLOW_THREADS
;
3022 if (PyErr_Occurred()) return NULL
;
3023 } _resultobj
= Py_BuildValue("i",_result
);
3027 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3028 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3029 PyObject
* _resultobj
;
3031 PyObject
* _argo0
= 0;
3032 char *_kwnames
[] = { "self", NULL
};
3035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
3038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3045 wxPy_BEGIN_ALLOW_THREADS
;
3046 wxWindow_Layout(_arg0
);
3048 wxPy_END_ALLOW_THREADS
;
3049 if (PyErr_Occurred()) return NULL
;
3050 } Py_INCREF(Py_None
);
3051 _resultobj
= Py_None
;
3055 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3056 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3057 PyObject
* _resultobj
;
3062 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3063 PyObject
* _argo0
= 0;
3064 PyObject
* _argo1
= 0;
3065 PyObject
* _obj2
= 0;
3066 PyObject
* _argo3
= 0;
3067 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3080 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3081 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3087 #if PYTHON_API_VERSION >= 1009
3088 char* tmpPtr
; int tmpSize
;
3089 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3090 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3093 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3095 _arg2
= new wxString(tmpPtr
, tmpSize
);
3097 if (!PyString_Check(_obj2
)) {
3098 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3101 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3105 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3106 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3112 wxPy_BEGIN_ALLOW_THREADS
;
3113 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3115 wxPy_END_ALLOW_THREADS
;
3116 if (PyErr_Occurred()) return NULL
;
3117 } _resultobj
= Py_BuildValue("i",_result
);
3125 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3126 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3127 PyObject
* _resultobj
;
3129 PyObject
* _argo0
= 0;
3130 char *_kwnames
[] = { "self", NULL
};
3133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3143 wxPy_BEGIN_ALLOW_THREADS
;
3144 wxWindow_Lower(_arg0
);
3146 wxPy_END_ALLOW_THREADS
;
3147 if (PyErr_Occurred()) return NULL
;
3148 } Py_INCREF(Py_None
);
3149 _resultobj
= Py_None
;
3153 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3154 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3155 PyObject
* _resultobj
;
3157 bool _arg1
= (bool ) TRUE
;
3158 PyObject
* _argo0
= 0;
3159 int tempbool1
= (int) TRUE
;
3160 char *_kwnames
[] = { "self","flag", NULL
};
3163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3172 _arg1
= (bool ) tempbool1
;
3174 wxPy_BEGIN_ALLOW_THREADS
;
3175 wxWindow_MakeModal(_arg0
,_arg1
);
3177 wxPy_END_ALLOW_THREADS
;
3178 if (PyErr_Occurred()) return NULL
;
3179 } Py_INCREF(Py_None
);
3180 _resultobj
= Py_None
;
3184 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3185 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3186 PyObject
* _resultobj
;
3190 PyObject
* _argo0
= 0;
3191 char *_kwnames
[] = { "self","x","y", NULL
};
3194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3204 wxPy_BEGIN_ALLOW_THREADS
;
3205 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3207 wxPy_END_ALLOW_THREADS
;
3208 if (PyErr_Occurred()) return NULL
;
3209 } Py_INCREF(Py_None
);
3210 _resultobj
= Py_None
;
3214 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3215 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3216 PyObject
* _resultobj
;
3219 PyObject
* _argo0
= 0;
3221 PyObject
* _obj1
= 0;
3222 char *_kwnames
[] = { "self","point", NULL
};
3225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3236 if (! wxPoint_helper(_obj1
, &_arg1
))
3240 wxPy_BEGIN_ALLOW_THREADS
;
3241 wxWindow_Move(_arg0
,*_arg1
);
3243 wxPy_END_ALLOW_THREADS
;
3244 if (PyErr_Occurred()) return NULL
;
3245 } Py_INCREF(Py_None
);
3246 _resultobj
= Py_None
;
3250 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3251 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3252 PyObject
* _resultobj
;
3253 wxEvtHandler
* _result
;
3255 bool _arg1
= (bool ) FALSE
;
3256 PyObject
* _argo0
= 0;
3257 int tempbool1
= (int) FALSE
;
3258 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3270 _arg1
= (bool ) tempbool1
;
3272 wxPy_BEGIN_ALLOW_THREADS
;
3273 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3275 wxPy_END_ALLOW_THREADS
;
3276 if (PyErr_Occurred()) return NULL
;
3277 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3281 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3282 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3283 PyObject
* _resultobj
;
3285 wxEvtHandler
* _arg1
;
3286 PyObject
* _argo0
= 0;
3287 PyObject
* _argo1
= 0;
3288 char *_kwnames
[] = { "self","handler", NULL
};
3291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3301 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3302 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3308 wxPy_BEGIN_ALLOW_THREADS
;
3309 wxWindow_PushEventHandler(_arg0
,_arg1
);
3311 wxPy_END_ALLOW_THREADS
;
3312 if (PyErr_Occurred()) return NULL
;
3313 } Py_INCREF(Py_None
);
3314 _resultobj
= Py_None
;
3318 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3319 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3320 PyObject
* _resultobj
;
3326 PyObject
* _argo0
= 0;
3327 PyObject
* _argo1
= 0;
3328 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3341 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3342 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3348 wxPy_BEGIN_ALLOW_THREADS
;
3349 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3351 wxPy_END_ALLOW_THREADS
;
3352 if (PyErr_Occurred()) return NULL
;
3353 } _resultobj
= Py_BuildValue("i",_result
);
3357 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3358 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3359 PyObject
* _resultobj
;
3364 PyObject
* _argo0
= 0;
3365 PyObject
* _argo1
= 0;
3367 PyObject
* _obj2
= 0;
3368 char *_kwnames
[] = { "self","menu","pos", NULL
};
3371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3381 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3382 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3389 if (! wxPoint_helper(_obj2
, &_arg2
))
3393 wxPy_BEGIN_ALLOW_THREADS
;
3394 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3396 wxPy_END_ALLOW_THREADS
;
3397 if (PyErr_Occurred()) return NULL
;
3398 } _resultobj
= Py_BuildValue("i",_result
);
3402 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3403 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3404 PyObject
* _resultobj
;
3406 PyObject
* _argo0
= 0;
3407 char *_kwnames
[] = { "self", NULL
};
3410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3420 wxPy_BEGIN_ALLOW_THREADS
;
3421 wxWindow_Raise(_arg0
);
3423 wxPy_END_ALLOW_THREADS
;
3424 if (PyErr_Occurred()) return NULL
;
3425 } Py_INCREF(Py_None
);
3426 _resultobj
= Py_None
;
3430 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3431 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3432 PyObject
* _resultobj
;
3434 bool _arg1
= (bool ) TRUE
;
3435 wxRect
* _arg2
= (wxRect
*) NULL
;
3436 PyObject
* _argo0
= 0;
3437 int tempbool1
= (int) TRUE
;
3439 PyObject
* _obj2
= 0;
3440 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3452 _arg1
= (bool ) tempbool1
;
3456 if (! wxRect_helper(_obj2
, &_arg2
))
3460 wxPy_BEGIN_ALLOW_THREADS
;
3461 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3463 wxPy_END_ALLOW_THREADS
;
3464 if (PyErr_Occurred()) return NULL
;
3465 } Py_INCREF(Py_None
);
3466 _resultobj
= Py_None
;
3470 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3471 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3472 PyObject
* _resultobj
;
3475 PyObject
* _argo0
= 0;
3477 PyObject
* _obj1
= 0;
3478 char *_kwnames
[] = { "self","rect", NULL
};
3481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3492 if (! wxRect_helper(_obj1
, &_arg1
))
3496 wxPy_BEGIN_ALLOW_THREADS
;
3497 wxWindow_RefreshRect(_arg0
,*_arg1
);
3499 wxPy_END_ALLOW_THREADS
;
3500 if (PyErr_Occurred()) return NULL
;
3501 } Py_INCREF(Py_None
);
3502 _resultobj
= Py_None
;
3506 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3507 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3508 PyObject
* _resultobj
;
3510 PyObject
* _argo0
= 0;
3511 char *_kwnames
[] = { "self", NULL
};
3514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3524 wxPy_BEGIN_ALLOW_THREADS
;
3525 wxWindow_ReleaseMouse(_arg0
);
3527 wxPy_END_ALLOW_THREADS
;
3528 if (PyErr_Occurred()) return NULL
;
3529 } Py_INCREF(Py_None
);
3530 _resultobj
= Py_None
;
3534 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3535 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3536 PyObject
* _resultobj
;
3539 PyObject
* _argo0
= 0;
3540 PyObject
* _argo1
= 0;
3541 char *_kwnames
[] = { "self","child", NULL
};
3544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3554 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3555 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3561 wxPy_BEGIN_ALLOW_THREADS
;
3562 wxWindow_RemoveChild(_arg0
,_arg1
);
3564 wxPy_END_ALLOW_THREADS
;
3565 if (PyErr_Occurred()) return NULL
;
3566 } Py_INCREF(Py_None
);
3567 _resultobj
= Py_None
;
3571 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3572 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3573 PyObject
* _resultobj
;
3577 PyObject
* _argo0
= 0;
3578 PyObject
* _argo1
= 0;
3579 char *_kwnames
[] = { "self","newParent", NULL
};
3582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3592 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3593 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3599 wxPy_BEGIN_ALLOW_THREADS
;
3600 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3602 wxPy_END_ALLOW_THREADS
;
3603 if (PyErr_Occurred()) return NULL
;
3604 } _resultobj
= Py_BuildValue("i",_result
);
3608 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3609 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3610 PyObject
* _resultobj
;
3614 PyObject
* _argo0
= 0;
3616 PyObject
* _obj1
= 0;
3618 PyObject
* _obj2
= 0;
3619 char *_kwnames
[] = { "self","x","y", NULL
};
3622 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3625 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3626 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3627 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3632 temp
= (int) PyInt_AsLong(_obj1
);
3636 temp0
= (int) PyInt_AsLong(_obj2
);
3640 wxPy_BEGIN_ALLOW_THREADS
;
3641 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3643 wxPy_END_ALLOW_THREADS
;
3644 if (PyErr_Occurred()) return NULL
;
3645 } Py_INCREF(Py_None
);
3646 _resultobj
= Py_None
;
3649 o
= PyInt_FromLong((long) (*_arg1
));
3650 _resultobj
= t_output_helper(_resultobj
, o
);
3654 o
= PyInt_FromLong((long) (*_arg2
));
3655 _resultobj
= t_output_helper(_resultobj
, o
);
3660 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3661 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3662 PyObject
* _resultobj
;
3666 PyObject
* _argo0
= 0;
3668 PyObject
* _obj1
= 0;
3669 char *_kwnames
[] = { "self","pt", NULL
};
3673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3684 if (! wxPoint_helper(_obj1
, &_arg1
))
3688 wxPy_BEGIN_ALLOW_THREADS
;
3689 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3691 wxPy_END_ALLOW_THREADS
;
3692 if (PyErr_Occurred()) return NULL
;
3693 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3694 _resultobj
= Py_BuildValue("s",_ptemp
);
3698 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3699 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3700 PyObject
* _resultobj
;
3704 wxRect
* _arg3
= (wxRect
*) NULL
;
3705 PyObject
* _argo0
= 0;
3707 PyObject
* _obj3
= 0;
3708 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3723 if (! wxRect_helper(_obj3
, &_arg3
))
3727 wxPy_BEGIN_ALLOW_THREADS
;
3728 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3730 wxPy_END_ALLOW_THREADS
;
3731 if (PyErr_Occurred()) return NULL
;
3732 } Py_INCREF(Py_None
);
3733 _resultobj
= Py_None
;
3737 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3738 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3739 PyObject
* _resultobj
;
3742 PyObject
* _argo0
= 0;
3744 char *_kwnames
[] = { "self","autoLayout", NULL
};
3747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3756 _arg1
= (bool ) tempbool1
;
3758 wxPy_BEGIN_ALLOW_THREADS
;
3759 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3761 wxPy_END_ALLOW_THREADS
;
3762 if (PyErr_Occurred()) return NULL
;
3763 } Py_INCREF(Py_None
);
3764 _resultobj
= Py_None
;
3768 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3769 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3770 PyObject
* _resultobj
;
3773 PyObject
* _argo0
= 0;
3774 char *_kwnames
[] = { "self", NULL
};
3777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3787 wxPy_BEGIN_ALLOW_THREADS
;
3788 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3790 wxPy_END_ALLOW_THREADS
;
3791 if (PyErr_Occurred()) return NULL
;
3792 } _resultobj
= Py_BuildValue("i",_result
);
3796 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3797 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3798 PyObject
* _resultobj
;
3801 PyObject
* _argo0
= 0;
3803 PyObject
* _obj1
= 0;
3804 char *_kwnames
[] = { "self","colour", NULL
};
3807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3818 if (! wxColour_helper(_obj1
, &_arg1
))
3822 wxPy_BEGIN_ALLOW_THREADS
;
3823 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3825 wxPy_END_ALLOW_THREADS
;
3826 if (PyErr_Occurred()) return NULL
;
3827 } Py_INCREF(Py_None
);
3828 _resultobj
= Py_None
;
3832 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3833 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3834 PyObject
* _resultobj
;
3836 wxLayoutConstraints
* _arg1
;
3837 PyObject
* _argo0
= 0;
3838 PyObject
* _argo1
= 0;
3839 char *_kwnames
[] = { "self","constraints", NULL
};
3842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3852 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3853 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3859 wxPy_BEGIN_ALLOW_THREADS
;
3860 wxWindow_SetConstraints(_arg0
,_arg1
);
3862 wxPy_END_ALLOW_THREADS
;
3863 if (PyErr_Occurred()) return NULL
;
3864 } Py_INCREF(Py_None
);
3865 _resultobj
= Py_None
;
3869 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3870 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3871 PyObject
* _resultobj
;
3873 wxLayoutConstraints
* _arg1
;
3874 PyObject
* _argo0
= 0;
3875 PyObject
* _argo1
= 0;
3876 char *_kwnames
[] = { "self","constraints", NULL
};
3879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3889 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3890 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3896 wxPy_BEGIN_ALLOW_THREADS
;
3897 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3899 wxPy_END_ALLOW_THREADS
;
3900 if (PyErr_Occurred()) return NULL
;
3901 } Py_INCREF(Py_None
);
3902 _resultobj
= Py_None
;
3906 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3907 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3908 PyObject
* _resultobj
;
3910 PyObject
* _argo0
= 0;
3911 char *_kwnames
[] = { "self", NULL
};
3914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3924 wxPy_BEGIN_ALLOW_THREADS
;
3925 wxWindow_SetFocus(_arg0
);
3927 wxPy_END_ALLOW_THREADS
;
3928 if (PyErr_Occurred()) return NULL
;
3929 } Py_INCREF(Py_None
);
3930 _resultobj
= Py_None
;
3934 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3935 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3936 PyObject
* _resultobj
;
3939 PyObject
* _argo0
= 0;
3940 char *_kwnames
[] = { "self", NULL
};
3943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3953 wxPy_BEGIN_ALLOW_THREADS
;
3954 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3956 wxPy_END_ALLOW_THREADS
;
3957 if (PyErr_Occurred()) return NULL
;
3958 } _resultobj
= Py_BuildValue("i",_result
);
3962 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3963 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3964 PyObject
* _resultobj
;
3967 PyObject
* _argo0
= 0;
3968 PyObject
* _argo1
= 0;
3969 char *_kwnames
[] = { "self","font", NULL
};
3972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3989 wxPy_BEGIN_ALLOW_THREADS
;
3990 wxWindow_SetFont(_arg0
,*_arg1
);
3992 wxPy_END_ALLOW_THREADS
;
3993 if (PyErr_Occurred()) return NULL
;
3994 } Py_INCREF(Py_None
);
3995 _resultobj
= Py_None
;
3999 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4000 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4001 PyObject
* _resultobj
;
4004 PyObject
* _argo0
= 0;
4006 PyObject
* _obj1
= 0;
4007 char *_kwnames
[] = { "self","colour", NULL
};
4010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
4013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4021 if (! wxColour_helper(_obj1
, &_arg1
))
4025 wxPy_BEGIN_ALLOW_THREADS
;
4026 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
4028 wxPy_END_ALLOW_THREADS
;
4029 if (PyErr_Occurred()) return NULL
;
4030 } Py_INCREF(Py_None
);
4031 _resultobj
= Py_None
;
4035 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4036 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4037 PyObject
* _resultobj
;
4040 PyObject
* _argo0
= 0;
4041 char *_kwnames
[] = { "self","id", NULL
};
4044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
4047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4054 wxPy_BEGIN_ALLOW_THREADS
;
4055 wxWindow_SetId(_arg0
,_arg1
);
4057 wxPy_END_ALLOW_THREADS
;
4058 if (PyErr_Occurred()) return NULL
;
4059 } Py_INCREF(Py_None
);
4060 _resultobj
= Py_None
;
4064 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4065 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4066 PyObject
* _resultobj
;
4069 PyObject
* _argo0
= 0;
4070 PyObject
* _obj1
= 0;
4071 char *_kwnames
[] = { "self","name", NULL
};
4074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4084 #if PYTHON_API_VERSION >= 1009
4085 char* tmpPtr
; int tmpSize
;
4086 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4087 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4090 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4092 _arg1
= new wxString(tmpPtr
, tmpSize
);
4094 if (!PyString_Check(_obj1
)) {
4095 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4098 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4102 wxPy_BEGIN_ALLOW_THREADS
;
4103 wxWindow_SetName(_arg0
,*_arg1
);
4105 wxPy_END_ALLOW_THREADS
;
4106 if (PyErr_Occurred()) return NULL
;
4107 } Py_INCREF(Py_None
);
4108 _resultobj
= Py_None
;
4116 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4117 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4118 PyObject
* _resultobj
;
4124 int _arg5
= (int ) TRUE
;
4125 PyObject
* _argo0
= 0;
4126 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4139 wxPy_BEGIN_ALLOW_THREADS
;
4140 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4142 wxPy_END_ALLOW_THREADS
;
4143 if (PyErr_Occurred()) return NULL
;
4144 } Py_INCREF(Py_None
);
4145 _resultobj
= Py_None
;
4149 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4150 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4151 PyObject
* _resultobj
;
4155 bool _arg3
= (bool ) TRUE
;
4156 PyObject
* _argo0
= 0;
4157 int tempbool3
= (int) TRUE
;
4158 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4170 _arg3
= (bool ) tempbool3
;
4172 wxPy_BEGIN_ALLOW_THREADS
;
4173 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4175 wxPy_END_ALLOW_THREADS
;
4176 if (PyErr_Occurred()) return NULL
;
4177 } Py_INCREF(Py_None
);
4178 _resultobj
= Py_None
;
4182 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4183 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4184 PyObject
* _resultobj
;
4190 int _arg5
= (int ) wxSIZE_AUTO
;
4191 PyObject
* _argo0
= 0;
4192 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4205 wxPy_BEGIN_ALLOW_THREADS
;
4206 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4208 wxPy_END_ALLOW_THREADS
;
4209 if (PyErr_Occurred()) return NULL
;
4210 } Py_INCREF(Py_None
);
4211 _resultobj
= Py_None
;
4215 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4216 self
->SetSize(size
);
4218 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4219 PyObject
* _resultobj
;
4222 PyObject
* _argo0
= 0;
4224 PyObject
* _obj1
= 0;
4225 char *_kwnames
[] = { "self","size", NULL
};
4228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4239 if (! wxSize_helper(_obj1
, &_arg1
))
4243 wxPy_BEGIN_ALLOW_THREADS
;
4244 wxWindow_SetSize(_arg0
,*_arg1
);
4246 wxPy_END_ALLOW_THREADS
;
4247 if (PyErr_Occurred()) return NULL
;
4248 } Py_INCREF(Py_None
);
4249 _resultobj
= Py_None
;
4253 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4256 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4257 PyObject
* _resultobj
;
4260 PyObject
* _argo0
= 0;
4262 PyObject
* _obj1
= 0;
4263 char *_kwnames
[] = { "self","pos", NULL
};
4266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4277 if (! wxPoint_helper(_obj1
, &_arg1
))
4281 wxPy_BEGIN_ALLOW_THREADS
;
4282 wxWindow_SetPosition(_arg0
,*_arg1
);
4284 wxPy_END_ALLOW_THREADS
;
4285 if (PyErr_Occurred()) return NULL
;
4286 } Py_INCREF(Py_None
);
4287 _resultobj
= Py_None
;
4291 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4292 self
->SetSize(rect
, sizeFlags
);
4294 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4295 PyObject
* _resultobj
;
4298 int _arg2
= (int ) wxSIZE_AUTO
;
4299 PyObject
* _argo0
= 0;
4301 PyObject
* _obj1
= 0;
4302 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4316 if (! wxRect_helper(_obj1
, &_arg1
))
4320 wxPy_BEGIN_ALLOW_THREADS
;
4321 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4323 wxPy_END_ALLOW_THREADS
;
4324 if (PyErr_Occurred()) return NULL
;
4325 } Py_INCREF(Py_None
);
4326 _resultobj
= Py_None
;
4330 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4331 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4332 PyObject
* _resultobj
;
4334 int _arg1
= (int ) -1;
4335 int _arg2
= (int ) -1;
4336 int _arg3
= (int ) -1;
4337 int _arg4
= (int ) -1;
4338 int _arg5
= (int ) -1;
4339 int _arg6
= (int ) -1;
4340 PyObject
* _argo0
= 0;
4341 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4354 wxPy_BEGIN_ALLOW_THREADS
;
4355 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4357 wxPy_END_ALLOW_THREADS
;
4358 if (PyErr_Occurred()) return NULL
;
4359 } Py_INCREF(Py_None
);
4360 _resultobj
= Py_None
;
4364 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4365 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4366 PyObject
* _resultobj
;
4370 PyObject
* _argo0
= 0;
4371 char *_kwnames
[] = { "self","width","height", NULL
};
4374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4384 wxPy_BEGIN_ALLOW_THREADS
;
4385 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4387 wxPy_END_ALLOW_THREADS
;
4388 if (PyErr_Occurred()) return NULL
;
4389 } Py_INCREF(Py_None
);
4390 _resultobj
= Py_None
;
4394 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4395 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4396 PyObject
* _resultobj
;
4399 PyObject
* _argo0
= 0;
4401 PyObject
* _obj1
= 0;
4402 char *_kwnames
[] = { "self","size", NULL
};
4405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4416 if (! wxSize_helper(_obj1
, &_arg1
))
4420 wxPy_BEGIN_ALLOW_THREADS
;
4421 wxWindow_SetClientSize(_arg0
,*_arg1
);
4423 wxPy_END_ALLOW_THREADS
;
4424 if (PyErr_Occurred()) return NULL
;
4425 } Py_INCREF(Py_None
);
4426 _resultobj
= Py_None
;
4430 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4431 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4432 PyObject
* _resultobj
;
4435 PyObject
* _argo0
= 0;
4436 PyObject
* _argo1
= 0;
4437 char *_kwnames
[] = { "self","cursor", NULL
};
4440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4450 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4451 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4457 wxPy_BEGIN_ALLOW_THREADS
;
4458 wxWindow_SetCursor(_arg0
,*_arg1
);
4460 wxPy_END_ALLOW_THREADS
;
4461 if (PyErr_Occurred()) return NULL
;
4462 } Py_INCREF(Py_None
);
4463 _resultobj
= Py_None
;
4467 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4468 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4469 PyObject
* _resultobj
;
4471 wxEvtHandler
* _arg1
;
4472 PyObject
* _argo0
= 0;
4473 PyObject
* _argo1
= 0;
4474 char *_kwnames
[] = { "self","handler", NULL
};
4477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4487 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4488 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4494 wxPy_BEGIN_ALLOW_THREADS
;
4495 wxWindow_SetEventHandler(_arg0
,_arg1
);
4497 wxPy_END_ALLOW_THREADS
;
4498 if (PyErr_Occurred()) return NULL
;
4499 } Py_INCREF(Py_None
);
4500 _resultobj
= Py_None
;
4504 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4505 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4506 PyObject
* _resultobj
;
4509 PyObject
* _argo0
= 0;
4510 char *_kwnames
[] = { "self","exStyle", NULL
};
4513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4523 wxPy_BEGIN_ALLOW_THREADS
;
4524 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4526 wxPy_END_ALLOW_THREADS
;
4527 if (PyErr_Occurred()) return NULL
;
4528 } Py_INCREF(Py_None
);
4529 _resultobj
= Py_None
;
4533 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4534 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4535 PyObject
* _resultobj
;
4538 PyObject
* _argo0
= 0;
4539 PyObject
* _obj1
= 0;
4540 char *_kwnames
[] = { "self","title", NULL
};
4543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4553 #if PYTHON_API_VERSION >= 1009
4554 char* tmpPtr
; int tmpSize
;
4555 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4556 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4559 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4561 _arg1
= new wxString(tmpPtr
, tmpSize
);
4563 if (!PyString_Check(_obj1
)) {
4564 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4567 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4571 wxPy_BEGIN_ALLOW_THREADS
;
4572 wxWindow_SetTitle(_arg0
,*_arg1
);
4574 wxPy_END_ALLOW_THREADS
;
4575 if (PyErr_Occurred()) return NULL
;
4576 } Py_INCREF(Py_None
);
4577 _resultobj
= Py_None
;
4585 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4586 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4587 PyObject
* _resultobj
;
4591 PyObject
* _argo0
= 0;
4593 char *_kwnames
[] = { "self","show", NULL
};
4596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4605 _arg1
= (bool ) tempbool1
;
4607 wxPy_BEGIN_ALLOW_THREADS
;
4608 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4610 wxPy_END_ALLOW_THREADS
;
4611 if (PyErr_Occurred()) return NULL
;
4612 } _resultobj
= Py_BuildValue("i",_result
);
4616 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4617 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4618 PyObject
* _resultobj
;
4621 PyObject
* _argo0
= 0;
4622 char *_kwnames
[] = { "self", NULL
};
4625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4635 wxPy_BEGIN_ALLOW_THREADS
;
4636 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4638 wxPy_END_ALLOW_THREADS
;
4639 if (PyErr_Occurred()) return NULL
;
4640 } _resultobj
= Py_BuildValue("i",_result
);
4644 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4645 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4646 PyObject
* _resultobj
;
4649 PyObject
* _argo0
= 0;
4650 char *_kwnames
[] = { "self", NULL
};
4653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4663 wxPy_BEGIN_ALLOW_THREADS
;
4664 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4666 wxPy_END_ALLOW_THREADS
;
4667 if (PyErr_Occurred()) return NULL
;
4668 } _resultobj
= Py_BuildValue("i",_result
);
4672 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4673 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4674 PyObject
* _resultobj
;
4677 PyObject
* _argo0
= 0;
4678 char *_kwnames
[] = { "self", NULL
};
4681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4691 wxPy_BEGIN_ALLOW_THREADS
;
4692 _result
= (bool )wxWindow_Validate(_arg0
);
4694 wxPy_END_ALLOW_THREADS
;
4695 if (PyErr_Occurred()) return NULL
;
4696 } _resultobj
= Py_BuildValue("i",_result
);
4700 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4701 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4702 PyObject
* _resultobj
;
4706 PyObject
* _argo0
= 0;
4707 char *_kwnames
[] = { "self","x","y", NULL
};
4710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4720 wxPy_BEGIN_ALLOW_THREADS
;
4721 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4723 wxPy_END_ALLOW_THREADS
;
4724 if (PyErr_Occurred()) return NULL
;
4725 } Py_INCREF(Py_None
);
4726 _resultobj
= Py_None
;
4730 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4731 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4732 PyObject
* _resultobj
;
4736 PyObject
* _argo0
= 0;
4738 PyObject
* _obj1
= 0;
4739 char *_kwnames
[] = { "self","pt", NULL
};
4743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4754 if (! wxPoint_helper(_obj1
, &_arg1
))
4758 wxPy_BEGIN_ALLOW_THREADS
;
4759 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4761 wxPy_END_ALLOW_THREADS
;
4762 if (PyErr_Occurred()) return NULL
;
4763 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4764 _resultobj
= Py_BuildValue("s",_ptemp
);
4768 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4769 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4770 PyObject
* _resultobj
;
4774 PyObject
* _argo0
= 0;
4776 PyObject
* _obj1
= 0;
4777 char *_kwnames
[] = { "self","sz", NULL
};
4781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4792 if (! wxSize_helper(_obj1
, &_arg1
))
4796 wxPy_BEGIN_ALLOW_THREADS
;
4797 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4799 wxPy_END_ALLOW_THREADS
;
4800 if (PyErr_Occurred()) return NULL
;
4801 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4802 _resultobj
= Py_BuildValue("s",_ptemp
);
4806 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4807 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4808 PyObject
* _resultobj
;
4812 PyObject
* _argo0
= 0;
4814 PyObject
* _obj1
= 0;
4815 char *_kwnames
[] = { "self","pt", NULL
};
4819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4830 if (! wxPoint_helper(_obj1
, &_arg1
))
4834 wxPy_BEGIN_ALLOW_THREADS
;
4835 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4837 wxPy_END_ALLOW_THREADS
;
4838 if (PyErr_Occurred()) return NULL
;
4839 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4840 _resultobj
= Py_BuildValue("s",_ptemp
);
4844 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4845 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4846 PyObject
* _resultobj
;
4850 PyObject
* _argo0
= 0;
4852 PyObject
* _obj1
= 0;
4853 char *_kwnames
[] = { "self","sz", NULL
};
4857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4868 if (! wxSize_helper(_obj1
, &_arg1
))
4872 wxPy_BEGIN_ALLOW_THREADS
;
4873 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4875 wxPy_END_ALLOW_THREADS
;
4876 if (PyErr_Occurred()) return NULL
;
4877 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4878 _resultobj
= Py_BuildValue("s",_ptemp
);
4882 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4883 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4884 PyObject
* _resultobj
;
4887 PyObject
* _argo0
= 0;
4888 PyObject
* _obj1
= 0;
4889 char *_kwnames
[] = { "self","tip", NULL
};
4892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4902 #if PYTHON_API_VERSION >= 1009
4903 char* tmpPtr
; int tmpSize
;
4904 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4905 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4908 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4910 _arg1
= new wxString(tmpPtr
, tmpSize
);
4912 if (!PyString_Check(_obj1
)) {
4913 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4916 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4920 wxPy_BEGIN_ALLOW_THREADS
;
4921 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4923 wxPy_END_ALLOW_THREADS
;
4924 if (PyErr_Occurred()) return NULL
;
4925 } Py_INCREF(Py_None
);
4926 _resultobj
= Py_None
;
4934 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4935 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4936 PyObject
* _resultobj
;
4939 PyObject
* _argo0
= 0;
4940 PyObject
* _argo1
= 0;
4941 char *_kwnames
[] = { "self","tooltip", NULL
};
4944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4954 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4955 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4961 wxPy_BEGIN_ALLOW_THREADS
;
4962 wxWindow_SetToolTip(_arg0
,_arg1
);
4964 wxPy_END_ALLOW_THREADS
;
4965 if (PyErr_Occurred()) return NULL
;
4966 } Py_INCREF(Py_None
);
4967 _resultobj
= Py_None
;
4971 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4972 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4973 PyObject
* _resultobj
;
4974 wxToolTip
* _result
;
4976 PyObject
* _argo0
= 0;
4977 char *_kwnames
[] = { "self", NULL
};
4980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4990 wxPy_BEGIN_ALLOW_THREADS
;
4991 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4993 wxPy_END_ALLOW_THREADS
;
4994 if (PyErr_Occurred()) return NULL
;
4995 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4999 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
5000 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5001 PyObject
* _resultobj
;
5004 PyObject
* _argo0
= 0;
5005 PyObject
* _argo1
= 0;
5006 char *_kwnames
[] = { "self","sizer", NULL
};
5009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
5012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5019 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5020 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
5021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5026 wxPy_BEGIN_ALLOW_THREADS
;
5027 wxWindow_SetSizer(_arg0
,_arg1
);
5029 wxPy_END_ALLOW_THREADS
;
5030 if (PyErr_Occurred()) return NULL
;
5031 } Py_INCREF(Py_None
);
5032 _resultobj
= Py_None
;
5036 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5037 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5038 PyObject
* _resultobj
;
5041 PyObject
* _argo0
= 0;
5042 char *_kwnames
[] = { "self", NULL
};
5045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
5048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5055 wxPy_BEGIN_ALLOW_THREADS
;
5056 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5058 wxPy_END_ALLOW_THREADS
;
5059 if (PyErr_Occurred()) return NULL
;
5060 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5064 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5065 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5066 PyObject
* _resultobj
;
5067 wxValidator
* _result
;
5069 PyObject
* _argo0
= 0;
5070 char *_kwnames
[] = { "self", NULL
};
5073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5083 wxPy_BEGIN_ALLOW_THREADS
;
5084 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5086 wxPy_END_ALLOW_THREADS
;
5087 if (PyErr_Occurred()) return NULL
;
5088 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5092 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5093 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5094 PyObject
* _resultobj
;
5096 wxValidator
* _arg1
;
5097 PyObject
* _argo0
= 0;
5098 PyObject
* _argo1
= 0;
5099 char *_kwnames
[] = { "self","validator", NULL
};
5102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5112 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5113 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5119 wxPy_BEGIN_ALLOW_THREADS
;
5120 wxWindow_SetValidator(_arg0
,*_arg1
);
5122 wxPy_END_ALLOW_THREADS
;
5123 if (PyErr_Occurred()) return NULL
;
5124 } Py_INCREF(Py_None
);
5125 _resultobj
= Py_None
;
5129 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5130 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5131 PyObject
* _resultobj
;
5133 wxDropTarget
* _arg1
;
5134 PyObject
* _argo0
= 0;
5135 PyObject
* _argo1
= 0;
5136 char *_kwnames
[] = { "self","target", NULL
};
5139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5149 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5150 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5156 wxPy_BEGIN_ALLOW_THREADS
;
5157 wxWindow_SetDropTarget(_arg0
,_arg1
);
5159 wxPy_END_ALLOW_THREADS
;
5160 if (PyErr_Occurred()) return NULL
;
5161 } Py_INCREF(Py_None
);
5162 _resultobj
= Py_None
;
5166 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5167 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5168 PyObject
* _resultobj
;
5169 wxDropTarget
* _result
;
5171 PyObject
* _argo0
= 0;
5172 char *_kwnames
[] = { "self", NULL
};
5176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5186 wxPy_BEGIN_ALLOW_THREADS
;
5187 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5189 wxPy_END_ALLOW_THREADS
;
5190 if (PyErr_Occurred()) return NULL
;
5192 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5193 _resultobj
= Py_BuildValue("s",_ptemp
);
5196 _resultobj
= Py_None
;
5201 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5202 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5203 PyObject
* _resultobj
;
5206 PyObject
* _argo0
= 0;
5207 char *_kwnames
[] = { "self", NULL
};
5211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5221 wxPy_BEGIN_ALLOW_THREADS
;
5222 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5224 wxPy_END_ALLOW_THREADS
;
5225 if (PyErr_Occurred()) return NULL
;
5226 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5227 _resultobj
= Py_BuildValue("s",_ptemp
);
5231 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5232 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5233 PyObject
* _resultobj
;
5236 PyObject
* _argo0
= 0;
5237 PyObject
* _argo1
= 0;
5238 char *_kwnames
[] = { "self","caret", NULL
};
5241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5251 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5252 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5258 wxPy_BEGIN_ALLOW_THREADS
;
5259 wxWindow_SetCaret(_arg0
,_arg1
);
5261 wxPy_END_ALLOW_THREADS
;
5262 if (PyErr_Occurred()) return NULL
;
5263 } Py_INCREF(Py_None
);
5264 _resultobj
= Py_None
;
5268 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5269 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5270 PyObject
* _resultobj
;
5273 PyObject
* _argo0
= 0;
5274 char *_kwnames
[] = { "self", NULL
};
5278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5288 wxPy_BEGIN_ALLOW_THREADS
;
5289 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5291 wxPy_END_ALLOW_THREADS
;
5292 if (PyErr_Occurred()) return NULL
;
5294 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5295 _resultobj
= Py_BuildValue("s",_ptemp
);
5298 _resultobj
= Py_None
;
5303 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5304 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5305 PyObject
* _resultobj
;
5307 PyObject
* _argo0
= 0;
5308 char *_kwnames
[] = { "self", NULL
};
5311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5321 wxPy_BEGIN_ALLOW_THREADS
;
5322 wxWindow_Freeze(_arg0
);
5324 wxPy_END_ALLOW_THREADS
;
5325 if (PyErr_Occurred()) return NULL
;
5326 } Py_INCREF(Py_None
);
5327 _resultobj
= Py_None
;
5331 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5332 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5333 PyObject
* _resultobj
;
5335 PyObject
* _argo0
= 0;
5336 char *_kwnames
[] = { "self", NULL
};
5339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5349 wxPy_BEGIN_ALLOW_THREADS
;
5350 wxWindow_Thaw(_arg0
);
5352 wxPy_END_ALLOW_THREADS
;
5353 if (PyErr_Occurred()) return NULL
;
5354 } Py_INCREF(Py_None
);
5355 _resultobj
= Py_None
;
5359 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5360 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5361 PyObject
* _resultobj
;
5363 PyObject
* _argo0
= 0;
5364 char *_kwnames
[] = { "self", NULL
};
5367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5377 wxPy_BEGIN_ALLOW_THREADS
;
5378 wxWindow_Update(_arg0
);
5380 wxPy_END_ALLOW_THREADS
;
5381 if (PyErr_Occurred()) return NULL
;
5382 } Py_INCREF(Py_None
);
5383 _resultobj
= Py_None
;
5387 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5388 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5389 PyObject
* _resultobj
;
5392 PyObject
* _argo0
= 0;
5393 char *_kwnames
[] = { "self", NULL
};
5396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5406 wxPy_BEGIN_ALLOW_THREADS
;
5407 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5409 wxPy_END_ALLOW_THREADS
;
5410 if (PyErr_Occurred()) return NULL
;
5412 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5420 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5421 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5422 PyObject
* _resultobj
;
5425 PyObject
* _argo0
= 0;
5426 PyObject
* _obj1
= 0;
5427 char *_kwnames
[] = { "self","helpText", NULL
};
5430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5440 #if PYTHON_API_VERSION >= 1009
5441 char* tmpPtr
; int tmpSize
;
5442 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5443 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5446 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5448 _arg1
= new wxString(tmpPtr
, tmpSize
);
5450 if (!PyString_Check(_obj1
)) {
5451 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5454 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5458 wxPy_BEGIN_ALLOW_THREADS
;
5459 wxWindow_SetHelpText(_arg0
,*_arg1
);
5461 wxPy_END_ALLOW_THREADS
;
5462 if (PyErr_Occurred()) return NULL
;
5463 } Py_INCREF(Py_None
);
5464 _resultobj
= Py_None
;
5472 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5473 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5474 PyObject
* _resultobj
;
5478 PyObject
* _argo0
= 0;
5479 char *_kwnames
[] = { "self","lines", NULL
};
5482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5492 wxPy_BEGIN_ALLOW_THREADS
;
5493 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5495 wxPy_END_ALLOW_THREADS
;
5496 if (PyErr_Occurred()) return NULL
;
5497 } _resultobj
= Py_BuildValue("i",_result
);
5501 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5502 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5503 PyObject
* _resultobj
;
5507 PyObject
* _argo0
= 0;
5508 char *_kwnames
[] = { "self","pages", NULL
};
5511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5521 wxPy_BEGIN_ALLOW_THREADS
;
5522 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5524 wxPy_END_ALLOW_THREADS
;
5525 if (PyErr_Occurred()) return NULL
;
5526 } _resultobj
= Py_BuildValue("i",_result
);
5530 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5531 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5532 PyObject
* _resultobj
;
5535 PyObject
* _argo0
= 0;
5536 char *_kwnames
[] = { "self", NULL
};
5539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5549 wxPy_BEGIN_ALLOW_THREADS
;
5550 _result
= (bool )wxWindow_LineUp(_arg0
);
5552 wxPy_END_ALLOW_THREADS
;
5553 if (PyErr_Occurred()) return NULL
;
5554 } _resultobj
= Py_BuildValue("i",_result
);
5558 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5559 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5560 PyObject
* _resultobj
;
5563 PyObject
* _argo0
= 0;
5564 char *_kwnames
[] = { "self", NULL
};
5567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5577 wxPy_BEGIN_ALLOW_THREADS
;
5578 _result
= (bool )wxWindow_LineDown(_arg0
);
5580 wxPy_END_ALLOW_THREADS
;
5581 if (PyErr_Occurred()) return NULL
;
5582 } _resultobj
= Py_BuildValue("i",_result
);
5586 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5587 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5588 PyObject
* _resultobj
;
5591 PyObject
* _argo0
= 0;
5592 char *_kwnames
[] = { "self", NULL
};
5595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5605 wxPy_BEGIN_ALLOW_THREADS
;
5606 _result
= (bool )wxWindow_PageUp(_arg0
);
5608 wxPy_END_ALLOW_THREADS
;
5609 if (PyErr_Occurred()) return NULL
;
5610 } _resultobj
= Py_BuildValue("i",_result
);
5614 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5615 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5616 PyObject
* _resultobj
;
5619 PyObject
* _argo0
= 0;
5620 char *_kwnames
[] = { "self", NULL
};
5623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5633 wxPy_BEGIN_ALLOW_THREADS
;
5634 _result
= (bool )wxWindow_PageDown(_arg0
);
5636 wxPy_END_ALLOW_THREADS
;
5637 if (PyErr_Occurred()) return NULL
;
5638 } _resultobj
= Py_BuildValue("i",_result
);
5642 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5643 PyObject
* _resultobj
;
5645 char *_kwnames
[] = { NULL
};
5648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5651 wxPy_BEGIN_ALLOW_THREADS
;
5652 _result
= (wxWindow
*)wxWindow::FindFocus();
5654 wxPy_END_ALLOW_THREADS
;
5655 if (PyErr_Occurred()) return NULL
;
5656 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5660 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5661 PyObject
* _resultobj
;
5663 char *_kwnames
[] = { NULL
};
5666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5669 wxPy_BEGIN_ALLOW_THREADS
;
5670 _result
= (int )wxWindow::NewControlId();
5672 wxPy_END_ALLOW_THREADS
;
5673 if (PyErr_Occurred()) return NULL
;
5674 } _resultobj
= Py_BuildValue("i",_result
);
5678 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5679 PyObject
* _resultobj
;
5682 char *_kwnames
[] = { "id", NULL
};
5685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5688 wxPy_BEGIN_ALLOW_THREADS
;
5689 _result
= (int )wxWindow::NextControlId(_arg0
);
5691 wxPy_END_ALLOW_THREADS
;
5692 if (PyErr_Occurred()) return NULL
;
5693 } _resultobj
= Py_BuildValue("i",_result
);
5697 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5698 PyObject
* _resultobj
;
5701 char *_kwnames
[] = { "id", NULL
};
5704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5707 wxPy_BEGIN_ALLOW_THREADS
;
5708 _result
= (int )wxWindow::PrevControlId(_arg0
);
5710 wxPy_END_ALLOW_THREADS
;
5711 if (PyErr_Occurred()) return NULL
;
5712 } _resultobj
= Py_BuildValue("i",_result
);
5716 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5717 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5718 PyObject
* _resultobj
;
5720 wxAcceleratorTable
* _arg1
;
5721 PyObject
* _argo0
= 0;
5722 PyObject
* _argo1
= 0;
5723 char *_kwnames
[] = { "self","accel", NULL
};
5726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5736 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5737 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5743 wxPy_BEGIN_ALLOW_THREADS
;
5744 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5746 wxPy_END_ALLOW_THREADS
;
5747 if (PyErr_Occurred()) return NULL
;
5748 } Py_INCREF(Py_None
);
5749 _resultobj
= Py_None
;
5753 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5754 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5755 PyObject
* _resultobj
;
5756 wxAcceleratorTable
* _result
;
5758 PyObject
* _argo0
= 0;
5759 char *_kwnames
[] = { "self", NULL
};
5763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5773 wxPy_BEGIN_ALLOW_THREADS
;
5774 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5776 wxPy_END_ALLOW_THREADS
;
5777 if (PyErr_Occurred()) return NULL
;
5779 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5780 _resultobj
= Py_BuildValue("s",_ptemp
);
5783 _resultobj
= Py_None
;
5788 static void *SwigwxPanelTowxWindow(void *ptr
) {
5791 src
= (wxPanel
*) ptr
;
5792 dest
= (wxWindow
*) src
;
5793 return (void *) dest
;
5796 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5799 src
= (wxPanel
*) ptr
;
5800 dest
= (wxEvtHandler
*) src
;
5801 return (void *) dest
;
5804 static void *SwigwxPanelTowxObject(void *ptr
) {
5807 src
= (wxPanel
*) ptr
;
5808 dest
= (wxObject
*) src
;
5809 return (void *) dest
;
5812 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5813 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5814 PyObject
* _resultobj
;
5818 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5819 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5820 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5821 char * _arg5
= (char *) "panel";
5822 PyObject
* _argo0
= 0;
5824 PyObject
* _obj2
= 0;
5826 PyObject
* _obj3
= 0;
5827 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5843 if (! wxPoint_helper(_obj2
, &_arg2
))
5849 if (! wxSize_helper(_obj3
, &_arg3
))
5853 wxPy_BEGIN_ALLOW_THREADS
;
5854 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5856 wxPy_END_ALLOW_THREADS
;
5857 if (PyErr_Occurred()) return NULL
;
5859 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5860 _resultobj
= Py_BuildValue("s",_ptemp
);
5863 _resultobj
= Py_None
;
5868 #define new_wxPrePanel() (new wxPanel())
5869 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5870 PyObject
* _resultobj
;
5872 char *_kwnames
[] = { NULL
};
5876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5879 wxPy_BEGIN_ALLOW_THREADS
;
5880 _result
= (wxPanel
*)new_wxPrePanel();
5882 wxPy_END_ALLOW_THREADS
;
5883 if (PyErr_Occurred()) return NULL
;
5885 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5886 _resultobj
= Py_BuildValue("s",_ptemp
);
5889 _resultobj
= Py_None
;
5894 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5895 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5896 PyObject
* _resultobj
;
5901 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5902 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5903 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5904 char * _arg6
= (char *) "panel";
5905 PyObject
* _argo0
= 0;
5906 PyObject
* _argo1
= 0;
5908 PyObject
* _obj3
= 0;
5910 PyObject
* _obj4
= 0;
5911 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5924 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5925 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5933 if (! wxPoint_helper(_obj3
, &_arg3
))
5939 if (! wxSize_helper(_obj4
, &_arg4
))
5943 wxPy_BEGIN_ALLOW_THREADS
;
5944 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5946 wxPy_END_ALLOW_THREADS
;
5947 if (PyErr_Occurred()) return NULL
;
5948 } _resultobj
= Py_BuildValue("i",_result
);
5952 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5953 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5954 PyObject
* _resultobj
;
5956 PyObject
* _argo0
= 0;
5957 char *_kwnames
[] = { "self", NULL
};
5960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5970 wxPy_BEGIN_ALLOW_THREADS
;
5971 wxPanel_InitDialog(_arg0
);
5973 wxPy_END_ALLOW_THREADS
;
5974 if (PyErr_Occurred()) return NULL
;
5975 } Py_INCREF(Py_None
);
5976 _resultobj
= Py_None
;
5980 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5981 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5982 PyObject
* _resultobj
;
5985 PyObject
* _argo0
= 0;
5986 char *_kwnames
[] = { "self", NULL
};
5989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5999 wxPy_BEGIN_ALLOW_THREADS
;
6000 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
6002 wxPy_END_ALLOW_THREADS
;
6003 if (PyErr_Occurred()) return NULL
;
6004 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6008 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6009 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6010 PyObject
* _resultobj
;
6013 PyObject
* _argo0
= 0;
6014 PyObject
* _argo1
= 0;
6015 char *_kwnames
[] = { "self","btn", NULL
};
6018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
6021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
6028 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6029 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
6030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
6035 wxPy_BEGIN_ALLOW_THREADS
;
6036 wxPanel_SetDefaultItem(_arg0
,_arg1
);
6038 wxPy_END_ALLOW_THREADS
;
6039 if (PyErr_Occurred()) return NULL
;
6040 } Py_INCREF(Py_None
);
6041 _resultobj
= Py_None
;
6045 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
6046 wxScrolledWindow
*src
;
6048 src
= (wxScrolledWindow
*) ptr
;
6049 dest
= (wxPanel
*) src
;
6050 return (void *) dest
;
6053 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6054 wxScrolledWindow
*src
;
6056 src
= (wxScrolledWindow
*) ptr
;
6057 dest
= (wxWindow
*) src
;
6058 return (void *) dest
;
6061 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6062 wxScrolledWindow
*src
;
6064 src
= (wxScrolledWindow
*) ptr
;
6065 dest
= (wxEvtHandler
*) src
;
6066 return (void *) dest
;
6069 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6070 wxScrolledWindow
*src
;
6072 src
= (wxScrolledWindow
*) ptr
;
6073 dest
= (wxObject
*) src
;
6074 return (void *) dest
;
6077 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6078 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6079 PyObject
* _resultobj
;
6080 wxScrolledWindow
* _result
;
6082 wxWindowID _arg1
= (wxWindowID
) -1;
6083 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6084 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6085 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6086 char * _arg5
= (char *) "scrolledWindow";
6087 PyObject
* _argo0
= 0;
6089 PyObject
* _obj2
= 0;
6091 PyObject
* _obj3
= 0;
6092 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6099 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6100 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6108 if (! wxPoint_helper(_obj2
, &_arg2
))
6114 if (! wxSize_helper(_obj3
, &_arg3
))
6118 wxPy_BEGIN_ALLOW_THREADS
;
6119 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6121 wxPy_END_ALLOW_THREADS
;
6122 if (PyErr_Occurred()) return NULL
;
6124 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6125 _resultobj
= Py_BuildValue("s",_ptemp
);
6128 _resultobj
= Py_None
;
6133 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6134 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6135 PyObject
* _resultobj
;
6136 wxScrolledWindow
* _result
;
6137 char *_kwnames
[] = { NULL
};
6141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6144 wxPy_BEGIN_ALLOW_THREADS
;
6145 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6147 wxPy_END_ALLOW_THREADS
;
6148 if (PyErr_Occurred()) return NULL
;
6150 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6151 _resultobj
= Py_BuildValue("s",_ptemp
);
6154 _resultobj
= Py_None
;
6159 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6160 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6161 PyObject
* _resultobj
;
6163 wxScrolledWindow
* _arg0
;
6165 wxWindowID _arg2
= (wxWindowID
) -1;
6166 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6167 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6168 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6169 char * _arg6
= (char *) "scrolledWindow";
6170 PyObject
* _argo0
= 0;
6171 PyObject
* _argo1
= 0;
6173 PyObject
* _obj3
= 0;
6175 PyObject
* _obj4
= 0;
6176 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6189 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6190 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6198 if (! wxPoint_helper(_obj3
, &_arg3
))
6204 if (! wxSize_helper(_obj4
, &_arg4
))
6208 wxPy_BEGIN_ALLOW_THREADS
;
6209 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6211 wxPy_END_ALLOW_THREADS
;
6212 if (PyErr_Occurred()) return NULL
;
6213 } _resultobj
= Py_BuildValue("i",_result
);
6217 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6218 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6219 PyObject
* _resultobj
;
6220 wxScrolledWindow
* _arg0
;
6223 PyObject
* _argo0
= 0;
6226 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6238 _arg1
= (bool ) tempbool1
;
6239 _arg2
= (bool ) tempbool2
;
6241 wxPy_BEGIN_ALLOW_THREADS
;
6242 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6244 wxPy_END_ALLOW_THREADS
;
6245 if (PyErr_Occurred()) return NULL
;
6246 } Py_INCREF(Py_None
);
6247 _resultobj
= Py_None
;
6251 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6252 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6253 PyObject
* _resultobj
;
6255 wxScrolledWindow
* _arg0
;
6257 PyObject
* _argo0
= 0;
6258 char *_kwnames
[] = { "self","orient", NULL
};
6261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6271 wxPy_BEGIN_ALLOW_THREADS
;
6272 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6274 wxPy_END_ALLOW_THREADS
;
6275 if (PyErr_Occurred()) return NULL
;
6276 } _resultobj
= Py_BuildValue("i",_result
);
6280 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6281 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6282 PyObject
* _resultobj
;
6283 wxScrolledWindow
* _arg0
;
6288 PyObject
* _argo0
= 0;
6289 char *_kwnames
[] = { "self", NULL
};
6298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6308 wxPy_BEGIN_ALLOW_THREADS
;
6309 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6311 wxPy_END_ALLOW_THREADS
;
6312 if (PyErr_Occurred()) return NULL
;
6313 } Py_INCREF(Py_None
);
6314 _resultobj
= Py_None
;
6317 o
= PyInt_FromLong((long) (*_arg1
));
6318 _resultobj
= t_output_helper(_resultobj
, o
);
6322 o
= PyInt_FromLong((long) (*_arg2
));
6323 _resultobj
= t_output_helper(_resultobj
, o
);
6328 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6329 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6330 PyObject
* _resultobj
;
6332 wxScrolledWindow
* _arg0
;
6333 PyObject
* _argo0
= 0;
6334 char *_kwnames
[] = { "self", NULL
};
6337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6347 wxPy_BEGIN_ALLOW_THREADS
;
6348 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6350 wxPy_END_ALLOW_THREADS
;
6351 if (PyErr_Occurred()) return NULL
;
6352 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6356 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6357 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6358 PyObject
* _resultobj
;
6359 wxScrolledWindow
* _arg0
;
6364 PyObject
* _argo0
= 0;
6365 char *_kwnames
[] = { "self", NULL
};
6374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6384 wxPy_BEGIN_ALLOW_THREADS
;
6385 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6387 wxPy_END_ALLOW_THREADS
;
6388 if (PyErr_Occurred()) return NULL
;
6389 } Py_INCREF(Py_None
);
6390 _resultobj
= Py_None
;
6393 o
= PyInt_FromLong((long) (*_arg1
));
6394 _resultobj
= t_output_helper(_resultobj
, o
);
6398 o
= PyInt_FromLong((long) (*_arg2
));
6399 _resultobj
= t_output_helper(_resultobj
, o
);
6404 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6405 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6406 PyObject
* _resultobj
;
6408 wxScrolledWindow
* _arg0
;
6409 PyObject
* _argo0
= 0;
6410 char *_kwnames
[] = { "self", NULL
};
6413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6423 wxPy_BEGIN_ALLOW_THREADS
;
6424 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6426 wxPy_END_ALLOW_THREADS
;
6427 if (PyErr_Occurred()) return NULL
;
6428 } _resultobj
= Py_BuildValue("i",_result
);
6432 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6433 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6434 PyObject
* _resultobj
;
6435 wxScrolledWindow
* _arg0
;
6437 PyObject
* _argo0
= 0;
6438 PyObject
* _argo1
= 0;
6439 char *_kwnames
[] = { "self","dc", NULL
};
6442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6452 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6453 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6459 wxPy_BEGIN_ALLOW_THREADS
;
6460 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6462 wxPy_END_ALLOW_THREADS
;
6463 if (PyErr_Occurred()) return NULL
;
6464 } Py_INCREF(Py_None
);
6465 _resultobj
= Py_None
;
6469 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6470 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6471 PyObject
* _resultobj
;
6472 wxScrolledWindow
* _arg0
;
6475 PyObject
* _argo0
= 0;
6476 char *_kwnames
[] = { "self","x","y", NULL
};
6479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6489 wxPy_BEGIN_ALLOW_THREADS
;
6490 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6492 wxPy_END_ALLOW_THREADS
;
6493 if (PyErr_Occurred()) return NULL
;
6494 } Py_INCREF(Py_None
);
6495 _resultobj
= Py_None
;
6499 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6500 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6501 PyObject
* _resultobj
;
6502 wxScrolledWindow
* _arg0
;
6507 int _arg5
= (int ) 0;
6508 int _arg6
= (int ) 0;
6509 int _arg7
= (int ) FALSE
;
6510 PyObject
* _argo0
= 0;
6511 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6524 wxPy_BEGIN_ALLOW_THREADS
;
6525 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6527 wxPy_END_ALLOW_THREADS
;
6528 if (PyErr_Occurred()) return NULL
;
6529 } Py_INCREF(Py_None
);
6530 _resultobj
= Py_None
;
6534 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6535 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6536 PyObject
* _resultobj
;
6537 wxScrolledWindow
* _arg0
;
6540 PyObject
* _argo0
= 0;
6541 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6554 wxPy_BEGIN_ALLOW_THREADS
;
6555 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6557 wxPy_END_ALLOW_THREADS
;
6558 if (PyErr_Occurred()) return NULL
;
6559 } Py_INCREF(Py_None
);
6560 _resultobj
= Py_None
;
6564 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6565 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6566 PyObject
* _resultobj
;
6567 wxScrolledWindow
* _arg0
;
6569 PyObject
* _argo0
= 0;
6570 PyObject
* _argo1
= 0;
6571 char *_kwnames
[] = { "self","window", NULL
};
6574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6584 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6585 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6591 wxPy_BEGIN_ALLOW_THREADS
;
6592 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6594 wxPy_END_ALLOW_THREADS
;
6595 if (PyErr_Occurred()) return NULL
;
6596 } Py_INCREF(Py_None
);
6597 _resultobj
= Py_None
;
6601 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6602 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6603 PyObject
* _resultobj
;
6604 wxScrolledWindow
* _arg0
;
6609 PyObject
* _argo0
= 0;
6610 char *_kwnames
[] = { "self", NULL
};
6619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6629 wxPy_BEGIN_ALLOW_THREADS
;
6630 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6632 wxPy_END_ALLOW_THREADS
;
6633 if (PyErr_Occurred()) return NULL
;
6634 } Py_INCREF(Py_None
);
6635 _resultobj
= Py_None
;
6638 o
= PyInt_FromLong((long) (*_arg1
));
6639 _resultobj
= t_output_helper(_resultobj
, o
);
6643 o
= PyInt_FromLong((long) (*_arg2
));
6644 _resultobj
= t_output_helper(_resultobj
, o
);
6649 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6650 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6651 PyObject
* _resultobj
;
6652 wxScrolledWindow
* _arg0
;
6659 PyObject
* _argo0
= 0;
6660 char *_kwnames
[] = { "self","x","y", NULL
};
6669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6679 wxPy_BEGIN_ALLOW_THREADS
;
6680 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6682 wxPy_END_ALLOW_THREADS
;
6683 if (PyErr_Occurred()) return NULL
;
6684 } Py_INCREF(Py_None
);
6685 _resultobj
= Py_None
;
6688 o
= PyInt_FromLong((long) (*_arg3
));
6689 _resultobj
= t_output_helper(_resultobj
, o
);
6693 o
= PyInt_FromLong((long) (*_arg4
));
6694 _resultobj
= t_output_helper(_resultobj
, o
);
6699 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6700 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6701 PyObject
* _resultobj
;
6702 wxScrolledWindow
* _arg0
;
6709 PyObject
* _argo0
= 0;
6710 char *_kwnames
[] = { "self","x","y", NULL
};
6719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6729 wxPy_BEGIN_ALLOW_THREADS
;
6730 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6732 wxPy_END_ALLOW_THREADS
;
6733 if (PyErr_Occurred()) return NULL
;
6734 } Py_INCREF(Py_None
);
6735 _resultobj
= Py_None
;
6738 o
= PyInt_FromLong((long) (*_arg3
));
6739 _resultobj
= t_output_helper(_resultobj
, o
);
6743 o
= PyInt_FromLong((long) (*_arg4
));
6744 _resultobj
= t_output_helper(_resultobj
, o
);
6749 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6750 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6751 PyObject
* _resultobj
;
6752 wxScrolledWindow
* _arg0
;
6755 PyObject
* _argo0
= 0;
6756 char *_kwnames
[] = { "self","xs","ys", NULL
};
6759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6769 wxPy_BEGIN_ALLOW_THREADS
;
6770 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6772 wxPy_END_ALLOW_THREADS
;
6773 if (PyErr_Occurred()) return NULL
;
6774 } Py_INCREF(Py_None
);
6775 _resultobj
= Py_None
;
6779 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6780 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6781 PyObject
* _resultobj
;
6783 wxScrolledWindow
* _arg0
;
6784 PyObject
* _argo0
= 0;
6785 char *_kwnames
[] = { "self", NULL
};
6788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6798 wxPy_BEGIN_ALLOW_THREADS
;
6799 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6801 wxPy_END_ALLOW_THREADS
;
6802 if (PyErr_Occurred()) return NULL
;
6803 } _resultobj
= Py_BuildValue("d",_result
);
6807 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6808 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6809 PyObject
* _resultobj
;
6811 wxScrolledWindow
* _arg0
;
6812 PyObject
* _argo0
= 0;
6813 char *_kwnames
[] = { "self", NULL
};
6816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6826 wxPy_BEGIN_ALLOW_THREADS
;
6827 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6829 wxPy_END_ALLOW_THREADS
;
6830 if (PyErr_Occurred()) return NULL
;
6831 } _resultobj
= Py_BuildValue("d",_result
);
6835 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6836 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6837 PyObject
* _resultobj
;
6838 wxScrolledWindow
* _arg0
;
6839 PyObject
* _argo0
= 0;
6840 char *_kwnames
[] = { "self", NULL
};
6843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6853 wxPy_BEGIN_ALLOW_THREADS
;
6854 wxScrolledWindow_AdjustScrollbars(_arg0
);
6856 wxPy_END_ALLOW_THREADS
;
6857 if (PyErr_Occurred()) return NULL
;
6858 } Py_INCREF(Py_None
);
6859 _resultobj
= Py_None
;
6863 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6866 src
= (wxMenu
*) ptr
;
6867 dest
= (wxEvtHandler
*) src
;
6868 return (void *) dest
;
6871 static void *SwigwxMenuTowxObject(void *ptr
) {
6874 src
= (wxMenu
*) ptr
;
6875 dest
= (wxObject
*) src
;
6876 return (void *) dest
;
6879 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6880 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6881 PyObject
* _resultobj
;
6883 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6884 long _arg1
= (long ) 0;
6885 PyObject
* _obj0
= 0;
6886 char *_kwnames
[] = { "title","style", NULL
};
6890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6894 #if PYTHON_API_VERSION >= 1009
6895 char* tmpPtr
; int tmpSize
;
6896 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6897 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6900 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6902 _arg0
= new wxString(tmpPtr
, tmpSize
);
6904 if (!PyString_Check(_obj0
)) {
6905 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6908 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6912 wxPy_BEGIN_ALLOW_THREADS
;
6913 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6915 wxPy_END_ALLOW_THREADS
;
6916 if (PyErr_Occurred()) return NULL
;
6918 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6919 _resultobj
= Py_BuildValue("s",_ptemp
);
6922 _resultobj
= Py_None
;
6931 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6932 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6933 PyObject
* _resultobj
;
6937 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6938 int _arg4
= (int ) FALSE
;
6939 PyObject
* _argo0
= 0;
6940 PyObject
* _obj2
= 0;
6941 PyObject
* _obj3
= 0;
6942 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6955 #if PYTHON_API_VERSION >= 1009
6956 char* tmpPtr
; int tmpSize
;
6957 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6958 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6961 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6963 _arg2
= new wxString(tmpPtr
, tmpSize
);
6965 if (!PyString_Check(_obj2
)) {
6966 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6969 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6974 #if PYTHON_API_VERSION >= 1009
6975 char* tmpPtr
; int tmpSize
;
6976 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6977 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6980 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6982 _arg3
= new wxString(tmpPtr
, tmpSize
);
6984 if (!PyString_Check(_obj3
)) {
6985 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6988 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6992 wxPy_BEGIN_ALLOW_THREADS
;
6993 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6995 wxPy_END_ALLOW_THREADS
;
6996 if (PyErr_Occurred()) return NULL
;
6997 } Py_INCREF(Py_None
);
6998 _resultobj
= Py_None
;
7010 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7011 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7012 PyObject
* _resultobj
;
7017 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
7018 PyObject
* _argo0
= 0;
7019 PyObject
* _obj2
= 0;
7020 PyObject
* _argo3
= 0;
7021 PyObject
* _obj4
= 0;
7022 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
7025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
7028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7035 #if PYTHON_API_VERSION >= 1009
7036 char* tmpPtr
; int tmpSize
;
7037 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7038 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7041 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7043 _arg2
= new wxString(tmpPtr
, tmpSize
);
7045 if (!PyString_Check(_obj2
)) {
7046 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7049 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7053 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7054 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
7055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7061 #if PYTHON_API_VERSION >= 1009
7062 char* tmpPtr
; int tmpSize
;
7063 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7064 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7067 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7069 _arg4
= new wxString(tmpPtr
, tmpSize
);
7071 if (!PyString_Check(_obj4
)) {
7072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7075 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7079 wxPy_BEGIN_ALLOW_THREADS
;
7080 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7082 wxPy_END_ALLOW_THREADS
;
7083 if (PyErr_Occurred()) return NULL
;
7084 } Py_INCREF(Py_None
);
7085 _resultobj
= Py_None
;
7097 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7098 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7099 PyObject
* _resultobj
;
7102 PyObject
* _argo0
= 0;
7103 PyObject
* _argo1
= 0;
7104 char *_kwnames
[] = { "self","item", NULL
};
7107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7117 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7118 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7124 wxPy_BEGIN_ALLOW_THREADS
;
7125 wxMenu_AppendItem(_arg0
,_arg1
);
7127 wxPy_END_ALLOW_THREADS
;
7128 if (PyErr_Occurred()) return NULL
;
7129 } Py_INCREF(Py_None
);
7130 _resultobj
= Py_None
;
7134 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7135 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7136 PyObject
* _resultobj
;
7138 PyObject
* _argo0
= 0;
7139 char *_kwnames
[] = { "self", NULL
};
7142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7152 wxPy_BEGIN_ALLOW_THREADS
;
7153 wxMenu_AppendSeparator(_arg0
);
7155 wxPy_END_ALLOW_THREADS
;
7156 if (PyErr_Occurred()) return NULL
;
7157 } Py_INCREF(Py_None
);
7158 _resultobj
= Py_None
;
7162 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7163 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7164 PyObject
* _resultobj
;
7166 PyObject
* _argo0
= 0;
7167 char *_kwnames
[] = { "self", NULL
};
7170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7180 wxPy_BEGIN_ALLOW_THREADS
;
7181 wxMenu_Break(_arg0
);
7183 wxPy_END_ALLOW_THREADS
;
7184 if (PyErr_Occurred()) return NULL
;
7185 } Py_INCREF(Py_None
);
7186 _resultobj
= Py_None
;
7190 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7191 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7192 PyObject
* _resultobj
;
7196 PyObject
* _argo0
= 0;
7198 char *_kwnames
[] = { "self","id","flag", NULL
};
7201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7210 _arg2
= (bool ) tempbool2
;
7212 wxPy_BEGIN_ALLOW_THREADS
;
7213 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7215 wxPy_END_ALLOW_THREADS
;
7216 if (PyErr_Occurred()) return NULL
;
7217 } Py_INCREF(Py_None
);
7218 _resultobj
= Py_None
;
7222 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7223 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7224 PyObject
* _resultobj
;
7228 PyObject
* _argo0
= 0;
7229 char *_kwnames
[] = { "self","id", NULL
};
7232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7242 wxPy_BEGIN_ALLOW_THREADS
;
7243 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7245 wxPy_END_ALLOW_THREADS
;
7246 if (PyErr_Occurred()) return NULL
;
7247 } _resultobj
= Py_BuildValue("i",_result
);
7251 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7252 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7253 PyObject
* _resultobj
;
7257 PyObject
* _argo0
= 0;
7259 char *_kwnames
[] = { "self","id","enable", NULL
};
7262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7271 _arg2
= (bool ) tempbool2
;
7273 wxPy_BEGIN_ALLOW_THREADS
;
7274 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7276 wxPy_END_ALLOW_THREADS
;
7277 if (PyErr_Occurred()) return NULL
;
7278 } Py_INCREF(Py_None
);
7279 _resultobj
= Py_None
;
7283 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7284 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7285 PyObject
* _resultobj
;
7289 PyObject
* _argo0
= 0;
7290 char *_kwnames
[] = { "self","id", NULL
};
7293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7303 wxPy_BEGIN_ALLOW_THREADS
;
7304 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7306 wxPy_END_ALLOW_THREADS
;
7307 if (PyErr_Occurred()) return NULL
;
7308 } _resultobj
= Py_BuildValue("i",_result
);
7312 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7313 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7314 PyObject
* _resultobj
;
7318 PyObject
* _argo0
= 0;
7319 PyObject
* _obj1
= 0;
7320 char *_kwnames
[] = { "self","itemString", NULL
};
7323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7333 #if PYTHON_API_VERSION >= 1009
7334 char* tmpPtr
; int tmpSize
;
7335 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7336 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7339 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7341 _arg1
= new wxString(tmpPtr
, tmpSize
);
7343 if (!PyString_Check(_obj1
)) {
7344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7347 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7351 wxPy_BEGIN_ALLOW_THREADS
;
7352 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7354 wxPy_END_ALLOW_THREADS
;
7355 if (PyErr_Occurred()) return NULL
;
7356 } _resultobj
= Py_BuildValue("i",_result
);
7364 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7365 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7366 PyObject
* _resultobj
;
7367 wxMenuItem
* _result
;
7370 PyObject
* _argo0
= 0;
7371 char *_kwnames
[] = { "self","id", NULL
};
7374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7384 wxPy_BEGIN_ALLOW_THREADS
;
7385 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7387 wxPy_END_ALLOW_THREADS
;
7388 if (PyErr_Occurred()) return NULL
;
7389 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7393 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7394 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7395 PyObject
* _resultobj
;
7398 PyObject
* _argo0
= 0;
7399 char *_kwnames
[] = { "self", NULL
};
7402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7412 wxPy_BEGIN_ALLOW_THREADS
;
7413 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7415 wxPy_END_ALLOW_THREADS
;
7416 if (PyErr_Occurred()) return NULL
;
7418 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7426 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7427 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7428 PyObject
* _resultobj
;
7431 PyObject
* _argo0
= 0;
7432 PyObject
* _obj1
= 0;
7433 char *_kwnames
[] = { "self","title", NULL
};
7436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7446 #if PYTHON_API_VERSION >= 1009
7447 char* tmpPtr
; int tmpSize
;
7448 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7449 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7452 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7454 _arg1
= new wxString(tmpPtr
, tmpSize
);
7456 if (!PyString_Check(_obj1
)) {
7457 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7460 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7464 wxPy_BEGIN_ALLOW_THREADS
;
7465 wxMenu_SetTitle(_arg0
,*_arg1
);
7467 wxPy_END_ALLOW_THREADS
;
7468 if (PyErr_Occurred()) return NULL
;
7469 } Py_INCREF(Py_None
);
7470 _resultobj
= Py_None
;
7478 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7479 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7480 PyObject
* _resultobj
;
7484 PyObject
* _argo0
= 0;
7485 char *_kwnames
[] = { "self","id", NULL
};
7488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7498 wxPy_BEGIN_ALLOW_THREADS
;
7499 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7501 wxPy_END_ALLOW_THREADS
;
7502 if (PyErr_Occurred()) return NULL
;
7504 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7512 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7513 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7514 PyObject
* _resultobj
;
7518 PyObject
* _argo0
= 0;
7519 PyObject
* _obj2
= 0;
7520 char *_kwnames
[] = { "self","id","label", NULL
};
7523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7533 #if PYTHON_API_VERSION >= 1009
7534 char* tmpPtr
; int tmpSize
;
7535 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7536 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7539 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7541 _arg2
= new wxString(tmpPtr
, tmpSize
);
7543 if (!PyString_Check(_obj2
)) {
7544 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7547 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7551 wxPy_BEGIN_ALLOW_THREADS
;
7552 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7554 wxPy_END_ALLOW_THREADS
;
7555 if (PyErr_Occurred()) return NULL
;
7556 } Py_INCREF(Py_None
);
7557 _resultobj
= Py_None
;
7565 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7566 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7567 PyObject
* _resultobj
;
7571 PyObject
* _argo0
= 0;
7572 char *_kwnames
[] = { "self","id", NULL
};
7575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7585 wxPy_BEGIN_ALLOW_THREADS
;
7586 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7588 wxPy_END_ALLOW_THREADS
;
7589 if (PyErr_Occurred()) return NULL
;
7591 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7599 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7600 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7601 PyObject
* _resultobj
;
7605 PyObject
* _argo0
= 0;
7606 PyObject
* _obj2
= 0;
7607 char *_kwnames
[] = { "self","id","helpString", NULL
};
7610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7620 #if PYTHON_API_VERSION >= 1009
7621 char* tmpPtr
; int tmpSize
;
7622 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7623 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7626 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7628 _arg2
= new wxString(tmpPtr
, tmpSize
);
7630 if (!PyString_Check(_obj2
)) {
7631 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7634 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7638 wxPy_BEGIN_ALLOW_THREADS
;
7639 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7641 wxPy_END_ALLOW_THREADS
;
7642 if (PyErr_Occurred()) return NULL
;
7643 } Py_INCREF(Py_None
);
7644 _resultobj
= Py_None
;
7652 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7653 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7654 PyObject
* _resultobj
;
7656 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7657 PyObject
* _argo0
= 0;
7658 PyObject
* _argo1
= 0;
7659 char *_kwnames
[] = { "self","source", NULL
};
7662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7672 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7673 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7679 wxPy_BEGIN_ALLOW_THREADS
;
7680 wxMenu_UpdateUI(_arg0
,_arg1
);
7682 wxPy_END_ALLOW_THREADS
;
7683 if (PyErr_Occurred()) return NULL
;
7684 } Py_INCREF(Py_None
);
7685 _resultobj
= Py_None
;
7689 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7690 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7691 PyObject
* _resultobj
;
7695 PyObject
* _argo0
= 0;
7696 char *_kwnames
[] = { "self","id", NULL
};
7699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7709 wxPy_BEGIN_ALLOW_THREADS
;
7710 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7712 wxPy_END_ALLOW_THREADS
;
7713 if (PyErr_Occurred()) return NULL
;
7714 } _resultobj
= Py_BuildValue("i",_result
);
7718 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7719 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7720 PyObject
* _resultobj
;
7724 PyObject
* _argo0
= 0;
7725 PyObject
* _argo1
= 0;
7726 char *_kwnames
[] = { "self","item", NULL
};
7729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7739 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7740 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7746 wxPy_BEGIN_ALLOW_THREADS
;
7747 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7749 wxPy_END_ALLOW_THREADS
;
7750 if (PyErr_Occurred()) return NULL
;
7751 } _resultobj
= Py_BuildValue("i",_result
);
7755 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7756 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7757 PyObject
* _resultobj
;
7762 PyObject
* _argo0
= 0;
7763 PyObject
* _argo2
= 0;
7764 char *_kwnames
[] = { "self","pos","item", NULL
};
7767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7777 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7778 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7784 wxPy_BEGIN_ALLOW_THREADS
;
7785 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7787 wxPy_END_ALLOW_THREADS
;
7788 if (PyErr_Occurred()) return NULL
;
7789 } _resultobj
= Py_BuildValue("i",_result
);
7793 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7794 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7795 PyObject
* _resultobj
;
7796 wxMenuItem
* _result
;
7799 PyObject
* _argo0
= 0;
7800 char *_kwnames
[] = { "self","id", NULL
};
7803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7813 wxPy_BEGIN_ALLOW_THREADS
;
7814 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7816 wxPy_END_ALLOW_THREADS
;
7817 if (PyErr_Occurred()) return NULL
;
7818 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7822 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7823 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7824 PyObject
* _resultobj
;
7825 wxMenuItem
* _result
;
7828 PyObject
* _argo0
= 0;
7829 PyObject
* _argo1
= 0;
7830 char *_kwnames
[] = { "self","item", NULL
};
7833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7843 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7844 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7850 wxPy_BEGIN_ALLOW_THREADS
;
7851 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7853 wxPy_END_ALLOW_THREADS
;
7854 if (PyErr_Occurred()) return NULL
;
7855 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7859 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7860 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7861 PyObject
* _resultobj
;
7863 PyObject
* _argo0
= 0;
7864 char *_kwnames
[] = { "self", NULL
};
7867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7877 wxPy_BEGIN_ALLOW_THREADS
;
7878 wxMenu_Destroy(_arg0
);
7880 wxPy_END_ALLOW_THREADS
;
7881 if (PyErr_Occurred()) return NULL
;
7882 } Py_INCREF(Py_None
);
7883 _resultobj
= Py_None
;
7887 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7888 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7889 PyObject
* _resultobj
;
7893 PyObject
* _argo0
= 0;
7894 char *_kwnames
[] = { "self","id", NULL
};
7897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7907 wxPy_BEGIN_ALLOW_THREADS
;
7908 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7910 wxPy_END_ALLOW_THREADS
;
7911 if (PyErr_Occurred()) return NULL
;
7912 } _resultobj
= Py_BuildValue("i",_result
);
7916 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7917 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7918 PyObject
* _resultobj
;
7922 PyObject
* _argo0
= 0;
7923 PyObject
* _argo1
= 0;
7924 char *_kwnames
[] = { "self","item", NULL
};
7927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7937 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7938 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7944 wxPy_BEGIN_ALLOW_THREADS
;
7945 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7947 wxPy_END_ALLOW_THREADS
;
7948 if (PyErr_Occurred()) return NULL
;
7949 } _resultobj
= Py_BuildValue("i",_result
);
7953 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7954 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7955 PyObject
* _resultobj
;
7958 PyObject
* _argo0
= 0;
7959 char *_kwnames
[] = { "self", NULL
};
7962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7972 wxPy_BEGIN_ALLOW_THREADS
;
7973 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7975 wxPy_END_ALLOW_THREADS
;
7976 if (PyErr_Occurred()) return NULL
;
7977 } _resultobj
= Py_BuildValue("i",_result
);
7981 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7982 wxMenuItemList
& list
= self
->GetMenuItems();
7983 return wxPy_ConvertList(&list
, "wxMenuItem");
7985 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7986 PyObject
* _resultobj
;
7989 PyObject
* _argo0
= 0;
7990 char *_kwnames
[] = { "self", NULL
};
7993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
8003 wxPy_BEGIN_ALLOW_THREADS
;
8004 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
8006 wxPy_END_ALLOW_THREADS
;
8007 if (PyErr_Occurred()) return NULL
;
8009 _resultobj
= _result
;
8014 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
8015 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8016 PyObject
* _resultobj
;
8018 wxEvtHandler
* _arg1
;
8019 PyObject
* _argo0
= 0;
8020 PyObject
* _argo1
= 0;
8021 char *_kwnames
[] = { "self","handler", NULL
};
8024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
8027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
8034 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8035 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
8036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
8041 wxPy_BEGIN_ALLOW_THREADS
;
8042 wxMenu_SetEventHandler(_arg0
,_arg1
);
8044 wxPy_END_ALLOW_THREADS
;
8045 if (PyErr_Occurred()) return NULL
;
8046 } Py_INCREF(Py_None
);
8047 _resultobj
= Py_None
;
8051 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8052 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8053 PyObject
* _resultobj
;
8054 wxEvtHandler
* _result
;
8056 PyObject
* _argo0
= 0;
8057 char *_kwnames
[] = { "self", NULL
};
8060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8070 wxPy_BEGIN_ALLOW_THREADS
;
8071 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8073 wxPy_END_ALLOW_THREADS
;
8074 if (PyErr_Occurred()) return NULL
;
8075 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8079 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8080 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8081 PyObject
* _resultobj
;
8084 PyObject
* _argo0
= 0;
8085 PyObject
* _argo1
= 0;
8086 char *_kwnames
[] = { "self","win", NULL
};
8089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8099 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8100 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8106 wxPy_BEGIN_ALLOW_THREADS
;
8107 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8109 wxPy_END_ALLOW_THREADS
;
8110 if (PyErr_Occurred()) return NULL
;
8111 } Py_INCREF(Py_None
);
8112 _resultobj
= Py_None
;
8116 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8117 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8118 PyObject
* _resultobj
;
8121 PyObject
* _argo0
= 0;
8122 char *_kwnames
[] = { "self", NULL
};
8125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8135 wxPy_BEGIN_ALLOW_THREADS
;
8136 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8138 wxPy_END_ALLOW_THREADS
;
8139 if (PyErr_Occurred()) return NULL
;
8140 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8144 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8145 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8146 PyObject
* _resultobj
;
8149 PyObject
* _argo0
= 0;
8150 char *_kwnames
[] = { "self", NULL
};
8153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8163 wxPy_BEGIN_ALLOW_THREADS
;
8164 _result
= (long )wxMenu_GetStyle(_arg0
);
8166 wxPy_END_ALLOW_THREADS
;
8167 if (PyErr_Occurred()) return NULL
;
8168 } _resultobj
= Py_BuildValue("l",_result
);
8172 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8173 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8174 PyObject
* _resultobj
;
8177 PyObject
* _argo0
= 0;
8178 char *_kwnames
[] = { "self", NULL
};
8181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8191 wxPy_BEGIN_ALLOW_THREADS
;
8192 _result
= (bool )wxMenu_IsAttached(_arg0
);
8194 wxPy_END_ALLOW_THREADS
;
8195 if (PyErr_Occurred()) return NULL
;
8196 } _resultobj
= Py_BuildValue("i",_result
);
8200 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8201 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8202 PyObject
* _resultobj
;
8205 PyObject
* _argo0
= 0;
8206 PyObject
* _argo1
= 0;
8207 char *_kwnames
[] = { "self","parent", NULL
};
8210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8220 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8221 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8227 wxPy_BEGIN_ALLOW_THREADS
;
8228 wxMenu_SetParent(_arg0
,_arg1
);
8230 wxPy_END_ALLOW_THREADS
;
8231 if (PyErr_Occurred()) return NULL
;
8232 } Py_INCREF(Py_None
);
8233 _resultobj
= Py_None
;
8237 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8238 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8239 PyObject
* _resultobj
;
8242 PyObject
* _argo0
= 0;
8243 char *_kwnames
[] = { "self", NULL
};
8246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8256 wxPy_BEGIN_ALLOW_THREADS
;
8257 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8259 wxPy_END_ALLOW_THREADS
;
8260 if (PyErr_Occurred()) return NULL
;
8261 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8265 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8268 src
= (wxMenuBar
*) ptr
;
8269 dest
= (wxWindow
*) src
;
8270 return (void *) dest
;
8273 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8276 src
= (wxMenuBar
*) ptr
;
8277 dest
= (wxEvtHandler
*) src
;
8278 return (void *) dest
;
8281 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8284 src
= (wxMenuBar
*) ptr
;
8285 dest
= (wxObject
*) src
;
8286 return (void *) dest
;
8289 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8290 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8291 PyObject
* _resultobj
;
8292 wxMenuBar
* _result
;
8293 long _arg0
= (long ) 0;
8294 char *_kwnames
[] = { "style", NULL
};
8298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8301 wxPy_BEGIN_ALLOW_THREADS
;
8302 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8304 wxPy_END_ALLOW_THREADS
;
8305 if (PyErr_Occurred()) return NULL
;
8307 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8308 _resultobj
= Py_BuildValue("s",_ptemp
);
8311 _resultobj
= Py_None
;
8316 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8317 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8318 PyObject
* _resultobj
;
8323 PyObject
* _argo0
= 0;
8324 PyObject
* _argo1
= 0;
8325 PyObject
* _obj2
= 0;
8326 char *_kwnames
[] = { "self","menu","title", NULL
};
8329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8339 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8340 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8346 #if PYTHON_API_VERSION >= 1009
8347 char* tmpPtr
; int tmpSize
;
8348 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8349 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8352 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8354 _arg2
= new wxString(tmpPtr
, tmpSize
);
8356 if (!PyString_Check(_obj2
)) {
8357 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8360 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8364 wxPy_BEGIN_ALLOW_THREADS
;
8365 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8367 wxPy_END_ALLOW_THREADS
;
8368 if (PyErr_Occurred()) return NULL
;
8369 } _resultobj
= Py_BuildValue("i",_result
);
8377 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8378 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8379 PyObject
* _resultobj
;
8385 PyObject
* _argo0
= 0;
8386 PyObject
* _argo2
= 0;
8387 PyObject
* _obj3
= 0;
8388 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8401 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8402 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8408 #if PYTHON_API_VERSION >= 1009
8409 char* tmpPtr
; int tmpSize
;
8410 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8411 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8414 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8416 _arg3
= new wxString(tmpPtr
, tmpSize
);
8418 if (!PyString_Check(_obj3
)) {
8419 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8422 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8426 wxPy_BEGIN_ALLOW_THREADS
;
8427 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8429 wxPy_END_ALLOW_THREADS
;
8430 if (PyErr_Occurred()) return NULL
;
8431 } _resultobj
= Py_BuildValue("i",_result
);
8439 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8440 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8441 PyObject
* _resultobj
;
8444 PyObject
* _argo0
= 0;
8445 char *_kwnames
[] = { "self", NULL
};
8448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8458 wxPy_BEGIN_ALLOW_THREADS
;
8459 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8461 wxPy_END_ALLOW_THREADS
;
8462 if (PyErr_Occurred()) return NULL
;
8463 } _resultobj
= Py_BuildValue("i",_result
);
8467 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8468 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8469 PyObject
* _resultobj
;
8473 PyObject
* _argo0
= 0;
8474 char *_kwnames
[] = { "self","pos", NULL
};
8477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8487 wxPy_BEGIN_ALLOW_THREADS
;
8488 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8490 wxPy_END_ALLOW_THREADS
;
8491 if (PyErr_Occurred()) return NULL
;
8492 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8496 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8497 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8498 PyObject
* _resultobj
;
8504 PyObject
* _argo0
= 0;
8505 PyObject
* _argo2
= 0;
8506 PyObject
* _obj3
= 0;
8507 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8520 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8521 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8527 #if PYTHON_API_VERSION >= 1009
8528 char* tmpPtr
; int tmpSize
;
8529 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8533 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8535 _arg3
= new wxString(tmpPtr
, tmpSize
);
8537 if (!PyString_Check(_obj3
)) {
8538 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8541 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8545 wxPy_BEGIN_ALLOW_THREADS
;
8546 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8548 wxPy_END_ALLOW_THREADS
;
8549 if (PyErr_Occurred()) return NULL
;
8550 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8558 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8559 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8560 PyObject
* _resultobj
;
8564 PyObject
* _argo0
= 0;
8565 char *_kwnames
[] = { "self","pos", NULL
};
8568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8578 wxPy_BEGIN_ALLOW_THREADS
;
8579 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8581 wxPy_END_ALLOW_THREADS
;
8582 if (PyErr_Occurred()) return NULL
;
8583 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8587 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8588 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8589 PyObject
* _resultobj
;
8593 PyObject
* _argo0
= 0;
8595 char *_kwnames
[] = { "self","pos","enable", NULL
};
8598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8607 _arg2
= (bool ) tempbool2
;
8609 wxPy_BEGIN_ALLOW_THREADS
;
8610 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8612 wxPy_END_ALLOW_THREADS
;
8613 if (PyErr_Occurred()) return NULL
;
8614 } Py_INCREF(Py_None
);
8615 _resultobj
= Py_None
;
8619 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8620 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8621 PyObject
* _resultobj
;
8625 PyObject
* _argo0
= 0;
8626 PyObject
* _obj2
= 0;
8627 char *_kwnames
[] = { "self","pos","label", NULL
};
8630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8640 #if PYTHON_API_VERSION >= 1009
8641 char* tmpPtr
; int tmpSize
;
8642 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8643 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8646 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8648 _arg2
= new wxString(tmpPtr
, tmpSize
);
8650 if (!PyString_Check(_obj2
)) {
8651 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8654 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8658 wxPy_BEGIN_ALLOW_THREADS
;
8659 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8661 wxPy_END_ALLOW_THREADS
;
8662 if (PyErr_Occurred()) return NULL
;
8663 } Py_INCREF(Py_None
);
8664 _resultobj
= Py_None
;
8672 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8673 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8674 PyObject
* _resultobj
;
8678 PyObject
* _argo0
= 0;
8679 char *_kwnames
[] = { "self","pos", NULL
};
8682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8692 wxPy_BEGIN_ALLOW_THREADS
;
8693 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8695 wxPy_END_ALLOW_THREADS
;
8696 if (PyErr_Occurred()) return NULL
;
8698 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8706 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8707 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8708 PyObject
* _resultobj
;
8712 PyObject
* _argo0
= 0;
8713 PyObject
* _obj1
= 0;
8714 char *_kwnames
[] = { "self","title", NULL
};
8717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8727 #if PYTHON_API_VERSION >= 1009
8728 char* tmpPtr
; int tmpSize
;
8729 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8730 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8733 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8735 _arg1
= new wxString(tmpPtr
, tmpSize
);
8737 if (!PyString_Check(_obj1
)) {
8738 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8741 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8745 wxPy_BEGIN_ALLOW_THREADS
;
8746 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8748 wxPy_END_ALLOW_THREADS
;
8749 if (PyErr_Occurred()) return NULL
;
8750 } _resultobj
= Py_BuildValue("i",_result
);
8758 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8759 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8760 PyObject
* _resultobj
;
8765 PyObject
* _argo0
= 0;
8766 PyObject
* _obj1
= 0;
8767 PyObject
* _obj2
= 0;
8768 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8781 #if PYTHON_API_VERSION >= 1009
8782 char* tmpPtr
; int tmpSize
;
8783 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8784 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8787 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8789 _arg1
= new wxString(tmpPtr
, tmpSize
);
8791 if (!PyString_Check(_obj1
)) {
8792 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8795 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8799 #if PYTHON_API_VERSION >= 1009
8800 char* tmpPtr
; int tmpSize
;
8801 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8802 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8805 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8807 _arg2
= new wxString(tmpPtr
, tmpSize
);
8809 if (!PyString_Check(_obj2
)) {
8810 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8813 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8817 wxPy_BEGIN_ALLOW_THREADS
;
8818 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8820 wxPy_END_ALLOW_THREADS
;
8821 if (PyErr_Occurred()) return NULL
;
8822 } _resultobj
= Py_BuildValue("i",_result
);
8834 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8835 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8836 PyObject
* _resultobj
;
8837 wxMenuItem
* _result
;
8840 PyObject
* _argo0
= 0;
8841 char *_kwnames
[] = { "self","id", NULL
};
8844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8854 wxPy_BEGIN_ALLOW_THREADS
;
8855 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8857 wxPy_END_ALLOW_THREADS
;
8858 if (PyErr_Occurred()) return NULL
;
8859 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8863 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8864 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8865 PyObject
* _resultobj
;
8869 PyObject
* _argo0
= 0;
8871 char *_kwnames
[] = { "self","id","enable", NULL
};
8874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8883 _arg2
= (bool ) tempbool2
;
8885 wxPy_BEGIN_ALLOW_THREADS
;
8886 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8888 wxPy_END_ALLOW_THREADS
;
8889 if (PyErr_Occurred()) return NULL
;
8890 } Py_INCREF(Py_None
);
8891 _resultobj
= Py_None
;
8895 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8896 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8897 PyObject
* _resultobj
;
8901 PyObject
* _argo0
= 0;
8903 char *_kwnames
[] = { "self","id","check", NULL
};
8906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8915 _arg2
= (bool ) tempbool2
;
8917 wxPy_BEGIN_ALLOW_THREADS
;
8918 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8920 wxPy_END_ALLOW_THREADS
;
8921 if (PyErr_Occurred()) return NULL
;
8922 } Py_INCREF(Py_None
);
8923 _resultobj
= Py_None
;
8927 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8928 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8929 PyObject
* _resultobj
;
8933 PyObject
* _argo0
= 0;
8934 char *_kwnames
[] = { "self","id", NULL
};
8937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8947 wxPy_BEGIN_ALLOW_THREADS
;
8948 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8950 wxPy_END_ALLOW_THREADS
;
8951 if (PyErr_Occurred()) return NULL
;
8952 } _resultobj
= Py_BuildValue("i",_result
);
8956 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8957 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8958 PyObject
* _resultobj
;
8962 PyObject
* _argo0
= 0;
8963 char *_kwnames
[] = { "self","id", NULL
};
8966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8976 wxPy_BEGIN_ALLOW_THREADS
;
8977 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8979 wxPy_END_ALLOW_THREADS
;
8980 if (PyErr_Occurred()) return NULL
;
8981 } _resultobj
= Py_BuildValue("i",_result
);
8985 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8986 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8987 PyObject
* _resultobj
;
8991 PyObject
* _argo0
= 0;
8992 PyObject
* _obj2
= 0;
8993 char *_kwnames
[] = { "self","id","label", NULL
};
8996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9006 #if PYTHON_API_VERSION >= 1009
9007 char* tmpPtr
; int tmpSize
;
9008 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9009 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9012 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9014 _arg2
= new wxString(tmpPtr
, tmpSize
);
9016 if (!PyString_Check(_obj2
)) {
9017 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9020 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9024 wxPy_BEGIN_ALLOW_THREADS
;
9025 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
9027 wxPy_END_ALLOW_THREADS
;
9028 if (PyErr_Occurred()) return NULL
;
9029 } Py_INCREF(Py_None
);
9030 _resultobj
= Py_None
;
9038 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9039 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9040 PyObject
* _resultobj
;
9044 PyObject
* _argo0
= 0;
9045 char *_kwnames
[] = { "self","id", NULL
};
9048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
9051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9058 wxPy_BEGIN_ALLOW_THREADS
;
9059 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9061 wxPy_END_ALLOW_THREADS
;
9062 if (PyErr_Occurred()) return NULL
;
9064 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9072 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9073 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9074 PyObject
* _resultobj
;
9078 PyObject
* _argo0
= 0;
9079 PyObject
* _obj2
= 0;
9080 char *_kwnames
[] = { "self","id","helpString", NULL
};
9083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9093 #if PYTHON_API_VERSION >= 1009
9094 char* tmpPtr
; int tmpSize
;
9095 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9096 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9099 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9101 _arg2
= new wxString(tmpPtr
, tmpSize
);
9103 if (!PyString_Check(_obj2
)) {
9104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9107 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9111 wxPy_BEGIN_ALLOW_THREADS
;
9112 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9114 wxPy_END_ALLOW_THREADS
;
9115 if (PyErr_Occurred()) return NULL
;
9116 } Py_INCREF(Py_None
);
9117 _resultobj
= Py_None
;
9125 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9126 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9127 PyObject
* _resultobj
;
9131 PyObject
* _argo0
= 0;
9132 char *_kwnames
[] = { "self","id", NULL
};
9135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9145 wxPy_BEGIN_ALLOW_THREADS
;
9146 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9148 wxPy_END_ALLOW_THREADS
;
9149 if (PyErr_Occurred()) return NULL
;
9151 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9159 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9162 src
= (wxMenuItem
*) ptr
;
9163 dest
= (wxObject
*) src
;
9164 return (void *) dest
;
9167 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9168 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9169 PyObject
* _resultobj
;
9170 wxMenuItem
* _result
;
9171 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9172 int _arg1
= (int ) wxID_SEPARATOR
;
9173 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9174 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9175 bool _arg4
= (bool ) FALSE
;
9176 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9177 PyObject
* _argo0
= 0;
9178 PyObject
* _obj2
= 0;
9179 PyObject
* _obj3
= 0;
9180 int tempbool4
= (int) FALSE
;
9181 PyObject
* _argo5
= 0;
9182 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9197 #if PYTHON_API_VERSION >= 1009
9198 char* tmpPtr
; int tmpSize
;
9199 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9200 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9203 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9205 _arg2
= new wxString(tmpPtr
, tmpSize
);
9207 if (!PyString_Check(_obj2
)) {
9208 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9211 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9216 #if PYTHON_API_VERSION >= 1009
9217 char* tmpPtr
; int tmpSize
;
9218 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9219 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9222 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9224 _arg3
= new wxString(tmpPtr
, tmpSize
);
9226 if (!PyString_Check(_obj3
)) {
9227 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9230 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9233 _arg4
= (bool ) tempbool4
;
9235 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9236 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9242 wxPy_BEGIN_ALLOW_THREADS
;
9243 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9245 wxPy_END_ALLOW_THREADS
;
9246 if (PyErr_Occurred()) return NULL
;
9248 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9249 _resultobj
= Py_BuildValue("s",_ptemp
);
9252 _resultobj
= Py_None
;
9265 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9266 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9267 PyObject
* _resultobj
;
9270 PyObject
* _argo0
= 0;
9271 char *_kwnames
[] = { "self", NULL
};
9274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9284 wxPy_BEGIN_ALLOW_THREADS
;
9285 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9287 wxPy_END_ALLOW_THREADS
;
9288 if (PyErr_Occurred()) return NULL
;
9289 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9293 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9294 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9295 PyObject
* _resultobj
;
9298 PyObject
* _argo0
= 0;
9299 char *_kwnames
[] = { "self","id", NULL
};
9302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9312 wxPy_BEGIN_ALLOW_THREADS
;
9313 wxMenuItem_SetId(_arg0
,_arg1
);
9315 wxPy_END_ALLOW_THREADS
;
9316 if (PyErr_Occurred()) return NULL
;
9317 } Py_INCREF(Py_None
);
9318 _resultobj
= Py_None
;
9322 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9323 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9324 PyObject
* _resultobj
;
9327 PyObject
* _argo0
= 0;
9328 char *_kwnames
[] = { "self", NULL
};
9331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9341 wxPy_BEGIN_ALLOW_THREADS
;
9342 _result
= (int )wxMenuItem_GetId(_arg0
);
9344 wxPy_END_ALLOW_THREADS
;
9345 if (PyErr_Occurred()) return NULL
;
9346 } _resultobj
= Py_BuildValue("i",_result
);
9350 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9351 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9352 PyObject
* _resultobj
;
9355 PyObject
* _argo0
= 0;
9356 char *_kwnames
[] = { "self", NULL
};
9359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9369 wxPy_BEGIN_ALLOW_THREADS
;
9370 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9372 wxPy_END_ALLOW_THREADS
;
9373 if (PyErr_Occurred()) return NULL
;
9374 } _resultobj
= Py_BuildValue("i",_result
);
9378 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9379 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9380 PyObject
* _resultobj
;
9383 PyObject
* _argo0
= 0;
9384 PyObject
* _obj1
= 0;
9385 char *_kwnames
[] = { "self","str", NULL
};
9388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9398 #if PYTHON_API_VERSION >= 1009
9399 char* tmpPtr
; int tmpSize
;
9400 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9401 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9404 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9406 _arg1
= new wxString(tmpPtr
, tmpSize
);
9408 if (!PyString_Check(_obj1
)) {
9409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9412 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9416 wxPy_BEGIN_ALLOW_THREADS
;
9417 wxMenuItem_SetText(_arg0
,*_arg1
);
9419 wxPy_END_ALLOW_THREADS
;
9420 if (PyErr_Occurred()) return NULL
;
9421 } Py_INCREF(Py_None
);
9422 _resultobj
= Py_None
;
9430 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9431 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9432 PyObject
* _resultobj
;
9435 PyObject
* _argo0
= 0;
9436 char *_kwnames
[] = { "self", NULL
};
9439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9449 wxPy_BEGIN_ALLOW_THREADS
;
9450 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9452 wxPy_END_ALLOW_THREADS
;
9453 if (PyErr_Occurred()) return NULL
;
9455 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9463 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9464 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9465 PyObject
* _resultobj
;
9468 PyObject
* _argo0
= 0;
9469 char *_kwnames
[] = { "self", NULL
};
9472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9482 wxPy_BEGIN_ALLOW_THREADS
;
9483 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9484 _result
= (wxString
*) &_result_ref
;
9486 wxPy_END_ALLOW_THREADS
;
9487 if (PyErr_Occurred()) return NULL
;
9489 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9494 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9495 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9496 PyObject
* _resultobj
;
9499 PyObject
* _argo0
= 0;
9501 char *_kwnames
[] = { "self","checkable", NULL
};
9504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9513 _arg1
= (bool ) tempbool1
;
9515 wxPy_BEGIN_ALLOW_THREADS
;
9516 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9518 wxPy_END_ALLOW_THREADS
;
9519 if (PyErr_Occurred()) return NULL
;
9520 } Py_INCREF(Py_None
);
9521 _resultobj
= Py_None
;
9525 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9526 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9527 PyObject
* _resultobj
;
9530 PyObject
* _argo0
= 0;
9531 char *_kwnames
[] = { "self", NULL
};
9534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9544 wxPy_BEGIN_ALLOW_THREADS
;
9545 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9547 wxPy_END_ALLOW_THREADS
;
9548 if (PyErr_Occurred()) return NULL
;
9549 } _resultobj
= Py_BuildValue("i",_result
);
9553 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9554 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9555 PyObject
* _resultobj
;
9558 PyObject
* _argo0
= 0;
9559 char *_kwnames
[] = { "self", NULL
};
9562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9572 wxPy_BEGIN_ALLOW_THREADS
;
9573 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9575 wxPy_END_ALLOW_THREADS
;
9576 if (PyErr_Occurred()) return NULL
;
9577 } _resultobj
= Py_BuildValue("i",_result
);
9581 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9582 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9583 PyObject
* _resultobj
;
9586 PyObject
* _argo0
= 0;
9587 PyObject
* _argo1
= 0;
9588 char *_kwnames
[] = { "self","menu", NULL
};
9591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9601 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9602 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9608 wxPy_BEGIN_ALLOW_THREADS
;
9609 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9611 wxPy_END_ALLOW_THREADS
;
9612 if (PyErr_Occurred()) return NULL
;
9613 } Py_INCREF(Py_None
);
9614 _resultobj
= Py_None
;
9618 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9619 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9620 PyObject
* _resultobj
;
9623 PyObject
* _argo0
= 0;
9624 char *_kwnames
[] = { "self", NULL
};
9627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9637 wxPy_BEGIN_ALLOW_THREADS
;
9638 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9640 wxPy_END_ALLOW_THREADS
;
9641 if (PyErr_Occurred()) return NULL
;
9642 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9646 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9647 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9648 PyObject
* _resultobj
;
9650 bool _arg1
= (bool ) TRUE
;
9651 PyObject
* _argo0
= 0;
9652 int tempbool1
= (int) TRUE
;
9653 char *_kwnames
[] = { "self","enable", NULL
};
9656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9665 _arg1
= (bool ) tempbool1
;
9667 wxPy_BEGIN_ALLOW_THREADS
;
9668 wxMenuItem_Enable(_arg0
,_arg1
);
9670 wxPy_END_ALLOW_THREADS
;
9671 if (PyErr_Occurred()) return NULL
;
9672 } Py_INCREF(Py_None
);
9673 _resultobj
= Py_None
;
9677 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9678 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9679 PyObject
* _resultobj
;
9682 PyObject
* _argo0
= 0;
9683 char *_kwnames
[] = { "self", NULL
};
9686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9696 wxPy_BEGIN_ALLOW_THREADS
;
9697 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9699 wxPy_END_ALLOW_THREADS
;
9700 if (PyErr_Occurred()) return NULL
;
9701 } _resultobj
= Py_BuildValue("i",_result
);
9705 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9706 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9707 PyObject
* _resultobj
;
9709 bool _arg1
= (bool ) TRUE
;
9710 PyObject
* _argo0
= 0;
9711 int tempbool1
= (int) TRUE
;
9712 char *_kwnames
[] = { "self","check", NULL
};
9715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9724 _arg1
= (bool ) tempbool1
;
9726 wxPy_BEGIN_ALLOW_THREADS
;
9727 wxMenuItem_Check(_arg0
,_arg1
);
9729 wxPy_END_ALLOW_THREADS
;
9730 if (PyErr_Occurred()) return NULL
;
9731 } Py_INCREF(Py_None
);
9732 _resultobj
= Py_None
;
9736 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9737 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9738 PyObject
* _resultobj
;
9741 PyObject
* _argo0
= 0;
9742 char *_kwnames
[] = { "self", NULL
};
9745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9755 wxPy_BEGIN_ALLOW_THREADS
;
9756 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9758 wxPy_END_ALLOW_THREADS
;
9759 if (PyErr_Occurred()) return NULL
;
9760 } _resultobj
= Py_BuildValue("i",_result
);
9764 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9765 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9766 PyObject
* _resultobj
;
9768 PyObject
* _argo0
= 0;
9769 char *_kwnames
[] = { "self", NULL
};
9772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9782 wxPy_BEGIN_ALLOW_THREADS
;
9783 wxMenuItem_Toggle(_arg0
);
9785 wxPy_END_ALLOW_THREADS
;
9786 if (PyErr_Occurred()) return NULL
;
9787 } Py_INCREF(Py_None
);
9788 _resultobj
= Py_None
;
9792 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9793 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9794 PyObject
* _resultobj
;
9797 PyObject
* _argo0
= 0;
9798 PyObject
* _obj1
= 0;
9799 char *_kwnames
[] = { "self","str", NULL
};
9802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9812 #if PYTHON_API_VERSION >= 1009
9813 char* tmpPtr
; int tmpSize
;
9814 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9815 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9818 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9820 _arg1
= new wxString(tmpPtr
, tmpSize
);
9822 if (!PyString_Check(_obj1
)) {
9823 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9826 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9830 wxPy_BEGIN_ALLOW_THREADS
;
9831 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9833 wxPy_END_ALLOW_THREADS
;
9834 if (PyErr_Occurred()) return NULL
;
9835 } Py_INCREF(Py_None
);
9836 _resultobj
= Py_None
;
9844 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9845 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9846 PyObject
* _resultobj
;
9849 PyObject
* _argo0
= 0;
9850 char *_kwnames
[] = { "self", NULL
};
9853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9863 wxPy_BEGIN_ALLOW_THREADS
;
9864 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9865 _result
= (wxString
*) &_result_ref
;
9867 wxPy_END_ALLOW_THREADS
;
9868 if (PyErr_Occurred()) return NULL
;
9870 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9875 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9876 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9877 PyObject
* _resultobj
;
9878 wxAcceleratorEntry
* _result
;
9880 PyObject
* _argo0
= 0;
9881 char *_kwnames
[] = { "self", NULL
};
9885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9895 wxPy_BEGIN_ALLOW_THREADS
;
9896 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9898 wxPy_END_ALLOW_THREADS
;
9899 if (PyErr_Occurred()) return NULL
;
9901 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9902 _resultobj
= Py_BuildValue("s",_ptemp
);
9905 _resultobj
= Py_None
;
9910 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9911 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9912 PyObject
* _resultobj
;
9914 wxAcceleratorEntry
* _arg1
;
9915 PyObject
* _argo0
= 0;
9916 PyObject
* _argo1
= 0;
9917 char *_kwnames
[] = { "self","accel", NULL
};
9920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9930 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9931 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9937 wxPy_BEGIN_ALLOW_THREADS
;
9938 wxMenuItem_SetAccel(_arg0
,_arg1
);
9940 wxPy_END_ALLOW_THREADS
;
9941 if (PyErr_Occurred()) return NULL
;
9942 } Py_INCREF(Py_None
);
9943 _resultobj
= Py_None
;
9947 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9948 PyObject
* _resultobj
;
9951 PyObject
* _obj0
= 0;
9952 char *_kwnames
[] = { "text", NULL
};
9955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9958 #if PYTHON_API_VERSION >= 1009
9959 char* tmpPtr
; int tmpSize
;
9960 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9961 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9964 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9966 _arg0
= new wxString(tmpPtr
, tmpSize
);
9968 if (!PyString_Check(_obj0
)) {
9969 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9972 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9976 wxPy_BEGIN_ALLOW_THREADS
;
9977 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9979 wxPy_END_ALLOW_THREADS
;
9980 if (PyErr_Occurred()) return NULL
;
9982 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9994 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9995 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9996 PyObject
* _resultobj
;
9999 PyObject
* _argo0
= 0;
10000 PyObject
* _argo1
= 0;
10001 char *_kwnames
[] = { "self","font", NULL
};
10004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
10007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
10014 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10015 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
10016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
10021 wxPy_BEGIN_ALLOW_THREADS
;
10022 wxMenuItem_SetFont(_arg0
,*_arg1
);
10024 wxPy_END_ALLOW_THREADS
;
10025 if (PyErr_Occurred()) return NULL
;
10026 } Py_INCREF(Py_None
);
10027 _resultobj
= Py_None
;
10031 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
10032 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10033 PyObject
* _resultobj
;
10035 wxMenuItem
* _arg0
;
10036 PyObject
* _argo0
= 0;
10037 char *_kwnames
[] = { "self", NULL
};
10041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
10044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
10051 wxPy_BEGIN_ALLOW_THREADS
;
10052 wxFont
& _result_ref
= wxMenuItem_GetFont(_arg0
);
10053 _result
= (wxFont
*) &_result_ref
;
10055 wxPy_END_ALLOW_THREADS
;
10056 if (PyErr_Occurred()) return NULL
;
10058 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
10059 _resultobj
= Py_BuildValue("s",_ptemp
);
10061 Py_INCREF(Py_None
);
10062 _resultobj
= Py_None
;
10067 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
10068 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10069 PyObject
* _resultobj
;
10070 wxMenuItem
* _arg0
;
10072 PyObject
* _argo0
= 0;
10074 PyObject
* _obj1
= 0;
10075 char *_kwnames
[] = { "self","colText", NULL
};
10078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
10081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
10089 if (! wxColour_helper(_obj1
, &_arg1
))
10093 wxPy_BEGIN_ALLOW_THREADS
;
10094 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
10096 wxPy_END_ALLOW_THREADS
;
10097 if (PyErr_Occurred()) return NULL
;
10098 } Py_INCREF(Py_None
);
10099 _resultobj
= Py_None
;
10103 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
10104 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10105 PyObject
* _resultobj
;
10106 wxColour
* _result
;
10107 wxMenuItem
* _arg0
;
10108 PyObject
* _argo0
= 0;
10109 char *_kwnames
[] = { "self", NULL
};
10113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
10116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
10123 wxPy_BEGIN_ALLOW_THREADS
;
10124 _result
= new wxColour (wxMenuItem_GetTextColour(_arg0
));
10126 wxPy_END_ALLOW_THREADS
;
10127 if (PyErr_Occurred()) return NULL
;
10128 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10129 _resultobj
= Py_BuildValue("s",_ptemp
);
10133 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
10134 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10135 PyObject
* _resultobj
;
10136 wxMenuItem
* _arg0
;
10138 PyObject
* _argo0
= 0;
10140 PyObject
* _obj1
= 0;
10141 char *_kwnames
[] = { "self","colBack", NULL
};
10144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
10147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
10155 if (! wxColour_helper(_obj1
, &_arg1
))
10159 wxPy_BEGIN_ALLOW_THREADS
;
10160 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
10162 wxPy_END_ALLOW_THREADS
;
10163 if (PyErr_Occurred()) return NULL
;
10164 } Py_INCREF(Py_None
);
10165 _resultobj
= Py_None
;
10169 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10170 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10171 PyObject
* _resultobj
;
10172 wxColour
* _result
;
10173 wxMenuItem
* _arg0
;
10174 PyObject
* _argo0
= 0;
10175 char *_kwnames
[] = { "self", NULL
};
10179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10189 wxPy_BEGIN_ALLOW_THREADS
;
10190 _result
= new wxColour (wxMenuItem_GetBackgroundColour(_arg0
));
10192 wxPy_END_ALLOW_THREADS
;
10193 if (PyErr_Occurred()) return NULL
;
10194 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10195 _resultobj
= Py_BuildValue("s",_ptemp
);
10199 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10200 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10201 PyObject
* _resultobj
;
10202 wxMenuItem
* _arg0
;
10204 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10205 PyObject
* _argo0
= 0;
10206 PyObject
* _argo1
= 0;
10207 PyObject
* _argo2
= 0;
10208 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
10221 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10222 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10228 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10229 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10235 wxPy_BEGIN_ALLOW_THREADS
;
10236 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10238 wxPy_END_ALLOW_THREADS
;
10239 if (PyErr_Occurred()) return NULL
;
10240 } Py_INCREF(Py_None
);
10241 _resultobj
= Py_None
;
10245 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10246 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10247 PyObject
* _resultobj
;
10248 wxMenuItem
* _arg0
;
10250 PyObject
* _argo0
= 0;
10251 PyObject
* _argo1
= 0;
10252 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10265 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10266 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10272 wxPy_BEGIN_ALLOW_THREADS
;
10273 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10275 wxPy_END_ALLOW_THREADS
;
10276 if (PyErr_Occurred()) return NULL
;
10277 } Py_INCREF(Py_None
);
10278 _resultobj
= Py_None
;
10282 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10283 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10284 PyObject
* _resultobj
;
10285 wxBitmap
* _result
;
10286 wxMenuItem
* _arg0
;
10287 bool _arg1
= (bool ) TRUE
;
10288 PyObject
* _argo0
= 0;
10289 int tempbool1
= (int) TRUE
;
10290 char *_kwnames
[] = { "self","bChecked", NULL
};
10294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10303 _arg1
= (bool ) tempbool1
;
10305 wxPy_BEGIN_ALLOW_THREADS
;
10306 const wxBitmap
& _result_ref
= wxMenuItem_GetBitmap(_arg0
,_arg1
);
10307 _result
= (wxBitmap
*) &_result_ref
;
10309 wxPy_END_ALLOW_THREADS
;
10310 if (PyErr_Occurred()) return NULL
;
10312 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
10313 _resultobj
= Py_BuildValue("s",_ptemp
);
10315 Py_INCREF(Py_None
);
10316 _resultobj
= Py_None
;
10321 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10322 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10323 PyObject
* _resultobj
;
10324 wxMenuItem
* _arg0
;
10326 PyObject
* _argo0
= 0;
10327 char *_kwnames
[] = { "self","nWidth", NULL
};
10330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10340 wxPy_BEGIN_ALLOW_THREADS
;
10341 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10343 wxPy_END_ALLOW_THREADS
;
10344 if (PyErr_Occurred()) return NULL
;
10345 } Py_INCREF(Py_None
);
10346 _resultobj
= Py_None
;
10350 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10351 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10352 PyObject
* _resultobj
;
10354 wxMenuItem
* _arg0
;
10355 PyObject
* _argo0
= 0;
10356 char *_kwnames
[] = { "self", NULL
};
10359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10369 wxPy_BEGIN_ALLOW_THREADS
;
10370 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10372 wxPy_END_ALLOW_THREADS
;
10373 if (PyErr_Occurred()) return NULL
;
10374 } _resultobj
= Py_BuildValue("i",_result
);
10378 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10379 PyObject
* _resultobj
;
10381 char *_kwnames
[] = { NULL
};
10384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10387 wxPy_BEGIN_ALLOW_THREADS
;
10388 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10390 wxPy_END_ALLOW_THREADS
;
10391 if (PyErr_Occurred()) return NULL
;
10392 } _resultobj
= Py_BuildValue("i",_result
);
10396 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10397 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10398 PyObject
* _resultobj
;
10400 wxMenuItem
* _arg0
;
10401 PyObject
* _argo0
= 0;
10402 char *_kwnames
[] = { "self", NULL
};
10405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
10408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
10415 wxPy_BEGIN_ALLOW_THREADS
;
10416 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10418 wxPy_END_ALLOW_THREADS
;
10419 if (PyErr_Occurred()) return NULL
;
10420 } _resultobj
= Py_BuildValue("i",_result
);
10424 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10425 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10426 PyObject
* _resultobj
;
10427 wxMenuItem
* _arg0
;
10428 PyObject
* _argo0
= 0;
10429 char *_kwnames
[] = { "self", NULL
};
10432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10442 wxPy_BEGIN_ALLOW_THREADS
;
10443 wxMenuItem_ResetOwnerDrawn(_arg0
);
10445 wxPy_END_ALLOW_THREADS
;
10446 if (PyErr_Occurred()) return NULL
;
10447 } Py_INCREF(Py_None
);
10448 _resultobj
= Py_None
;
10452 static PyMethodDef windowscMethods
[] = {
10453 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10454 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10455 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10456 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10457 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10458 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10459 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10460 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10461 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10591 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10592 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10593 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10594 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10595 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10596 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10597 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10598 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10599 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10600 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10601 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10602 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10603 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10604 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10605 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10606 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10607 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10608 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10609 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10610 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10611 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10612 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10613 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10614 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10615 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10616 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10617 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10618 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10619 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10620 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10621 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10622 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10623 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10624 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10625 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10626 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10627 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10628 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10629 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10630 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10631 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10632 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10633 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10634 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10635 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10636 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10637 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10638 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10639 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10640 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10641 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10642 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10643 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10644 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10645 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10646 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10647 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10648 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10649 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10650 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10651 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10652 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10653 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10654 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10655 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10656 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10657 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10658 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10659 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10660 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10661 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10662 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10663 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10664 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10665 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10666 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10667 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10668 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10669 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10670 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10671 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10672 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10673 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10674 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10675 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10676 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10677 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10678 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10679 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10680 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10681 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10682 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10683 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10684 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10685 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10686 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10687 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10688 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10689 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10690 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10691 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10692 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10693 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10694 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10695 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10696 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10697 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10698 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10699 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10700 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10701 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10702 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10703 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10704 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10705 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10706 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10707 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10708 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10709 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10710 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10711 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10712 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10713 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10714 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10715 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10716 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10717 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10718 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10719 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10720 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10721 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10722 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10723 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10724 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10725 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10726 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10727 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10728 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10729 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10730 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10731 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10732 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10733 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10734 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10735 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10736 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10737 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10738 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10748 * This table is used by the pointer type-checker
10750 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10751 { "_signed_long","_long",0},
10752 { "_wxPrintQuality","_wxCoord",0},
10753 { "_wxPrintQuality","_int",0},
10754 { "_wxPrintQuality","_signed_int",0},
10755 { "_wxPrintQuality","_unsigned_int",0},
10756 { "_wxPrintQuality","_wxWindowID",0},
10757 { "_wxPrintQuality","_uint",0},
10758 { "_wxPrintQuality","_EBool",0},
10759 { "_wxPrintQuality","_size_t",0},
10760 { "_wxPrintQuality","_time_t",0},
10761 { "_byte","_unsigned_char",0},
10762 { "_long","_unsigned_long",0},
10763 { "_long","_signed_long",0},
10764 { "_size_t","_wxCoord",0},
10765 { "_size_t","_wxPrintQuality",0},
10766 { "_size_t","_time_t",0},
10767 { "_size_t","_unsigned_int",0},
10768 { "_size_t","_int",0},
10769 { "_size_t","_wxWindowID",0},
10770 { "_size_t","_uint",0},
10771 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10772 { "_uint","_wxCoord",0},
10773 { "_uint","_wxPrintQuality",0},
10774 { "_uint","_time_t",0},
10775 { "_uint","_size_t",0},
10776 { "_uint","_unsigned_int",0},
10777 { "_uint","_int",0},
10778 { "_uint","_wxWindowID",0},
10779 { "_wxChar","_char",0},
10780 { "_char","_wxChar",0},
10781 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10782 { "_EBool","_wxCoord",0},
10783 { "_EBool","_wxPrintQuality",0},
10784 { "_EBool","_signed_int",0},
10785 { "_EBool","_int",0},
10786 { "_EBool","_wxWindowID",0},
10787 { "_unsigned_long","_long",0},
10788 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10789 { "_signed_int","_wxCoord",0},
10790 { "_signed_int","_wxPrintQuality",0},
10791 { "_signed_int","_EBool",0},
10792 { "_signed_int","_wxWindowID",0},
10793 { "_signed_int","_int",0},
10794 { "_WXTYPE","_short",0},
10795 { "_WXTYPE","_signed_short",0},
10796 { "_WXTYPE","_unsigned_short",0},
10797 { "_unsigned_short","_WXTYPE",0},
10798 { "_unsigned_short","_short",0},
10799 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10800 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10801 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10802 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10803 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10804 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10805 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10806 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10807 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10808 { "_signed_short","_WXTYPE",0},
10809 { "_signed_short","_short",0},
10810 { "_unsigned_char","_byte",0},
10811 { "_unsigned_int","_wxCoord",0},
10812 { "_unsigned_int","_wxPrintQuality",0},
10813 { "_unsigned_int","_time_t",0},
10814 { "_unsigned_int","_size_t",0},
10815 { "_unsigned_int","_uint",0},
10816 { "_unsigned_int","_wxWindowID",0},
10817 { "_unsigned_int","_int",0},
10818 { "_short","_WXTYPE",0},
10819 { "_short","_unsigned_short",0},
10820 { "_short","_signed_short",0},
10821 { "_wxWindowID","_wxCoord",0},
10822 { "_wxWindowID","_wxPrintQuality",0},
10823 { "_wxWindowID","_time_t",0},
10824 { "_wxWindowID","_size_t",0},
10825 { "_wxWindowID","_EBool",0},
10826 { "_wxWindowID","_uint",0},
10827 { "_wxWindowID","_int",0},
10828 { "_wxWindowID","_signed_int",0},
10829 { "_wxWindowID","_unsigned_int",0},
10830 { "_int","_wxCoord",0},
10831 { "_int","_wxPrintQuality",0},
10832 { "_int","_time_t",0},
10833 { "_int","_size_t",0},
10834 { "_int","_EBool",0},
10835 { "_int","_uint",0},
10836 { "_int","_wxWindowID",0},
10837 { "_int","_unsigned_int",0},
10838 { "_int","_signed_int",0},
10839 { "_time_t","_wxCoord",0},
10840 { "_time_t","_wxPrintQuality",0},
10841 { "_time_t","_unsigned_int",0},
10842 { "_time_t","_int",0},
10843 { "_time_t","_wxWindowID",0},
10844 { "_time_t","_uint",0},
10845 { "_time_t","_size_t",0},
10846 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10847 { "_wxCoord","_int",0},
10848 { "_wxCoord","_signed_int",0},
10849 { "_wxCoord","_unsigned_int",0},
10850 { "_wxCoord","_wxWindowID",0},
10851 { "_wxCoord","_uint",0},
10852 { "_wxCoord","_EBool",0},
10853 { "_wxCoord","_size_t",0},
10854 { "_wxCoord","_time_t",0},
10855 { "_wxCoord","_wxPrintQuality",0},
10856 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10857 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10858 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10859 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10860 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10861 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10862 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10863 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10864 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10865 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10868 static PyObject
*SWIG_globals
;
10872 SWIGEXPORT(void) initwindowsc() {
10874 SWIG_globals
= SWIG_newvarlink();
10875 m
= Py_InitModule("windowsc", windowscMethods
);
10876 d
= PyModule_GetDict(m
);
10879 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10880 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);