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 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();
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
164 _result
= (wxWindow
*)wxWindow_FromHWND(_arg0
);
166 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
192 _result
= (wxEvtHandler
*)new_wxEvtHandler();
194 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
235 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
237 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
271 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
273 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
300 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
302 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
330 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
332 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
359 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
361 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
387 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
389 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
423 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
425 wxPyEndAllowThreads(__tstate
);
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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
460 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
462 wxPyEndAllowThreads(__tstate
);
463 if (PyErr_Occurred()) return NULL
;
464 } Py_INCREF(Py_None
);
465 _resultobj
= Py_None
;
469 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
470 if (PyCallable_Check(func
)) {
471 self
->Connect(id
, lastId
, eventType
,
472 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
473 new wxPyCallback(func
));
475 else if (func
== Py_None
) {
476 self
->Disconnect(id
, lastId
, eventType
,
477 (wxObjectEventFunction
)
478 &wxPyCallback::EventThunker
);
481 PyErr_SetString(PyExc_TypeError
, "Expected callable object or None.");
484 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 wxEvtHandler
* _arg0
;
491 PyObject
* _argo0
= 0;
492 PyObject
* _obj4
= 0;
493 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
510 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
512 wxPyEndAllowThreads(__tstate
);
513 if (PyErr_Occurred()) return NULL
;
514 } Py_INCREF(Py_None
);
515 _resultobj
= Py_None
;
519 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
520 return self
->Disconnect(id
, lastId
, eventType
,
521 (wxObjectEventFunction
)
522 &wxPyCallback::EventThunker
);
524 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
525 PyObject
* _resultobj
;
527 wxEvtHandler
* _arg0
;
529 int _arg2
= (int ) -1;
530 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
550 } _resultobj
= Py_BuildValue("i",_result
);
554 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
555 self
->SetClientObject(new wxPyClientData(_self
));
557 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
558 PyObject
* _resultobj
;
559 wxEvtHandler
* _arg0
;
561 PyObject
* _argo0
= 0;
562 PyObject
* _obj1
= 0;
563 char *_kwnames
[] = { "self","_self", NULL
};
566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
580 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
582 wxPyEndAllowThreads(__tstate
);
583 if (PyErr_Occurred()) return NULL
;
584 } Py_INCREF(Py_None
);
585 _resultobj
= Py_None
;
589 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
592 src
= (wxValidator
*) ptr
;
593 dest
= (wxEvtHandler
*) src
;
594 return (void *) dest
;
597 static void *SwigwxValidatorTowxObject(void *ptr
) {
600 src
= (wxValidator
*) ptr
;
601 dest
= (wxObject
*) src
;
602 return (void *) dest
;
605 #define new_wxValidator() (new wxValidator())
606 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
607 PyObject
* _resultobj
;
608 wxValidator
* _result
;
609 char *_kwnames
[] = { NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
617 _result
= (wxValidator
*)new_wxValidator();
619 wxPyEndAllowThreads(__tstate
);
620 if (PyErr_Occurred()) return NULL
;
622 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
623 _resultobj
= Py_BuildValue("s",_ptemp
);
626 _resultobj
= Py_None
;
631 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
632 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
634 wxValidator
* _result
;
636 PyObject
* _argo0
= 0;
637 char *_kwnames
[] = { "self", NULL
};
640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
651 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
653 wxPyEndAllowThreads(__tstate
);
654 if (PyErr_Occurred()) return NULL
;
655 }{ _resultobj
= wxPyMake_wxObject(_result
); }
659 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
660 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
664 PyObject
* _argo0
= 0;
665 char *_kwnames
[] = { "self", NULL
};
668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
679 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
681 wxPyEndAllowThreads(__tstate
);
682 if (PyErr_Occurred()) return NULL
;
683 }{ _resultobj
= wxPyMake_wxObject(_result
); }
687 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
688 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
689 PyObject
* _resultobj
;
692 PyObject
* _argo0
= 0;
693 PyObject
* _argo1
= 0;
694 char *_kwnames
[] = { "self","window", NULL
};
697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
707 if (_argo1
== Py_None
) { _arg1
= NULL
; }
708 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
715 wxValidator_SetWindow(_arg0
,_arg1
);
717 wxPyEndAllowThreads(__tstate
);
718 if (PyErr_Occurred()) return NULL
;
719 } Py_INCREF(Py_None
);
720 _resultobj
= Py_None
;
724 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
725 PyObject
* _resultobj
;
727 char *_kwnames
[] = { NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
734 _result
= (bool )wxValidator::IsSilent();
736 wxPyEndAllowThreads(__tstate
);
737 if (PyErr_Occurred()) return NULL
;
738 } _resultobj
= Py_BuildValue("i",_result
);
742 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
743 PyObject
* _resultobj
;
744 int _arg0
= (int ) TRUE
;
745 char *_kwnames
[] = { "doIt", NULL
};
748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
752 wxValidator::SetBellOnError(_arg0
);
754 wxPyEndAllowThreads(__tstate
);
755 if (PyErr_Occurred()) return NULL
;
756 } Py_INCREF(Py_None
);
757 _resultobj
= Py_None
;
761 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
764 src
= (wxPyValidator
*) ptr
;
765 dest
= (wxValidator
*) src
;
766 return (void *) dest
;
769 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
772 src
= (wxPyValidator
*) ptr
;
773 dest
= (wxEvtHandler
*) src
;
774 return (void *) dest
;
777 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
780 src
= (wxPyValidator
*) ptr
;
781 dest
= (wxObject
*) src
;
782 return (void *) dest
;
785 #define new_wxPyValidator() (new wxPyValidator())
786 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
787 PyObject
* _resultobj
;
788 wxPyValidator
* _result
;
789 char *_kwnames
[] = { NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
797 _result
= (wxPyValidator
*)new_wxPyValidator();
799 wxPyEndAllowThreads(__tstate
);
800 if (PyErr_Occurred()) return NULL
;
802 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
803 _resultobj
= Py_BuildValue("s",_ptemp
);
806 _resultobj
= Py_None
;
811 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
812 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
813 PyObject
* _resultobj
;
814 wxPyValidator
* _arg0
;
817 int _arg3
= (int ) TRUE
;
818 PyObject
* _argo0
= 0;
819 PyObject
* _obj1
= 0;
820 PyObject
* _obj2
= 0;
821 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
841 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
843 wxPyEndAllowThreads(__tstate
);
844 if (PyErr_Occurred()) return NULL
;
845 } Py_INCREF(Py_None
);
846 _resultobj
= Py_None
;
850 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
853 src
= (wxWindow
*) ptr
;
854 dest
= (wxEvtHandler
*) src
;
855 return (void *) dest
;
858 static void *SwigwxWindowTowxObject(void *ptr
) {
861 src
= (wxWindow
*) ptr
;
862 dest
= (wxObject
*) src
;
863 return (void *) dest
;
866 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
867 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
868 PyObject
* _resultobj
;
872 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
873 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
874 long _arg4
= (long ) 0;
875 char * _arg5
= (char *) "panel";
876 PyObject
* _argo0
= 0;
878 PyObject
* _obj2
= 0;
880 PyObject
* _obj3
= 0;
881 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
897 if (! wxPoint_helper(_obj2
, &_arg2
))
903 if (! wxSize_helper(_obj3
, &_arg3
))
907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
908 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
910 wxPyEndAllowThreads(__tstate
);
911 if (PyErr_Occurred()) return NULL
;
913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
914 _resultobj
= Py_BuildValue("s",_ptemp
);
917 _resultobj
= Py_None
;
922 #define new_wxPreWindow() (new wxWindow())
923 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
924 PyObject
* _resultobj
;
926 char *_kwnames
[] = { NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
934 _result
= (wxWindow
*)new_wxPreWindow();
936 wxPyEndAllowThreads(__tstate
);
937 if (PyErr_Occurred()) return NULL
;
939 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
940 _resultobj
= Py_BuildValue("s",_ptemp
);
943 _resultobj
= Py_None
;
948 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
949 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
950 PyObject
* _resultobj
;
955 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
956 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
957 long _arg5
= (long ) 0;
958 char * _arg6
= (char *) "panel";
959 PyObject
* _argo0
= 0;
960 PyObject
* _argo1
= 0;
962 PyObject
* _obj3
= 0;
964 PyObject
* _obj4
= 0;
965 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
987 if (! wxPoint_helper(_obj3
, &_arg3
))
993 if (! wxSize_helper(_obj4
, &_arg4
))
997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
998 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1000 wxPyEndAllowThreads(__tstate
);
1001 if (PyErr_Occurred()) return NULL
;
1002 } _resultobj
= Py_BuildValue("i",_result
);
1006 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
1007 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1008 PyObject
* _resultobj
;
1010 PyObject
* _argo0
= 0;
1011 char *_kwnames
[] = { "self", NULL
};
1014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
1017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
1024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1025 wxWindow_CaptureMouse(_arg0
);
1027 wxPyEndAllowThreads(__tstate
);
1028 if (PyErr_Occurred()) return NULL
;
1029 } Py_INCREF(Py_None
);
1030 _resultobj
= Py_None
;
1034 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1035 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1036 PyObject
* _resultobj
;
1038 int _arg1
= (int ) wxBOTH
;
1039 PyObject
* _argo0
= 0;
1040 char *_kwnames
[] = { "self","direction", NULL
};
1043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1054 wxWindow_Center(_arg0
,_arg1
);
1056 wxPyEndAllowThreads(__tstate
);
1057 if (PyErr_Occurred()) return NULL
;
1058 } Py_INCREF(Py_None
);
1059 _resultobj
= Py_None
;
1063 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1064 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1065 PyObject
* _resultobj
;
1067 int _arg1
= (int ) wxBOTH
;
1068 PyObject
* _argo0
= 0;
1069 char *_kwnames
[] = { "self","direction", NULL
};
1072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1082 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1083 wxWindow_Centre(_arg0
,_arg1
);
1085 wxPyEndAllowThreads(__tstate
);
1086 if (PyErr_Occurred()) return NULL
;
1087 } Py_INCREF(Py_None
);
1088 _resultobj
= Py_None
;
1092 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1093 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1094 PyObject
* _resultobj
;
1096 int _arg1
= (int ) wxBOTH
;
1097 PyObject
* _argo0
= 0;
1098 char *_kwnames
[] = { "self","direction", NULL
};
1101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1112 wxWindow_CentreOnParent(_arg0
,_arg1
);
1114 wxPyEndAllowThreads(__tstate
);
1115 if (PyErr_Occurred()) return NULL
;
1116 } Py_INCREF(Py_None
);
1117 _resultobj
= Py_None
;
1121 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1122 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1123 PyObject
* _resultobj
;
1125 int _arg1
= (int ) wxBOTH
;
1126 PyObject
* _argo0
= 0;
1127 char *_kwnames
[] = { "self","direction", NULL
};
1130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1141 wxWindow_CenterOnParent(_arg0
,_arg1
);
1143 wxPyEndAllowThreads(__tstate
);
1144 if (PyErr_Occurred()) return NULL
;
1145 } Py_INCREF(Py_None
);
1146 _resultobj
= Py_None
;
1150 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1151 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1152 PyObject
* _resultobj
;
1154 int _arg1
= (int ) wxBOTH
;
1155 PyObject
* _argo0
= 0;
1156 char *_kwnames
[] = { "self","direction", NULL
};
1159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1170 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1172 wxPyEndAllowThreads(__tstate
);
1173 if (PyErr_Occurred()) return NULL
;
1174 } Py_INCREF(Py_None
);
1175 _resultobj
= Py_None
;
1179 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1180 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1181 PyObject
* _resultobj
;
1183 int _arg1
= (int ) wxBOTH
;
1184 PyObject
* _argo0
= 0;
1185 char *_kwnames
[] = { "self","direction", NULL
};
1188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1199 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1201 wxPyEndAllowThreads(__tstate
);
1202 if (PyErr_Occurred()) return NULL
;
1203 } Py_INCREF(Py_None
);
1204 _resultobj
= Py_None
;
1208 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1209 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1210 PyObject
* _resultobj
;
1212 PyObject
* _argo0
= 0;
1213 char *_kwnames
[] = { "self", NULL
};
1216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1227 wxWindow_Clear(_arg0
);
1229 wxPyEndAllowThreads(__tstate
);
1230 if (PyErr_Occurred()) return NULL
;
1231 } Py_INCREF(Py_None
);
1232 _resultobj
= Py_None
;
1236 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1237 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1238 PyObject
* _resultobj
;
1242 PyObject
* _argo0
= 0;
1244 PyObject
* _obj1
= 0;
1246 PyObject
* _obj2
= 0;
1247 char *_kwnames
[] = { "self","x","y", NULL
};
1250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1260 temp
= (int) PyInt_AsLong(_obj1
);
1264 temp0
= (int) PyInt_AsLong(_obj2
);
1268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1269 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1271 wxPyEndAllowThreads(__tstate
);
1272 if (PyErr_Occurred()) return NULL
;
1273 } Py_INCREF(Py_None
);
1274 _resultobj
= Py_None
;
1277 o
= PyInt_FromLong((long) (*_arg1
));
1278 _resultobj
= t_output_helper(_resultobj
, o
);
1282 o
= PyInt_FromLong((long) (*_arg2
));
1283 _resultobj
= t_output_helper(_resultobj
, o
);
1288 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1289 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1294 PyObject
* _argo0
= 0;
1296 PyObject
* _obj1
= 0;
1297 char *_kwnames
[] = { "self","pt", NULL
};
1301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1312 if (! wxPoint_helper(_obj1
, &_arg1
))
1316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1317 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1319 wxPyEndAllowThreads(__tstate
);
1320 if (PyErr_Occurred()) return NULL
;
1321 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1322 _resultobj
= Py_BuildValue("s",_ptemp
);
1326 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1327 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1328 PyObject
* _resultobj
;
1331 int _arg1
= (int ) FALSE
;
1332 PyObject
* _argo0
= 0;
1333 char *_kwnames
[] = { "self","force", NULL
};
1336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1347 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1349 wxPyEndAllowThreads(__tstate
);
1350 if (PyErr_Occurred()) return NULL
;
1351 } _resultobj
= Py_BuildValue("i",_result
);
1355 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1356 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1360 PyObject
* _argo0
= 0;
1361 char *_kwnames
[] = { "self", NULL
};
1364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1375 _result
= (bool )wxWindow_Destroy(_arg0
);
1377 wxPyEndAllowThreads(__tstate
);
1378 if (PyErr_Occurred()) return NULL
;
1379 } _resultobj
= Py_BuildValue("i",_result
);
1383 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1384 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
* _resultobj
;
1387 PyObject
* _argo0
= 0;
1388 char *_kwnames
[] = { "self", NULL
};
1391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1402 wxWindow_DestroyChildren(_arg0
);
1404 wxPyEndAllowThreads(__tstate
);
1405 if (PyErr_Occurred()) return NULL
;
1406 } Py_INCREF(Py_None
);
1407 _resultobj
= Py_None
;
1411 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1412 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1416 PyObject
* _argo0
= 0;
1417 char *_kwnames
[] = { "self", NULL
};
1420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1431 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1433 wxPyEndAllowThreads(__tstate
);
1434 if (PyErr_Occurred()) return NULL
;
1435 } _resultobj
= Py_BuildValue("i",_result
);
1439 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1440 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1441 PyObject
* _resultobj
;
1444 PyObject
* _argo0
= 0;
1446 char *_kwnames
[] = { "self","accept", NULL
};
1449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1458 _arg1
= (bool ) tempbool1
;
1460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1461 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1463 wxPyEndAllowThreads(__tstate
);
1464 if (PyErr_Occurred()) return NULL
;
1465 } Py_INCREF(Py_None
);
1466 _resultobj
= Py_None
;
1470 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1471 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1475 PyObject
* _argo0
= 0;
1477 char *_kwnames
[] = { "self","enable", NULL
};
1480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1489 _arg1
= (bool ) tempbool1
;
1491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1492 wxWindow_Enable(_arg0
,_arg1
);
1494 wxPyEndAllowThreads(__tstate
);
1495 if (PyErr_Occurred()) return NULL
;
1496 } Py_INCREF(Py_None
);
1497 _resultobj
= Py_None
;
1501 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1502 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1503 PyObject
* _resultobj
;
1507 PyObject
* _argo0
= 0;
1508 char *_kwnames
[] = { "self","id", NULL
};
1511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1522 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1524 wxPyEndAllowThreads(__tstate
);
1525 if (PyErr_Occurred()) return NULL
;
1526 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1530 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1531 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1532 PyObject
* _resultobj
;
1536 PyObject
* _argo0
= 0;
1537 PyObject
* _obj1
= 0;
1538 char *_kwnames
[] = { "self","name", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1551 #if PYTHON_API_VERSION >= 1009
1552 char* tmpPtr
; int tmpSize
;
1553 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1557 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1559 _arg1
= new wxString(tmpPtr
, tmpSize
);
1561 if (!PyString_Check(_obj1
)) {
1562 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1565 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1570 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1572 wxPyEndAllowThreads(__tstate
);
1573 if (PyErr_Occurred()) return NULL
;
1574 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1582 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1583 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1584 PyObject
* _resultobj
;
1586 PyObject
* _argo0
= 0;
1587 char *_kwnames
[] = { "self", NULL
};
1590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1601 wxWindow_Fit(_arg0
);
1603 wxPyEndAllowThreads(__tstate
);
1604 if (PyErr_Occurred()) return NULL
;
1605 } Py_INCREF(Py_None
);
1606 _resultobj
= Py_None
;
1610 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1611 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1612 PyObject
* _resultobj
;
1615 PyObject
* _argo0
= 0;
1616 char *_kwnames
[] = { "self", NULL
};
1620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1631 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1633 wxPyEndAllowThreads(__tstate
);
1634 if (PyErr_Occurred()) return NULL
;
1635 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1636 _resultobj
= Py_BuildValue("s",_ptemp
);
1640 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1641 wxWindowList
& list
= self
->GetChildren();
1642 return wxPy_ConvertList(&list
, "wxWindow");
1644 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1645 PyObject
* _resultobj
;
1648 PyObject
* _argo0
= 0;
1649 char *_kwnames
[] = { "self", NULL
};
1652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1663 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1665 wxPyEndAllowThreads(__tstate
);
1666 if (PyErr_Occurred()) return NULL
;
1668 _resultobj
= _result
;
1673 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1674 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1675 PyObject
* _resultobj
;
1678 PyObject
* _argo0
= 0;
1679 char *_kwnames
[] = { "self", NULL
};
1682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1693 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1695 wxPyEndAllowThreads(__tstate
);
1696 if (PyErr_Occurred()) return NULL
;
1697 } _resultobj
= Py_BuildValue("i",_result
);
1701 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1702 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1706 PyObject
* _argo0
= 0;
1707 char *_kwnames
[] = { "self", NULL
};
1710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1721 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1723 wxPyEndAllowThreads(__tstate
);
1724 if (PyErr_Occurred()) return NULL
;
1725 } _resultobj
= Py_BuildValue("i",_result
);
1729 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1730 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1737 PyObject
* _argo0
= 0;
1738 char *_kwnames
[] = { "self", NULL
};
1747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1758 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1760 wxPyEndAllowThreads(__tstate
);
1761 if (PyErr_Occurred()) return NULL
;
1762 } Py_INCREF(Py_None
);
1763 _resultobj
= Py_None
;
1766 o
= PyInt_FromLong((long) (*_arg1
));
1767 _resultobj
= t_output_helper(_resultobj
, o
);
1771 o
= PyInt_FromLong((long) (*_arg2
));
1772 _resultobj
= t_output_helper(_resultobj
, o
);
1777 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1778 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1779 PyObject
* _resultobj
;
1782 PyObject
* _argo0
= 0;
1783 char *_kwnames
[] = { "self", NULL
};
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1798 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1800 wxPyEndAllowThreads(__tstate
);
1801 if (PyErr_Occurred()) return NULL
;
1802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1803 _resultobj
= Py_BuildValue("s",_ptemp
);
1807 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1808 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1809 PyObject
* _resultobj
;
1810 wxLayoutConstraints
* _result
;
1812 PyObject
* _argo0
= 0;
1813 char *_kwnames
[] = { "self", NULL
};
1817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1828 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1830 wxPyEndAllowThreads(__tstate
);
1831 if (PyErr_Occurred()) return NULL
;
1833 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1834 _resultobj
= Py_BuildValue("s",_ptemp
);
1837 _resultobj
= Py_None
;
1842 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1843 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1844 PyObject
* _resultobj
;
1845 wxEvtHandler
* _result
;
1847 PyObject
* _argo0
= 0;
1848 char *_kwnames
[] = { "self", NULL
};
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1862 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1864 wxPyEndAllowThreads(__tstate
);
1865 if (PyErr_Occurred()) return NULL
;
1866 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1870 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1871 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
* _resultobj
;
1875 PyObject
* _argo0
= 0;
1876 char *_kwnames
[] = { "self", NULL
};
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1891 _result
= new wxFont (wxWindow_GetFont(_arg0
));
1893 wxPyEndAllowThreads(__tstate
);
1894 if (PyErr_Occurred()) return NULL
;
1895 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
1896 _resultobj
= Py_BuildValue("s",_ptemp
);
1900 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1901 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
* _resultobj
;
1905 PyObject
* _argo0
= 0;
1906 char *_kwnames
[] = { "self", NULL
};
1910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1921 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1923 wxPyEndAllowThreads(__tstate
);
1924 if (PyErr_Occurred()) return NULL
;
1925 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1926 _resultobj
= Py_BuildValue("s",_ptemp
);
1930 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1931 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1932 PyObject
* _resultobj
;
1935 PyObject
* _argo0
= 0;
1936 char *_kwnames
[] = { "self", NULL
};
1939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1950 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1952 wxPyEndAllowThreads(__tstate
);
1953 if (PyErr_Occurred()) return NULL
;
1954 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1958 static long wxWindow_GetHandle(wxWindow
*self
) {
1959 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1961 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1962 PyObject
* _resultobj
;
1965 PyObject
* _argo0
= 0;
1966 char *_kwnames
[] = { "self", NULL
};
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1980 _result
= (long )wxWindow_GetHandle(_arg0
);
1982 wxPyEndAllowThreads(__tstate
);
1983 if (PyErr_Occurred()) return NULL
;
1984 } _resultobj
= Py_BuildValue("l",_result
);
1988 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1989 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
* _resultobj
;
1993 PyObject
* _argo0
= 0;
1994 char *_kwnames
[] = { "self", NULL
};
1997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
2000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2008 _result
= (int )wxWindow_GetId(_arg0
);
2010 wxPyEndAllowThreads(__tstate
);
2011 if (PyErr_Occurred()) return NULL
;
2012 } _resultobj
= Py_BuildValue("i",_result
);
2016 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2017 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
* _resultobj
;
2021 PyObject
* _argo0
= 0;
2022 char *_kwnames
[] = { "self", NULL
};
2025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
2028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2036 _result
= new wxString (wxWindow_GetLabel(_arg0
));
2038 wxPyEndAllowThreads(__tstate
);
2039 if (PyErr_Occurred()) return NULL
;
2041 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2049 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2050 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2051 PyObject
* _resultobj
;
2054 PyObject
* _argo0
= 0;
2055 PyObject
* _obj1
= 0;
2056 char *_kwnames
[] = { "self","label", NULL
};
2059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2069 #if PYTHON_API_VERSION >= 1009
2070 char* tmpPtr
; int tmpSize
;
2071 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2075 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2077 _arg1
= new wxString(tmpPtr
, tmpSize
);
2079 if (!PyString_Check(_obj1
)) {
2080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2083 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2088 wxWindow_SetLabel(_arg0
,*_arg1
);
2090 wxPyEndAllowThreads(__tstate
);
2091 if (PyErr_Occurred()) return NULL
;
2092 } Py_INCREF(Py_None
);
2093 _resultobj
= Py_None
;
2101 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2102 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2103 PyObject
* _resultobj
;
2106 PyObject
* _argo0
= 0;
2107 char *_kwnames
[] = { "self", NULL
};
2110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2121 _result
= new wxString (wxWindow_GetName(_arg0
));
2123 wxPyEndAllowThreads(__tstate
);
2124 if (PyErr_Occurred()) return NULL
;
2126 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2134 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2135 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2136 PyObject
* _resultobj
;
2139 PyObject
* _argo0
= 0;
2140 char *_kwnames
[] = { "self", NULL
};
2143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2154 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2156 wxPyEndAllowThreads(__tstate
);
2157 if (PyErr_Occurred()) return NULL
;
2158 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2162 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2163 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2164 PyObject
* _resultobj
;
2170 PyObject
* _argo0
= 0;
2171 char *_kwnames
[] = { "self", NULL
};
2180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2191 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2193 wxPyEndAllowThreads(__tstate
);
2194 if (PyErr_Occurred()) return NULL
;
2195 } Py_INCREF(Py_None
);
2196 _resultobj
= Py_None
;
2199 o
= PyInt_FromLong((long) (*_arg1
));
2200 _resultobj
= t_output_helper(_resultobj
, o
);
2204 o
= PyInt_FromLong((long) (*_arg2
));
2205 _resultobj
= t_output_helper(_resultobj
, o
);
2210 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2211 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2212 PyObject
* _resultobj
;
2215 PyObject
* _argo0
= 0;
2216 char *_kwnames
[] = { "self", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2231 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2233 wxPyEndAllowThreads(__tstate
);
2234 if (PyErr_Occurred()) return NULL
;
2235 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2236 _resultobj
= Py_BuildValue("s",_ptemp
);
2240 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2241 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2245 PyObject
* _argo0
= 0;
2246 char *_kwnames
[] = { "self", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2261 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2263 wxPyEndAllowThreads(__tstate
);
2264 if (PyErr_Occurred()) return NULL
;
2265 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2266 _resultobj
= Py_BuildValue("s",_ptemp
);
2270 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2271 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2272 PyObject
* _resultobj
;
2276 PyObject
* _argo0
= 0;
2277 char *_kwnames
[] = { "self","orientation", NULL
};
2280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2291 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2293 wxPyEndAllowThreads(__tstate
);
2294 if (PyErr_Occurred()) return NULL
;
2295 } _resultobj
= Py_BuildValue("i",_result
);
2299 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2300 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2301 PyObject
* _resultobj
;
2305 PyObject
* _argo0
= 0;
2306 char *_kwnames
[] = { "self","orientation", NULL
};
2309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2320 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2322 wxPyEndAllowThreads(__tstate
);
2323 if (PyErr_Occurred()) return NULL
;
2324 } _resultobj
= Py_BuildValue("i",_result
);
2328 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2329 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2330 PyObject
* _resultobj
;
2334 PyObject
* _argo0
= 0;
2335 char *_kwnames
[] = { "self","orientation", NULL
};
2338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2349 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2351 wxPyEndAllowThreads(__tstate
);
2352 if (PyErr_Occurred()) return NULL
;
2353 } _resultobj
= Py_BuildValue("i",_result
);
2357 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2358 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2365 PyObject
* _argo0
= 0;
2366 char *_kwnames
[] = { "self", NULL
};
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2386 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2388 wxPyEndAllowThreads(__tstate
);
2389 if (PyErr_Occurred()) return NULL
;
2390 } Py_INCREF(Py_None
);
2391 _resultobj
= Py_None
;
2394 o
= PyInt_FromLong((long) (*_arg1
));
2395 _resultobj
= t_output_helper(_resultobj
, o
);
2399 o
= PyInt_FromLong((long) (*_arg2
));
2400 _resultobj
= t_output_helper(_resultobj
, o
);
2405 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2406 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2407 PyObject
* _resultobj
;
2410 PyObject
* _argo0
= 0;
2411 char *_kwnames
[] = { "self", NULL
};
2415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2426 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2428 wxPyEndAllowThreads(__tstate
);
2429 if (PyErr_Occurred()) return NULL
;
2430 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2431 _resultobj
= Py_BuildValue("s",_ptemp
);
2435 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2436 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2437 PyObject
* _resultobj
;
2444 PyObject
* _argo0
= 0;
2445 PyObject
* _obj1
= 0;
2446 char *_kwnames
[] = { "self","string", NULL
};
2455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2465 #if PYTHON_API_VERSION >= 1009
2466 char* tmpPtr
; int tmpSize
;
2467 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2468 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2471 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2473 _arg1
= new wxString(tmpPtr
, tmpSize
);
2475 if (!PyString_Check(_obj1
)) {
2476 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2479 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2484 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2486 wxPyEndAllowThreads(__tstate
);
2487 if (PyErr_Occurred()) return NULL
;
2488 } Py_INCREF(Py_None
);
2489 _resultobj
= Py_None
;
2492 o
= PyInt_FromLong((long) (*_arg2
));
2493 _resultobj
= t_output_helper(_resultobj
, o
);
2497 o
= PyInt_FromLong((long) (*_arg3
));
2498 _resultobj
= t_output_helper(_resultobj
, o
);
2507 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2508 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2509 PyObject
* _resultobj
;
2520 wxFont
* _arg6
= (wxFont
*) NULL
;
2521 PyObject
* _argo0
= 0;
2522 PyObject
* _obj1
= 0;
2523 PyObject
* _argo6
= 0;
2524 char *_kwnames
[] = { "self","string","font", NULL
};
2539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2549 #if PYTHON_API_VERSION >= 1009
2550 char* tmpPtr
; int tmpSize
;
2551 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2552 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2555 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2557 _arg1
= new wxString(tmpPtr
, tmpSize
);
2559 if (!PyString_Check(_obj1
)) {
2560 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2563 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2567 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2568 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2575 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2577 wxPyEndAllowThreads(__tstate
);
2578 if (PyErr_Occurred()) return NULL
;
2579 } Py_INCREF(Py_None
);
2580 _resultobj
= Py_None
;
2583 o
= PyInt_FromLong((long) (*_arg2
));
2584 _resultobj
= t_output_helper(_resultobj
, o
);
2588 o
= PyInt_FromLong((long) (*_arg3
));
2589 _resultobj
= t_output_helper(_resultobj
, o
);
2593 o
= PyInt_FromLong((long) (*_arg4
));
2594 _resultobj
= t_output_helper(_resultobj
, o
);
2598 o
= PyInt_FromLong((long) (*_arg5
));
2599 _resultobj
= t_output_helper(_resultobj
, o
);
2608 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2609 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2628 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2630 wxPyEndAllowThreads(__tstate
);
2631 if (PyErr_Occurred()) return NULL
;
2633 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2641 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2642 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2643 PyObject
* _resultobj
;
2646 PyObject
* _argo0
= 0;
2647 char *_kwnames
[] = { "self", NULL
};
2651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2662 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2664 wxPyEndAllowThreads(__tstate
);
2665 if (PyErr_Occurred()) return NULL
;
2666 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2667 _resultobj
= Py_BuildValue("s",_ptemp
);
2671 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2672 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2673 PyObject
* _resultobj
;
2676 PyObject
* _argo0
= 0;
2677 char *_kwnames
[] = { "self", NULL
};
2680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2691 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2693 wxPyEndAllowThreads(__tstate
);
2694 if (PyErr_Occurred()) return NULL
;
2695 } _resultobj
= Py_BuildValue("l",_result
);
2699 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2700 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2701 PyObject
* _resultobj
;
2704 PyObject
* _argo0
= 0;
2705 char *_kwnames
[] = { "self","style", NULL
};
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2719 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2721 wxPyEndAllowThreads(__tstate
);
2722 if (PyErr_Occurred()) return NULL
;
2723 } Py_INCREF(Py_None
);
2724 _resultobj
= Py_None
;
2728 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2729 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2730 PyObject
* _resultobj
;
2733 PyObject
* _argo0
= 0;
2734 char *_kwnames
[] = { "self","style", NULL
};
2737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2748 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2750 wxPyEndAllowThreads(__tstate
);
2751 if (PyErr_Occurred()) return NULL
;
2752 } Py_INCREF(Py_None
);
2753 _resultobj
= Py_None
;
2757 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2758 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2759 PyObject
* _resultobj
;
2762 PyObject
* _argo0
= 0;
2763 char *_kwnames
[] = { "self", NULL
};
2766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2777 _result
= (bool )wxWindow_Hide(_arg0
);
2779 wxPyEndAllowThreads(__tstate
);
2780 if (PyErr_Occurred()) return NULL
;
2781 } _resultobj
= Py_BuildValue("i",_result
);
2785 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2786 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2787 PyObject
* _resultobj
;
2789 PyObject
* _argo0
= 0;
2790 char *_kwnames
[] = { "self", NULL
};
2793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2804 wxWindow_InitDialog(_arg0
);
2806 wxPyEndAllowThreads(__tstate
);
2807 if (PyErr_Occurred()) return NULL
;
2808 } Py_INCREF(Py_None
);
2809 _resultobj
= Py_None
;
2813 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2814 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2815 PyObject
* _resultobj
;
2818 PyObject
* _argo0
= 0;
2819 char *_kwnames
[] = { "self", NULL
};
2822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2833 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2835 wxPyEndAllowThreads(__tstate
);
2836 if (PyErr_Occurred()) return NULL
;
2837 } _resultobj
= Py_BuildValue("i",_result
);
2841 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2842 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2843 PyObject
* _resultobj
;
2848 int _arg3
= (int ) 0;
2849 int _arg4
= (int ) 0;
2850 PyObject
* _argo0
= 0;
2851 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2865 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2867 wxPyEndAllowThreads(__tstate
);
2868 if (PyErr_Occurred()) return NULL
;
2869 } _resultobj
= Py_BuildValue("i",_result
);
2873 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2874 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2879 PyObject
* _argo0
= 0;
2881 PyObject
* _obj1
= 0;
2882 char *_kwnames
[] = { "self","pt", NULL
};
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2896 if (! wxPoint_helper(_obj1
, &_arg1
))
2900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2901 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2903 wxPyEndAllowThreads(__tstate
);
2904 if (PyErr_Occurred()) return NULL
;
2905 } _resultobj
= Py_BuildValue("i",_result
);
2909 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2910 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2911 PyObject
* _resultobj
;
2915 PyObject
* _argo0
= 0;
2917 PyObject
* _obj1
= 0;
2918 char *_kwnames
[] = { "self","rect", NULL
};
2921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2932 if (! wxRect_helper(_obj1
, &_arg1
))
2936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2937 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2939 wxPyEndAllowThreads(__tstate
);
2940 if (PyErr_Occurred()) return NULL
;
2941 } _resultobj
= Py_BuildValue("i",_result
);
2945 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2946 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2947 PyObject
* _resultobj
;
2950 PyObject
* _argo0
= 0;
2951 char *_kwnames
[] = { "self", NULL
};
2954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2965 _result
= (bool )wxWindow_IsRetained(_arg0
);
2967 wxPyEndAllowThreads(__tstate
);
2968 if (PyErr_Occurred()) return NULL
;
2969 } _resultobj
= Py_BuildValue("i",_result
);
2973 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2974 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2975 PyObject
* _resultobj
;
2978 PyObject
* _argo0
= 0;
2979 char *_kwnames
[] = { "self", NULL
};
2982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2993 _result
= (bool )wxWindow_IsShown(_arg0
);
2995 wxPyEndAllowThreads(__tstate
);
2996 if (PyErr_Occurred()) return NULL
;
2997 } _resultobj
= Py_BuildValue("i",_result
);
3001 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3002 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3003 PyObject
* _resultobj
;
3006 PyObject
* _argo0
= 0;
3007 char *_kwnames
[] = { "self", NULL
};
3010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
3013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3021 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
3023 wxPyEndAllowThreads(__tstate
);
3024 if (PyErr_Occurred()) return NULL
;
3025 } _resultobj
= Py_BuildValue("i",_result
);
3029 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3030 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3031 PyObject
* _resultobj
;
3033 PyObject
* _argo0
= 0;
3034 char *_kwnames
[] = { "self", NULL
};
3037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
3040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3048 wxWindow_Layout(_arg0
);
3050 wxPyEndAllowThreads(__tstate
);
3051 if (PyErr_Occurred()) return NULL
;
3052 } Py_INCREF(Py_None
);
3053 _resultobj
= Py_None
;
3057 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3058 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3059 PyObject
* _resultobj
;
3064 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3065 PyObject
* _argo0
= 0;
3066 PyObject
* _argo1
= 0;
3067 PyObject
* _obj2
= 0;
3068 PyObject
* _argo3
= 0;
3069 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3082 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3083 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3089 #if PYTHON_API_VERSION >= 1009
3090 char* tmpPtr
; int tmpSize
;
3091 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3092 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3095 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3097 _arg2
= new wxString(tmpPtr
, tmpSize
);
3099 if (!PyString_Check(_obj2
)) {
3100 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3103 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3107 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3108 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3115 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3117 wxPyEndAllowThreads(__tstate
);
3118 if (PyErr_Occurred()) return NULL
;
3119 } _resultobj
= Py_BuildValue("i",_result
);
3127 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3128 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3131 PyObject
* _argo0
= 0;
3132 char *_kwnames
[] = { "self", NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3146 wxWindow_Lower(_arg0
);
3148 wxPyEndAllowThreads(__tstate
);
3149 if (PyErr_Occurred()) return NULL
;
3150 } Py_INCREF(Py_None
);
3151 _resultobj
= Py_None
;
3155 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3156 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3157 PyObject
* _resultobj
;
3159 bool _arg1
= (bool ) TRUE
;
3160 PyObject
* _argo0
= 0;
3161 int tempbool1
= (int) TRUE
;
3162 char *_kwnames
[] = { "self","flag", NULL
};
3165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3174 _arg1
= (bool ) tempbool1
;
3176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3177 wxWindow_MakeModal(_arg0
,_arg1
);
3179 wxPyEndAllowThreads(__tstate
);
3180 if (PyErr_Occurred()) return NULL
;
3181 } Py_INCREF(Py_None
);
3182 _resultobj
= Py_None
;
3186 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3187 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3188 PyObject
* _resultobj
;
3192 PyObject
* _argo0
= 0;
3193 char *_kwnames
[] = { "self","x","y", NULL
};
3196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3207 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3209 wxPyEndAllowThreads(__tstate
);
3210 if (PyErr_Occurred()) return NULL
;
3211 } Py_INCREF(Py_None
);
3212 _resultobj
= Py_None
;
3216 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3217 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3218 PyObject
* _resultobj
;
3221 PyObject
* _argo0
= 0;
3223 PyObject
* _obj1
= 0;
3224 char *_kwnames
[] = { "self","point", NULL
};
3227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3238 if (! wxPoint_helper(_obj1
, &_arg1
))
3242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3243 wxWindow_Move(_arg0
,*_arg1
);
3245 wxPyEndAllowThreads(__tstate
);
3246 if (PyErr_Occurred()) return NULL
;
3247 } Py_INCREF(Py_None
);
3248 _resultobj
= Py_None
;
3252 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3253 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3254 PyObject
* _resultobj
;
3255 wxEvtHandler
* _result
;
3257 bool _arg1
= (bool ) FALSE
;
3258 PyObject
* _argo0
= 0;
3259 int tempbool1
= (int) FALSE
;
3260 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3272 _arg1
= (bool ) tempbool1
;
3274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3275 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3277 wxPyEndAllowThreads(__tstate
);
3278 if (PyErr_Occurred()) return NULL
;
3279 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3283 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3284 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3285 PyObject
* _resultobj
;
3287 wxEvtHandler
* _arg1
;
3288 PyObject
* _argo0
= 0;
3289 PyObject
* _argo1
= 0;
3290 char *_kwnames
[] = { "self","handler", NULL
};
3293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3303 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3311 wxWindow_PushEventHandler(_arg0
,_arg1
);
3313 wxPyEndAllowThreads(__tstate
);
3314 if (PyErr_Occurred()) return NULL
;
3315 } Py_INCREF(Py_None
);
3316 _resultobj
= Py_None
;
3320 #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0))
3321 static PyObject
*_wrap_wxWindow_RemoveEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3322 PyObject
* _resultobj
;
3325 wxEvtHandler
* _arg1
;
3326 PyObject
* _argo0
= 0;
3327 PyObject
* _argo1
= 0;
3328 char *_kwnames
[] = { "self","handler", NULL
};
3331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveEventHandler",_kwnames
,&_argo0
,&_argo1
))
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_RemoveEventHandler. Expected _wxWindow_p.");
3341 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3342 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p.");
3348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3349 _result
= (bool )wxWindow_RemoveEventHandler(_arg0
,_arg1
);
3351 wxPyEndAllowThreads(__tstate
);
3352 if (PyErr_Occurred()) return NULL
;
3353 } _resultobj
= Py_BuildValue("i",_result
);
3357 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3358 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3359 PyObject
* _resultobj
;
3365 PyObject
* _argo0
= 0;
3366 PyObject
* _argo1
= 0;
3367 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3380 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3381 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3387 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3388 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3390 wxPyEndAllowThreads(__tstate
);
3391 if (PyErr_Occurred()) return NULL
;
3392 } _resultobj
= Py_BuildValue("i",_result
);
3396 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3397 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3398 PyObject
* _resultobj
;
3403 PyObject
* _argo0
= 0;
3404 PyObject
* _argo1
= 0;
3406 PyObject
* _obj2
= 0;
3407 char *_kwnames
[] = { "self","menu","pos", NULL
};
3410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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_PopupMenu. Expected _wxWindow_p.");
3420 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3421 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3428 if (! wxPoint_helper(_obj2
, &_arg2
))
3432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3433 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3435 wxPyEndAllowThreads(__tstate
);
3436 if (PyErr_Occurred()) return NULL
;
3437 } _resultobj
= Py_BuildValue("i",_result
);
3441 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3442 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3443 PyObject
* _resultobj
;
3445 PyObject
* _argo0
= 0;
3446 char *_kwnames
[] = { "self", NULL
};
3449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3460 wxWindow_Raise(_arg0
);
3462 wxPyEndAllowThreads(__tstate
);
3463 if (PyErr_Occurred()) return NULL
;
3464 } Py_INCREF(Py_None
);
3465 _resultobj
= Py_None
;
3469 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3470 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3471 PyObject
* _resultobj
;
3473 bool _arg1
= (bool ) TRUE
;
3474 wxRect
* _arg2
= (wxRect
*) NULL
;
3475 PyObject
* _argo0
= 0;
3476 int tempbool1
= (int) TRUE
;
3478 PyObject
* _obj2
= 0;
3479 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3491 _arg1
= (bool ) tempbool1
;
3495 if (! wxRect_helper(_obj2
, &_arg2
))
3499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3500 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3502 wxPyEndAllowThreads(__tstate
);
3503 if (PyErr_Occurred()) return NULL
;
3504 } Py_INCREF(Py_None
);
3505 _resultobj
= Py_None
;
3509 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3510 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
* _resultobj
;
3514 PyObject
* _argo0
= 0;
3516 PyObject
* _obj1
= 0;
3517 char *_kwnames
[] = { "self","rect", NULL
};
3520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3531 if (! wxRect_helper(_obj1
, &_arg1
))
3535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3536 wxWindow_RefreshRect(_arg0
,*_arg1
);
3538 wxPyEndAllowThreads(__tstate
);
3539 if (PyErr_Occurred()) return NULL
;
3540 } Py_INCREF(Py_None
);
3541 _resultobj
= Py_None
;
3545 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3546 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3547 PyObject
* _resultobj
;
3549 PyObject
* _argo0
= 0;
3550 char *_kwnames
[] = { "self", NULL
};
3553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3564 wxWindow_ReleaseMouse(_arg0
);
3566 wxPyEndAllowThreads(__tstate
);
3567 if (PyErr_Occurred()) return NULL
;
3568 } Py_INCREF(Py_None
);
3569 _resultobj
= Py_None
;
3573 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3574 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3575 PyObject
* _resultobj
;
3578 PyObject
* _argo0
= 0;
3579 PyObject
* _argo1
= 0;
3580 char *_kwnames
[] = { "self","child", NULL
};
3583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3593 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3594 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3601 wxWindow_RemoveChild(_arg0
,_arg1
);
3603 wxPyEndAllowThreads(__tstate
);
3604 if (PyErr_Occurred()) return NULL
;
3605 } Py_INCREF(Py_None
);
3606 _resultobj
= Py_None
;
3610 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3611 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3612 PyObject
* _resultobj
;
3616 PyObject
* _argo0
= 0;
3617 PyObject
* _argo1
= 0;
3618 char *_kwnames
[] = { "self","newParent", NULL
};
3621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3631 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3632 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3639 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3641 wxPyEndAllowThreads(__tstate
);
3642 if (PyErr_Occurred()) return NULL
;
3643 } _resultobj
= Py_BuildValue("i",_result
);
3647 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3648 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3649 PyObject
* _resultobj
;
3653 PyObject
* _argo0
= 0;
3655 PyObject
* _obj1
= 0;
3657 PyObject
* _obj2
= 0;
3658 char *_kwnames
[] = { "self","x","y", NULL
};
3661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3671 temp
= (int) PyInt_AsLong(_obj1
);
3675 temp0
= (int) PyInt_AsLong(_obj2
);
3679 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3680 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3682 wxPyEndAllowThreads(__tstate
);
3683 if (PyErr_Occurred()) return NULL
;
3684 } Py_INCREF(Py_None
);
3685 _resultobj
= Py_None
;
3688 o
= PyInt_FromLong((long) (*_arg1
));
3689 _resultobj
= t_output_helper(_resultobj
, o
);
3693 o
= PyInt_FromLong((long) (*_arg2
));
3694 _resultobj
= t_output_helper(_resultobj
, o
);
3699 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3700 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3701 PyObject
* _resultobj
;
3705 PyObject
* _argo0
= 0;
3707 PyObject
* _obj1
= 0;
3708 char *_kwnames
[] = { "self","pt", NULL
};
3712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3723 if (! wxPoint_helper(_obj1
, &_arg1
))
3727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3728 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3730 wxPyEndAllowThreads(__tstate
);
3731 if (PyErr_Occurred()) return NULL
;
3732 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3733 _resultobj
= Py_BuildValue("s",_ptemp
);
3737 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3738 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3739 PyObject
* _resultobj
;
3743 wxRect
* _arg3
= (wxRect
*) NULL
;
3744 PyObject
* _argo0
= 0;
3746 PyObject
* _obj3
= 0;
3747 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3762 if (! wxRect_helper(_obj3
, &_arg3
))
3766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3767 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3769 wxPyEndAllowThreads(__tstate
);
3770 if (PyErr_Occurred()) return NULL
;
3771 } Py_INCREF(Py_None
);
3772 _resultobj
= Py_None
;
3776 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3777 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3778 PyObject
* _resultobj
;
3781 PyObject
* _argo0
= 0;
3783 char *_kwnames
[] = { "self","autoLayout", NULL
};
3786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3795 _arg1
= (bool ) tempbool1
;
3797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3798 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3800 wxPyEndAllowThreads(__tstate
);
3801 if (PyErr_Occurred()) return NULL
;
3802 } Py_INCREF(Py_None
);
3803 _resultobj
= Py_None
;
3807 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3808 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3809 PyObject
* _resultobj
;
3812 PyObject
* _argo0
= 0;
3813 char *_kwnames
[] = { "self", NULL
};
3816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3827 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3829 wxPyEndAllowThreads(__tstate
);
3830 if (PyErr_Occurred()) return NULL
;
3831 } _resultobj
= Py_BuildValue("i",_result
);
3835 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3836 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3837 PyObject
* _resultobj
;
3840 PyObject
* _argo0
= 0;
3842 PyObject
* _obj1
= 0;
3843 char *_kwnames
[] = { "self","colour", NULL
};
3846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3857 if (! wxColour_helper(_obj1
, &_arg1
))
3861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3862 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3864 wxPyEndAllowThreads(__tstate
);
3865 if (PyErr_Occurred()) return NULL
;
3866 } Py_INCREF(Py_None
);
3867 _resultobj
= Py_None
;
3871 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3872 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3873 PyObject
* _resultobj
;
3875 wxLayoutConstraints
* _arg1
;
3876 PyObject
* _argo0
= 0;
3877 PyObject
* _argo1
= 0;
3878 char *_kwnames
[] = { "self","constraints", NULL
};
3881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3891 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3892 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3899 wxWindow_SetConstraints(_arg0
,_arg1
);
3901 wxPyEndAllowThreads(__tstate
);
3902 if (PyErr_Occurred()) return NULL
;
3903 } Py_INCREF(Py_None
);
3904 _resultobj
= Py_None
;
3908 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3909 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3910 PyObject
* _resultobj
;
3912 wxLayoutConstraints
* _arg1
;
3913 PyObject
* _argo0
= 0;
3914 PyObject
* _argo1
= 0;
3915 char *_kwnames
[] = { "self","constraints", NULL
};
3918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3928 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3929 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3935 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3936 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3938 wxPyEndAllowThreads(__tstate
);
3939 if (PyErr_Occurred()) return NULL
;
3940 } Py_INCREF(Py_None
);
3941 _resultobj
= Py_None
;
3945 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3946 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3947 PyObject
* _resultobj
;
3949 PyObject
* _argo0
= 0;
3950 char *_kwnames
[] = { "self", NULL
};
3953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3964 wxWindow_SetFocus(_arg0
);
3966 wxPyEndAllowThreads(__tstate
);
3967 if (PyErr_Occurred()) return NULL
;
3968 } Py_INCREF(Py_None
);
3969 _resultobj
= Py_None
;
3973 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3974 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3975 PyObject
* _resultobj
;
3978 PyObject
* _argo0
= 0;
3979 char *_kwnames
[] = { "self", NULL
};
3982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3993 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3995 wxPyEndAllowThreads(__tstate
);
3996 if (PyErr_Occurred()) return NULL
;
3997 } _resultobj
= Py_BuildValue("i",_result
);
4001 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
4002 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4003 PyObject
* _resultobj
;
4006 PyObject
* _argo0
= 0;
4007 PyObject
* _argo1
= 0;
4008 char *_kwnames
[] = { "self","font", NULL
};
4011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
4014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
4021 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4022 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
4028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4029 wxWindow_SetFont(_arg0
,*_arg1
);
4031 wxPyEndAllowThreads(__tstate
);
4032 if (PyErr_Occurred()) return NULL
;
4033 } Py_INCREF(Py_None
);
4034 _resultobj
= Py_None
;
4038 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4039 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4040 PyObject
* _resultobj
;
4043 PyObject
* _argo0
= 0;
4045 PyObject
* _obj1
= 0;
4046 char *_kwnames
[] = { "self","colour", NULL
};
4049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
4052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4060 if (! wxColour_helper(_obj1
, &_arg1
))
4064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4065 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
4067 wxPyEndAllowThreads(__tstate
);
4068 if (PyErr_Occurred()) return NULL
;
4069 } Py_INCREF(Py_None
);
4070 _resultobj
= Py_None
;
4074 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4075 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4076 PyObject
* _resultobj
;
4079 PyObject
* _argo0
= 0;
4080 char *_kwnames
[] = { "self","id", NULL
};
4083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
4086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4094 wxWindow_SetId(_arg0
,_arg1
);
4096 wxPyEndAllowThreads(__tstate
);
4097 if (PyErr_Occurred()) return NULL
;
4098 } Py_INCREF(Py_None
);
4099 _resultobj
= Py_None
;
4103 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4104 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4105 PyObject
* _resultobj
;
4108 PyObject
* _argo0
= 0;
4109 PyObject
* _obj1
= 0;
4110 char *_kwnames
[] = { "self","name", NULL
};
4113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4123 #if PYTHON_API_VERSION >= 1009
4124 char* tmpPtr
; int tmpSize
;
4125 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4126 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4129 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4131 _arg1
= new wxString(tmpPtr
, tmpSize
);
4133 if (!PyString_Check(_obj1
)) {
4134 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4137 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4142 wxWindow_SetName(_arg0
,*_arg1
);
4144 wxPyEndAllowThreads(__tstate
);
4145 if (PyErr_Occurred()) return NULL
;
4146 } Py_INCREF(Py_None
);
4147 _resultobj
= Py_None
;
4155 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4156 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4157 PyObject
* _resultobj
;
4163 int _arg5
= (int ) TRUE
;
4164 PyObject
* _argo0
= 0;
4165 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4179 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4181 wxPyEndAllowThreads(__tstate
);
4182 if (PyErr_Occurred()) return NULL
;
4183 } Py_INCREF(Py_None
);
4184 _resultobj
= Py_None
;
4188 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4189 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4190 PyObject
* _resultobj
;
4194 bool _arg3
= (bool ) TRUE
;
4195 PyObject
* _argo0
= 0;
4196 int tempbool3
= (int) TRUE
;
4197 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4209 _arg3
= (bool ) tempbool3
;
4211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4212 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4214 wxPyEndAllowThreads(__tstate
);
4215 if (PyErr_Occurred()) return NULL
;
4216 } Py_INCREF(Py_None
);
4217 _resultobj
= Py_None
;
4221 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4222 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4223 PyObject
* _resultobj
;
4229 int _arg5
= (int ) wxSIZE_AUTO
;
4230 PyObject
* _argo0
= 0;
4231 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4245 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4247 wxPyEndAllowThreads(__tstate
);
4248 if (PyErr_Occurred()) return NULL
;
4249 } Py_INCREF(Py_None
);
4250 _resultobj
= Py_None
;
4254 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4255 self
->SetSize(size
);
4257 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4258 PyObject
* _resultobj
;
4261 PyObject
* _argo0
= 0;
4263 PyObject
* _obj1
= 0;
4264 char *_kwnames
[] = { "self","size", NULL
};
4267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4278 if (! wxSize_helper(_obj1
, &_arg1
))
4282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4283 wxWindow_SetSize(_arg0
,*_arg1
);
4285 wxPyEndAllowThreads(__tstate
);
4286 if (PyErr_Occurred()) return NULL
;
4287 } Py_INCREF(Py_None
);
4288 _resultobj
= Py_None
;
4292 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4295 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4296 PyObject
* _resultobj
;
4299 PyObject
* _argo0
= 0;
4301 PyObject
* _obj1
= 0;
4302 char *_kwnames
[] = { "self","pos", NULL
};
4305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
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_SetPosition. Expected _wxWindow_p.");
4316 if (! wxPoint_helper(_obj1
, &_arg1
))
4320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4321 wxWindow_SetPosition(_arg0
,*_arg1
);
4323 wxPyEndAllowThreads(__tstate
);
4324 if (PyErr_Occurred()) return NULL
;
4325 } Py_INCREF(Py_None
);
4326 _resultobj
= Py_None
;
4330 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4331 self
->SetSize(rect
, sizeFlags
);
4333 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4334 PyObject
* _resultobj
;
4337 int _arg2
= (int ) wxSIZE_AUTO
;
4338 PyObject
* _argo0
= 0;
4340 PyObject
* _obj1
= 0;
4341 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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_SetRect. Expected _wxWindow_p.");
4355 if (! wxRect_helper(_obj1
, &_arg1
))
4359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4360 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4362 wxPyEndAllowThreads(__tstate
);
4363 if (PyErr_Occurred()) return NULL
;
4364 } Py_INCREF(Py_None
);
4365 _resultobj
= Py_None
;
4369 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4370 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4371 PyObject
* _resultobj
;
4373 int _arg1
= (int ) -1;
4374 int _arg2
= (int ) -1;
4375 int _arg3
= (int ) -1;
4376 int _arg4
= (int ) -1;
4377 int _arg5
= (int ) -1;
4378 int _arg6
= (int ) -1;
4379 PyObject
* _argo0
= 0;
4380 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4394 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4396 wxPyEndAllowThreads(__tstate
);
4397 if (PyErr_Occurred()) return NULL
;
4398 } Py_INCREF(Py_None
);
4399 _resultobj
= Py_None
;
4403 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4404 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4405 PyObject
* _resultobj
;
4409 PyObject
* _argo0
= 0;
4410 char *_kwnames
[] = { "self","width","height", NULL
};
4413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4424 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4426 wxPyEndAllowThreads(__tstate
);
4427 if (PyErr_Occurred()) return NULL
;
4428 } Py_INCREF(Py_None
);
4429 _resultobj
= Py_None
;
4433 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4434 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4435 PyObject
* _resultobj
;
4438 PyObject
* _argo0
= 0;
4440 PyObject
* _obj1
= 0;
4441 char *_kwnames
[] = { "self","size", NULL
};
4444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4455 if (! wxSize_helper(_obj1
, &_arg1
))
4459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4460 wxWindow_SetClientSize(_arg0
,*_arg1
);
4462 wxPyEndAllowThreads(__tstate
);
4463 if (PyErr_Occurred()) return NULL
;
4464 } Py_INCREF(Py_None
);
4465 _resultobj
= Py_None
;
4469 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4470 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4471 PyObject
* _resultobj
;
4474 PyObject
* _argo0
= 0;
4475 PyObject
* _argo1
= 0;
4476 char *_kwnames
[] = { "self","cursor", NULL
};
4479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4489 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4490 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4497 wxWindow_SetCursor(_arg0
,*_arg1
);
4499 wxPyEndAllowThreads(__tstate
);
4500 if (PyErr_Occurred()) return NULL
;
4501 } Py_INCREF(Py_None
);
4502 _resultobj
= Py_None
;
4506 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4507 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4508 PyObject
* _resultobj
;
4510 wxEvtHandler
* _arg1
;
4511 PyObject
* _argo0
= 0;
4512 PyObject
* _argo1
= 0;
4513 char *_kwnames
[] = { "self","handler", NULL
};
4516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4526 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4527 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4534 wxWindow_SetEventHandler(_arg0
,_arg1
);
4536 wxPyEndAllowThreads(__tstate
);
4537 if (PyErr_Occurred()) return NULL
;
4538 } Py_INCREF(Py_None
);
4539 _resultobj
= Py_None
;
4543 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4544 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4545 PyObject
* _resultobj
;
4548 PyObject
* _argo0
= 0;
4549 char *_kwnames
[] = { "self","exStyle", NULL
};
4552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4563 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4565 wxPyEndAllowThreads(__tstate
);
4566 if (PyErr_Occurred()) return NULL
;
4567 } Py_INCREF(Py_None
);
4568 _resultobj
= Py_None
;
4572 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4573 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4574 PyObject
* _resultobj
;
4577 PyObject
* _argo0
= 0;
4578 PyObject
* _obj1
= 0;
4579 char *_kwnames
[] = { "self","title", NULL
};
4582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4592 #if PYTHON_API_VERSION >= 1009
4593 char* tmpPtr
; int tmpSize
;
4594 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4595 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4598 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4600 _arg1
= new wxString(tmpPtr
, tmpSize
);
4602 if (!PyString_Check(_obj1
)) {
4603 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4606 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4611 wxWindow_SetTitle(_arg0
,*_arg1
);
4613 wxPyEndAllowThreads(__tstate
);
4614 if (PyErr_Occurred()) return NULL
;
4615 } Py_INCREF(Py_None
);
4616 _resultobj
= Py_None
;
4624 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4625 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4626 PyObject
* _resultobj
;
4629 bool _arg1
= (bool ) TRUE
;
4630 PyObject
* _argo0
= 0;
4631 int tempbool1
= (int) TRUE
;
4632 char *_kwnames
[] = { "self","show", NULL
};
4635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4644 _arg1
= (bool ) tempbool1
;
4646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4647 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4649 wxPyEndAllowThreads(__tstate
);
4650 if (PyErr_Occurred()) return NULL
;
4651 } _resultobj
= Py_BuildValue("i",_result
);
4655 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4656 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4657 PyObject
* _resultobj
;
4660 PyObject
* _argo0
= 0;
4661 char *_kwnames
[] = { "self", NULL
};
4664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4675 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4677 wxPyEndAllowThreads(__tstate
);
4678 if (PyErr_Occurred()) return NULL
;
4679 } _resultobj
= Py_BuildValue("i",_result
);
4683 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4684 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4685 PyObject
* _resultobj
;
4688 PyObject
* _argo0
= 0;
4689 char *_kwnames
[] = { "self", NULL
};
4692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4703 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4705 wxPyEndAllowThreads(__tstate
);
4706 if (PyErr_Occurred()) return NULL
;
4707 } _resultobj
= Py_BuildValue("i",_result
);
4711 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4712 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4713 PyObject
* _resultobj
;
4716 PyObject
* _argo0
= 0;
4717 char *_kwnames
[] = { "self", NULL
};
4720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4731 _result
= (bool )wxWindow_Validate(_arg0
);
4733 wxPyEndAllowThreads(__tstate
);
4734 if (PyErr_Occurred()) return NULL
;
4735 } _resultobj
= Py_BuildValue("i",_result
);
4739 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4740 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4741 PyObject
* _resultobj
;
4745 PyObject
* _argo0
= 0;
4746 char *_kwnames
[] = { "self","x","y", NULL
};
4749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4759 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4760 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4762 wxPyEndAllowThreads(__tstate
);
4763 if (PyErr_Occurred()) return NULL
;
4764 } Py_INCREF(Py_None
);
4765 _resultobj
= Py_None
;
4769 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4770 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4771 PyObject
* _resultobj
;
4775 PyObject
* _argo0
= 0;
4777 PyObject
* _obj1
= 0;
4778 char *_kwnames
[] = { "self","pt", NULL
};
4782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4793 if (! wxPoint_helper(_obj1
, &_arg1
))
4797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4798 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4800 wxPyEndAllowThreads(__tstate
);
4801 if (PyErr_Occurred()) return NULL
;
4802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4803 _resultobj
= Py_BuildValue("s",_ptemp
);
4807 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4808 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4809 PyObject
* _resultobj
;
4813 PyObject
* _argo0
= 0;
4815 PyObject
* _obj1
= 0;
4816 char *_kwnames
[] = { "self","sz", NULL
};
4820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4831 if (! wxSize_helper(_obj1
, &_arg1
))
4835 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4836 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4838 wxPyEndAllowThreads(__tstate
);
4839 if (PyErr_Occurred()) return NULL
;
4840 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4841 _resultobj
= Py_BuildValue("s",_ptemp
);
4845 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4846 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4847 PyObject
* _resultobj
;
4851 PyObject
* _argo0
= 0;
4853 PyObject
* _obj1
= 0;
4854 char *_kwnames
[] = { "self","pt", NULL
};
4858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4869 if (! wxPoint_helper(_obj1
, &_arg1
))
4873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4874 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4876 wxPyEndAllowThreads(__tstate
);
4877 if (PyErr_Occurred()) return NULL
;
4878 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4879 _resultobj
= Py_BuildValue("s",_ptemp
);
4883 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4884 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4885 PyObject
* _resultobj
;
4889 PyObject
* _argo0
= 0;
4891 PyObject
* _obj1
= 0;
4892 char *_kwnames
[] = { "self","sz", NULL
};
4896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4907 if (! wxSize_helper(_obj1
, &_arg1
))
4911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4912 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4914 wxPyEndAllowThreads(__tstate
);
4915 if (PyErr_Occurred()) return NULL
;
4916 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4917 _resultobj
= Py_BuildValue("s",_ptemp
);
4921 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4922 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4923 PyObject
* _resultobj
;
4926 PyObject
* _argo0
= 0;
4927 PyObject
* _obj1
= 0;
4928 char *_kwnames
[] = { "self","tip", NULL
};
4931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4941 #if PYTHON_API_VERSION >= 1009
4942 char* tmpPtr
; int tmpSize
;
4943 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4944 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4947 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4949 _arg1
= new wxString(tmpPtr
, tmpSize
);
4951 if (!PyString_Check(_obj1
)) {
4952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4955 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4960 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4962 wxPyEndAllowThreads(__tstate
);
4963 if (PyErr_Occurred()) return NULL
;
4964 } Py_INCREF(Py_None
);
4965 _resultobj
= Py_None
;
4973 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4974 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4975 PyObject
* _resultobj
;
4978 PyObject
* _argo0
= 0;
4979 PyObject
* _argo1
= 0;
4980 char *_kwnames
[] = { "self","tooltip", NULL
};
4983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4993 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4994 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
5000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5001 wxWindow_SetToolTip(_arg0
,_arg1
);
5003 wxPyEndAllowThreads(__tstate
);
5004 if (PyErr_Occurred()) return NULL
;
5005 } Py_INCREF(Py_None
);
5006 _resultobj
= Py_None
;
5010 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
5011 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5012 PyObject
* _resultobj
;
5013 wxToolTip
* _result
;
5015 PyObject
* _argo0
= 0;
5016 char *_kwnames
[] = { "self", NULL
};
5019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
5022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
5029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5030 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
5032 wxPyEndAllowThreads(__tstate
);
5033 if (PyErr_Occurred()) return NULL
;
5034 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5038 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
5039 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5040 PyObject
* _resultobj
;
5043 PyObject
* _argo0
= 0;
5044 PyObject
* _argo1
= 0;
5045 char *_kwnames
[] = { "self","sizer", NULL
};
5048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
5051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5058 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5059 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
5060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5065 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5066 wxWindow_SetSizer(_arg0
,_arg1
);
5068 wxPyEndAllowThreads(__tstate
);
5069 if (PyErr_Occurred()) return NULL
;
5070 } Py_INCREF(Py_None
);
5071 _resultobj
= Py_None
;
5075 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5076 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5077 PyObject
* _resultobj
;
5080 PyObject
* _argo0
= 0;
5081 char *_kwnames
[] = { "self", NULL
};
5084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
5087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5095 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5097 wxPyEndAllowThreads(__tstate
);
5098 if (PyErr_Occurred()) return NULL
;
5099 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
5103 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5104 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5105 PyObject
* _resultobj
;
5106 wxValidator
* _result
;
5108 PyObject
* _argo0
= 0;
5109 char *_kwnames
[] = { "self", NULL
};
5112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5123 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5125 wxPyEndAllowThreads(__tstate
);
5126 if (PyErr_Occurred()) return NULL
;
5127 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5131 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5132 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5133 PyObject
* _resultobj
;
5135 wxValidator
* _arg1
;
5136 PyObject
* _argo0
= 0;
5137 PyObject
* _argo1
= 0;
5138 char *_kwnames
[] = { "self","validator", NULL
};
5141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5151 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5152 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5159 wxWindow_SetValidator(_arg0
,*_arg1
);
5161 wxPyEndAllowThreads(__tstate
);
5162 if (PyErr_Occurred()) return NULL
;
5163 } Py_INCREF(Py_None
);
5164 _resultobj
= Py_None
;
5168 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5169 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5170 PyObject
* _resultobj
;
5172 wxDropTarget
* _arg1
;
5173 PyObject
* _argo0
= 0;
5174 PyObject
* _argo1
= 0;
5175 char *_kwnames
[] = { "self","target", NULL
};
5178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5188 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5189 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5196 wxWindow_SetDropTarget(_arg0
,_arg1
);
5198 wxPyEndAllowThreads(__tstate
);
5199 if (PyErr_Occurred()) return NULL
;
5200 } Py_INCREF(Py_None
);
5201 _resultobj
= Py_None
;
5205 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5206 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5207 PyObject
* _resultobj
;
5208 wxDropTarget
* _result
;
5210 PyObject
* _argo0
= 0;
5211 char *_kwnames
[] = { "self", NULL
};
5215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5226 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5228 wxPyEndAllowThreads(__tstate
);
5229 if (PyErr_Occurred()) return NULL
;
5231 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5232 _resultobj
= Py_BuildValue("s",_ptemp
);
5235 _resultobj
= Py_None
;
5240 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5241 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5242 PyObject
* _resultobj
;
5245 PyObject
* _argo0
= 0;
5246 char *_kwnames
[] = { "self", NULL
};
5250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5261 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5263 wxPyEndAllowThreads(__tstate
);
5264 if (PyErr_Occurred()) return NULL
;
5265 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5266 _resultobj
= Py_BuildValue("s",_ptemp
);
5270 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5271 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5272 PyObject
* _resultobj
;
5275 PyObject
* _argo0
= 0;
5276 PyObject
* _argo1
= 0;
5277 char *_kwnames
[] = { "self","caret", NULL
};
5280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5290 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5291 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5298 wxWindow_SetCaret(_arg0
,_arg1
);
5300 wxPyEndAllowThreads(__tstate
);
5301 if (PyErr_Occurred()) return NULL
;
5302 } Py_INCREF(Py_None
);
5303 _resultobj
= Py_None
;
5307 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5308 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5309 PyObject
* _resultobj
;
5312 PyObject
* _argo0
= 0;
5313 char *_kwnames
[] = { "self", NULL
};
5317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5328 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5330 wxPyEndAllowThreads(__tstate
);
5331 if (PyErr_Occurred()) return NULL
;
5333 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5334 _resultobj
= Py_BuildValue("s",_ptemp
);
5337 _resultobj
= Py_None
;
5342 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5343 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5344 PyObject
* _resultobj
;
5346 PyObject
* _argo0
= 0;
5347 char *_kwnames
[] = { "self", NULL
};
5350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5361 wxWindow_Freeze(_arg0
);
5363 wxPyEndAllowThreads(__tstate
);
5364 if (PyErr_Occurred()) return NULL
;
5365 } Py_INCREF(Py_None
);
5366 _resultobj
= Py_None
;
5370 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5371 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5372 PyObject
* _resultobj
;
5374 PyObject
* _argo0
= 0;
5375 char *_kwnames
[] = { "self", NULL
};
5378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5389 wxWindow_Thaw(_arg0
);
5391 wxPyEndAllowThreads(__tstate
);
5392 if (PyErr_Occurred()) return NULL
;
5393 } Py_INCREF(Py_None
);
5394 _resultobj
= Py_None
;
5398 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5399 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5400 PyObject
* _resultobj
;
5402 PyObject
* _argo0
= 0;
5403 char *_kwnames
[] = { "self", NULL
};
5406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5417 wxWindow_Update(_arg0
);
5419 wxPyEndAllowThreads(__tstate
);
5420 if (PyErr_Occurred()) return NULL
;
5421 } Py_INCREF(Py_None
);
5422 _resultobj
= Py_None
;
5426 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5427 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5428 PyObject
* _resultobj
;
5431 PyObject
* _argo0
= 0;
5432 char *_kwnames
[] = { "self", NULL
};
5435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5446 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5448 wxPyEndAllowThreads(__tstate
);
5449 if (PyErr_Occurred()) return NULL
;
5451 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5459 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5460 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5461 PyObject
* _resultobj
;
5464 PyObject
* _argo0
= 0;
5465 PyObject
* _obj1
= 0;
5466 char *_kwnames
[] = { "self","helpText", NULL
};
5469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5479 #if PYTHON_API_VERSION >= 1009
5480 char* tmpPtr
; int tmpSize
;
5481 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5482 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5485 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5487 _arg1
= new wxString(tmpPtr
, tmpSize
);
5489 if (!PyString_Check(_obj1
)) {
5490 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5493 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5498 wxWindow_SetHelpText(_arg0
,*_arg1
);
5500 wxPyEndAllowThreads(__tstate
);
5501 if (PyErr_Occurred()) return NULL
;
5502 } Py_INCREF(Py_None
);
5503 _resultobj
= Py_None
;
5511 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5512 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5513 PyObject
* _resultobj
;
5517 PyObject
* _argo0
= 0;
5518 char *_kwnames
[] = { "self","lines", NULL
};
5521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5532 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5534 wxPyEndAllowThreads(__tstate
);
5535 if (PyErr_Occurred()) return NULL
;
5536 } _resultobj
= Py_BuildValue("i",_result
);
5540 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5541 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5542 PyObject
* _resultobj
;
5546 PyObject
* _argo0
= 0;
5547 char *_kwnames
[] = { "self","pages", NULL
};
5550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5561 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5563 wxPyEndAllowThreads(__tstate
);
5564 if (PyErr_Occurred()) return NULL
;
5565 } _resultobj
= Py_BuildValue("i",_result
);
5569 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5570 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5571 PyObject
* _resultobj
;
5574 PyObject
* _argo0
= 0;
5575 char *_kwnames
[] = { "self", NULL
};
5578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5589 _result
= (bool )wxWindow_LineUp(_arg0
);
5591 wxPyEndAllowThreads(__tstate
);
5592 if (PyErr_Occurred()) return NULL
;
5593 } _resultobj
= Py_BuildValue("i",_result
);
5597 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5598 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5599 PyObject
* _resultobj
;
5602 PyObject
* _argo0
= 0;
5603 char *_kwnames
[] = { "self", NULL
};
5606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5617 _result
= (bool )wxWindow_LineDown(_arg0
);
5619 wxPyEndAllowThreads(__tstate
);
5620 if (PyErr_Occurred()) return NULL
;
5621 } _resultobj
= Py_BuildValue("i",_result
);
5625 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5626 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5627 PyObject
* _resultobj
;
5630 PyObject
* _argo0
= 0;
5631 char *_kwnames
[] = { "self", NULL
};
5634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5645 _result
= (bool )wxWindow_PageUp(_arg0
);
5647 wxPyEndAllowThreads(__tstate
);
5648 if (PyErr_Occurred()) return NULL
;
5649 } _resultobj
= Py_BuildValue("i",_result
);
5653 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5654 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5655 PyObject
* _resultobj
;
5658 PyObject
* _argo0
= 0;
5659 char *_kwnames
[] = { "self", NULL
};
5662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5673 _result
= (bool )wxWindow_PageDown(_arg0
);
5675 wxPyEndAllowThreads(__tstate
);
5676 if (PyErr_Occurred()) return NULL
;
5677 } _resultobj
= Py_BuildValue("i",_result
);
5681 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5682 PyObject
* _resultobj
;
5684 char *_kwnames
[] = { NULL
};
5687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5691 _result
= (wxWindow
*)wxWindow::FindFocus();
5693 wxPyEndAllowThreads(__tstate
);
5694 if (PyErr_Occurred()) return NULL
;
5695 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5699 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5700 PyObject
* _resultobj
;
5702 char *_kwnames
[] = { NULL
};
5705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5709 _result
= (int )wxWindow::NewControlId();
5711 wxPyEndAllowThreads(__tstate
);
5712 if (PyErr_Occurred()) return NULL
;
5713 } _resultobj
= Py_BuildValue("i",_result
);
5717 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5718 PyObject
* _resultobj
;
5721 char *_kwnames
[] = { "id", NULL
};
5724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5728 _result
= (int )wxWindow::NextControlId(_arg0
);
5730 wxPyEndAllowThreads(__tstate
);
5731 if (PyErr_Occurred()) return NULL
;
5732 } _resultobj
= Py_BuildValue("i",_result
);
5736 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5737 PyObject
* _resultobj
;
5740 char *_kwnames
[] = { "id", NULL
};
5743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5746 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5747 _result
= (int )wxWindow::PrevControlId(_arg0
);
5749 wxPyEndAllowThreads(__tstate
);
5750 if (PyErr_Occurred()) return NULL
;
5751 } _resultobj
= Py_BuildValue("i",_result
);
5755 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5756 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5757 PyObject
* _resultobj
;
5759 wxAcceleratorTable
* _arg1
;
5760 PyObject
* _argo0
= 0;
5761 PyObject
* _argo1
= 0;
5762 char *_kwnames
[] = { "self","accel", NULL
};
5765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5775 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5776 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5783 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5785 wxPyEndAllowThreads(__tstate
);
5786 if (PyErr_Occurred()) return NULL
;
5787 } Py_INCREF(Py_None
);
5788 _resultobj
= Py_None
;
5792 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5793 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5794 PyObject
* _resultobj
;
5795 wxAcceleratorTable
* _result
;
5797 PyObject
* _argo0
= 0;
5798 char *_kwnames
[] = { "self", NULL
};
5802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5813 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5815 wxPyEndAllowThreads(__tstate
);
5816 if (PyErr_Occurred()) return NULL
;
5818 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5819 _resultobj
= Py_BuildValue("s",_ptemp
);
5822 _resultobj
= Py_None
;
5827 #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0))
5828 static PyObject
*_wrap_wxWindow_OnPaint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5829 PyObject
* _resultobj
;
5831 wxPaintEvent
* _arg1
;
5832 PyObject
* _argo0
= 0;
5833 PyObject
* _argo1
= 0;
5834 char *_kwnames
[] = { "self","event", NULL
};
5837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_OnPaint",_kwnames
,&_argo0
,&_argo1
))
5840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p.");
5847 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5848 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPaintEvent_p")) {
5849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p.");
5854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5855 wxWindow_OnPaint(_arg0
,*_arg1
);
5857 wxPyEndAllowThreads(__tstate
);
5858 if (PyErr_Occurred()) return NULL
;
5859 } Py_INCREF(Py_None
);
5860 _resultobj
= Py_None
;
5864 #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5865 static PyObject
*_wrap_wxWindow_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5866 PyObject
* _resultobj
;
5869 PyObject
* _argo0
= 0;
5870 char *_kwnames
[] = { "self", NULL
};
5873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDefaultItem",_kwnames
,&_argo0
))
5876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p.");
5883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5884 _result
= (wxButton
*)wxWindow_GetDefaultItem(_arg0
);
5886 wxPyEndAllowThreads(__tstate
);
5887 if (PyErr_Occurred()) return NULL
;
5888 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5892 #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5893 static PyObject
*_wrap_wxWindow_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5894 PyObject
* _resultobj
;
5897 PyObject
* _argo0
= 0;
5898 PyObject
* _argo1
= 0;
5899 char *_kwnames
[] = { "self","btn", NULL
};
5902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
5912 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5913 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxButton_p.");
5919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5920 wxWindow_SetDefaultItem(_arg0
,_arg1
);
5922 wxPyEndAllowThreads(__tstate
);
5923 if (PyErr_Occurred()) return NULL
;
5924 } Py_INCREF(Py_None
);
5925 _resultobj
= Py_None
;
5929 static void *SwigwxPanelTowxWindow(void *ptr
) {
5932 src
= (wxPanel
*) ptr
;
5933 dest
= (wxWindow
*) src
;
5934 return (void *) dest
;
5937 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5940 src
= (wxPanel
*) ptr
;
5941 dest
= (wxEvtHandler
*) src
;
5942 return (void *) dest
;
5945 static void *SwigwxPanelTowxObject(void *ptr
) {
5948 src
= (wxPanel
*) ptr
;
5949 dest
= (wxObject
*) src
;
5950 return (void *) dest
;
5953 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5954 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5955 PyObject
* _resultobj
;
5959 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5960 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5961 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5962 char * _arg5
= (char *) "panel";
5963 PyObject
* _argo0
= 0;
5965 PyObject
* _obj2
= 0;
5967 PyObject
* _obj3
= 0;
5968 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5984 if (! wxPoint_helper(_obj2
, &_arg2
))
5990 if (! wxSize_helper(_obj3
, &_arg3
))
5994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5995 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5997 wxPyEndAllowThreads(__tstate
);
5998 if (PyErr_Occurred()) return NULL
;
6000 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
6001 _resultobj
= Py_BuildValue("s",_ptemp
);
6004 _resultobj
= Py_None
;
6009 #define new_wxPrePanel() (new wxPanel())
6010 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6011 PyObject
* _resultobj
;
6013 char *_kwnames
[] = { NULL
};
6017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
6020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6021 _result
= (wxPanel
*)new_wxPrePanel();
6023 wxPyEndAllowThreads(__tstate
);
6024 if (PyErr_Occurred()) return NULL
;
6026 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
6027 _resultobj
= Py_BuildValue("s",_ptemp
);
6030 _resultobj
= Py_None
;
6035 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6036 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6037 PyObject
* _resultobj
;
6042 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6043 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6044 long _arg5
= (long ) wxTAB_TRAVERSAL
;
6045 char * _arg6
= (char *) "panel";
6046 PyObject
* _argo0
= 0;
6047 PyObject
* _argo1
= 0;
6049 PyObject
* _obj3
= 0;
6051 PyObject
* _obj4
= 0;
6052 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6055 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6058 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6059 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
6065 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6066 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
6074 if (! wxPoint_helper(_obj3
, &_arg3
))
6080 if (! wxSize_helper(_obj4
, &_arg4
))
6084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6085 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6087 wxPyEndAllowThreads(__tstate
);
6088 if (PyErr_Occurred()) return NULL
;
6089 } _resultobj
= Py_BuildValue("i",_result
);
6093 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
6094 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6095 PyObject
* _resultobj
;
6097 PyObject
* _argo0
= 0;
6098 char *_kwnames
[] = { "self", NULL
};
6101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
6104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
6111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6112 wxPanel_InitDialog(_arg0
);
6114 wxPyEndAllowThreads(__tstate
);
6115 if (PyErr_Occurred()) return NULL
;
6116 } Py_INCREF(Py_None
);
6117 _resultobj
= Py_None
;
6121 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
6122 wxScrolledWindow
*src
;
6124 src
= (wxScrolledWindow
*) ptr
;
6125 dest
= (wxPanel
*) src
;
6126 return (void *) dest
;
6129 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6130 wxScrolledWindow
*src
;
6132 src
= (wxScrolledWindow
*) ptr
;
6133 dest
= (wxWindow
*) src
;
6134 return (void *) dest
;
6137 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6138 wxScrolledWindow
*src
;
6140 src
= (wxScrolledWindow
*) ptr
;
6141 dest
= (wxEvtHandler
*) src
;
6142 return (void *) dest
;
6145 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6146 wxScrolledWindow
*src
;
6148 src
= (wxScrolledWindow
*) ptr
;
6149 dest
= (wxObject
*) src
;
6150 return (void *) dest
;
6153 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6154 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6155 PyObject
* _resultobj
;
6156 wxScrolledWindow
* _result
;
6158 wxWindowID _arg1
= (wxWindowID
) -1;
6159 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6160 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6161 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6162 char * _arg5
= (char *) "scrolledWindow";
6163 PyObject
* _argo0
= 0;
6165 PyObject
* _obj2
= 0;
6167 PyObject
* _obj3
= 0;
6168 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6184 if (! wxPoint_helper(_obj2
, &_arg2
))
6190 if (! wxSize_helper(_obj3
, &_arg3
))
6194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6195 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6197 wxPyEndAllowThreads(__tstate
);
6198 if (PyErr_Occurred()) return NULL
;
6200 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6201 _resultobj
= Py_BuildValue("s",_ptemp
);
6204 _resultobj
= Py_None
;
6209 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6210 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6211 PyObject
* _resultobj
;
6212 wxScrolledWindow
* _result
;
6213 char *_kwnames
[] = { NULL
};
6217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6220 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6221 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6223 wxPyEndAllowThreads(__tstate
);
6224 if (PyErr_Occurred()) return NULL
;
6226 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6227 _resultobj
= Py_BuildValue("s",_ptemp
);
6230 _resultobj
= Py_None
;
6235 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6236 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6237 PyObject
* _resultobj
;
6239 wxScrolledWindow
* _arg0
;
6241 wxWindowID _arg2
= (wxWindowID
) -1;
6242 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6243 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6244 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6245 char * _arg6
= (char *) "scrolledWindow";
6246 PyObject
* _argo0
= 0;
6247 PyObject
* _argo1
= 0;
6249 PyObject
* _obj3
= 0;
6251 PyObject
* _obj4
= 0;
6252 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6265 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6266 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6274 if (! wxPoint_helper(_obj3
, &_arg3
))
6280 if (! wxSize_helper(_obj4
, &_arg4
))
6284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6285 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6287 wxPyEndAllowThreads(__tstate
);
6288 if (PyErr_Occurred()) return NULL
;
6289 } _resultobj
= Py_BuildValue("i",_result
);
6293 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6294 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6295 PyObject
* _resultobj
;
6296 wxScrolledWindow
* _arg0
;
6299 PyObject
* _argo0
= 0;
6302 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6314 _arg1
= (bool ) tempbool1
;
6315 _arg2
= (bool ) tempbool2
;
6317 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6318 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6320 wxPyEndAllowThreads(__tstate
);
6321 if (PyErr_Occurred()) return NULL
;
6322 } Py_INCREF(Py_None
);
6323 _resultobj
= Py_None
;
6327 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6328 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6329 PyObject
* _resultobj
;
6331 wxScrolledWindow
* _arg0
;
6333 PyObject
* _argo0
= 0;
6334 char *_kwnames
[] = { "self","orient", NULL
};
6337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
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_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6348 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6350 wxPyEndAllowThreads(__tstate
);
6351 if (PyErr_Occurred()) return NULL
;
6352 } _resultobj
= Py_BuildValue("i",_result
);
6356 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6357 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(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_GetScrollPixelsPerUnit",_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_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6384 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6385 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6387 wxPyEndAllowThreads(__tstate
);
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_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6405 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(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_GetTargetWindow",_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_GetTargetWindow. Expected _wxScrolledWindow_p.");
6423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6424 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6426 wxPyEndAllowThreads(__tstate
);
6427 if (PyErr_Occurred()) return NULL
;
6428 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6432 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6433 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6434 PyObject
* _resultobj
;
6435 wxScrolledWindow
* _arg0
;
6440 PyObject
* _argo0
= 0;
6441 char *_kwnames
[] = { "self", NULL
};
6450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6461 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6463 wxPyEndAllowThreads(__tstate
);
6464 if (PyErr_Occurred()) return NULL
;
6465 } Py_INCREF(Py_None
);
6466 _resultobj
= Py_None
;
6469 o
= PyInt_FromLong((long) (*_arg1
));
6470 _resultobj
= t_output_helper(_resultobj
, o
);
6474 o
= PyInt_FromLong((long) (*_arg2
));
6475 _resultobj
= t_output_helper(_resultobj
, o
);
6480 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6481 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6482 PyObject
* _resultobj
;
6484 wxScrolledWindow
* _arg0
;
6485 PyObject
* _argo0
= 0;
6486 char *_kwnames
[] = { "self", NULL
};
6489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6500 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6502 wxPyEndAllowThreads(__tstate
);
6503 if (PyErr_Occurred()) return NULL
;
6504 } _resultobj
= Py_BuildValue("i",_result
);
6508 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6509 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6510 PyObject
* _resultobj
;
6511 wxScrolledWindow
* _arg0
;
6513 PyObject
* _argo0
= 0;
6514 PyObject
* _argo1
= 0;
6515 char *_kwnames
[] = { "self","dc", NULL
};
6518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6528 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6529 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6536 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6538 wxPyEndAllowThreads(__tstate
);
6539 if (PyErr_Occurred()) return NULL
;
6540 } Py_INCREF(Py_None
);
6541 _resultobj
= Py_None
;
6545 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6546 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6547 PyObject
* _resultobj
;
6548 wxScrolledWindow
* _arg0
;
6551 PyObject
* _argo0
= 0;
6552 char *_kwnames
[] = { "self","x","y", NULL
};
6555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6566 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6568 wxPyEndAllowThreads(__tstate
);
6569 if (PyErr_Occurred()) return NULL
;
6570 } Py_INCREF(Py_None
);
6571 _resultobj
= Py_None
;
6575 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6576 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6577 PyObject
* _resultobj
;
6578 wxScrolledWindow
* _arg0
;
6583 int _arg5
= (int ) 0;
6584 int _arg6
= (int ) 0;
6585 int _arg7
= (int ) FALSE
;
6586 PyObject
* _argo0
= 0;
6587 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6601 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6603 wxPyEndAllowThreads(__tstate
);
6604 if (PyErr_Occurred()) return NULL
;
6605 } Py_INCREF(Py_None
);
6606 _resultobj
= Py_None
;
6610 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6611 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6612 PyObject
* _resultobj
;
6613 wxScrolledWindow
* _arg0
;
6616 PyObject
* _argo0
= 0;
6617 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6631 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6633 wxPyEndAllowThreads(__tstate
);
6634 if (PyErr_Occurred()) return NULL
;
6635 } Py_INCREF(Py_None
);
6636 _resultobj
= Py_None
;
6640 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6641 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6642 PyObject
* _resultobj
;
6643 wxScrolledWindow
* _arg0
;
6645 PyObject
* _argo0
= 0;
6646 PyObject
* _argo1
= 0;
6647 char *_kwnames
[] = { "self","window", NULL
};
6650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6660 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6661 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6668 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6670 wxPyEndAllowThreads(__tstate
);
6671 if (PyErr_Occurred()) return NULL
;
6672 } Py_INCREF(Py_None
);
6673 _resultobj
= Py_None
;
6677 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6678 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6679 PyObject
* _resultobj
;
6680 wxScrolledWindow
* _arg0
;
6685 PyObject
* _argo0
= 0;
6686 char *_kwnames
[] = { "self", NULL
};
6695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6706 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6708 wxPyEndAllowThreads(__tstate
);
6709 if (PyErr_Occurred()) return NULL
;
6710 } Py_INCREF(Py_None
);
6711 _resultobj
= Py_None
;
6714 o
= PyInt_FromLong((long) (*_arg1
));
6715 _resultobj
= t_output_helper(_resultobj
, o
);
6719 o
= PyInt_FromLong((long) (*_arg2
));
6720 _resultobj
= t_output_helper(_resultobj
, o
);
6725 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6726 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6727 PyObject
* _resultobj
;
6728 wxScrolledWindow
* _arg0
;
6735 PyObject
* _argo0
= 0;
6736 char *_kwnames
[] = { "self","x","y", NULL
};
6745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6756 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6758 wxPyEndAllowThreads(__tstate
);
6759 if (PyErr_Occurred()) return NULL
;
6760 } Py_INCREF(Py_None
);
6761 _resultobj
= Py_None
;
6764 o
= PyInt_FromLong((long) (*_arg3
));
6765 _resultobj
= t_output_helper(_resultobj
, o
);
6769 o
= PyInt_FromLong((long) (*_arg4
));
6770 _resultobj
= t_output_helper(_resultobj
, o
);
6775 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6776 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6777 PyObject
* _resultobj
;
6778 wxScrolledWindow
* _arg0
;
6785 PyObject
* _argo0
= 0;
6786 char *_kwnames
[] = { "self","x","y", NULL
};
6795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6805 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6806 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6808 wxPyEndAllowThreads(__tstate
);
6809 if (PyErr_Occurred()) return NULL
;
6810 } Py_INCREF(Py_None
);
6811 _resultobj
= Py_None
;
6814 o
= PyInt_FromLong((long) (*_arg3
));
6815 _resultobj
= t_output_helper(_resultobj
, o
);
6819 o
= PyInt_FromLong((long) (*_arg4
));
6820 _resultobj
= t_output_helper(_resultobj
, o
);
6825 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6826 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6827 PyObject
* _resultobj
;
6828 wxScrolledWindow
* _arg0
;
6831 PyObject
* _argo0
= 0;
6832 char *_kwnames
[] = { "self","xs","ys", NULL
};
6835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6846 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6848 wxPyEndAllowThreads(__tstate
);
6849 if (PyErr_Occurred()) return NULL
;
6850 } Py_INCREF(Py_None
);
6851 _resultobj
= Py_None
;
6855 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6856 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6857 PyObject
* _resultobj
;
6859 wxScrolledWindow
* _arg0
;
6860 PyObject
* _argo0
= 0;
6861 char *_kwnames
[] = { "self", NULL
};
6864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6875 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6877 wxPyEndAllowThreads(__tstate
);
6878 if (PyErr_Occurred()) return NULL
;
6879 } _resultobj
= Py_BuildValue("d",_result
);
6883 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6884 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6885 PyObject
* _resultobj
;
6887 wxScrolledWindow
* _arg0
;
6888 PyObject
* _argo0
= 0;
6889 char *_kwnames
[] = { "self", NULL
};
6892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6903 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6905 wxPyEndAllowThreads(__tstate
);
6906 if (PyErr_Occurred()) return NULL
;
6907 } _resultobj
= Py_BuildValue("d",_result
);
6911 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6912 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6913 PyObject
* _resultobj
;
6914 wxScrolledWindow
* _arg0
;
6915 PyObject
* _argo0
= 0;
6916 char *_kwnames
[] = { "self", NULL
};
6919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6930 wxScrolledWindow_AdjustScrollbars(_arg0
);
6932 wxPyEndAllowThreads(__tstate
);
6933 if (PyErr_Occurred()) return NULL
;
6934 } Py_INCREF(Py_None
);
6935 _resultobj
= Py_None
;
6939 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6942 src
= (wxMenu
*) ptr
;
6943 dest
= (wxEvtHandler
*) src
;
6944 return (void *) dest
;
6947 static void *SwigwxMenuTowxObject(void *ptr
) {
6950 src
= (wxMenu
*) ptr
;
6951 dest
= (wxObject
*) src
;
6952 return (void *) dest
;
6955 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6956 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6957 PyObject
* _resultobj
;
6959 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6960 long _arg1
= (long ) 0;
6961 PyObject
* _obj0
= 0;
6962 char *_kwnames
[] = { "title","style", NULL
};
6966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6970 #if PYTHON_API_VERSION >= 1009
6971 char* tmpPtr
; int tmpSize
;
6972 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6973 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6976 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6978 _arg0
= new wxString(tmpPtr
, tmpSize
);
6980 if (!PyString_Check(_obj0
)) {
6981 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6984 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6989 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6991 wxPyEndAllowThreads(__tstate
);
6992 if (PyErr_Occurred()) return NULL
;
6994 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6995 _resultobj
= Py_BuildValue("s",_ptemp
);
6998 _resultobj
= Py_None
;
7007 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7008 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7009 PyObject
* _resultobj
;
7013 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
7014 int _arg4
= (int ) FALSE
;
7015 PyObject
* _argo0
= 0;
7016 PyObject
* _obj2
= 0;
7017 PyObject
* _obj3
= 0;
7018 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
7021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
7024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
7031 #if PYTHON_API_VERSION >= 1009
7032 char* tmpPtr
; int tmpSize
;
7033 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7034 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7037 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7039 _arg2
= new wxString(tmpPtr
, tmpSize
);
7041 if (!PyString_Check(_obj2
)) {
7042 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7045 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7050 #if PYTHON_API_VERSION >= 1009
7051 char* tmpPtr
; int tmpSize
;
7052 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
7053 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7056 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
7058 _arg3
= new wxString(tmpPtr
, tmpSize
);
7060 if (!PyString_Check(_obj3
)) {
7061 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7064 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
7068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7069 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
7071 wxPyEndAllowThreads(__tstate
);
7072 if (PyErr_Occurred()) return NULL
;
7073 } Py_INCREF(Py_None
);
7074 _resultobj
= Py_None
;
7086 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7087 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7088 PyObject
* _resultobj
;
7093 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
7094 PyObject
* _argo0
= 0;
7095 PyObject
* _obj2
= 0;
7096 PyObject
* _argo3
= 0;
7097 PyObject
* _obj4
= 0;
7098 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
7101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
7104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7111 #if PYTHON_API_VERSION >= 1009
7112 char* tmpPtr
; int tmpSize
;
7113 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7114 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7117 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7119 _arg2
= new wxString(tmpPtr
, tmpSize
);
7121 if (!PyString_Check(_obj2
)) {
7122 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7125 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7129 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7130 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
7131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7137 #if PYTHON_API_VERSION >= 1009
7138 char* tmpPtr
; int tmpSize
;
7139 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7140 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7143 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7145 _arg4
= new wxString(tmpPtr
, tmpSize
);
7147 if (!PyString_Check(_obj4
)) {
7148 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7151 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7156 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7158 wxPyEndAllowThreads(__tstate
);
7159 if (PyErr_Occurred()) return NULL
;
7160 } Py_INCREF(Py_None
);
7161 _resultobj
= Py_None
;
7173 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7174 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7175 PyObject
* _resultobj
;
7178 PyObject
* _argo0
= 0;
7179 PyObject
* _argo1
= 0;
7180 char *_kwnames
[] = { "self","item", NULL
};
7183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7193 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7194 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7201 wxMenu_AppendItem(_arg0
,_arg1
);
7203 wxPyEndAllowThreads(__tstate
);
7204 if (PyErr_Occurred()) return NULL
;
7205 } Py_INCREF(Py_None
);
7206 _resultobj
= Py_None
;
7210 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7211 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7212 PyObject
* _resultobj
;
7214 PyObject
* _argo0
= 0;
7215 char *_kwnames
[] = { "self", NULL
};
7218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7229 wxMenu_AppendSeparator(_arg0
);
7231 wxPyEndAllowThreads(__tstate
);
7232 if (PyErr_Occurred()) return NULL
;
7233 } Py_INCREF(Py_None
);
7234 _resultobj
= Py_None
;
7238 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7239 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7240 PyObject
* _resultobj
;
7242 PyObject
* _argo0
= 0;
7243 char *_kwnames
[] = { "self", NULL
};
7246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7256 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7257 wxMenu_Break(_arg0
);
7259 wxPyEndAllowThreads(__tstate
);
7260 if (PyErr_Occurred()) return NULL
;
7261 } Py_INCREF(Py_None
);
7262 _resultobj
= Py_None
;
7266 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7267 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7268 PyObject
* _resultobj
;
7272 PyObject
* _argo0
= 0;
7274 char *_kwnames
[] = { "self","id","flag", NULL
};
7277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7286 _arg2
= (bool ) tempbool2
;
7288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7289 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7291 wxPyEndAllowThreads(__tstate
);
7292 if (PyErr_Occurred()) return NULL
;
7293 } Py_INCREF(Py_None
);
7294 _resultobj
= Py_None
;
7298 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7299 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7300 PyObject
* _resultobj
;
7304 PyObject
* _argo0
= 0;
7305 char *_kwnames
[] = { "self","id", NULL
};
7308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7319 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7321 wxPyEndAllowThreads(__tstate
);
7322 if (PyErr_Occurred()) return NULL
;
7323 } _resultobj
= Py_BuildValue("i",_result
);
7327 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7328 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7329 PyObject
* _resultobj
;
7333 PyObject
* _argo0
= 0;
7335 char *_kwnames
[] = { "self","id","enable", NULL
};
7338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7347 _arg2
= (bool ) tempbool2
;
7349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7350 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7352 wxPyEndAllowThreads(__tstate
);
7353 if (PyErr_Occurred()) return NULL
;
7354 } Py_INCREF(Py_None
);
7355 _resultobj
= Py_None
;
7359 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7360 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7361 PyObject
* _resultobj
;
7365 PyObject
* _argo0
= 0;
7366 char *_kwnames
[] = { "self","id", NULL
};
7369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7380 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7382 wxPyEndAllowThreads(__tstate
);
7383 if (PyErr_Occurred()) return NULL
;
7384 } _resultobj
= Py_BuildValue("i",_result
);
7388 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7389 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7390 PyObject
* _resultobj
;
7394 PyObject
* _argo0
= 0;
7395 PyObject
* _obj1
= 0;
7396 char *_kwnames
[] = { "self","itemString", NULL
};
7399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7409 #if PYTHON_API_VERSION >= 1009
7410 char* tmpPtr
; int tmpSize
;
7411 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7412 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7415 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7417 _arg1
= new wxString(tmpPtr
, tmpSize
);
7419 if (!PyString_Check(_obj1
)) {
7420 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7423 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7428 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7430 wxPyEndAllowThreads(__tstate
);
7431 if (PyErr_Occurred()) return NULL
;
7432 } _resultobj
= Py_BuildValue("i",_result
);
7440 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7441 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7442 PyObject
* _resultobj
;
7443 wxMenuItem
* _result
;
7446 PyObject
* _argo0
= 0;
7447 char *_kwnames
[] = { "self","id", NULL
};
7450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7461 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7463 wxPyEndAllowThreads(__tstate
);
7464 if (PyErr_Occurred()) return NULL
;
7465 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7469 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7470 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7471 PyObject
* _resultobj
;
7474 PyObject
* _argo0
= 0;
7475 char *_kwnames
[] = { "self", NULL
};
7478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7489 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7491 wxPyEndAllowThreads(__tstate
);
7492 if (PyErr_Occurred()) return NULL
;
7494 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7502 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7503 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7504 PyObject
* _resultobj
;
7507 PyObject
* _argo0
= 0;
7508 PyObject
* _obj1
= 0;
7509 char *_kwnames
[] = { "self","title", NULL
};
7512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7522 #if PYTHON_API_VERSION >= 1009
7523 char* tmpPtr
; int tmpSize
;
7524 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7525 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7528 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7530 _arg1
= new wxString(tmpPtr
, tmpSize
);
7532 if (!PyString_Check(_obj1
)) {
7533 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7536 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7540 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7541 wxMenu_SetTitle(_arg0
,*_arg1
);
7543 wxPyEndAllowThreads(__tstate
);
7544 if (PyErr_Occurred()) return NULL
;
7545 } Py_INCREF(Py_None
);
7546 _resultobj
= Py_None
;
7554 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7555 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7556 PyObject
* _resultobj
;
7560 PyObject
* _argo0
= 0;
7561 char *_kwnames
[] = { "self","id", NULL
};
7564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7575 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7577 wxPyEndAllowThreads(__tstate
);
7578 if (PyErr_Occurred()) return NULL
;
7580 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7588 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7589 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7590 PyObject
* _resultobj
;
7594 PyObject
* _argo0
= 0;
7595 PyObject
* _obj2
= 0;
7596 char *_kwnames
[] = { "self","id","label", NULL
};
7599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7609 #if PYTHON_API_VERSION >= 1009
7610 char* tmpPtr
; int tmpSize
;
7611 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7612 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7615 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7617 _arg2
= new wxString(tmpPtr
, tmpSize
);
7619 if (!PyString_Check(_obj2
)) {
7620 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7623 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7628 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7630 wxPyEndAllowThreads(__tstate
);
7631 if (PyErr_Occurred()) return NULL
;
7632 } Py_INCREF(Py_None
);
7633 _resultobj
= Py_None
;
7641 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7642 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7643 PyObject
* _resultobj
;
7647 PyObject
* _argo0
= 0;
7648 char *_kwnames
[] = { "self","id", NULL
};
7651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7662 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7664 wxPyEndAllowThreads(__tstate
);
7665 if (PyErr_Occurred()) return NULL
;
7667 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7675 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7676 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7677 PyObject
* _resultobj
;
7681 PyObject
* _argo0
= 0;
7682 PyObject
* _obj2
= 0;
7683 char *_kwnames
[] = { "self","id","helpString", NULL
};
7686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7696 #if PYTHON_API_VERSION >= 1009
7697 char* tmpPtr
; int tmpSize
;
7698 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7699 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7702 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7704 _arg2
= new wxString(tmpPtr
, tmpSize
);
7706 if (!PyString_Check(_obj2
)) {
7707 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7710 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7715 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7717 wxPyEndAllowThreads(__tstate
);
7718 if (PyErr_Occurred()) return NULL
;
7719 } Py_INCREF(Py_None
);
7720 _resultobj
= Py_None
;
7728 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7729 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
* _resultobj
;
7732 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7733 PyObject
* _argo0
= 0;
7734 PyObject
* _argo1
= 0;
7735 char *_kwnames
[] = { "self","source", NULL
};
7738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7748 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7749 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7756 wxMenu_UpdateUI(_arg0
,_arg1
);
7758 wxPyEndAllowThreads(__tstate
);
7759 if (PyErr_Occurred()) return NULL
;
7760 } Py_INCREF(Py_None
);
7761 _resultobj
= Py_None
;
7765 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7766 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7767 PyObject
* _resultobj
;
7771 PyObject
* _argo0
= 0;
7772 char *_kwnames
[] = { "self","id", NULL
};
7775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7786 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7788 wxPyEndAllowThreads(__tstate
);
7789 if (PyErr_Occurred()) return NULL
;
7790 } _resultobj
= Py_BuildValue("i",_result
);
7794 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7795 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7796 PyObject
* _resultobj
;
7800 PyObject
* _argo0
= 0;
7801 PyObject
* _argo1
= 0;
7802 char *_kwnames
[] = { "self","item", NULL
};
7805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7815 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7816 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7823 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7825 wxPyEndAllowThreads(__tstate
);
7826 if (PyErr_Occurred()) return NULL
;
7827 } _resultobj
= Py_BuildValue("i",_result
);
7831 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7832 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7833 PyObject
* _resultobj
;
7838 PyObject
* _argo0
= 0;
7839 PyObject
* _argo2
= 0;
7840 char *_kwnames
[] = { "self","pos","item", NULL
};
7843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7853 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7854 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7861 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7863 wxPyEndAllowThreads(__tstate
);
7864 if (PyErr_Occurred()) return NULL
;
7865 } _resultobj
= Py_BuildValue("i",_result
);
7869 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7870 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7871 PyObject
* _resultobj
;
7872 wxMenuItem
* _result
;
7875 PyObject
* _argo0
= 0;
7876 char *_kwnames
[] = { "self","id", NULL
};
7879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7890 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7892 wxPyEndAllowThreads(__tstate
);
7893 if (PyErr_Occurred()) return NULL
;
7894 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7898 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7899 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7900 PyObject
* _resultobj
;
7901 wxMenuItem
* _result
;
7904 PyObject
* _argo0
= 0;
7905 PyObject
* _argo1
= 0;
7906 char *_kwnames
[] = { "self","item", NULL
};
7909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7919 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7920 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7927 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7929 wxPyEndAllowThreads(__tstate
);
7930 if (PyErr_Occurred()) return NULL
;
7931 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7935 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7936 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7937 PyObject
* _resultobj
;
7939 PyObject
* _argo0
= 0;
7940 char *_kwnames
[] = { "self", NULL
};
7943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7954 wxMenu_Destroy(_arg0
);
7956 wxPyEndAllowThreads(__tstate
);
7957 if (PyErr_Occurred()) return NULL
;
7958 } Py_INCREF(Py_None
);
7959 _resultobj
= Py_None
;
7963 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7964 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7965 PyObject
* _resultobj
;
7969 PyObject
* _argo0
= 0;
7970 char *_kwnames
[] = { "self","id", NULL
};
7973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7984 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7986 wxPyEndAllowThreads(__tstate
);
7987 if (PyErr_Occurred()) return NULL
;
7988 } _resultobj
= Py_BuildValue("i",_result
);
7992 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7993 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7994 PyObject
* _resultobj
;
7998 PyObject
* _argo0
= 0;
7999 PyObject
* _argo1
= 0;
8000 char *_kwnames
[] = { "self","item", NULL
};
8003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
8006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
8013 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8014 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
8015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
8020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8021 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
8023 wxPyEndAllowThreads(__tstate
);
8024 if (PyErr_Occurred()) return NULL
;
8025 } _resultobj
= Py_BuildValue("i",_result
);
8029 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
8030 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8031 PyObject
* _resultobj
;
8034 PyObject
* _argo0
= 0;
8035 char *_kwnames
[] = { "self", NULL
};
8038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
8041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
8048 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8049 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
8051 wxPyEndAllowThreads(__tstate
);
8052 if (PyErr_Occurred()) return NULL
;
8053 } _resultobj
= Py_BuildValue("i",_result
);
8057 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
8058 wxMenuItemList
& list
= self
->GetMenuItems();
8059 return wxPy_ConvertList(&list
, "wxMenuItem");
8061 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8062 PyObject
* _resultobj
;
8065 PyObject
* _argo0
= 0;
8066 char *_kwnames
[] = { "self", NULL
};
8069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
8072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
8079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8080 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
8082 wxPyEndAllowThreads(__tstate
);
8083 if (PyErr_Occurred()) return NULL
;
8085 _resultobj
= _result
;
8090 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
8091 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8092 PyObject
* _resultobj
;
8094 wxEvtHandler
* _arg1
;
8095 PyObject
* _argo0
= 0;
8096 PyObject
* _argo1
= 0;
8097 char *_kwnames
[] = { "self","handler", NULL
};
8100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
8103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
8110 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8111 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
8112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
8117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8118 wxMenu_SetEventHandler(_arg0
,_arg1
);
8120 wxPyEndAllowThreads(__tstate
);
8121 if (PyErr_Occurred()) return NULL
;
8122 } Py_INCREF(Py_None
);
8123 _resultobj
= Py_None
;
8127 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8128 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8129 PyObject
* _resultobj
;
8130 wxEvtHandler
* _result
;
8132 PyObject
* _argo0
= 0;
8133 char *_kwnames
[] = { "self", NULL
};
8136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8147 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8149 wxPyEndAllowThreads(__tstate
);
8150 if (PyErr_Occurred()) return NULL
;
8151 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8155 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8156 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8157 PyObject
* _resultobj
;
8160 PyObject
* _argo0
= 0;
8161 PyObject
* _argo1
= 0;
8162 char *_kwnames
[] = { "self","win", NULL
};
8165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8175 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8176 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8183 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8185 wxPyEndAllowThreads(__tstate
);
8186 if (PyErr_Occurred()) return NULL
;
8187 } Py_INCREF(Py_None
);
8188 _resultobj
= Py_None
;
8192 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8193 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8194 PyObject
* _resultobj
;
8197 PyObject
* _argo0
= 0;
8198 char *_kwnames
[] = { "self", NULL
};
8201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8212 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8214 wxPyEndAllowThreads(__tstate
);
8215 if (PyErr_Occurred()) return NULL
;
8216 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8220 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8221 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8222 PyObject
* _resultobj
;
8225 PyObject
* _argo0
= 0;
8226 char *_kwnames
[] = { "self", NULL
};
8229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8240 _result
= (long )wxMenu_GetStyle(_arg0
);
8242 wxPyEndAllowThreads(__tstate
);
8243 if (PyErr_Occurred()) return NULL
;
8244 } _resultobj
= Py_BuildValue("l",_result
);
8248 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8249 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8250 PyObject
* _resultobj
;
8253 PyObject
* _argo0
= 0;
8254 char *_kwnames
[] = { "self", NULL
};
8257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8268 _result
= (bool )wxMenu_IsAttached(_arg0
);
8270 wxPyEndAllowThreads(__tstate
);
8271 if (PyErr_Occurred()) return NULL
;
8272 } _resultobj
= Py_BuildValue("i",_result
);
8276 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8277 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8278 PyObject
* _resultobj
;
8281 PyObject
* _argo0
= 0;
8282 PyObject
* _argo1
= 0;
8283 char *_kwnames
[] = { "self","parent", NULL
};
8286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8296 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8297 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8303 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8304 wxMenu_SetParent(_arg0
,_arg1
);
8306 wxPyEndAllowThreads(__tstate
);
8307 if (PyErr_Occurred()) return NULL
;
8308 } Py_INCREF(Py_None
);
8309 _resultobj
= Py_None
;
8313 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8314 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8315 PyObject
* _resultobj
;
8318 PyObject
* _argo0
= 0;
8319 char *_kwnames
[] = { "self", NULL
};
8322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8333 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8335 wxPyEndAllowThreads(__tstate
);
8336 if (PyErr_Occurred()) return NULL
;
8337 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8341 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8344 src
= (wxMenuBar
*) ptr
;
8345 dest
= (wxWindow
*) src
;
8346 return (void *) dest
;
8349 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8352 src
= (wxMenuBar
*) ptr
;
8353 dest
= (wxEvtHandler
*) src
;
8354 return (void *) dest
;
8357 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8360 src
= (wxMenuBar
*) ptr
;
8361 dest
= (wxObject
*) src
;
8362 return (void *) dest
;
8365 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8366 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8367 PyObject
* _resultobj
;
8368 wxMenuBar
* _result
;
8369 long _arg0
= (long ) 0;
8370 char *_kwnames
[] = { "style", NULL
};
8374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8378 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8380 wxPyEndAllowThreads(__tstate
);
8381 if (PyErr_Occurred()) return NULL
;
8383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8384 _resultobj
= Py_BuildValue("s",_ptemp
);
8387 _resultobj
= Py_None
;
8392 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8393 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8394 PyObject
* _resultobj
;
8399 PyObject
* _argo0
= 0;
8400 PyObject
* _argo1
= 0;
8401 PyObject
* _obj2
= 0;
8402 char *_kwnames
[] = { "self","menu","title", NULL
};
8405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8422 #if PYTHON_API_VERSION >= 1009
8423 char* tmpPtr
; int tmpSize
;
8424 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8425 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8428 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8430 _arg2
= new wxString(tmpPtr
, tmpSize
);
8432 if (!PyString_Check(_obj2
)) {
8433 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8436 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8441 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8443 wxPyEndAllowThreads(__tstate
);
8444 if (PyErr_Occurred()) return NULL
;
8445 } _resultobj
= Py_BuildValue("i",_result
);
8453 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8454 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8455 PyObject
* _resultobj
;
8461 PyObject
* _argo0
= 0;
8462 PyObject
* _argo2
= 0;
8463 PyObject
* _obj3
= 0;
8464 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8477 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8478 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8484 #if PYTHON_API_VERSION >= 1009
8485 char* tmpPtr
; int tmpSize
;
8486 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8490 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8492 _arg3
= new wxString(tmpPtr
, tmpSize
);
8494 if (!PyString_Check(_obj3
)) {
8495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8498 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8503 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8505 wxPyEndAllowThreads(__tstate
);
8506 if (PyErr_Occurred()) return NULL
;
8507 } _resultobj
= Py_BuildValue("i",_result
);
8515 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8516 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8517 PyObject
* _resultobj
;
8520 PyObject
* _argo0
= 0;
8521 char *_kwnames
[] = { "self", NULL
};
8524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8535 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8537 wxPyEndAllowThreads(__tstate
);
8538 if (PyErr_Occurred()) return NULL
;
8539 } _resultobj
= Py_BuildValue("i",_result
);
8543 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8544 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8545 PyObject
* _resultobj
;
8549 PyObject
* _argo0
= 0;
8550 char *_kwnames
[] = { "self","pos", NULL
};
8553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8564 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8566 wxPyEndAllowThreads(__tstate
);
8567 if (PyErr_Occurred()) return NULL
;
8568 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8572 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8573 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8574 PyObject
* _resultobj
;
8580 PyObject
* _argo0
= 0;
8581 PyObject
* _argo2
= 0;
8582 PyObject
* _obj3
= 0;
8583 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8596 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8597 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8603 #if PYTHON_API_VERSION >= 1009
8604 char* tmpPtr
; int tmpSize
;
8605 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8606 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8609 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8611 _arg3
= new wxString(tmpPtr
, tmpSize
);
8613 if (!PyString_Check(_obj3
)) {
8614 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8617 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8622 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8624 wxPyEndAllowThreads(__tstate
);
8625 if (PyErr_Occurred()) return NULL
;
8626 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8634 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8635 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8636 PyObject
* _resultobj
;
8640 PyObject
* _argo0
= 0;
8641 char *_kwnames
[] = { "self","pos", NULL
};
8644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8655 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8657 wxPyEndAllowThreads(__tstate
);
8658 if (PyErr_Occurred()) return NULL
;
8659 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8663 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8664 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8665 PyObject
* _resultobj
;
8669 PyObject
* _argo0
= 0;
8671 char *_kwnames
[] = { "self","pos","enable", NULL
};
8674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8683 _arg2
= (bool ) tempbool2
;
8685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8686 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8688 wxPyEndAllowThreads(__tstate
);
8689 if (PyErr_Occurred()) return NULL
;
8690 } Py_INCREF(Py_None
);
8691 _resultobj
= Py_None
;
8695 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8696 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8697 PyObject
* _resultobj
;
8701 PyObject
* _argo0
= 0;
8702 PyObject
* _obj2
= 0;
8703 char *_kwnames
[] = { "self","pos","label", NULL
};
8706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8716 #if PYTHON_API_VERSION >= 1009
8717 char* tmpPtr
; int tmpSize
;
8718 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8719 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8722 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8724 _arg2
= new wxString(tmpPtr
, tmpSize
);
8726 if (!PyString_Check(_obj2
)) {
8727 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8730 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8735 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8737 wxPyEndAllowThreads(__tstate
);
8738 if (PyErr_Occurred()) return NULL
;
8739 } Py_INCREF(Py_None
);
8740 _resultobj
= Py_None
;
8748 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8749 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8750 PyObject
* _resultobj
;
8754 PyObject
* _argo0
= 0;
8755 char *_kwnames
[] = { "self","pos", NULL
};
8758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8769 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8771 wxPyEndAllowThreads(__tstate
);
8772 if (PyErr_Occurred()) return NULL
;
8774 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8782 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8783 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8784 PyObject
* _resultobj
;
8788 PyObject
* _argo0
= 0;
8789 PyObject
* _obj1
= 0;
8790 char *_kwnames
[] = { "self","title", NULL
};
8793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8803 #if PYTHON_API_VERSION >= 1009
8804 char* tmpPtr
; int tmpSize
;
8805 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8806 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8809 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8811 _arg1
= new wxString(tmpPtr
, tmpSize
);
8813 if (!PyString_Check(_obj1
)) {
8814 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8817 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8822 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8824 wxPyEndAllowThreads(__tstate
);
8825 if (PyErr_Occurred()) return NULL
;
8826 } _resultobj
= Py_BuildValue("i",_result
);
8834 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8835 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8836 PyObject
* _resultobj
;
8841 PyObject
* _argo0
= 0;
8842 PyObject
* _obj1
= 0;
8843 PyObject
* _obj2
= 0;
8844 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8857 #if PYTHON_API_VERSION >= 1009
8858 char* tmpPtr
; int tmpSize
;
8859 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8860 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8863 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8865 _arg1
= new wxString(tmpPtr
, tmpSize
);
8867 if (!PyString_Check(_obj1
)) {
8868 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8871 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8875 #if PYTHON_API_VERSION >= 1009
8876 char* tmpPtr
; int tmpSize
;
8877 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8878 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8881 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8883 _arg2
= new wxString(tmpPtr
, tmpSize
);
8885 if (!PyString_Check(_obj2
)) {
8886 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8889 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8894 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8896 wxPyEndAllowThreads(__tstate
);
8897 if (PyErr_Occurred()) return NULL
;
8898 } _resultobj
= Py_BuildValue("i",_result
);
8910 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8911 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8912 PyObject
* _resultobj
;
8913 wxMenuItem
* _result
;
8916 PyObject
* _argo0
= 0;
8917 char *_kwnames
[] = { "self","id", NULL
};
8920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8931 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8933 wxPyEndAllowThreads(__tstate
);
8934 if (PyErr_Occurred()) return NULL
;
8935 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8939 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8940 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8941 PyObject
* _resultobj
;
8945 PyObject
* _argo0
= 0;
8947 char *_kwnames
[] = { "self","id","enable", NULL
};
8950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8959 _arg2
= (bool ) tempbool2
;
8961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8962 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8964 wxPyEndAllowThreads(__tstate
);
8965 if (PyErr_Occurred()) return NULL
;
8966 } Py_INCREF(Py_None
);
8967 _resultobj
= Py_None
;
8971 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8972 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8973 PyObject
* _resultobj
;
8977 PyObject
* _argo0
= 0;
8979 char *_kwnames
[] = { "self","id","check", NULL
};
8982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8991 _arg2
= (bool ) tempbool2
;
8993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8994 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8996 wxPyEndAllowThreads(__tstate
);
8997 if (PyErr_Occurred()) return NULL
;
8998 } Py_INCREF(Py_None
);
8999 _resultobj
= Py_None
;
9003 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
9004 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9005 PyObject
* _resultobj
;
9009 PyObject
* _argo0
= 0;
9010 char *_kwnames
[] = { "self","id", NULL
};
9013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
9016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
9023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9024 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
9026 wxPyEndAllowThreads(__tstate
);
9027 if (PyErr_Occurred()) return NULL
;
9028 } _resultobj
= Py_BuildValue("i",_result
);
9032 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
9033 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9034 PyObject
* _resultobj
;
9038 PyObject
* _argo0
= 0;
9039 char *_kwnames
[] = { "self","id", NULL
};
9042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
9045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
9052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9053 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
9055 wxPyEndAllowThreads(__tstate
);
9056 if (PyErr_Occurred()) return NULL
;
9057 } _resultobj
= Py_BuildValue("i",_result
);
9061 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9062 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9063 PyObject
* _resultobj
;
9067 PyObject
* _argo0
= 0;
9068 PyObject
* _obj2
= 0;
9069 char *_kwnames
[] = { "self","id","label", NULL
};
9072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9082 #if PYTHON_API_VERSION >= 1009
9083 char* tmpPtr
; int tmpSize
;
9084 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9085 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9088 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9090 _arg2
= new wxString(tmpPtr
, tmpSize
);
9092 if (!PyString_Check(_obj2
)) {
9093 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9096 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9101 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
9103 wxPyEndAllowThreads(__tstate
);
9104 if (PyErr_Occurred()) return NULL
;
9105 } Py_INCREF(Py_None
);
9106 _resultobj
= Py_None
;
9114 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9115 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9116 PyObject
* _resultobj
;
9120 PyObject
* _argo0
= 0;
9121 char *_kwnames
[] = { "self","id", NULL
};
9124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
9127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9135 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9137 wxPyEndAllowThreads(__tstate
);
9138 if (PyErr_Occurred()) return NULL
;
9140 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9148 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9149 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9150 PyObject
* _resultobj
;
9154 PyObject
* _argo0
= 0;
9155 PyObject
* _obj2
= 0;
9156 char *_kwnames
[] = { "self","id","helpString", NULL
};
9159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9169 #if PYTHON_API_VERSION >= 1009
9170 char* tmpPtr
; int tmpSize
;
9171 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9172 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9175 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9177 _arg2
= new wxString(tmpPtr
, tmpSize
);
9179 if (!PyString_Check(_obj2
)) {
9180 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9183 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9188 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9190 wxPyEndAllowThreads(__tstate
);
9191 if (PyErr_Occurred()) return NULL
;
9192 } Py_INCREF(Py_None
);
9193 _resultobj
= Py_None
;
9201 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9202 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9203 PyObject
* _resultobj
;
9207 PyObject
* _argo0
= 0;
9208 char *_kwnames
[] = { "self","id", NULL
};
9211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9222 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9224 wxPyEndAllowThreads(__tstate
);
9225 if (PyErr_Occurred()) return NULL
;
9227 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9235 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9238 src
= (wxMenuItem
*) ptr
;
9239 dest
= (wxObject
*) src
;
9240 return (void *) dest
;
9243 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9244 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9245 PyObject
* _resultobj
;
9246 wxMenuItem
* _result
;
9247 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9248 int _arg1
= (int ) wxID_SEPARATOR
;
9249 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9250 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9251 bool _arg4
= (bool ) FALSE
;
9252 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9253 PyObject
* _argo0
= 0;
9254 PyObject
* _obj2
= 0;
9255 PyObject
* _obj3
= 0;
9256 int tempbool4
= (int) FALSE
;
9257 PyObject
* _argo5
= 0;
9258 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9273 #if PYTHON_API_VERSION >= 1009
9274 char* tmpPtr
; int tmpSize
;
9275 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9276 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9279 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9281 _arg2
= new wxString(tmpPtr
, tmpSize
);
9283 if (!PyString_Check(_obj2
)) {
9284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9287 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9292 #if PYTHON_API_VERSION >= 1009
9293 char* tmpPtr
; int tmpSize
;
9294 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9295 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9298 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9300 _arg3
= new wxString(tmpPtr
, tmpSize
);
9302 if (!PyString_Check(_obj3
)) {
9303 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9306 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9309 _arg4
= (bool ) tempbool4
;
9311 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9312 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9319 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9321 wxPyEndAllowThreads(__tstate
);
9322 if (PyErr_Occurred()) return NULL
;
9324 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9325 _resultobj
= Py_BuildValue("s",_ptemp
);
9328 _resultobj
= Py_None
;
9341 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9342 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9343 PyObject
* _resultobj
;
9346 PyObject
* _argo0
= 0;
9347 char *_kwnames
[] = { "self", NULL
};
9350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9361 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9363 wxPyEndAllowThreads(__tstate
);
9364 if (PyErr_Occurred()) return NULL
;
9365 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9369 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9370 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9371 PyObject
* _resultobj
;
9374 PyObject
* _argo0
= 0;
9375 char *_kwnames
[] = { "self","id", NULL
};
9378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9389 wxMenuItem_SetId(_arg0
,_arg1
);
9391 wxPyEndAllowThreads(__tstate
);
9392 if (PyErr_Occurred()) return NULL
;
9393 } Py_INCREF(Py_None
);
9394 _resultobj
= Py_None
;
9398 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9399 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9400 PyObject
* _resultobj
;
9403 PyObject
* _argo0
= 0;
9404 char *_kwnames
[] = { "self", NULL
};
9407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9418 _result
= (int )wxMenuItem_GetId(_arg0
);
9420 wxPyEndAllowThreads(__tstate
);
9421 if (PyErr_Occurred()) return NULL
;
9422 } _resultobj
= Py_BuildValue("i",_result
);
9426 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9427 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9428 PyObject
* _resultobj
;
9431 PyObject
* _argo0
= 0;
9432 char *_kwnames
[] = { "self", NULL
};
9435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9446 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9448 wxPyEndAllowThreads(__tstate
);
9449 if (PyErr_Occurred()) return NULL
;
9450 } _resultobj
= Py_BuildValue("i",_result
);
9454 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9455 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9456 PyObject
* _resultobj
;
9459 PyObject
* _argo0
= 0;
9460 PyObject
* _obj1
= 0;
9461 char *_kwnames
[] = { "self","str", NULL
};
9464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9474 #if PYTHON_API_VERSION >= 1009
9475 char* tmpPtr
; int tmpSize
;
9476 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9477 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9480 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9482 _arg1
= new wxString(tmpPtr
, tmpSize
);
9484 if (!PyString_Check(_obj1
)) {
9485 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9488 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9493 wxMenuItem_SetText(_arg0
,*_arg1
);
9495 wxPyEndAllowThreads(__tstate
);
9496 if (PyErr_Occurred()) return NULL
;
9497 } Py_INCREF(Py_None
);
9498 _resultobj
= Py_None
;
9506 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9507 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9508 PyObject
* _resultobj
;
9511 PyObject
* _argo0
= 0;
9512 char *_kwnames
[] = { "self", NULL
};
9515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9526 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9528 wxPyEndAllowThreads(__tstate
);
9529 if (PyErr_Occurred()) return NULL
;
9531 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9539 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9540 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9541 PyObject
* _resultobj
;
9544 PyObject
* _argo0
= 0;
9545 char *_kwnames
[] = { "self", NULL
};
9548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9559 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9560 _result
= (wxString
*) &_result_ref
;
9562 wxPyEndAllowThreads(__tstate
);
9563 if (PyErr_Occurred()) return NULL
;
9565 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9570 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9571 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9572 PyObject
* _resultobj
;
9575 PyObject
* _argo0
= 0;
9577 char *_kwnames
[] = { "self","checkable", NULL
};
9580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9589 _arg1
= (bool ) tempbool1
;
9591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9592 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9594 wxPyEndAllowThreads(__tstate
);
9595 if (PyErr_Occurred()) return NULL
;
9596 } Py_INCREF(Py_None
);
9597 _resultobj
= Py_None
;
9601 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9602 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9603 PyObject
* _resultobj
;
9606 PyObject
* _argo0
= 0;
9607 char *_kwnames
[] = { "self", NULL
};
9610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9620 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9621 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9623 wxPyEndAllowThreads(__tstate
);
9624 if (PyErr_Occurred()) return NULL
;
9625 } _resultobj
= Py_BuildValue("i",_result
);
9629 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9630 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9631 PyObject
* _resultobj
;
9634 PyObject
* _argo0
= 0;
9635 char *_kwnames
[] = { "self", NULL
};
9638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9649 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9651 wxPyEndAllowThreads(__tstate
);
9652 if (PyErr_Occurred()) return NULL
;
9653 } _resultobj
= Py_BuildValue("i",_result
);
9657 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9658 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9659 PyObject
* _resultobj
;
9662 PyObject
* _argo0
= 0;
9663 PyObject
* _argo1
= 0;
9664 char *_kwnames
[] = { "self","menu", NULL
};
9667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9677 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9678 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9685 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9687 wxPyEndAllowThreads(__tstate
);
9688 if (PyErr_Occurred()) return NULL
;
9689 } Py_INCREF(Py_None
);
9690 _resultobj
= Py_None
;
9694 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9695 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9696 PyObject
* _resultobj
;
9699 PyObject
* _argo0
= 0;
9700 char *_kwnames
[] = { "self", NULL
};
9703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9714 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9716 wxPyEndAllowThreads(__tstate
);
9717 if (PyErr_Occurred()) return NULL
;
9718 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9722 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9723 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9724 PyObject
* _resultobj
;
9726 bool _arg1
= (bool ) TRUE
;
9727 PyObject
* _argo0
= 0;
9728 int tempbool1
= (int) TRUE
;
9729 char *_kwnames
[] = { "self","enable", NULL
};
9732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9741 _arg1
= (bool ) tempbool1
;
9743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9744 wxMenuItem_Enable(_arg0
,_arg1
);
9746 wxPyEndAllowThreads(__tstate
);
9747 if (PyErr_Occurred()) return NULL
;
9748 } Py_INCREF(Py_None
);
9749 _resultobj
= Py_None
;
9753 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9754 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9755 PyObject
* _resultobj
;
9758 PyObject
* _argo0
= 0;
9759 char *_kwnames
[] = { "self", NULL
};
9762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9773 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9775 wxPyEndAllowThreads(__tstate
);
9776 if (PyErr_Occurred()) return NULL
;
9777 } _resultobj
= Py_BuildValue("i",_result
);
9781 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9782 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9783 PyObject
* _resultobj
;
9785 bool _arg1
= (bool ) TRUE
;
9786 PyObject
* _argo0
= 0;
9787 int tempbool1
= (int) TRUE
;
9788 char *_kwnames
[] = { "self","check", NULL
};
9791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9800 _arg1
= (bool ) tempbool1
;
9802 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9803 wxMenuItem_Check(_arg0
,_arg1
);
9805 wxPyEndAllowThreads(__tstate
);
9806 if (PyErr_Occurred()) return NULL
;
9807 } Py_INCREF(Py_None
);
9808 _resultobj
= Py_None
;
9812 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9813 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9814 PyObject
* _resultobj
;
9817 PyObject
* _argo0
= 0;
9818 char *_kwnames
[] = { "self", NULL
};
9821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9832 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9834 wxPyEndAllowThreads(__tstate
);
9835 if (PyErr_Occurred()) return NULL
;
9836 } _resultobj
= Py_BuildValue("i",_result
);
9840 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9841 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9842 PyObject
* _resultobj
;
9844 PyObject
* _argo0
= 0;
9845 char *_kwnames
[] = { "self", NULL
};
9848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9858 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9859 wxMenuItem_Toggle(_arg0
);
9861 wxPyEndAllowThreads(__tstate
);
9862 if (PyErr_Occurred()) return NULL
;
9863 } Py_INCREF(Py_None
);
9864 _resultobj
= Py_None
;
9868 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9869 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9870 PyObject
* _resultobj
;
9873 PyObject
* _argo0
= 0;
9874 PyObject
* _obj1
= 0;
9875 char *_kwnames
[] = { "self","str", NULL
};
9878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9888 #if PYTHON_API_VERSION >= 1009
9889 char* tmpPtr
; int tmpSize
;
9890 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9891 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9894 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9896 _arg1
= new wxString(tmpPtr
, tmpSize
);
9898 if (!PyString_Check(_obj1
)) {
9899 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9902 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9906 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9907 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9909 wxPyEndAllowThreads(__tstate
);
9910 if (PyErr_Occurred()) return NULL
;
9911 } Py_INCREF(Py_None
);
9912 _resultobj
= Py_None
;
9920 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9921 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9922 PyObject
* _resultobj
;
9925 PyObject
* _argo0
= 0;
9926 char *_kwnames
[] = { "self", NULL
};
9929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9940 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9941 _result
= (wxString
*) &_result_ref
;
9943 wxPyEndAllowThreads(__tstate
);
9944 if (PyErr_Occurred()) return NULL
;
9946 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9951 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9952 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9953 PyObject
* _resultobj
;
9954 wxAcceleratorEntry
* _result
;
9956 PyObject
* _argo0
= 0;
9957 char *_kwnames
[] = { "self", NULL
};
9961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9972 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9974 wxPyEndAllowThreads(__tstate
);
9975 if (PyErr_Occurred()) return NULL
;
9977 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9978 _resultobj
= Py_BuildValue("s",_ptemp
);
9981 _resultobj
= Py_None
;
9986 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9987 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9988 PyObject
* _resultobj
;
9990 wxAcceleratorEntry
* _arg1
;
9991 PyObject
* _argo0
= 0;
9992 PyObject
* _argo1
= 0;
9993 char *_kwnames
[] = { "self","accel", NULL
};
9996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
10006 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10007 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
10008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
10013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10014 wxMenuItem_SetAccel(_arg0
,_arg1
);
10016 wxPyEndAllowThreads(__tstate
);
10017 if (PyErr_Occurred()) return NULL
;
10018 } Py_INCREF(Py_None
);
10019 _resultobj
= Py_None
;
10023 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10024 PyObject
* _resultobj
;
10025 wxString
* _result
;
10027 PyObject
* _obj0
= 0;
10028 char *_kwnames
[] = { "text", NULL
};
10031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
10034 #if PYTHON_API_VERSION >= 1009
10035 char* tmpPtr
; int tmpSize
;
10036 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10037 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10040 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10042 _arg0
= new wxString(tmpPtr
, tmpSize
);
10044 if (!PyString_Check(_obj0
)) {
10045 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10048 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10053 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
10055 wxPyEndAllowThreads(__tstate
);
10056 if (PyErr_Occurred()) return NULL
;
10058 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10070 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
10071 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10072 PyObject
* _resultobj
;
10073 wxMenuItem
* _arg0
;
10075 PyObject
* _argo0
= 0;
10076 PyObject
* _argo1
= 0;
10077 char *_kwnames
[] = { "self","font", NULL
};
10080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
10083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
10090 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10091 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
10092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
10097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10098 wxMenuItem_SetFont(_arg0
,*_arg1
);
10100 wxPyEndAllowThreads(__tstate
);
10101 if (PyErr_Occurred()) return NULL
;
10102 } Py_INCREF(Py_None
);
10103 _resultobj
= Py_None
;
10107 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
10108 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10109 PyObject
* _resultobj
;
10111 wxMenuItem
* _arg0
;
10112 PyObject
* _argo0
= 0;
10113 char *_kwnames
[] = { "self", NULL
};
10117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
10120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
10127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10128 _result
= new wxFont (wxMenuItem_GetFont(_arg0
));
10130 wxPyEndAllowThreads(__tstate
);
10131 if (PyErr_Occurred()) return NULL
;
10132 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
10133 _resultobj
= Py_BuildValue("s",_ptemp
);
10137 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
10138 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10139 PyObject
* _resultobj
;
10140 wxMenuItem
* _arg0
;
10142 PyObject
* _argo0
= 0;
10144 PyObject
* _obj1
= 0;
10145 char *_kwnames
[] = { "self","colText", NULL
};
10148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
10151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
10159 if (! wxColour_helper(_obj1
, &_arg1
))
10163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10164 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
10166 wxPyEndAllowThreads(__tstate
);
10167 if (PyErr_Occurred()) return NULL
;
10168 } Py_INCREF(Py_None
);
10169 _resultobj
= Py_None
;
10173 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
10174 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10175 PyObject
* _resultobj
;
10176 wxColour
* _result
;
10177 wxMenuItem
* _arg0
;
10178 PyObject
* _argo0
= 0;
10179 char *_kwnames
[] = { "self", NULL
};
10183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
10186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
10193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10194 _result
= new wxColour (wxMenuItem_GetTextColour(_arg0
));
10196 wxPyEndAllowThreads(__tstate
);
10197 if (PyErr_Occurred()) return NULL
;
10198 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10199 _resultobj
= Py_BuildValue("s",_ptemp
);
10203 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
10204 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10205 PyObject
* _resultobj
;
10206 wxMenuItem
* _arg0
;
10208 PyObject
* _argo0
= 0;
10210 PyObject
* _obj1
= 0;
10211 char *_kwnames
[] = { "self","colBack", NULL
};
10214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
10217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
10225 if (! wxColour_helper(_obj1
, &_arg1
))
10229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10230 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
10232 wxPyEndAllowThreads(__tstate
);
10233 if (PyErr_Occurred()) return NULL
;
10234 } Py_INCREF(Py_None
);
10235 _resultobj
= Py_None
;
10239 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10240 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10241 PyObject
* _resultobj
;
10242 wxColour
* _result
;
10243 wxMenuItem
* _arg0
;
10244 PyObject
* _argo0
= 0;
10245 char *_kwnames
[] = { "self", NULL
};
10249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10260 _result
= new wxColour (wxMenuItem_GetBackgroundColour(_arg0
));
10262 wxPyEndAllowThreads(__tstate
);
10263 if (PyErr_Occurred()) return NULL
;
10264 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10265 _resultobj
= Py_BuildValue("s",_ptemp
);
10269 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10270 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10271 PyObject
* _resultobj
;
10272 wxMenuItem
* _arg0
;
10274 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10275 PyObject
* _argo0
= 0;
10276 PyObject
* _argo1
= 0;
10277 PyObject
* _argo2
= 0;
10278 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
10291 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10292 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10298 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10299 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10306 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10308 wxPyEndAllowThreads(__tstate
);
10309 if (PyErr_Occurred()) return NULL
;
10310 } Py_INCREF(Py_None
);
10311 _resultobj
= Py_None
;
10315 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10316 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10317 PyObject
* _resultobj
;
10318 wxMenuItem
* _arg0
;
10320 PyObject
* _argo0
= 0;
10321 PyObject
* _argo1
= 0;
10322 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10335 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10336 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10343 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10345 wxPyEndAllowThreads(__tstate
);
10346 if (PyErr_Occurred()) return NULL
;
10347 } Py_INCREF(Py_None
);
10348 _resultobj
= Py_None
;
10352 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10353 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10354 PyObject
* _resultobj
;
10355 wxBitmap
* _result
;
10356 wxMenuItem
* _arg0
;
10357 bool _arg1
= (bool ) TRUE
;
10358 PyObject
* _argo0
= 0;
10359 int tempbool1
= (int) TRUE
;
10360 char *_kwnames
[] = { "self","bChecked", NULL
};
10364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10373 _arg1
= (bool ) tempbool1
;
10375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10376 _result
= new wxBitmap (wxMenuItem_GetBitmap(_arg0
,_arg1
));
10378 wxPyEndAllowThreads(__tstate
);
10379 if (PyErr_Occurred()) return NULL
;
10380 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
10381 _resultobj
= Py_BuildValue("s",_ptemp
);
10385 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10386 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10387 PyObject
* _resultobj
;
10388 wxMenuItem
* _arg0
;
10390 PyObject
* _argo0
= 0;
10391 char *_kwnames
[] = { "self","nWidth", NULL
};
10394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10405 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10407 wxPyEndAllowThreads(__tstate
);
10408 if (PyErr_Occurred()) return NULL
;
10409 } Py_INCREF(Py_None
);
10410 _resultobj
= Py_None
;
10414 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10415 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10416 PyObject
* _resultobj
;
10418 wxMenuItem
* _arg0
;
10419 PyObject
* _argo0
= 0;
10420 char *_kwnames
[] = { "self", NULL
};
10423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10434 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10436 wxPyEndAllowThreads(__tstate
);
10437 if (PyErr_Occurred()) return NULL
;
10438 } _resultobj
= Py_BuildValue("i",_result
);
10442 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10443 PyObject
* _resultobj
;
10445 char *_kwnames
[] = { NULL
};
10448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10452 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10454 wxPyEndAllowThreads(__tstate
);
10455 if (PyErr_Occurred()) return NULL
;
10456 } _resultobj
= Py_BuildValue("i",_result
);
10460 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10461 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10462 PyObject
* _resultobj
;
10464 wxMenuItem
* _arg0
;
10465 PyObject
* _argo0
= 0;
10466 char *_kwnames
[] = { "self", NULL
};
10469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
10472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
10479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10480 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10482 wxPyEndAllowThreads(__tstate
);
10483 if (PyErr_Occurred()) return NULL
;
10484 } _resultobj
= Py_BuildValue("i",_result
);
10488 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10489 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10490 PyObject
* _resultobj
;
10491 wxMenuItem
* _arg0
;
10492 PyObject
* _argo0
= 0;
10493 char *_kwnames
[] = { "self", NULL
};
10496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10507 wxMenuItem_ResetOwnerDrawn(_arg0
);
10509 wxPyEndAllowThreads(__tstate
);
10510 if (PyErr_Occurred()) return NULL
;
10511 } Py_INCREF(Py_None
);
10512 _resultobj
= Py_None
;
10516 static PyMethodDef windowscMethods
[] = {
10517 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10591 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10592 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10593 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10594 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10595 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10596 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10597 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10598 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10599 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10600 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10601 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10602 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10603 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10604 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10605 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10606 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10607 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10608 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10609 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10610 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10611 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10612 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10613 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10614 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10615 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10616 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10617 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10618 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10619 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10620 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10621 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10622 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10623 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10624 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10625 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10626 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10627 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10628 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10629 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10630 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10631 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10632 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10633 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10634 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10635 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10636 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10637 { "wxWindow_SetDefaultItem", (PyCFunction
) _wrap_wxWindow_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10638 { "wxWindow_GetDefaultItem", (PyCFunction
) _wrap_wxWindow_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10639 { "wxWindow_OnPaint", (PyCFunction
) _wrap_wxWindow_OnPaint
, METH_VARARGS
| METH_KEYWORDS
},
10640 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10641 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10642 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10643 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10644 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10645 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10646 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10647 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10648 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10649 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10650 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10651 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10652 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10653 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10654 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10655 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10656 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10657 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10658 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10659 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10660 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10661 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10662 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10663 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10664 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10665 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10666 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10667 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10668 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10669 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10670 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10671 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10672 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10673 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10674 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10675 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10676 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10677 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10678 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10679 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10680 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10681 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10682 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10683 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10684 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10685 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10686 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10687 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10688 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10689 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10690 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10691 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10692 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10693 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10694 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10695 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10696 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10697 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10698 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10699 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10700 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10701 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10702 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10703 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10704 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10705 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10706 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10707 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10708 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10709 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10710 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10711 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10712 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10713 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10714 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10715 { "wxWindow_RemoveEventHandler", (PyCFunction
) _wrap_wxWindow_RemoveEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10716 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10717 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10718 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10719 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10720 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10721 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10722 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10723 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10724 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10725 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10726 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10727 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10728 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10729 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10730 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10731 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10732 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10733 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10734 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10735 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10736 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10737 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10738 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10750 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10751 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10752 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10753 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10754 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10755 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10756 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10757 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10758 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10759 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10760 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10761 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10762 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10763 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10764 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10765 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10766 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10767 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10768 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10769 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10770 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10771 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10772 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10773 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10774 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10775 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10776 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10777 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10778 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10779 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10780 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10781 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10782 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10783 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10784 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10785 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10786 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10787 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10788 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10789 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10790 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10791 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10792 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10793 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10794 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10795 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10796 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10797 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10798 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10799 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10800 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10801 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10802 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10803 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10804 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10805 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10806 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10807 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10814 * This table is used by the pointer type-checker
10816 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10817 { "_signed_long","_long",0},
10818 { "_wxPrintQuality","_wxCoord",0},
10819 { "_wxPrintQuality","_int",0},
10820 { "_wxPrintQuality","_signed_int",0},
10821 { "_wxPrintQuality","_unsigned_int",0},
10822 { "_wxPrintQuality","_wxWindowID",0},
10823 { "_wxPrintQuality","_uint",0},
10824 { "_wxPrintQuality","_EBool",0},
10825 { "_wxPrintQuality","_size_t",0},
10826 { "_wxPrintQuality","_time_t",0},
10827 { "_byte","_unsigned_char",0},
10828 { "_long","_unsigned_long",0},
10829 { "_long","_signed_long",0},
10830 { "_size_t","_wxCoord",0},
10831 { "_size_t","_wxPrintQuality",0},
10832 { "_size_t","_time_t",0},
10833 { "_size_t","_unsigned_int",0},
10834 { "_size_t","_int",0},
10835 { "_size_t","_wxWindowID",0},
10836 { "_size_t","_uint",0},
10837 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10838 { "_uint","_wxCoord",0},
10839 { "_uint","_wxPrintQuality",0},
10840 { "_uint","_time_t",0},
10841 { "_uint","_size_t",0},
10842 { "_uint","_unsigned_int",0},
10843 { "_uint","_int",0},
10844 { "_uint","_wxWindowID",0},
10845 { "_wxChar","_char",0},
10846 { "_char","_wxChar",0},
10847 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10848 { "_EBool","_wxCoord",0},
10849 { "_EBool","_wxPrintQuality",0},
10850 { "_EBool","_signed_int",0},
10851 { "_EBool","_int",0},
10852 { "_EBool","_wxWindowID",0},
10853 { "_unsigned_long","_long",0},
10854 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10855 { "_signed_int","_wxCoord",0},
10856 { "_signed_int","_wxPrintQuality",0},
10857 { "_signed_int","_EBool",0},
10858 { "_signed_int","_wxWindowID",0},
10859 { "_signed_int","_int",0},
10860 { "_WXTYPE","_short",0},
10861 { "_WXTYPE","_signed_short",0},
10862 { "_WXTYPE","_unsigned_short",0},
10863 { "_unsigned_short","_WXTYPE",0},
10864 { "_unsigned_short","_short",0},
10865 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10866 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10867 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10868 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10869 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10870 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10871 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10872 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10873 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10874 { "_signed_short","_WXTYPE",0},
10875 { "_signed_short","_short",0},
10876 { "_unsigned_char","_byte",0},
10877 { "_unsigned_int","_wxCoord",0},
10878 { "_unsigned_int","_wxPrintQuality",0},
10879 { "_unsigned_int","_time_t",0},
10880 { "_unsigned_int","_size_t",0},
10881 { "_unsigned_int","_uint",0},
10882 { "_unsigned_int","_wxWindowID",0},
10883 { "_unsigned_int","_int",0},
10884 { "_short","_WXTYPE",0},
10885 { "_short","_unsigned_short",0},
10886 { "_short","_signed_short",0},
10887 { "_wxWindowID","_wxCoord",0},
10888 { "_wxWindowID","_wxPrintQuality",0},
10889 { "_wxWindowID","_time_t",0},
10890 { "_wxWindowID","_size_t",0},
10891 { "_wxWindowID","_EBool",0},
10892 { "_wxWindowID","_uint",0},
10893 { "_wxWindowID","_int",0},
10894 { "_wxWindowID","_signed_int",0},
10895 { "_wxWindowID","_unsigned_int",0},
10896 { "_int","_wxCoord",0},
10897 { "_int","_wxPrintQuality",0},
10898 { "_int","_time_t",0},
10899 { "_int","_size_t",0},
10900 { "_int","_EBool",0},
10901 { "_int","_uint",0},
10902 { "_int","_wxWindowID",0},
10903 { "_int","_unsigned_int",0},
10904 { "_int","_signed_int",0},
10905 { "_time_t","_wxCoord",0},
10906 { "_time_t","_wxPrintQuality",0},
10907 { "_time_t","_unsigned_int",0},
10908 { "_time_t","_int",0},
10909 { "_time_t","_wxWindowID",0},
10910 { "_time_t","_uint",0},
10911 { "_time_t","_size_t",0},
10912 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10913 { "_wxCoord","_int",0},
10914 { "_wxCoord","_signed_int",0},
10915 { "_wxCoord","_unsigned_int",0},
10916 { "_wxCoord","_wxWindowID",0},
10917 { "_wxCoord","_uint",0},
10918 { "_wxCoord","_EBool",0},
10919 { "_wxCoord","_size_t",0},
10920 { "_wxCoord","_time_t",0},
10921 { "_wxCoord","_wxPrintQuality",0},
10922 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10923 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10924 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10925 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10926 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10927 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10928 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10929 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10930 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10931 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10934 static PyObject
*SWIG_globals
;
10938 SWIGEXPORT(void) initwindowsc() {
10940 SWIG_globals
= SWIG_newvarlink();
10941 m
= Py_InitModule("windowsc", windowscMethods
);
10942 d
= PyModule_GetDict(m
);
10945 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10946 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);