2 * FILE : src/mac/windows.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 wxPyTState
* state
= wxPyBeginBlockThreads();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 wxPyEndBlockThreads(state
);
121 // This is very dangerous!!! But is the only way I could find
122 // to squash a memory leak. Currently it is okay, but if the
123 // validator architecture in wxWindows ever changes, problems
130 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
131 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
132 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
137 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
138 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
139 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
141 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
146 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
149 src
= (wxEvtHandler
*) ptr
;
150 dest
= (wxObject
*) src
;
151 return (void *) dest
;
154 #define new_wxEvtHandler() (new wxEvtHandler())
155 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
156 PyObject
* _resultobj
;
157 wxEvtHandler
* _result
;
158 char *_kwnames
[] = { NULL
};
162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
165 wxPy_BEGIN_ALLOW_THREADS
;
166 _result
= (wxEvtHandler
*)new_wxEvtHandler();
168 wxPy_END_ALLOW_THREADS
;
169 if (PyErr_Occurred()) return NULL
;
171 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
172 _resultobj
= Py_BuildValue("s",_ptemp
);
175 _resultobj
= Py_None
;
180 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
181 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
182 PyObject
* _resultobj
;
184 wxEvtHandler
* _arg0
;
186 PyObject
* _argo0
= 0;
187 PyObject
* _argo1
= 0;
188 char *_kwnames
[] = { "self","event", NULL
};
191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
201 if (_argo1
== Py_None
) { _arg1
= NULL
; }
202 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
208 wxPy_BEGIN_ALLOW_THREADS
;
209 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
211 wxPy_END_ALLOW_THREADS
;
212 if (PyErr_Occurred()) return NULL
;
213 } _resultobj
= Py_BuildValue("i",_result
);
217 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
218 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
219 PyObject
* _resultobj
;
220 wxEvtHandler
* _arg0
;
222 PyObject
* _argo0
= 0;
223 PyObject
* _argo1
= 0;
224 char *_kwnames
[] = { "self","event", NULL
};
227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
244 wxPy_BEGIN_ALLOW_THREADS
;
245 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
247 wxPy_END_ALLOW_THREADS
;
248 if (PyErr_Occurred()) return NULL
;
249 } Py_INCREF(Py_None
);
250 _resultobj
= Py_None
;
254 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
255 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
256 PyObject
* _resultobj
;
258 wxEvtHandler
* _arg0
;
259 PyObject
* _argo0
= 0;
260 char *_kwnames
[] = { "self", NULL
};
263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
273 wxPy_BEGIN_ALLOW_THREADS
;
274 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
276 wxPy_END_ALLOW_THREADS
;
277 if (PyErr_Occurred()) return NULL
;
278 } _resultobj
= Py_BuildValue("i",_result
);
282 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
283 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
284 PyObject
* _resultobj
;
285 wxEvtHandler
* _arg0
;
287 PyObject
* _argo0
= 0;
289 char *_kwnames
[] = { "self","enabled", NULL
};
292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
301 _arg1
= (bool ) tempbool1
;
303 wxPy_BEGIN_ALLOW_THREADS
;
304 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
306 wxPy_END_ALLOW_THREADS
;
307 if (PyErr_Occurred()) return NULL
;
308 } Py_INCREF(Py_None
);
309 _resultobj
= Py_None
;
313 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
314 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
316 wxEvtHandler
* _result
;
317 wxEvtHandler
* _arg0
;
318 PyObject
* _argo0
= 0;
319 char *_kwnames
[] = { "self", NULL
};
322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
332 wxPy_BEGIN_ALLOW_THREADS
;
333 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
335 wxPy_END_ALLOW_THREADS
;
336 if (PyErr_Occurred()) return NULL
;
337 }{ _resultobj
= wxPyMake_wxObject(_result
); }
341 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
342 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
343 PyObject
* _resultobj
;
344 wxEvtHandler
* _result
;
345 wxEvtHandler
* _arg0
;
346 PyObject
* _argo0
= 0;
347 char *_kwnames
[] = { "self", NULL
};
350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
360 wxPy_BEGIN_ALLOW_THREADS
;
361 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
363 wxPy_END_ALLOW_THREADS
;
364 if (PyErr_Occurred()) return NULL
;
365 }{ _resultobj
= wxPyMake_wxObject(_result
); }
369 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
370 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
371 PyObject
* _resultobj
;
372 wxEvtHandler
* _arg0
;
373 wxEvtHandler
* _arg1
;
374 PyObject
* _argo0
= 0;
375 PyObject
* _argo1
= 0;
376 char *_kwnames
[] = { "self","handler", NULL
};
379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
396 wxPy_BEGIN_ALLOW_THREADS
;
397 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
399 wxPy_END_ALLOW_THREADS
;
400 if (PyErr_Occurred()) return NULL
;
401 } Py_INCREF(Py_None
);
402 _resultobj
= Py_None
;
406 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
407 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
408 PyObject
* _resultobj
;
409 wxEvtHandler
* _arg0
;
410 wxEvtHandler
* _arg1
;
411 PyObject
* _argo0
= 0;
412 PyObject
* _argo1
= 0;
413 char *_kwnames
[] = { "self","handler", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
426 if (_argo1
== Py_None
) { _arg1
= NULL
; }
427 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
433 wxPy_BEGIN_ALLOW_THREADS
;
434 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
436 wxPy_END_ALLOW_THREADS
;
437 if (PyErr_Occurred()) return NULL
;
438 } Py_INCREF(Py_None
);
439 _resultobj
= Py_None
;
443 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
444 if (PyCallable_Check(func
)) {
445 self
->Connect(id
, lastId
, eventType
,
446 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
447 new wxPyCallback(func
));
450 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
451 PyObject
* _resultobj
;
452 wxEvtHandler
* _arg0
;
457 PyObject
* _argo0
= 0;
458 PyObject
* _obj4
= 0;
459 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
475 wxPy_BEGIN_ALLOW_THREADS
;
476 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
478 wxPy_END_ALLOW_THREADS
;
479 if (PyErr_Occurred()) return NULL
;
480 } Py_INCREF(Py_None
);
481 _resultobj
= Py_None
;
485 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
486 return self
->Disconnect(id
, lastId
, eventType
,
487 (wxObjectEventFunction
)
488 &wxPyCallback::EventThunker
);
490 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
491 PyObject
* _resultobj
;
493 wxEvtHandler
* _arg0
;
495 int _arg2
= (int ) -1;
496 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
497 PyObject
* _argo0
= 0;
498 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
511 wxPy_BEGIN_ALLOW_THREADS
;
512 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
514 wxPy_END_ALLOW_THREADS
;
515 if (PyErr_Occurred()) return NULL
;
516 } _resultobj
= Py_BuildValue("i",_result
);
520 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
521 self
->SetClientObject(new wxPyClientData(_self
));
523 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
524 PyObject
* _resultobj
;
525 wxEvtHandler
* _arg0
;
527 PyObject
* _argo0
= 0;
528 PyObject
* _obj1
= 0;
529 char *_kwnames
[] = { "self","_self", NULL
};
532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
545 wxPy_BEGIN_ALLOW_THREADS
;
546 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
548 wxPy_END_ALLOW_THREADS
;
549 if (PyErr_Occurred()) return NULL
;
550 } Py_INCREF(Py_None
);
551 _resultobj
= Py_None
;
555 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
558 src
= (wxValidator
*) ptr
;
559 dest
= (wxEvtHandler
*) src
;
560 return (void *) dest
;
563 static void *SwigwxValidatorTowxObject(void *ptr
) {
566 src
= (wxValidator
*) ptr
;
567 dest
= (wxObject
*) src
;
568 return (void *) dest
;
571 #define new_wxValidator() (new wxValidator())
572 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
573 PyObject
* _resultobj
;
574 wxValidator
* _result
;
575 char *_kwnames
[] = { NULL
};
579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
582 wxPy_BEGIN_ALLOW_THREADS
;
583 _result
= (wxValidator
*)new_wxValidator();
585 wxPy_END_ALLOW_THREADS
;
586 if (PyErr_Occurred()) return NULL
;
588 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
589 _resultobj
= Py_BuildValue("s",_ptemp
);
592 _resultobj
= Py_None
;
597 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
598 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
599 PyObject
* _resultobj
;
600 wxValidator
* _result
;
602 PyObject
* _argo0
= 0;
603 char *_kwnames
[] = { "self", NULL
};
606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
616 wxPy_BEGIN_ALLOW_THREADS
;
617 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
619 wxPy_END_ALLOW_THREADS
;
620 if (PyErr_Occurred()) return NULL
;
621 }{ _resultobj
= wxPyMake_wxObject(_result
); }
625 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
626 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
627 PyObject
* _resultobj
;
630 PyObject
* _argo0
= 0;
631 char *_kwnames
[] = { "self", NULL
};
634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
644 wxPy_BEGIN_ALLOW_THREADS
;
645 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
647 wxPy_END_ALLOW_THREADS
;
648 if (PyErr_Occurred()) return NULL
;
649 }{ _resultobj
= wxPyMake_wxObject(_result
); }
653 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
654 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
655 PyObject
* _resultobj
;
658 PyObject
* _argo0
= 0;
659 PyObject
* _argo1
= 0;
660 char *_kwnames
[] = { "self","window", NULL
};
663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
673 if (_argo1
== Py_None
) { _arg1
= NULL
; }
674 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
680 wxPy_BEGIN_ALLOW_THREADS
;
681 wxValidator_SetWindow(_arg0
,_arg1
);
683 wxPy_END_ALLOW_THREADS
;
684 if (PyErr_Occurred()) return NULL
;
685 } Py_INCREF(Py_None
);
686 _resultobj
= Py_None
;
690 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
691 PyObject
* _resultobj
;
693 char *_kwnames
[] = { NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
699 wxPy_BEGIN_ALLOW_THREADS
;
700 _result
= (bool )wxValidator::IsSilent();
702 wxPy_END_ALLOW_THREADS
;
703 if (PyErr_Occurred()) return NULL
;
704 } _resultobj
= Py_BuildValue("i",_result
);
708 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
709 PyObject
* _resultobj
;
710 int _arg0
= (int ) TRUE
;
711 char *_kwnames
[] = { "doIt", NULL
};
714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
717 wxPy_BEGIN_ALLOW_THREADS
;
718 wxValidator::SetBellOnError(_arg0
);
720 wxPy_END_ALLOW_THREADS
;
721 if (PyErr_Occurred()) return NULL
;
722 } Py_INCREF(Py_None
);
723 _resultobj
= Py_None
;
727 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
730 src
= (wxPyValidator
*) ptr
;
731 dest
= (wxValidator
*) src
;
732 return (void *) dest
;
735 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
738 src
= (wxPyValidator
*) ptr
;
739 dest
= (wxEvtHandler
*) src
;
740 return (void *) dest
;
743 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
746 src
= (wxPyValidator
*) ptr
;
747 dest
= (wxObject
*) src
;
748 return (void *) dest
;
751 #define new_wxPyValidator() (new wxPyValidator())
752 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
753 PyObject
* _resultobj
;
754 wxPyValidator
* _result
;
755 char *_kwnames
[] = { NULL
};
759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
762 wxPy_BEGIN_ALLOW_THREADS
;
763 _result
= (wxPyValidator
*)new_wxPyValidator();
765 wxPy_END_ALLOW_THREADS
;
766 if (PyErr_Occurred()) return NULL
;
768 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
769 _resultobj
= Py_BuildValue("s",_ptemp
);
772 _resultobj
= Py_None
;
777 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
778 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
779 PyObject
* _resultobj
;
780 wxPyValidator
* _arg0
;
783 int _arg3
= (int ) TRUE
;
784 PyObject
* _argo0
= 0;
785 PyObject
* _obj1
= 0;
786 PyObject
* _obj2
= 0;
787 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
806 wxPy_BEGIN_ALLOW_THREADS
;
807 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
809 wxPy_END_ALLOW_THREADS
;
810 if (PyErr_Occurred()) return NULL
;
811 } Py_INCREF(Py_None
);
812 _resultobj
= Py_None
;
816 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
819 src
= (wxWindow
*) ptr
;
820 dest
= (wxEvtHandler
*) src
;
821 return (void *) dest
;
824 static void *SwigwxWindowTowxObject(void *ptr
) {
827 src
= (wxWindow
*) ptr
;
828 dest
= (wxObject
*) src
;
829 return (void *) dest
;
832 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
833 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
834 PyObject
* _resultobj
;
838 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
839 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
840 long _arg4
= (long ) 0;
841 char * _arg5
= (char *) "panel";
842 PyObject
* _argo0
= 0;
844 PyObject
* _obj2
= 0;
846 PyObject
* _obj3
= 0;
847 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
863 if (! wxPoint_helper(_obj2
, &_arg2
))
869 if (! wxSize_helper(_obj3
, &_arg3
))
873 wxPy_BEGIN_ALLOW_THREADS
;
874 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
876 wxPy_END_ALLOW_THREADS
;
877 if (PyErr_Occurred()) return NULL
;
879 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
880 _resultobj
= Py_BuildValue("s",_ptemp
);
883 _resultobj
= Py_None
;
888 #define new_wxPreWindow() (new wxWindow())
889 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
890 PyObject
* _resultobj
;
892 char *_kwnames
[] = { NULL
};
896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
899 wxPy_BEGIN_ALLOW_THREADS
;
900 _result
= (wxWindow
*)new_wxPreWindow();
902 wxPy_END_ALLOW_THREADS
;
903 if (PyErr_Occurred()) return NULL
;
905 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
906 _resultobj
= Py_BuildValue("s",_ptemp
);
909 _resultobj
= Py_None
;
914 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
915 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
916 PyObject
* _resultobj
;
921 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
922 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
923 long _arg5
= (long ) 0;
924 char * _arg6
= (char *) "panel";
925 PyObject
* _argo0
= 0;
926 PyObject
* _argo1
= 0;
928 PyObject
* _obj3
= 0;
930 PyObject
* _obj4
= 0;
931 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
944 if (_argo1
== Py_None
) { _arg1
= NULL
; }
945 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
953 if (! wxPoint_helper(_obj3
, &_arg3
))
959 if (! wxSize_helper(_obj4
, &_arg4
))
963 wxPy_BEGIN_ALLOW_THREADS
;
964 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
966 wxPy_END_ALLOW_THREADS
;
967 if (PyErr_Occurred()) return NULL
;
968 } _resultobj
= Py_BuildValue("i",_result
);
972 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
973 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
974 PyObject
* _resultobj
;
976 PyObject
* _argo0
= 0;
977 char *_kwnames
[] = { "self", NULL
};
980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
990 wxPy_BEGIN_ALLOW_THREADS
;
991 wxWindow_CaptureMouse(_arg0
);
993 wxPy_END_ALLOW_THREADS
;
994 if (PyErr_Occurred()) return NULL
;
995 } Py_INCREF(Py_None
);
996 _resultobj
= Py_None
;
1000 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1001 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1002 PyObject
* _resultobj
;
1004 int _arg1
= (int ) wxBOTH
;
1005 PyObject
* _argo0
= 0;
1006 char *_kwnames
[] = { "self","direction", NULL
};
1009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1019 wxPy_BEGIN_ALLOW_THREADS
;
1020 wxWindow_Center(_arg0
,_arg1
);
1022 wxPy_END_ALLOW_THREADS
;
1023 if (PyErr_Occurred()) return NULL
;
1024 } Py_INCREF(Py_None
);
1025 _resultobj
= Py_None
;
1029 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1030 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1031 PyObject
* _resultobj
;
1033 int _arg1
= (int ) wxBOTH
;
1034 PyObject
* _argo0
= 0;
1035 char *_kwnames
[] = { "self","direction", NULL
};
1038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1048 wxPy_BEGIN_ALLOW_THREADS
;
1049 wxWindow_Centre(_arg0
,_arg1
);
1051 wxPy_END_ALLOW_THREADS
;
1052 if (PyErr_Occurred()) return NULL
;
1053 } Py_INCREF(Py_None
);
1054 _resultobj
= Py_None
;
1058 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1059 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1060 PyObject
* _resultobj
;
1062 int _arg1
= (int ) wxBOTH
;
1063 PyObject
* _argo0
= 0;
1064 char *_kwnames
[] = { "self","direction", NULL
};
1067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1077 wxPy_BEGIN_ALLOW_THREADS
;
1078 wxWindow_CentreOnParent(_arg0
,_arg1
);
1080 wxPy_END_ALLOW_THREADS
;
1081 if (PyErr_Occurred()) return NULL
;
1082 } Py_INCREF(Py_None
);
1083 _resultobj
= Py_None
;
1087 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1088 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1089 PyObject
* _resultobj
;
1091 int _arg1
= (int ) wxBOTH
;
1092 PyObject
* _argo0
= 0;
1093 char *_kwnames
[] = { "self","direction", NULL
};
1096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1099 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1100 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1106 wxPy_BEGIN_ALLOW_THREADS
;
1107 wxWindow_CenterOnParent(_arg0
,_arg1
);
1109 wxPy_END_ALLOW_THREADS
;
1110 if (PyErr_Occurred()) return NULL
;
1111 } Py_INCREF(Py_None
);
1112 _resultobj
= Py_None
;
1116 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1117 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1118 PyObject
* _resultobj
;
1120 int _arg1
= (int ) wxBOTH
;
1121 PyObject
* _argo0
= 0;
1122 char *_kwnames
[] = { "self","direction", NULL
};
1125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1135 wxPy_BEGIN_ALLOW_THREADS
;
1136 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1138 wxPy_END_ALLOW_THREADS
;
1139 if (PyErr_Occurred()) return NULL
;
1140 } Py_INCREF(Py_None
);
1141 _resultobj
= Py_None
;
1145 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1146 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1147 PyObject
* _resultobj
;
1149 int _arg1
= (int ) wxBOTH
;
1150 PyObject
* _argo0
= 0;
1151 char *_kwnames
[] = { "self","direction", NULL
};
1154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1164 wxPy_BEGIN_ALLOW_THREADS
;
1165 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1167 wxPy_END_ALLOW_THREADS
;
1168 if (PyErr_Occurred()) return NULL
;
1169 } Py_INCREF(Py_None
);
1170 _resultobj
= Py_None
;
1174 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1175 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1176 PyObject
* _resultobj
;
1178 PyObject
* _argo0
= 0;
1179 char *_kwnames
[] = { "self", NULL
};
1182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1192 wxPy_BEGIN_ALLOW_THREADS
;
1193 wxWindow_Clear(_arg0
);
1195 wxPy_END_ALLOW_THREADS
;
1196 if (PyErr_Occurred()) return NULL
;
1197 } Py_INCREF(Py_None
);
1198 _resultobj
= Py_None
;
1202 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1203 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1204 PyObject
* _resultobj
;
1208 PyObject
* _argo0
= 0;
1210 PyObject
* _obj1
= 0;
1212 PyObject
* _obj2
= 0;
1213 char *_kwnames
[] = { "self","x","y", NULL
};
1216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
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_ClientToScreenXY. Expected _wxWindow_p.");
1226 temp
= (int) PyInt_AsLong(_obj1
);
1230 temp0
= (int) PyInt_AsLong(_obj2
);
1234 wxPy_BEGIN_ALLOW_THREADS
;
1235 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1237 wxPy_END_ALLOW_THREADS
;
1238 if (PyErr_Occurred()) return NULL
;
1239 } Py_INCREF(Py_None
);
1240 _resultobj
= Py_None
;
1243 o
= PyInt_FromLong((long) (*_arg1
));
1244 _resultobj
= t_output_helper(_resultobj
, o
);
1248 o
= PyInt_FromLong((long) (*_arg2
));
1249 _resultobj
= t_output_helper(_resultobj
, o
);
1254 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1255 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1256 PyObject
* _resultobj
;
1260 PyObject
* _argo0
= 0;
1262 PyObject
* _obj1
= 0;
1263 char *_kwnames
[] = { "self","pt", NULL
};
1267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1278 if (! wxPoint_helper(_obj1
, &_arg1
))
1282 wxPy_BEGIN_ALLOW_THREADS
;
1283 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1285 wxPy_END_ALLOW_THREADS
;
1286 if (PyErr_Occurred()) return NULL
;
1287 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1288 _resultobj
= Py_BuildValue("s",_ptemp
);
1292 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1293 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1294 PyObject
* _resultobj
;
1297 int _arg1
= (int ) FALSE
;
1298 PyObject
* _argo0
= 0;
1299 char *_kwnames
[] = { "self","force", NULL
};
1302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1312 wxPy_BEGIN_ALLOW_THREADS
;
1313 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1315 wxPy_END_ALLOW_THREADS
;
1316 if (PyErr_Occurred()) return NULL
;
1317 } _resultobj
= Py_BuildValue("i",_result
);
1321 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1322 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1323 PyObject
* _resultobj
;
1326 PyObject
* _argo0
= 0;
1327 char *_kwnames
[] = { "self", NULL
};
1330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1340 wxPy_BEGIN_ALLOW_THREADS
;
1341 _result
= (bool )wxWindow_Destroy(_arg0
);
1343 wxPy_END_ALLOW_THREADS
;
1344 if (PyErr_Occurred()) return NULL
;
1345 } _resultobj
= Py_BuildValue("i",_result
);
1349 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1350 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1351 PyObject
* _resultobj
;
1353 PyObject
* _argo0
= 0;
1354 char *_kwnames
[] = { "self", NULL
};
1357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1367 wxPy_BEGIN_ALLOW_THREADS
;
1368 wxWindow_DestroyChildren(_arg0
);
1370 wxPy_END_ALLOW_THREADS
;
1371 if (PyErr_Occurred()) return NULL
;
1372 } Py_INCREF(Py_None
);
1373 _resultobj
= Py_None
;
1377 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1378 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1379 PyObject
* _resultobj
;
1382 PyObject
* _argo0
= 0;
1383 char *_kwnames
[] = { "self", NULL
};
1386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1396 wxPy_BEGIN_ALLOW_THREADS
;
1397 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1399 wxPy_END_ALLOW_THREADS
;
1400 if (PyErr_Occurred()) return NULL
;
1401 } _resultobj
= Py_BuildValue("i",_result
);
1405 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1406 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1407 PyObject
* _resultobj
;
1410 PyObject
* _argo0
= 0;
1412 char *_kwnames
[] = { "self","enable", NULL
};
1415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1424 _arg1
= (bool ) tempbool1
;
1426 wxPy_BEGIN_ALLOW_THREADS
;
1427 wxWindow_Enable(_arg0
,_arg1
);
1429 wxPy_END_ALLOW_THREADS
;
1430 if (PyErr_Occurred()) return NULL
;
1431 } Py_INCREF(Py_None
);
1432 _resultobj
= Py_None
;
1436 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1437 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1438 PyObject
* _resultobj
;
1442 PyObject
* _argo0
= 0;
1443 char *_kwnames
[] = { "self","id", NULL
};
1446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1456 wxPy_BEGIN_ALLOW_THREADS
;
1457 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1459 wxPy_END_ALLOW_THREADS
;
1460 if (PyErr_Occurred()) return NULL
;
1461 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1465 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1466 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1467 PyObject
* _resultobj
;
1471 PyObject
* _argo0
= 0;
1472 PyObject
* _obj1
= 0;
1473 char *_kwnames
[] = { "self","name", NULL
};
1476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1486 #if PYTHON_API_VERSION >= 1009
1487 char* tmpPtr
; int tmpSize
;
1488 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1489 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1492 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1494 _arg1
= new wxString(tmpPtr
, tmpSize
);
1496 if (!PyString_Check(_obj1
)) {
1497 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1500 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1504 wxPy_BEGIN_ALLOW_THREADS
;
1505 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1507 wxPy_END_ALLOW_THREADS
;
1508 if (PyErr_Occurred()) return NULL
;
1509 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1517 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1518 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1519 PyObject
* _resultobj
;
1521 PyObject
* _argo0
= 0;
1522 char *_kwnames
[] = { "self", NULL
};
1525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1535 wxPy_BEGIN_ALLOW_THREADS
;
1536 wxWindow_Fit(_arg0
);
1538 wxPy_END_ALLOW_THREADS
;
1539 if (PyErr_Occurred()) return NULL
;
1540 } Py_INCREF(Py_None
);
1541 _resultobj
= Py_None
;
1545 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1546 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1547 PyObject
* _resultobj
;
1550 PyObject
* _argo0
= 0;
1551 char *_kwnames
[] = { "self", NULL
};
1555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1565 wxPy_BEGIN_ALLOW_THREADS
;
1566 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1568 wxPy_END_ALLOW_THREADS
;
1569 if (PyErr_Occurred()) return NULL
;
1570 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1571 _resultobj
= Py_BuildValue("s",_ptemp
);
1575 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1576 wxWindowList
& list
= self
->GetChildren();
1577 return wxPy_ConvertList(&list
, "wxWindow");
1579 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1580 PyObject
* _resultobj
;
1583 PyObject
* _argo0
= 0;
1584 char *_kwnames
[] = { "self", NULL
};
1587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1597 wxPy_BEGIN_ALLOW_THREADS
;
1598 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1600 wxPy_END_ALLOW_THREADS
;
1601 if (PyErr_Occurred()) return NULL
;
1603 _resultobj
= _result
;
1608 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1609 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1610 PyObject
* _resultobj
;
1613 PyObject
* _argo0
= 0;
1614 char *_kwnames
[] = { "self", NULL
};
1617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1627 wxPy_BEGIN_ALLOW_THREADS
;
1628 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1630 wxPy_END_ALLOW_THREADS
;
1631 if (PyErr_Occurred()) return NULL
;
1632 } _resultobj
= Py_BuildValue("i",_result
);
1636 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1637 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1638 PyObject
* _resultobj
;
1641 PyObject
* _argo0
= 0;
1642 char *_kwnames
[] = { "self", NULL
};
1645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1655 wxPy_BEGIN_ALLOW_THREADS
;
1656 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1658 wxPy_END_ALLOW_THREADS
;
1659 if (PyErr_Occurred()) return NULL
;
1660 } _resultobj
= Py_BuildValue("i",_result
);
1664 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1665 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1666 PyObject
* _resultobj
;
1672 PyObject
* _argo0
= 0;
1673 char *_kwnames
[] = { "self", NULL
};
1682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_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_GetClientSizeTuple. Expected _wxWindow_p.");
1692 wxPy_BEGIN_ALLOW_THREADS
;
1693 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1695 wxPy_END_ALLOW_THREADS
;
1696 if (PyErr_Occurred()) return NULL
;
1697 } Py_INCREF(Py_None
);
1698 _resultobj
= Py_None
;
1701 o
= PyInt_FromLong((long) (*_arg1
));
1702 _resultobj
= t_output_helper(_resultobj
, o
);
1706 o
= PyInt_FromLong((long) (*_arg2
));
1707 _resultobj
= t_output_helper(_resultobj
, o
);
1712 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1713 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1714 PyObject
* _resultobj
;
1717 PyObject
* _argo0
= 0;
1718 char *_kwnames
[] = { "self", NULL
};
1722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1732 wxPy_BEGIN_ALLOW_THREADS
;
1733 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1735 wxPy_END_ALLOW_THREADS
;
1736 if (PyErr_Occurred()) return NULL
;
1737 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1738 _resultobj
= Py_BuildValue("s",_ptemp
);
1742 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1743 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1744 PyObject
* _resultobj
;
1745 wxLayoutConstraints
* _result
;
1747 PyObject
* _argo0
= 0;
1748 char *_kwnames
[] = { "self", NULL
};
1752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1762 wxPy_BEGIN_ALLOW_THREADS
;
1763 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1765 wxPy_END_ALLOW_THREADS
;
1766 if (PyErr_Occurred()) return NULL
;
1768 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1769 _resultobj
= Py_BuildValue("s",_ptemp
);
1772 _resultobj
= Py_None
;
1777 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1778 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1779 PyObject
* _resultobj
;
1780 wxEvtHandler
* _result
;
1782 PyObject
* _argo0
= 0;
1783 char *_kwnames
[] = { "self", NULL
};
1786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1796 wxPy_BEGIN_ALLOW_THREADS
;
1797 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1799 wxPy_END_ALLOW_THREADS
;
1800 if (PyErr_Occurred()) return NULL
;
1801 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1805 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1806 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1807 PyObject
* _resultobj
;
1810 PyObject
* _argo0
= 0;
1811 char *_kwnames
[] = { "self", NULL
};
1815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1825 wxPy_BEGIN_ALLOW_THREADS
;
1826 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1827 _result
= (wxFont
*) &_result_ref
;
1829 wxPy_END_ALLOW_THREADS
;
1830 if (PyErr_Occurred()) return NULL
;
1832 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1833 _resultobj
= Py_BuildValue("s",_ptemp
);
1836 _resultobj
= Py_None
;
1841 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1842 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
* _resultobj
;
1846 PyObject
* _argo0
= 0;
1847 char *_kwnames
[] = { "self", NULL
};
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_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_GetForegroundColour. Expected _wxWindow_p.");
1861 wxPy_BEGIN_ALLOW_THREADS
;
1862 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1864 wxPy_END_ALLOW_THREADS
;
1865 if (PyErr_Occurred()) return NULL
;
1866 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1867 _resultobj
= Py_BuildValue("s",_ptemp
);
1871 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1872 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1873 PyObject
* _resultobj
;
1876 PyObject
* _argo0
= 0;
1877 char *_kwnames
[] = { "self", NULL
};
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_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_GetGrandParent. Expected _wxWindow_p.");
1890 wxPy_BEGIN_ALLOW_THREADS
;
1891 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1893 wxPy_END_ALLOW_THREADS
;
1894 if (PyErr_Occurred()) return NULL
;
1895 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1899 static long wxWindow_GetHandle(wxWindow
*self
) {
1900 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1902 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1903 PyObject
* _resultobj
;
1906 PyObject
* _argo0
= 0;
1907 char *_kwnames
[] = { "self", NULL
};
1910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_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_GetHandle. Expected _wxWindow_p.");
1920 wxPy_BEGIN_ALLOW_THREADS
;
1921 _result
= (long )wxWindow_GetHandle(_arg0
);
1923 wxPy_END_ALLOW_THREADS
;
1924 if (PyErr_Occurred()) return NULL
;
1925 } _resultobj
= Py_BuildValue("l",_result
);
1929 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1930 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1931 PyObject
* _resultobj
;
1934 PyObject
* _argo0
= 0;
1935 char *_kwnames
[] = { "self", NULL
};
1938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1948 wxPy_BEGIN_ALLOW_THREADS
;
1949 _result
= (int )wxWindow_GetId(_arg0
);
1951 wxPy_END_ALLOW_THREADS
;
1952 if (PyErr_Occurred()) return NULL
;
1953 } _resultobj
= Py_BuildValue("i",_result
);
1957 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1958 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1959 PyObject
* _resultobj
;
1962 PyObject
* _argo0
= 0;
1963 char *_kwnames
[] = { "self", NULL
};
1966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
1969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1976 wxPy_BEGIN_ALLOW_THREADS
;
1977 _result
= new wxString (wxWindow_GetLabel(_arg0
));
1979 wxPy_END_ALLOW_THREADS
;
1980 if (PyErr_Occurred()) return NULL
;
1982 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1990 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1991 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1992 PyObject
* _resultobj
;
1995 PyObject
* _argo0
= 0;
1996 PyObject
* _obj1
= 0;
1997 char *_kwnames
[] = { "self","label", NULL
};
2000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2010 #if PYTHON_API_VERSION >= 1009
2011 char* tmpPtr
; int tmpSize
;
2012 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2013 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2016 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2018 _arg1
= new wxString(tmpPtr
, tmpSize
);
2020 if (!PyString_Check(_obj1
)) {
2021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2024 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2028 wxPy_BEGIN_ALLOW_THREADS
;
2029 wxWindow_SetLabel(_arg0
,*_arg1
);
2031 wxPy_END_ALLOW_THREADS
;
2032 if (PyErr_Occurred()) return NULL
;
2033 } Py_INCREF(Py_None
);
2034 _resultobj
= Py_None
;
2042 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2043 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2044 PyObject
* _resultobj
;
2047 PyObject
* _argo0
= 0;
2048 char *_kwnames
[] = { "self", NULL
};
2051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2061 wxPy_BEGIN_ALLOW_THREADS
;
2062 _result
= new wxString (wxWindow_GetName(_arg0
));
2064 wxPy_END_ALLOW_THREADS
;
2065 if (PyErr_Occurred()) return NULL
;
2067 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2075 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2076 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2077 PyObject
* _resultobj
;
2080 PyObject
* _argo0
= 0;
2081 char *_kwnames
[] = { "self", NULL
};
2084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2094 wxPy_BEGIN_ALLOW_THREADS
;
2095 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2097 wxPy_END_ALLOW_THREADS
;
2098 if (PyErr_Occurred()) return NULL
;
2099 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2103 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2104 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2105 PyObject
* _resultobj
;
2111 PyObject
* _argo0
= 0;
2112 char *_kwnames
[] = { "self", NULL
};
2121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2131 wxPy_BEGIN_ALLOW_THREADS
;
2132 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2134 wxPy_END_ALLOW_THREADS
;
2135 if (PyErr_Occurred()) return NULL
;
2136 } Py_INCREF(Py_None
);
2137 _resultobj
= Py_None
;
2140 o
= PyInt_FromLong((long) (*_arg1
));
2141 _resultobj
= t_output_helper(_resultobj
, o
);
2145 o
= PyInt_FromLong((long) (*_arg2
));
2146 _resultobj
= t_output_helper(_resultobj
, o
);
2151 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2152 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2153 PyObject
* _resultobj
;
2156 PyObject
* _argo0
= 0;
2157 char *_kwnames
[] = { "self", NULL
};
2161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2171 wxPy_BEGIN_ALLOW_THREADS
;
2172 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2174 wxPy_END_ALLOW_THREADS
;
2175 if (PyErr_Occurred()) return NULL
;
2176 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2177 _resultobj
= Py_BuildValue("s",_ptemp
);
2181 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2182 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2183 PyObject
* _resultobj
;
2186 PyObject
* _argo0
= 0;
2187 char *_kwnames
[] = { "self", NULL
};
2191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2201 wxPy_BEGIN_ALLOW_THREADS
;
2202 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2204 wxPy_END_ALLOW_THREADS
;
2205 if (PyErr_Occurred()) return NULL
;
2206 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2207 _resultobj
= Py_BuildValue("s",_ptemp
);
2211 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2212 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2213 PyObject
* _resultobj
;
2217 PyObject
* _argo0
= 0;
2218 char *_kwnames
[] = { "self","orientation", NULL
};
2221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2231 wxPy_BEGIN_ALLOW_THREADS
;
2232 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2234 wxPy_END_ALLOW_THREADS
;
2235 if (PyErr_Occurred()) return NULL
;
2236 } _resultobj
= Py_BuildValue("i",_result
);
2240 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2241 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2246 PyObject
* _argo0
= 0;
2247 char *_kwnames
[] = { "self","orientation", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
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_GetScrollPos. Expected _wxWindow_p.");
2260 wxPy_BEGIN_ALLOW_THREADS
;
2261 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2263 wxPy_END_ALLOW_THREADS
;
2264 if (PyErr_Occurred()) return NULL
;
2265 } _resultobj
= Py_BuildValue("i",_result
);
2269 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2270 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2271 PyObject
* _resultobj
;
2275 PyObject
* _argo0
= 0;
2276 char *_kwnames
[] = { "self","orientation", NULL
};
2279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2289 wxPy_BEGIN_ALLOW_THREADS
;
2290 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2292 wxPy_END_ALLOW_THREADS
;
2293 if (PyErr_Occurred()) return NULL
;
2294 } _resultobj
= Py_BuildValue("i",_result
);
2298 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2299 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2300 PyObject
* _resultobj
;
2306 PyObject
* _argo0
= 0;
2307 char *_kwnames
[] = { "self", NULL
};
2316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2326 wxPy_BEGIN_ALLOW_THREADS
;
2327 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2329 wxPy_END_ALLOW_THREADS
;
2330 if (PyErr_Occurred()) return NULL
;
2331 } Py_INCREF(Py_None
);
2332 _resultobj
= Py_None
;
2335 o
= PyInt_FromLong((long) (*_arg1
));
2336 _resultobj
= t_output_helper(_resultobj
, o
);
2340 o
= PyInt_FromLong((long) (*_arg2
));
2341 _resultobj
= t_output_helper(_resultobj
, o
);
2346 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2347 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2348 PyObject
* _resultobj
;
2351 PyObject
* _argo0
= 0;
2352 char *_kwnames
[] = { "self", NULL
};
2356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2366 wxPy_BEGIN_ALLOW_THREADS
;
2367 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2369 wxPy_END_ALLOW_THREADS
;
2370 if (PyErr_Occurred()) return NULL
;
2371 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2372 _resultobj
= Py_BuildValue("s",_ptemp
);
2376 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2377 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2378 PyObject
* _resultobj
;
2385 PyObject
* _argo0
= 0;
2386 PyObject
* _obj1
= 0;
2387 char *_kwnames
[] = { "self","string", NULL
};
2396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2406 #if PYTHON_API_VERSION >= 1009
2407 char* tmpPtr
; int tmpSize
;
2408 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2412 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2414 _arg1
= new wxString(tmpPtr
, tmpSize
);
2416 if (!PyString_Check(_obj1
)) {
2417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2420 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2424 wxPy_BEGIN_ALLOW_THREADS
;
2425 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2427 wxPy_END_ALLOW_THREADS
;
2428 if (PyErr_Occurred()) return NULL
;
2429 } Py_INCREF(Py_None
);
2430 _resultobj
= Py_None
;
2433 o
= PyInt_FromLong((long) (*_arg2
));
2434 _resultobj
= t_output_helper(_resultobj
, o
);
2438 o
= PyInt_FromLong((long) (*_arg3
));
2439 _resultobj
= t_output_helper(_resultobj
, o
);
2448 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2449 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2450 PyObject
* _resultobj
;
2461 wxFont
* _arg6
= (wxFont
*) NULL
;
2462 PyObject
* _argo0
= 0;
2463 PyObject
* _obj1
= 0;
2464 PyObject
* _argo6
= 0;
2465 char *_kwnames
[] = { "self","string","font", NULL
};
2480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2490 #if PYTHON_API_VERSION >= 1009
2491 char* tmpPtr
; int tmpSize
;
2492 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2493 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2496 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2498 _arg1
= new wxString(tmpPtr
, tmpSize
);
2500 if (!PyString_Check(_obj1
)) {
2501 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2504 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2508 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2509 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2515 wxPy_BEGIN_ALLOW_THREADS
;
2516 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2518 wxPy_END_ALLOW_THREADS
;
2519 if (PyErr_Occurred()) return NULL
;
2520 } Py_INCREF(Py_None
);
2521 _resultobj
= Py_None
;
2524 o
= PyInt_FromLong((long) (*_arg2
));
2525 _resultobj
= t_output_helper(_resultobj
, o
);
2529 o
= PyInt_FromLong((long) (*_arg3
));
2530 _resultobj
= t_output_helper(_resultobj
, o
);
2534 o
= PyInt_FromLong((long) (*_arg4
));
2535 _resultobj
= t_output_helper(_resultobj
, o
);
2539 o
= PyInt_FromLong((long) (*_arg5
));
2540 _resultobj
= t_output_helper(_resultobj
, o
);
2549 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2550 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2551 PyObject
* _resultobj
;
2554 PyObject
* _argo0
= 0;
2555 char *_kwnames
[] = { "self", NULL
};
2558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2568 wxPy_BEGIN_ALLOW_THREADS
;
2569 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2571 wxPy_END_ALLOW_THREADS
;
2572 if (PyErr_Occurred()) return NULL
;
2574 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2582 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2583 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2584 PyObject
* _resultobj
;
2587 PyObject
* _argo0
= 0;
2588 char *_kwnames
[] = { "self", NULL
};
2592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2602 wxPy_BEGIN_ALLOW_THREADS
;
2603 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2605 wxPy_END_ALLOW_THREADS
;
2606 if (PyErr_Occurred()) return NULL
;
2607 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2608 _resultobj
= Py_BuildValue("s",_ptemp
);
2612 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2613 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2614 PyObject
* _resultobj
;
2617 PyObject
* _argo0
= 0;
2618 char *_kwnames
[] = { "self", NULL
};
2621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2631 wxPy_BEGIN_ALLOW_THREADS
;
2632 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2634 wxPy_END_ALLOW_THREADS
;
2635 if (PyErr_Occurred()) return NULL
;
2636 } _resultobj
= Py_BuildValue("l",_result
);
2640 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2641 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2642 PyObject
* _resultobj
;
2645 PyObject
* _argo0
= 0;
2646 char *_kwnames
[] = { "self","style", NULL
};
2649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2659 wxPy_BEGIN_ALLOW_THREADS
;
2660 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2662 wxPy_END_ALLOW_THREADS
;
2663 if (PyErr_Occurred()) return NULL
;
2664 } Py_INCREF(Py_None
);
2665 _resultobj
= Py_None
;
2669 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2670 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2671 PyObject
* _resultobj
;
2674 PyObject
* _argo0
= 0;
2675 char *_kwnames
[] = { "self","style", NULL
};
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2688 wxPy_BEGIN_ALLOW_THREADS
;
2689 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2691 wxPy_END_ALLOW_THREADS
;
2692 if (PyErr_Occurred()) return NULL
;
2693 } Py_INCREF(Py_None
);
2694 _resultobj
= Py_None
;
2698 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2699 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2700 PyObject
* _resultobj
;
2703 PyObject
* _argo0
= 0;
2704 char *_kwnames
[] = { "self", NULL
};
2707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2717 wxPy_BEGIN_ALLOW_THREADS
;
2718 _result
= (bool )wxWindow_Hide(_arg0
);
2720 wxPy_END_ALLOW_THREADS
;
2721 if (PyErr_Occurred()) return NULL
;
2722 } _resultobj
= Py_BuildValue("i",_result
);
2726 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2727 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2728 PyObject
* _resultobj
;
2730 PyObject
* _argo0
= 0;
2731 char *_kwnames
[] = { "self", NULL
};
2734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2744 wxPy_BEGIN_ALLOW_THREADS
;
2745 wxWindow_InitDialog(_arg0
);
2747 wxPy_END_ALLOW_THREADS
;
2748 if (PyErr_Occurred()) return NULL
;
2749 } Py_INCREF(Py_None
);
2750 _resultobj
= Py_None
;
2754 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2755 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2756 PyObject
* _resultobj
;
2759 PyObject
* _argo0
= 0;
2760 char *_kwnames
[] = { "self", NULL
};
2763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2773 wxPy_BEGIN_ALLOW_THREADS
;
2774 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2776 wxPy_END_ALLOW_THREADS
;
2777 if (PyErr_Occurred()) return NULL
;
2778 } _resultobj
= Py_BuildValue("i",_result
);
2782 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2783 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2784 PyObject
* _resultobj
;
2789 int _arg3
= (int ) 0;
2790 int _arg4
= (int ) 0;
2791 PyObject
* _argo0
= 0;
2792 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2805 wxPy_BEGIN_ALLOW_THREADS
;
2806 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2808 wxPy_END_ALLOW_THREADS
;
2809 if (PyErr_Occurred()) return NULL
;
2810 } _resultobj
= Py_BuildValue("i",_result
);
2814 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2815 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2816 PyObject
* _resultobj
;
2820 PyObject
* _argo0
= 0;
2822 PyObject
* _obj1
= 0;
2823 char *_kwnames
[] = { "self","pt", NULL
};
2826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2837 if (! wxPoint_helper(_obj1
, &_arg1
))
2841 wxPy_BEGIN_ALLOW_THREADS
;
2842 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2844 wxPy_END_ALLOW_THREADS
;
2845 if (PyErr_Occurred()) return NULL
;
2846 } _resultobj
= Py_BuildValue("i",_result
);
2850 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2851 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2852 PyObject
* _resultobj
;
2856 PyObject
* _argo0
= 0;
2858 PyObject
* _obj1
= 0;
2859 char *_kwnames
[] = { "self","rect", NULL
};
2862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2873 if (! wxRect_helper(_obj1
, &_arg1
))
2877 wxPy_BEGIN_ALLOW_THREADS
;
2878 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2880 wxPy_END_ALLOW_THREADS
;
2881 if (PyErr_Occurred()) return NULL
;
2882 } _resultobj
= Py_BuildValue("i",_result
);
2886 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2887 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2888 PyObject
* _resultobj
;
2891 PyObject
* _argo0
= 0;
2892 char *_kwnames
[] = { "self", NULL
};
2895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2905 wxPy_BEGIN_ALLOW_THREADS
;
2906 _result
= (bool )wxWindow_IsRetained(_arg0
);
2908 wxPy_END_ALLOW_THREADS
;
2909 if (PyErr_Occurred()) return NULL
;
2910 } _resultobj
= Py_BuildValue("i",_result
);
2914 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2915 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2916 PyObject
* _resultobj
;
2919 PyObject
* _argo0
= 0;
2920 char *_kwnames
[] = { "self", NULL
};
2923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2933 wxPy_BEGIN_ALLOW_THREADS
;
2934 _result
= (bool )wxWindow_IsShown(_arg0
);
2936 wxPy_END_ALLOW_THREADS
;
2937 if (PyErr_Occurred()) return NULL
;
2938 } _resultobj
= Py_BuildValue("i",_result
);
2942 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2943 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2944 PyObject
* _resultobj
;
2947 PyObject
* _argo0
= 0;
2948 char *_kwnames
[] = { "self", NULL
};
2951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
2954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2961 wxPy_BEGIN_ALLOW_THREADS
;
2962 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2964 wxPy_END_ALLOW_THREADS
;
2965 if (PyErr_Occurred()) return NULL
;
2966 } _resultobj
= Py_BuildValue("i",_result
);
2970 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2971 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2972 PyObject
* _resultobj
;
2974 PyObject
* _argo0
= 0;
2975 char *_kwnames
[] = { "self", NULL
};
2978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
2981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2988 wxPy_BEGIN_ALLOW_THREADS
;
2989 wxWindow_Layout(_arg0
);
2991 wxPy_END_ALLOW_THREADS
;
2992 if (PyErr_Occurred()) return NULL
;
2993 } Py_INCREF(Py_None
);
2994 _resultobj
= Py_None
;
2998 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2999 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3000 PyObject
* _resultobj
;
3005 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3006 PyObject
* _argo0
= 0;
3007 PyObject
* _argo1
= 0;
3008 PyObject
* _obj2
= 0;
3009 PyObject
* _argo3
= 0;
3010 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3023 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3024 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3030 #if PYTHON_API_VERSION >= 1009
3031 char* tmpPtr
; int tmpSize
;
3032 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3033 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3036 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3038 _arg2
= new wxString(tmpPtr
, tmpSize
);
3040 if (!PyString_Check(_obj2
)) {
3041 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3044 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3048 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3049 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3055 wxPy_BEGIN_ALLOW_THREADS
;
3056 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3058 wxPy_END_ALLOW_THREADS
;
3059 if (PyErr_Occurred()) return NULL
;
3060 } _resultobj
= Py_BuildValue("i",_result
);
3068 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3069 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3070 PyObject
* _resultobj
;
3072 PyObject
* _argo0
= 0;
3073 char *_kwnames
[] = { "self", NULL
};
3076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3086 wxPy_BEGIN_ALLOW_THREADS
;
3087 wxWindow_Lower(_arg0
);
3089 wxPy_END_ALLOW_THREADS
;
3090 if (PyErr_Occurred()) return NULL
;
3091 } Py_INCREF(Py_None
);
3092 _resultobj
= Py_None
;
3096 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3097 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3098 PyObject
* _resultobj
;
3100 bool _arg1
= (bool ) TRUE
;
3101 PyObject
* _argo0
= 0;
3102 int tempbool1
= (int) TRUE
;
3103 char *_kwnames
[] = { "self","flag", NULL
};
3106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3115 _arg1
= (bool ) tempbool1
;
3117 wxPy_BEGIN_ALLOW_THREADS
;
3118 wxWindow_MakeModal(_arg0
,_arg1
);
3120 wxPy_END_ALLOW_THREADS
;
3121 if (PyErr_Occurred()) return NULL
;
3122 } Py_INCREF(Py_None
);
3123 _resultobj
= Py_None
;
3127 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3128 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3133 PyObject
* _argo0
= 0;
3134 char *_kwnames
[] = { "self","x","y", NULL
};
3137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3147 wxPy_BEGIN_ALLOW_THREADS
;
3148 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3150 wxPy_END_ALLOW_THREADS
;
3151 if (PyErr_Occurred()) return NULL
;
3152 } Py_INCREF(Py_None
);
3153 _resultobj
= Py_None
;
3157 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3158 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3159 PyObject
* _resultobj
;
3162 PyObject
* _argo0
= 0;
3164 PyObject
* _obj1
= 0;
3165 char *_kwnames
[] = { "self","point", NULL
};
3168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3179 if (! wxPoint_helper(_obj1
, &_arg1
))
3183 wxPy_BEGIN_ALLOW_THREADS
;
3184 wxWindow_Move(_arg0
,*_arg1
);
3186 wxPy_END_ALLOW_THREADS
;
3187 if (PyErr_Occurred()) return NULL
;
3188 } Py_INCREF(Py_None
);
3189 _resultobj
= Py_None
;
3193 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3194 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3195 PyObject
* _resultobj
;
3196 wxEvtHandler
* _result
;
3198 bool _arg1
= (bool ) FALSE
;
3199 PyObject
* _argo0
= 0;
3200 int tempbool1
= (int) FALSE
;
3201 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3213 _arg1
= (bool ) tempbool1
;
3215 wxPy_BEGIN_ALLOW_THREADS
;
3216 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3218 wxPy_END_ALLOW_THREADS
;
3219 if (PyErr_Occurred()) return NULL
;
3220 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3224 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3225 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3226 PyObject
* _resultobj
;
3228 wxEvtHandler
* _arg1
;
3229 PyObject
* _argo0
= 0;
3230 PyObject
* _argo1
= 0;
3231 char *_kwnames
[] = { "self","handler", NULL
};
3234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3244 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3245 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3251 wxPy_BEGIN_ALLOW_THREADS
;
3252 wxWindow_PushEventHandler(_arg0
,_arg1
);
3254 wxPy_END_ALLOW_THREADS
;
3255 if (PyErr_Occurred()) return NULL
;
3256 } Py_INCREF(Py_None
);
3257 _resultobj
= Py_None
;
3261 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3262 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3263 PyObject
* _resultobj
;
3269 PyObject
* _argo0
= 0;
3270 PyObject
* _argo1
= 0;
3271 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3291 wxPy_BEGIN_ALLOW_THREADS
;
3292 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3294 wxPy_END_ALLOW_THREADS
;
3295 if (PyErr_Occurred()) return NULL
;
3296 } _resultobj
= Py_BuildValue("i",_result
);
3300 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3301 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3302 PyObject
* _resultobj
;
3307 PyObject
* _argo0
= 0;
3308 PyObject
* _argo1
= 0;
3310 PyObject
* _obj2
= 0;
3311 char *_kwnames
[] = { "self","menu","pos", NULL
};
3314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3324 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3325 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3332 if (! wxPoint_helper(_obj2
, &_arg2
))
3336 wxPy_BEGIN_ALLOW_THREADS
;
3337 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3339 wxPy_END_ALLOW_THREADS
;
3340 if (PyErr_Occurred()) return NULL
;
3341 } _resultobj
= Py_BuildValue("i",_result
);
3345 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3346 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3347 PyObject
* _resultobj
;
3349 PyObject
* _argo0
= 0;
3350 char *_kwnames
[] = { "self", NULL
};
3353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3363 wxPy_BEGIN_ALLOW_THREADS
;
3364 wxWindow_Raise(_arg0
);
3366 wxPy_END_ALLOW_THREADS
;
3367 if (PyErr_Occurred()) return NULL
;
3368 } Py_INCREF(Py_None
);
3369 _resultobj
= Py_None
;
3373 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3374 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3375 PyObject
* _resultobj
;
3377 bool _arg1
= (bool ) TRUE
;
3378 wxRect
* _arg2
= (wxRect
*) NULL
;
3379 PyObject
* _argo0
= 0;
3380 int tempbool1
= (int) TRUE
;
3382 PyObject
* _obj2
= 0;
3383 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3395 _arg1
= (bool ) tempbool1
;
3399 if (! wxRect_helper(_obj2
, &_arg2
))
3403 wxPy_BEGIN_ALLOW_THREADS
;
3404 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3406 wxPy_END_ALLOW_THREADS
;
3407 if (PyErr_Occurred()) return NULL
;
3408 } Py_INCREF(Py_None
);
3409 _resultobj
= Py_None
;
3413 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3414 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3415 PyObject
* _resultobj
;
3418 PyObject
* _argo0
= 0;
3420 PyObject
* _obj1
= 0;
3421 char *_kwnames
[] = { "self","rect", NULL
};
3424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3435 if (! wxRect_helper(_obj1
, &_arg1
))
3439 wxPy_BEGIN_ALLOW_THREADS
;
3440 wxWindow_RefreshRect(_arg0
,*_arg1
);
3442 wxPy_END_ALLOW_THREADS
;
3443 if (PyErr_Occurred()) return NULL
;
3444 } Py_INCREF(Py_None
);
3445 _resultobj
= Py_None
;
3449 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3450 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3451 PyObject
* _resultobj
;
3453 PyObject
* _argo0
= 0;
3454 char *_kwnames
[] = { "self", NULL
};
3457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3467 wxPy_BEGIN_ALLOW_THREADS
;
3468 wxWindow_ReleaseMouse(_arg0
);
3470 wxPy_END_ALLOW_THREADS
;
3471 if (PyErr_Occurred()) return NULL
;
3472 } Py_INCREF(Py_None
);
3473 _resultobj
= Py_None
;
3477 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3478 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3479 PyObject
* _resultobj
;
3482 PyObject
* _argo0
= 0;
3483 PyObject
* _argo1
= 0;
3484 char *_kwnames
[] = { "self","child", NULL
};
3487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3497 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3498 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3504 wxPy_BEGIN_ALLOW_THREADS
;
3505 wxWindow_RemoveChild(_arg0
,_arg1
);
3507 wxPy_END_ALLOW_THREADS
;
3508 if (PyErr_Occurred()) return NULL
;
3509 } Py_INCREF(Py_None
);
3510 _resultobj
= Py_None
;
3514 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3515 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3516 PyObject
* _resultobj
;
3520 PyObject
* _argo0
= 0;
3521 PyObject
* _argo1
= 0;
3522 char *_kwnames
[] = { "self","newParent", NULL
};
3525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3535 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3536 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3542 wxPy_BEGIN_ALLOW_THREADS
;
3543 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3545 wxPy_END_ALLOW_THREADS
;
3546 if (PyErr_Occurred()) return NULL
;
3547 } _resultobj
= Py_BuildValue("i",_result
);
3551 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3552 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3553 PyObject
* _resultobj
;
3557 PyObject
* _argo0
= 0;
3559 PyObject
* _obj1
= 0;
3561 PyObject
* _obj2
= 0;
3562 char *_kwnames
[] = { "self","x","y", NULL
};
3565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3575 temp
= (int) PyInt_AsLong(_obj1
);
3579 temp0
= (int) PyInt_AsLong(_obj2
);
3583 wxPy_BEGIN_ALLOW_THREADS
;
3584 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3586 wxPy_END_ALLOW_THREADS
;
3587 if (PyErr_Occurred()) return NULL
;
3588 } Py_INCREF(Py_None
);
3589 _resultobj
= Py_None
;
3592 o
= PyInt_FromLong((long) (*_arg1
));
3593 _resultobj
= t_output_helper(_resultobj
, o
);
3597 o
= PyInt_FromLong((long) (*_arg2
));
3598 _resultobj
= t_output_helper(_resultobj
, o
);
3603 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3604 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3605 PyObject
* _resultobj
;
3609 PyObject
* _argo0
= 0;
3611 PyObject
* _obj1
= 0;
3612 char *_kwnames
[] = { "self","pt", NULL
};
3616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3627 if (! wxPoint_helper(_obj1
, &_arg1
))
3631 wxPy_BEGIN_ALLOW_THREADS
;
3632 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3634 wxPy_END_ALLOW_THREADS
;
3635 if (PyErr_Occurred()) return NULL
;
3636 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3637 _resultobj
= Py_BuildValue("s",_ptemp
);
3641 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3642 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3643 PyObject
* _resultobj
;
3647 wxRect
* _arg3
= (wxRect
*) NULL
;
3648 PyObject
* _argo0
= 0;
3650 PyObject
* _obj3
= 0;
3651 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3666 if (! wxRect_helper(_obj3
, &_arg3
))
3670 wxPy_BEGIN_ALLOW_THREADS
;
3671 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3673 wxPy_END_ALLOW_THREADS
;
3674 if (PyErr_Occurred()) return NULL
;
3675 } Py_INCREF(Py_None
);
3676 _resultobj
= Py_None
;
3680 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3681 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3682 PyObject
* _resultobj
;
3685 PyObject
* _argo0
= 0;
3687 char *_kwnames
[] = { "self","autoLayout", NULL
};
3690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3699 _arg1
= (bool ) tempbool1
;
3701 wxPy_BEGIN_ALLOW_THREADS
;
3702 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3704 wxPy_END_ALLOW_THREADS
;
3705 if (PyErr_Occurred()) return NULL
;
3706 } Py_INCREF(Py_None
);
3707 _resultobj
= Py_None
;
3711 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3712 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3713 PyObject
* _resultobj
;
3716 PyObject
* _argo0
= 0;
3717 char *_kwnames
[] = { "self", NULL
};
3720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3730 wxPy_BEGIN_ALLOW_THREADS
;
3731 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3733 wxPy_END_ALLOW_THREADS
;
3734 if (PyErr_Occurred()) return NULL
;
3735 } _resultobj
= Py_BuildValue("i",_result
);
3739 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3740 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3741 PyObject
* _resultobj
;
3744 PyObject
* _argo0
= 0;
3746 PyObject
* _obj1
= 0;
3747 char *_kwnames
[] = { "self","colour", NULL
};
3750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
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_SetBackgroundColour. Expected _wxWindow_p.");
3761 if (! wxColour_helper(_obj1
, &_arg1
))
3765 wxPy_BEGIN_ALLOW_THREADS
;
3766 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3768 wxPy_END_ALLOW_THREADS
;
3769 if (PyErr_Occurred()) return NULL
;
3770 } Py_INCREF(Py_None
);
3771 _resultobj
= Py_None
;
3775 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3776 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3777 PyObject
* _resultobj
;
3779 wxLayoutConstraints
* _arg1
;
3780 PyObject
* _argo0
= 0;
3781 PyObject
* _argo1
= 0;
3782 char *_kwnames
[] = { "self","constraints", NULL
};
3785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3795 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3796 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3802 wxPy_BEGIN_ALLOW_THREADS
;
3803 wxWindow_SetConstraints(_arg0
,_arg1
);
3805 wxPy_END_ALLOW_THREADS
;
3806 if (PyErr_Occurred()) return NULL
;
3807 } Py_INCREF(Py_None
);
3808 _resultobj
= Py_None
;
3812 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3813 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3814 PyObject
* _resultobj
;
3816 wxLayoutConstraints
* _arg1
;
3817 PyObject
* _argo0
= 0;
3818 PyObject
* _argo1
= 0;
3819 char *_kwnames
[] = { "self","constraints", NULL
};
3822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3832 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3833 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3839 wxPy_BEGIN_ALLOW_THREADS
;
3840 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3842 wxPy_END_ALLOW_THREADS
;
3843 if (PyErr_Occurred()) return NULL
;
3844 } Py_INCREF(Py_None
);
3845 _resultobj
= Py_None
;
3849 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3850 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3851 PyObject
* _resultobj
;
3853 PyObject
* _argo0
= 0;
3854 char *_kwnames
[] = { "self", NULL
};
3857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3867 wxPy_BEGIN_ALLOW_THREADS
;
3868 wxWindow_SetFocus(_arg0
);
3870 wxPy_END_ALLOW_THREADS
;
3871 if (PyErr_Occurred()) return NULL
;
3872 } Py_INCREF(Py_None
);
3873 _resultobj
= Py_None
;
3877 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3878 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3879 PyObject
* _resultobj
;
3882 PyObject
* _argo0
= 0;
3883 char *_kwnames
[] = { "self", NULL
};
3886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3896 wxPy_BEGIN_ALLOW_THREADS
;
3897 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3899 wxPy_END_ALLOW_THREADS
;
3900 if (PyErr_Occurred()) return NULL
;
3901 } _resultobj
= Py_BuildValue("i",_result
);
3905 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3906 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3907 PyObject
* _resultobj
;
3910 PyObject
* _argo0
= 0;
3911 PyObject
* _argo1
= 0;
3912 char *_kwnames
[] = { "self","font", NULL
};
3915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3925 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3926 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3932 wxPy_BEGIN_ALLOW_THREADS
;
3933 wxWindow_SetFont(_arg0
,*_arg1
);
3935 wxPy_END_ALLOW_THREADS
;
3936 if (PyErr_Occurred()) return NULL
;
3937 } Py_INCREF(Py_None
);
3938 _resultobj
= Py_None
;
3942 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3943 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3944 PyObject
* _resultobj
;
3947 PyObject
* _argo0
= 0;
3949 PyObject
* _obj1
= 0;
3950 char *_kwnames
[] = { "self","colour", NULL
};
3953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
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_SetForegroundColour. Expected _wxWindow_p.");
3964 if (! wxColour_helper(_obj1
, &_arg1
))
3968 wxPy_BEGIN_ALLOW_THREADS
;
3969 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3971 wxPy_END_ALLOW_THREADS
;
3972 if (PyErr_Occurred()) return NULL
;
3973 } Py_INCREF(Py_None
);
3974 _resultobj
= Py_None
;
3978 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3979 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3980 PyObject
* _resultobj
;
3983 PyObject
* _argo0
= 0;
3984 char *_kwnames
[] = { "self","id", NULL
};
3987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
3990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3997 wxPy_BEGIN_ALLOW_THREADS
;
3998 wxWindow_SetId(_arg0
,_arg1
);
4000 wxPy_END_ALLOW_THREADS
;
4001 if (PyErr_Occurred()) return NULL
;
4002 } Py_INCREF(Py_None
);
4003 _resultobj
= Py_None
;
4007 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4008 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4009 PyObject
* _resultobj
;
4012 PyObject
* _argo0
= 0;
4013 PyObject
* _obj1
= 0;
4014 char *_kwnames
[] = { "self","name", NULL
};
4017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4027 #if PYTHON_API_VERSION >= 1009
4028 char* tmpPtr
; int tmpSize
;
4029 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4030 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4033 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4035 _arg1
= new wxString(tmpPtr
, tmpSize
);
4037 if (!PyString_Check(_obj1
)) {
4038 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4041 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4045 wxPy_BEGIN_ALLOW_THREADS
;
4046 wxWindow_SetName(_arg0
,*_arg1
);
4048 wxPy_END_ALLOW_THREADS
;
4049 if (PyErr_Occurred()) return NULL
;
4050 } Py_INCREF(Py_None
);
4051 _resultobj
= Py_None
;
4059 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4060 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4061 PyObject
* _resultobj
;
4067 int _arg5
= (int ) TRUE
;
4068 PyObject
* _argo0
= 0;
4069 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4082 wxPy_BEGIN_ALLOW_THREADS
;
4083 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4085 wxPy_END_ALLOW_THREADS
;
4086 if (PyErr_Occurred()) return NULL
;
4087 } Py_INCREF(Py_None
);
4088 _resultobj
= Py_None
;
4092 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4093 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4094 PyObject
* _resultobj
;
4098 bool _arg3
= (bool ) TRUE
;
4099 PyObject
* _argo0
= 0;
4100 int tempbool3
= (int) TRUE
;
4101 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4113 _arg3
= (bool ) tempbool3
;
4115 wxPy_BEGIN_ALLOW_THREADS
;
4116 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4118 wxPy_END_ALLOW_THREADS
;
4119 if (PyErr_Occurred()) return NULL
;
4120 } Py_INCREF(Py_None
);
4121 _resultobj
= Py_None
;
4125 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4126 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4127 PyObject
* _resultobj
;
4133 int _arg5
= (int ) wxSIZE_AUTO
;
4134 PyObject
* _argo0
= 0;
4135 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4148 wxPy_BEGIN_ALLOW_THREADS
;
4149 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4151 wxPy_END_ALLOW_THREADS
;
4152 if (PyErr_Occurred()) return NULL
;
4153 } Py_INCREF(Py_None
);
4154 _resultobj
= Py_None
;
4158 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4159 self
->SetSize(size
);
4161 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4162 PyObject
* _resultobj
;
4165 PyObject
* _argo0
= 0;
4167 PyObject
* _obj1
= 0;
4168 char *_kwnames
[] = { "self","size", NULL
};
4171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4182 if (! wxSize_helper(_obj1
, &_arg1
))
4186 wxPy_BEGIN_ALLOW_THREADS
;
4187 wxWindow_SetSize(_arg0
,*_arg1
);
4189 wxPy_END_ALLOW_THREADS
;
4190 if (PyErr_Occurred()) return NULL
;
4191 } Py_INCREF(Py_None
);
4192 _resultobj
= Py_None
;
4196 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4199 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4200 PyObject
* _resultobj
;
4203 PyObject
* _argo0
= 0;
4205 PyObject
* _obj1
= 0;
4206 char *_kwnames
[] = { "self","pos", NULL
};
4209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4220 if (! wxPoint_helper(_obj1
, &_arg1
))
4224 wxPy_BEGIN_ALLOW_THREADS
;
4225 wxWindow_SetPosition(_arg0
,*_arg1
);
4227 wxPy_END_ALLOW_THREADS
;
4228 if (PyErr_Occurred()) return NULL
;
4229 } Py_INCREF(Py_None
);
4230 _resultobj
= Py_None
;
4234 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4235 self
->SetSize(rect
, sizeFlags
);
4237 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4238 PyObject
* _resultobj
;
4241 int _arg2
= (int ) wxSIZE_AUTO
;
4242 PyObject
* _argo0
= 0;
4244 PyObject
* _obj1
= 0;
4245 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4259 if (! wxRect_helper(_obj1
, &_arg1
))
4263 wxPy_BEGIN_ALLOW_THREADS
;
4264 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4266 wxPy_END_ALLOW_THREADS
;
4267 if (PyErr_Occurred()) return NULL
;
4268 } Py_INCREF(Py_None
);
4269 _resultobj
= Py_None
;
4273 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4274 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4275 PyObject
* _resultobj
;
4277 int _arg1
= (int ) -1;
4278 int _arg2
= (int ) -1;
4279 int _arg3
= (int ) -1;
4280 int _arg4
= (int ) -1;
4281 int _arg5
= (int ) -1;
4282 int _arg6
= (int ) -1;
4283 PyObject
* _argo0
= 0;
4284 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4297 wxPy_BEGIN_ALLOW_THREADS
;
4298 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4300 wxPy_END_ALLOW_THREADS
;
4301 if (PyErr_Occurred()) return NULL
;
4302 } Py_INCREF(Py_None
);
4303 _resultobj
= Py_None
;
4307 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4308 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4309 PyObject
* _resultobj
;
4313 PyObject
* _argo0
= 0;
4314 char *_kwnames
[] = { "self","width","height", NULL
};
4317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4327 wxPy_BEGIN_ALLOW_THREADS
;
4328 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4330 wxPy_END_ALLOW_THREADS
;
4331 if (PyErr_Occurred()) return NULL
;
4332 } Py_INCREF(Py_None
);
4333 _resultobj
= Py_None
;
4337 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4338 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4339 PyObject
* _resultobj
;
4342 PyObject
* _argo0
= 0;
4344 PyObject
* _obj1
= 0;
4345 char *_kwnames
[] = { "self","size", NULL
};
4348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4359 if (! wxSize_helper(_obj1
, &_arg1
))
4363 wxPy_BEGIN_ALLOW_THREADS
;
4364 wxWindow_SetClientSize(_arg0
,*_arg1
);
4366 wxPy_END_ALLOW_THREADS
;
4367 if (PyErr_Occurred()) return NULL
;
4368 } Py_INCREF(Py_None
);
4369 _resultobj
= Py_None
;
4373 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4374 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4375 PyObject
* _resultobj
;
4378 PyObject
* _argo0
= 0;
4379 PyObject
* _argo1
= 0;
4380 char *_kwnames
[] = { "self","cursor", NULL
};
4383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
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_SetCursor. Expected _wxWindow_p.");
4393 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4394 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4400 wxPy_BEGIN_ALLOW_THREADS
;
4401 wxWindow_SetCursor(_arg0
,*_arg1
);
4403 wxPy_END_ALLOW_THREADS
;
4404 if (PyErr_Occurred()) return NULL
;
4405 } Py_INCREF(Py_None
);
4406 _resultobj
= Py_None
;
4410 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4411 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4412 PyObject
* _resultobj
;
4414 wxEvtHandler
* _arg1
;
4415 PyObject
* _argo0
= 0;
4416 PyObject
* _argo1
= 0;
4417 char *_kwnames
[] = { "self","handler", NULL
};
4420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4430 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4431 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4437 wxPy_BEGIN_ALLOW_THREADS
;
4438 wxWindow_SetEventHandler(_arg0
,_arg1
);
4440 wxPy_END_ALLOW_THREADS
;
4441 if (PyErr_Occurred()) return NULL
;
4442 } Py_INCREF(Py_None
);
4443 _resultobj
= Py_None
;
4447 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4448 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4449 PyObject
* _resultobj
;
4452 PyObject
* _argo0
= 0;
4453 char *_kwnames
[] = { "self","exStyle", NULL
};
4456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4466 wxPy_BEGIN_ALLOW_THREADS
;
4467 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4469 wxPy_END_ALLOW_THREADS
;
4470 if (PyErr_Occurred()) return NULL
;
4471 } Py_INCREF(Py_None
);
4472 _resultobj
= Py_None
;
4476 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4477 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4478 PyObject
* _resultobj
;
4481 PyObject
* _argo0
= 0;
4482 PyObject
* _obj1
= 0;
4483 char *_kwnames
[] = { "self","title", NULL
};
4486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4496 #if PYTHON_API_VERSION >= 1009
4497 char* tmpPtr
; int tmpSize
;
4498 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4499 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4502 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4504 _arg1
= new wxString(tmpPtr
, tmpSize
);
4506 if (!PyString_Check(_obj1
)) {
4507 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4510 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4514 wxPy_BEGIN_ALLOW_THREADS
;
4515 wxWindow_SetTitle(_arg0
,*_arg1
);
4517 wxPy_END_ALLOW_THREADS
;
4518 if (PyErr_Occurred()) return NULL
;
4519 } Py_INCREF(Py_None
);
4520 _resultobj
= Py_None
;
4528 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4529 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4530 PyObject
* _resultobj
;
4534 PyObject
* _argo0
= 0;
4536 char *_kwnames
[] = { "self","show", NULL
};
4539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4548 _arg1
= (bool ) tempbool1
;
4550 wxPy_BEGIN_ALLOW_THREADS
;
4551 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4553 wxPy_END_ALLOW_THREADS
;
4554 if (PyErr_Occurred()) return NULL
;
4555 } _resultobj
= Py_BuildValue("i",_result
);
4559 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4560 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4561 PyObject
* _resultobj
;
4564 PyObject
* _argo0
= 0;
4565 char *_kwnames
[] = { "self", NULL
};
4568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4578 wxPy_BEGIN_ALLOW_THREADS
;
4579 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4581 wxPy_END_ALLOW_THREADS
;
4582 if (PyErr_Occurred()) return NULL
;
4583 } _resultobj
= Py_BuildValue("i",_result
);
4587 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4588 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4589 PyObject
* _resultobj
;
4592 PyObject
* _argo0
= 0;
4593 char *_kwnames
[] = { "self", NULL
};
4596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4606 wxPy_BEGIN_ALLOW_THREADS
;
4607 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4609 wxPy_END_ALLOW_THREADS
;
4610 if (PyErr_Occurred()) return NULL
;
4611 } _resultobj
= Py_BuildValue("i",_result
);
4615 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4616 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4617 PyObject
* _resultobj
;
4620 PyObject
* _argo0
= 0;
4621 char *_kwnames
[] = { "self", NULL
};
4624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4634 wxPy_BEGIN_ALLOW_THREADS
;
4635 _result
= (bool )wxWindow_Validate(_arg0
);
4637 wxPy_END_ALLOW_THREADS
;
4638 if (PyErr_Occurred()) return NULL
;
4639 } _resultobj
= Py_BuildValue("i",_result
);
4643 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4644 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4645 PyObject
* _resultobj
;
4649 PyObject
* _argo0
= 0;
4650 char *_kwnames
[] = { "self","x","y", NULL
};
4653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4663 wxPy_BEGIN_ALLOW_THREADS
;
4664 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4666 wxPy_END_ALLOW_THREADS
;
4667 if (PyErr_Occurred()) return NULL
;
4668 } Py_INCREF(Py_None
);
4669 _resultobj
= Py_None
;
4673 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4674 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4675 PyObject
* _resultobj
;
4679 PyObject
* _argo0
= 0;
4681 PyObject
* _obj1
= 0;
4682 char *_kwnames
[] = { "self","pt", NULL
};
4686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4697 if (! wxPoint_helper(_obj1
, &_arg1
))
4701 wxPy_BEGIN_ALLOW_THREADS
;
4702 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4704 wxPy_END_ALLOW_THREADS
;
4705 if (PyErr_Occurred()) return NULL
;
4706 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4707 _resultobj
= Py_BuildValue("s",_ptemp
);
4711 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4712 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4713 PyObject
* _resultobj
;
4717 PyObject
* _argo0
= 0;
4719 PyObject
* _obj1
= 0;
4720 char *_kwnames
[] = { "self","sz", NULL
};
4724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4735 if (! wxSize_helper(_obj1
, &_arg1
))
4739 wxPy_BEGIN_ALLOW_THREADS
;
4740 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4742 wxPy_END_ALLOW_THREADS
;
4743 if (PyErr_Occurred()) return NULL
;
4744 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4745 _resultobj
= Py_BuildValue("s",_ptemp
);
4749 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4750 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4751 PyObject
* _resultobj
;
4755 PyObject
* _argo0
= 0;
4757 PyObject
* _obj1
= 0;
4758 char *_kwnames
[] = { "self","pt", NULL
};
4762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4773 if (! wxPoint_helper(_obj1
, &_arg1
))
4777 wxPy_BEGIN_ALLOW_THREADS
;
4778 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4780 wxPy_END_ALLOW_THREADS
;
4781 if (PyErr_Occurred()) return NULL
;
4782 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4783 _resultobj
= Py_BuildValue("s",_ptemp
);
4787 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4788 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4789 PyObject
* _resultobj
;
4793 PyObject
* _argo0
= 0;
4795 PyObject
* _obj1
= 0;
4796 char *_kwnames
[] = { "self","sz", NULL
};
4800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4811 if (! wxSize_helper(_obj1
, &_arg1
))
4815 wxPy_BEGIN_ALLOW_THREADS
;
4816 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4818 wxPy_END_ALLOW_THREADS
;
4819 if (PyErr_Occurred()) return NULL
;
4820 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4821 _resultobj
= Py_BuildValue("s",_ptemp
);
4825 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4826 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4827 PyObject
* _resultobj
;
4830 PyObject
* _argo0
= 0;
4831 PyObject
* _obj1
= 0;
4832 char *_kwnames
[] = { "self","tip", NULL
};
4835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4845 #if PYTHON_API_VERSION >= 1009
4846 char* tmpPtr
; int tmpSize
;
4847 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4851 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4853 _arg1
= new wxString(tmpPtr
, tmpSize
);
4855 if (!PyString_Check(_obj1
)) {
4856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4859 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4863 wxPy_BEGIN_ALLOW_THREADS
;
4864 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4866 wxPy_END_ALLOW_THREADS
;
4867 if (PyErr_Occurred()) return NULL
;
4868 } Py_INCREF(Py_None
);
4869 _resultobj
= Py_None
;
4877 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4878 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4879 PyObject
* _resultobj
;
4882 PyObject
* _argo0
= 0;
4883 PyObject
* _argo1
= 0;
4884 char *_kwnames
[] = { "self","tooltip", NULL
};
4887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4897 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4898 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4904 wxPy_BEGIN_ALLOW_THREADS
;
4905 wxWindow_SetToolTip(_arg0
,_arg1
);
4907 wxPy_END_ALLOW_THREADS
;
4908 if (PyErr_Occurred()) return NULL
;
4909 } Py_INCREF(Py_None
);
4910 _resultobj
= Py_None
;
4914 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4915 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4916 PyObject
* _resultobj
;
4917 wxToolTip
* _result
;
4919 PyObject
* _argo0
= 0;
4920 char *_kwnames
[] = { "self", NULL
};
4923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4933 wxPy_BEGIN_ALLOW_THREADS
;
4934 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4936 wxPy_END_ALLOW_THREADS
;
4937 if (PyErr_Occurred()) return NULL
;
4938 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4942 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4943 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4944 PyObject
* _resultobj
;
4947 PyObject
* _argo0
= 0;
4948 PyObject
* _argo1
= 0;
4949 char *_kwnames
[] = { "self","sizer", NULL
};
4952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4962 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4963 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4969 wxPy_BEGIN_ALLOW_THREADS
;
4970 wxWindow_SetSizer(_arg0
,_arg1
);
4972 wxPy_END_ALLOW_THREADS
;
4973 if (PyErr_Occurred()) return NULL
;
4974 } Py_INCREF(Py_None
);
4975 _resultobj
= Py_None
;
4979 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4980 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4981 PyObject
* _resultobj
;
4984 PyObject
* _argo0
= 0;
4985 char *_kwnames
[] = { "self", NULL
};
4988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
4991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
4998 wxPy_BEGIN_ALLOW_THREADS
;
4999 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5001 wxPy_END_ALLOW_THREADS
;
5002 if (PyErr_Occurred()) return NULL
;
5003 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5007 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5008 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5009 PyObject
* _resultobj
;
5010 wxValidator
* _result
;
5012 PyObject
* _argo0
= 0;
5013 char *_kwnames
[] = { "self", NULL
};
5016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5026 wxPy_BEGIN_ALLOW_THREADS
;
5027 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5029 wxPy_END_ALLOW_THREADS
;
5030 if (PyErr_Occurred()) return NULL
;
5031 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5035 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5036 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5037 PyObject
* _resultobj
;
5039 wxValidator
* _arg1
;
5040 PyObject
* _argo0
= 0;
5041 PyObject
* _argo1
= 0;
5042 char *_kwnames
[] = { "self","validator", NULL
};
5045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5055 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5056 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5062 wxPy_BEGIN_ALLOW_THREADS
;
5063 wxWindow_SetValidator(_arg0
,*_arg1
);
5065 wxPy_END_ALLOW_THREADS
;
5066 if (PyErr_Occurred()) return NULL
;
5067 } Py_INCREF(Py_None
);
5068 _resultobj
= Py_None
;
5072 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5073 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5074 PyObject
* _resultobj
;
5077 PyObject
* _argo0
= 0;
5078 char *_kwnames
[] = { "self", NULL
};
5082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5092 wxPy_BEGIN_ALLOW_THREADS
;
5093 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5095 wxPy_END_ALLOW_THREADS
;
5096 if (PyErr_Occurred()) return NULL
;
5097 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5098 _resultobj
= Py_BuildValue("s",_ptemp
);
5102 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5103 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5104 PyObject
* _resultobj
;
5107 PyObject
* _argo0
= 0;
5108 PyObject
* _argo1
= 0;
5109 char *_kwnames
[] = { "self","caret", NULL
};
5112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
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_SetCaret. Expected _wxWindow_p.");
5122 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5123 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5129 wxPy_BEGIN_ALLOW_THREADS
;
5130 wxWindow_SetCaret(_arg0
,_arg1
);
5132 wxPy_END_ALLOW_THREADS
;
5133 if (PyErr_Occurred()) return NULL
;
5134 } Py_INCREF(Py_None
);
5135 _resultobj
= Py_None
;
5139 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5140 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5141 PyObject
* _resultobj
;
5144 PyObject
* _argo0
= 0;
5145 char *_kwnames
[] = { "self", NULL
};
5149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5159 wxPy_BEGIN_ALLOW_THREADS
;
5160 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5162 wxPy_END_ALLOW_THREADS
;
5163 if (PyErr_Occurred()) return NULL
;
5165 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5166 _resultobj
= Py_BuildValue("s",_ptemp
);
5169 _resultobj
= Py_None
;
5174 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5175 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5176 PyObject
* _resultobj
;
5178 PyObject
* _argo0
= 0;
5179 char *_kwnames
[] = { "self", NULL
};
5182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5192 wxPy_BEGIN_ALLOW_THREADS
;
5193 wxWindow_Freeze(_arg0
);
5195 wxPy_END_ALLOW_THREADS
;
5196 if (PyErr_Occurred()) return NULL
;
5197 } Py_INCREF(Py_None
);
5198 _resultobj
= Py_None
;
5202 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5203 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5204 PyObject
* _resultobj
;
5206 PyObject
* _argo0
= 0;
5207 char *_kwnames
[] = { "self", NULL
};
5210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5220 wxPy_BEGIN_ALLOW_THREADS
;
5221 wxWindow_Thaw(_arg0
);
5223 wxPy_END_ALLOW_THREADS
;
5224 if (PyErr_Occurred()) return NULL
;
5225 } Py_INCREF(Py_None
);
5226 _resultobj
= Py_None
;
5230 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5231 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5232 PyObject
* _resultobj
;
5234 PyObject
* _argo0
= 0;
5235 char *_kwnames
[] = { "self", NULL
};
5238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5248 wxPy_BEGIN_ALLOW_THREADS
;
5249 wxWindow_Update(_arg0
);
5251 wxPy_END_ALLOW_THREADS
;
5252 if (PyErr_Occurred()) return NULL
;
5253 } Py_INCREF(Py_None
);
5254 _resultobj
= Py_None
;
5258 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5259 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5260 PyObject
* _resultobj
;
5263 PyObject
* _argo0
= 0;
5264 char *_kwnames
[] = { "self", NULL
};
5267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5277 wxPy_BEGIN_ALLOW_THREADS
;
5278 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5280 wxPy_END_ALLOW_THREADS
;
5281 if (PyErr_Occurred()) return NULL
;
5283 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5291 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5292 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5293 PyObject
* _resultobj
;
5296 PyObject
* _argo0
= 0;
5297 PyObject
* _obj1
= 0;
5298 char *_kwnames
[] = { "self","helpText", NULL
};
5301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5311 #if PYTHON_API_VERSION >= 1009
5312 char* tmpPtr
; int tmpSize
;
5313 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5314 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5317 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5319 _arg1
= new wxString(tmpPtr
, tmpSize
);
5321 if (!PyString_Check(_obj1
)) {
5322 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5325 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5329 wxPy_BEGIN_ALLOW_THREADS
;
5330 wxWindow_SetHelpText(_arg0
,*_arg1
);
5332 wxPy_END_ALLOW_THREADS
;
5333 if (PyErr_Occurred()) return NULL
;
5334 } Py_INCREF(Py_None
);
5335 _resultobj
= Py_None
;
5343 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5344 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5345 PyObject
* _resultobj
;
5349 PyObject
* _argo0
= 0;
5350 char *_kwnames
[] = { "self","lines", NULL
};
5353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5363 wxPy_BEGIN_ALLOW_THREADS
;
5364 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5366 wxPy_END_ALLOW_THREADS
;
5367 if (PyErr_Occurred()) return NULL
;
5368 } _resultobj
= Py_BuildValue("i",_result
);
5372 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5373 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5374 PyObject
* _resultobj
;
5378 PyObject
* _argo0
= 0;
5379 char *_kwnames
[] = { "self","pages", NULL
};
5382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5392 wxPy_BEGIN_ALLOW_THREADS
;
5393 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5395 wxPy_END_ALLOW_THREADS
;
5396 if (PyErr_Occurred()) return NULL
;
5397 } _resultobj
= Py_BuildValue("i",_result
);
5401 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5402 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5403 PyObject
* _resultobj
;
5406 PyObject
* _argo0
= 0;
5407 char *_kwnames
[] = { "self", NULL
};
5410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5420 wxPy_BEGIN_ALLOW_THREADS
;
5421 _result
= (bool )wxWindow_LineUp(_arg0
);
5423 wxPy_END_ALLOW_THREADS
;
5424 if (PyErr_Occurred()) return NULL
;
5425 } _resultobj
= Py_BuildValue("i",_result
);
5429 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5430 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5431 PyObject
* _resultobj
;
5434 PyObject
* _argo0
= 0;
5435 char *_kwnames
[] = { "self", NULL
};
5438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5448 wxPy_BEGIN_ALLOW_THREADS
;
5449 _result
= (bool )wxWindow_LineDown(_arg0
);
5451 wxPy_END_ALLOW_THREADS
;
5452 if (PyErr_Occurred()) return NULL
;
5453 } _resultobj
= Py_BuildValue("i",_result
);
5457 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5458 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5459 PyObject
* _resultobj
;
5462 PyObject
* _argo0
= 0;
5463 char *_kwnames
[] = { "self", NULL
};
5466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5476 wxPy_BEGIN_ALLOW_THREADS
;
5477 _result
= (bool )wxWindow_PageUp(_arg0
);
5479 wxPy_END_ALLOW_THREADS
;
5480 if (PyErr_Occurred()) return NULL
;
5481 } _resultobj
= Py_BuildValue("i",_result
);
5485 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5486 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5487 PyObject
* _resultobj
;
5490 PyObject
* _argo0
= 0;
5491 char *_kwnames
[] = { "self", NULL
};
5494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5504 wxPy_BEGIN_ALLOW_THREADS
;
5505 _result
= (bool )wxWindow_PageDown(_arg0
);
5507 wxPy_END_ALLOW_THREADS
;
5508 if (PyErr_Occurred()) return NULL
;
5509 } _resultobj
= Py_BuildValue("i",_result
);
5513 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5514 PyObject
* _resultobj
;
5516 char *_kwnames
[] = { NULL
};
5519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5522 wxPy_BEGIN_ALLOW_THREADS
;
5523 _result
= (wxWindow
*)wxWindow::FindFocus();
5525 wxPy_END_ALLOW_THREADS
;
5526 if (PyErr_Occurred()) return NULL
;
5527 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5531 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5532 PyObject
* _resultobj
;
5534 char *_kwnames
[] = { NULL
};
5537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5540 wxPy_BEGIN_ALLOW_THREADS
;
5541 _result
= (int )wxWindow::NewControlId();
5543 wxPy_END_ALLOW_THREADS
;
5544 if (PyErr_Occurred()) return NULL
;
5545 } _resultobj
= Py_BuildValue("i",_result
);
5549 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5550 PyObject
* _resultobj
;
5553 char *_kwnames
[] = { "id", NULL
};
5556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5559 wxPy_BEGIN_ALLOW_THREADS
;
5560 _result
= (int )wxWindow::NextControlId(_arg0
);
5562 wxPy_END_ALLOW_THREADS
;
5563 if (PyErr_Occurred()) return NULL
;
5564 } _resultobj
= Py_BuildValue("i",_result
);
5568 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5569 PyObject
* _resultobj
;
5572 char *_kwnames
[] = { "id", NULL
};
5575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5578 wxPy_BEGIN_ALLOW_THREADS
;
5579 _result
= (int )wxWindow::PrevControlId(_arg0
);
5581 wxPy_END_ALLOW_THREADS
;
5582 if (PyErr_Occurred()) return NULL
;
5583 } _resultobj
= Py_BuildValue("i",_result
);
5587 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5588 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5589 PyObject
* _resultobj
;
5591 wxAcceleratorTable
* _arg1
;
5592 PyObject
* _argo0
= 0;
5593 PyObject
* _argo1
= 0;
5594 char *_kwnames
[] = { "self","accel", NULL
};
5597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5607 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5608 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5614 wxPy_BEGIN_ALLOW_THREADS
;
5615 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5617 wxPy_END_ALLOW_THREADS
;
5618 if (PyErr_Occurred()) return NULL
;
5619 } Py_INCREF(Py_None
);
5620 _resultobj
= Py_None
;
5624 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5625 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5626 PyObject
* _resultobj
;
5627 wxAcceleratorTable
* _result
;
5629 PyObject
* _argo0
= 0;
5630 char *_kwnames
[] = { "self", NULL
};
5634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_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_GetAcceleratorTable. Expected _wxWindow_p.");
5644 wxPy_BEGIN_ALLOW_THREADS
;
5645 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5647 wxPy_END_ALLOW_THREADS
;
5648 if (PyErr_Occurred()) return NULL
;
5650 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5651 _resultobj
= Py_BuildValue("s",_ptemp
);
5654 _resultobj
= Py_None
;
5659 static void *SwigwxPanelTowxWindow(void *ptr
) {
5662 src
= (wxPanel
*) ptr
;
5663 dest
= (wxWindow
*) src
;
5664 return (void *) dest
;
5667 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5670 src
= (wxPanel
*) ptr
;
5671 dest
= (wxEvtHandler
*) src
;
5672 return (void *) dest
;
5675 static void *SwigwxPanelTowxObject(void *ptr
) {
5678 src
= (wxPanel
*) ptr
;
5679 dest
= (wxObject
*) src
;
5680 return (void *) dest
;
5683 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5684 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5685 PyObject
* _resultobj
;
5689 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5690 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5691 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5692 char * _arg5
= (char *) "panel";
5693 PyObject
* _argo0
= 0;
5695 PyObject
* _obj2
= 0;
5697 PyObject
* _obj3
= 0;
5698 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5714 if (! wxPoint_helper(_obj2
, &_arg2
))
5720 if (! wxSize_helper(_obj3
, &_arg3
))
5724 wxPy_BEGIN_ALLOW_THREADS
;
5725 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5727 wxPy_END_ALLOW_THREADS
;
5728 if (PyErr_Occurred()) return NULL
;
5730 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5731 _resultobj
= Py_BuildValue("s",_ptemp
);
5734 _resultobj
= Py_None
;
5739 #define new_wxPrePanel() (new wxPanel())
5740 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5741 PyObject
* _resultobj
;
5743 char *_kwnames
[] = { NULL
};
5747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5750 wxPy_BEGIN_ALLOW_THREADS
;
5751 _result
= (wxPanel
*)new_wxPrePanel();
5753 wxPy_END_ALLOW_THREADS
;
5754 if (PyErr_Occurred()) return NULL
;
5756 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5757 _resultobj
= Py_BuildValue("s",_ptemp
);
5760 _resultobj
= Py_None
;
5765 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5766 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5767 PyObject
* _resultobj
;
5772 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5773 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5774 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5775 char * _arg6
= (char *) "panel";
5776 PyObject
* _argo0
= 0;
5777 PyObject
* _argo1
= 0;
5779 PyObject
* _obj3
= 0;
5781 PyObject
* _obj4
= 0;
5782 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5795 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5796 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5804 if (! wxPoint_helper(_obj3
, &_arg3
))
5810 if (! wxSize_helper(_obj4
, &_arg4
))
5814 wxPy_BEGIN_ALLOW_THREADS
;
5815 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5817 wxPy_END_ALLOW_THREADS
;
5818 if (PyErr_Occurred()) return NULL
;
5819 } _resultobj
= Py_BuildValue("i",_result
);
5823 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5824 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5825 PyObject
* _resultobj
;
5827 PyObject
* _argo0
= 0;
5828 char *_kwnames
[] = { "self", NULL
};
5831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5841 wxPy_BEGIN_ALLOW_THREADS
;
5842 wxPanel_InitDialog(_arg0
);
5844 wxPy_END_ALLOW_THREADS
;
5845 if (PyErr_Occurred()) return NULL
;
5846 } Py_INCREF(Py_None
);
5847 _resultobj
= Py_None
;
5851 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5852 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5853 PyObject
* _resultobj
;
5856 PyObject
* _argo0
= 0;
5857 char *_kwnames
[] = { "self", NULL
};
5860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5870 wxPy_BEGIN_ALLOW_THREADS
;
5871 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5873 wxPy_END_ALLOW_THREADS
;
5874 if (PyErr_Occurred()) return NULL
;
5875 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5879 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5880 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5881 PyObject
* _resultobj
;
5884 PyObject
* _argo0
= 0;
5885 PyObject
* _argo1
= 0;
5886 char *_kwnames
[] = { "self","btn", NULL
};
5889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5899 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5900 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5906 wxPy_BEGIN_ALLOW_THREADS
;
5907 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5909 wxPy_END_ALLOW_THREADS
;
5910 if (PyErr_Occurred()) return NULL
;
5911 } Py_INCREF(Py_None
);
5912 _resultobj
= Py_None
;
5916 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5917 wxScrolledWindow
*src
;
5919 src
= (wxScrolledWindow
*) ptr
;
5920 dest
= (wxPanel
*) src
;
5921 return (void *) dest
;
5924 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5925 wxScrolledWindow
*src
;
5927 src
= (wxScrolledWindow
*) ptr
;
5928 dest
= (wxWindow
*) src
;
5929 return (void *) dest
;
5932 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
5933 wxScrolledWindow
*src
;
5935 src
= (wxScrolledWindow
*) ptr
;
5936 dest
= (wxEvtHandler
*) src
;
5937 return (void *) dest
;
5940 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
5941 wxScrolledWindow
*src
;
5943 src
= (wxScrolledWindow
*) ptr
;
5944 dest
= (wxObject
*) src
;
5945 return (void *) dest
;
5948 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5949 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5950 PyObject
* _resultobj
;
5951 wxScrolledWindow
* _result
;
5953 wxWindowID _arg1
= (wxWindowID
) -1;
5954 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5955 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5956 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
5957 char * _arg5
= (char *) "scrolledWindow";
5958 PyObject
* _argo0
= 0;
5960 PyObject
* _obj2
= 0;
5962 PyObject
* _obj3
= 0;
5963 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5979 if (! wxPoint_helper(_obj2
, &_arg2
))
5985 if (! wxSize_helper(_obj3
, &_arg3
))
5989 wxPy_BEGIN_ALLOW_THREADS
;
5990 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5992 wxPy_END_ALLOW_THREADS
;
5993 if (PyErr_Occurred()) return NULL
;
5995 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
5996 _resultobj
= Py_BuildValue("s",_ptemp
);
5999 _resultobj
= Py_None
;
6004 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6005 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6006 PyObject
* _resultobj
;
6007 wxScrolledWindow
* _result
;
6008 char *_kwnames
[] = { NULL
};
6012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6015 wxPy_BEGIN_ALLOW_THREADS
;
6016 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6018 wxPy_END_ALLOW_THREADS
;
6019 if (PyErr_Occurred()) return NULL
;
6021 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6022 _resultobj
= Py_BuildValue("s",_ptemp
);
6025 _resultobj
= Py_None
;
6030 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6031 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6032 PyObject
* _resultobj
;
6034 wxScrolledWindow
* _arg0
;
6036 wxWindowID _arg2
= (wxWindowID
) -1;
6037 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6038 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6039 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6040 char * _arg6
= (char *) "scrolledWindow";
6041 PyObject
* _argo0
= 0;
6042 PyObject
* _argo1
= 0;
6044 PyObject
* _obj3
= 0;
6046 PyObject
* _obj4
= 0;
6047 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6060 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6061 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6069 if (! wxPoint_helper(_obj3
, &_arg3
))
6075 if (! wxSize_helper(_obj4
, &_arg4
))
6079 wxPy_BEGIN_ALLOW_THREADS
;
6080 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6082 wxPy_END_ALLOW_THREADS
;
6083 if (PyErr_Occurred()) return NULL
;
6084 } _resultobj
= Py_BuildValue("i",_result
);
6088 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6089 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6090 PyObject
* _resultobj
;
6091 wxScrolledWindow
* _arg0
;
6094 PyObject
* _argo0
= 0;
6097 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6109 _arg1
= (bool ) tempbool1
;
6110 _arg2
= (bool ) tempbool2
;
6112 wxPy_BEGIN_ALLOW_THREADS
;
6113 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6115 wxPy_END_ALLOW_THREADS
;
6116 if (PyErr_Occurred()) return NULL
;
6117 } Py_INCREF(Py_None
);
6118 _resultobj
= Py_None
;
6122 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6123 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6124 PyObject
* _resultobj
;
6126 wxScrolledWindow
* _arg0
;
6128 PyObject
* _argo0
= 0;
6129 char *_kwnames
[] = { "self","orient", NULL
};
6132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6142 wxPy_BEGIN_ALLOW_THREADS
;
6143 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6145 wxPy_END_ALLOW_THREADS
;
6146 if (PyErr_Occurred()) return NULL
;
6147 } _resultobj
= Py_BuildValue("i",_result
);
6151 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6152 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6153 PyObject
* _resultobj
;
6154 wxScrolledWindow
* _arg0
;
6159 PyObject
* _argo0
= 0;
6160 char *_kwnames
[] = { "self", NULL
};
6169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6179 wxPy_BEGIN_ALLOW_THREADS
;
6180 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6182 wxPy_END_ALLOW_THREADS
;
6183 if (PyErr_Occurred()) return NULL
;
6184 } Py_INCREF(Py_None
);
6185 _resultobj
= Py_None
;
6188 o
= PyInt_FromLong((long) (*_arg1
));
6189 _resultobj
= t_output_helper(_resultobj
, o
);
6193 o
= PyInt_FromLong((long) (*_arg2
));
6194 _resultobj
= t_output_helper(_resultobj
, o
);
6199 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6200 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6201 PyObject
* _resultobj
;
6203 wxScrolledWindow
* _arg0
;
6204 PyObject
* _argo0
= 0;
6205 char *_kwnames
[] = { "self", NULL
};
6208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6218 wxPy_BEGIN_ALLOW_THREADS
;
6219 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6221 wxPy_END_ALLOW_THREADS
;
6222 if (PyErr_Occurred()) return NULL
;
6223 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6227 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6228 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6229 PyObject
* _resultobj
;
6230 wxScrolledWindow
* _arg0
;
6235 PyObject
* _argo0
= 0;
6236 char *_kwnames
[] = { "self", NULL
};
6245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6255 wxPy_BEGIN_ALLOW_THREADS
;
6256 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6258 wxPy_END_ALLOW_THREADS
;
6259 if (PyErr_Occurred()) return NULL
;
6260 } Py_INCREF(Py_None
);
6261 _resultobj
= Py_None
;
6264 o
= PyInt_FromLong((long) (*_arg1
));
6265 _resultobj
= t_output_helper(_resultobj
, o
);
6269 o
= PyInt_FromLong((long) (*_arg2
));
6270 _resultobj
= t_output_helper(_resultobj
, o
);
6275 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6276 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6277 PyObject
* _resultobj
;
6279 wxScrolledWindow
* _arg0
;
6280 PyObject
* _argo0
= 0;
6281 char *_kwnames
[] = { "self", NULL
};
6284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6294 wxPy_BEGIN_ALLOW_THREADS
;
6295 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6297 wxPy_END_ALLOW_THREADS
;
6298 if (PyErr_Occurred()) return NULL
;
6299 } _resultobj
= Py_BuildValue("i",_result
);
6303 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6304 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6305 PyObject
* _resultobj
;
6306 wxScrolledWindow
* _arg0
;
6308 PyObject
* _argo0
= 0;
6309 PyObject
* _argo1
= 0;
6310 char *_kwnames
[] = { "self","dc", NULL
};
6313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6323 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6324 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6330 wxPy_BEGIN_ALLOW_THREADS
;
6331 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6333 wxPy_END_ALLOW_THREADS
;
6334 if (PyErr_Occurred()) return NULL
;
6335 } Py_INCREF(Py_None
);
6336 _resultobj
= Py_None
;
6340 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6341 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6342 PyObject
* _resultobj
;
6343 wxScrolledWindow
* _arg0
;
6346 PyObject
* _argo0
= 0;
6347 char *_kwnames
[] = { "self","x","y", NULL
};
6350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6360 wxPy_BEGIN_ALLOW_THREADS
;
6361 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6363 wxPy_END_ALLOW_THREADS
;
6364 if (PyErr_Occurred()) return NULL
;
6365 } Py_INCREF(Py_None
);
6366 _resultobj
= Py_None
;
6370 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6371 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6372 PyObject
* _resultobj
;
6373 wxScrolledWindow
* _arg0
;
6378 int _arg5
= (int ) 0;
6379 int _arg6
= (int ) 0;
6380 int _arg7
= (int ) FALSE
;
6381 PyObject
* _argo0
= 0;
6382 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6395 wxPy_BEGIN_ALLOW_THREADS
;
6396 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6398 wxPy_END_ALLOW_THREADS
;
6399 if (PyErr_Occurred()) return NULL
;
6400 } Py_INCREF(Py_None
);
6401 _resultobj
= Py_None
;
6405 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6406 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6407 PyObject
* _resultobj
;
6408 wxScrolledWindow
* _arg0
;
6411 PyObject
* _argo0
= 0;
6412 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6425 wxPy_BEGIN_ALLOW_THREADS
;
6426 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6428 wxPy_END_ALLOW_THREADS
;
6429 if (PyErr_Occurred()) return NULL
;
6430 } Py_INCREF(Py_None
);
6431 _resultobj
= Py_None
;
6435 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6436 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6437 PyObject
* _resultobj
;
6438 wxScrolledWindow
* _arg0
;
6440 PyObject
* _argo0
= 0;
6441 PyObject
* _argo1
= 0;
6442 char *_kwnames
[] = { "self","window", NULL
};
6445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6455 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6456 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6462 wxPy_BEGIN_ALLOW_THREADS
;
6463 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6465 wxPy_END_ALLOW_THREADS
;
6466 if (PyErr_Occurred()) return NULL
;
6467 } Py_INCREF(Py_None
);
6468 _resultobj
= Py_None
;
6472 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6473 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6474 PyObject
* _resultobj
;
6475 wxScrolledWindow
* _arg0
;
6480 PyObject
* _argo0
= 0;
6481 char *_kwnames
[] = { "self", NULL
};
6490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6500 wxPy_BEGIN_ALLOW_THREADS
;
6501 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6503 wxPy_END_ALLOW_THREADS
;
6504 if (PyErr_Occurred()) return NULL
;
6505 } Py_INCREF(Py_None
);
6506 _resultobj
= Py_None
;
6509 o
= PyInt_FromLong((long) (*_arg1
));
6510 _resultobj
= t_output_helper(_resultobj
, o
);
6514 o
= PyInt_FromLong((long) (*_arg2
));
6515 _resultobj
= t_output_helper(_resultobj
, o
);
6520 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6521 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6522 PyObject
* _resultobj
;
6523 wxScrolledWindow
* _arg0
;
6530 PyObject
* _argo0
= 0;
6531 char *_kwnames
[] = { "self","x","y", NULL
};
6540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6550 wxPy_BEGIN_ALLOW_THREADS
;
6551 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6553 wxPy_END_ALLOW_THREADS
;
6554 if (PyErr_Occurred()) return NULL
;
6555 } Py_INCREF(Py_None
);
6556 _resultobj
= Py_None
;
6559 o
= PyInt_FromLong((long) (*_arg3
));
6560 _resultobj
= t_output_helper(_resultobj
, o
);
6564 o
= PyInt_FromLong((long) (*_arg4
));
6565 _resultobj
= t_output_helper(_resultobj
, o
);
6570 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6571 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6572 PyObject
* _resultobj
;
6573 wxScrolledWindow
* _arg0
;
6580 PyObject
* _argo0
= 0;
6581 char *_kwnames
[] = { "self","x","y", NULL
};
6590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6600 wxPy_BEGIN_ALLOW_THREADS
;
6601 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6603 wxPy_END_ALLOW_THREADS
;
6604 if (PyErr_Occurred()) return NULL
;
6605 } Py_INCREF(Py_None
);
6606 _resultobj
= Py_None
;
6609 o
= PyInt_FromLong((long) (*_arg3
));
6610 _resultobj
= t_output_helper(_resultobj
, o
);
6614 o
= PyInt_FromLong((long) (*_arg4
));
6615 _resultobj
= t_output_helper(_resultobj
, o
);
6620 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6621 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6622 PyObject
* _resultobj
;
6623 wxScrolledWindow
* _arg0
;
6626 PyObject
* _argo0
= 0;
6627 char *_kwnames
[] = { "self","xs","ys", NULL
};
6630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6640 wxPy_BEGIN_ALLOW_THREADS
;
6641 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6643 wxPy_END_ALLOW_THREADS
;
6644 if (PyErr_Occurred()) return NULL
;
6645 } Py_INCREF(Py_None
);
6646 _resultobj
= Py_None
;
6650 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6651 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6652 PyObject
* _resultobj
;
6654 wxScrolledWindow
* _arg0
;
6655 PyObject
* _argo0
= 0;
6656 char *_kwnames
[] = { "self", NULL
};
6659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6669 wxPy_BEGIN_ALLOW_THREADS
;
6670 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6672 wxPy_END_ALLOW_THREADS
;
6673 if (PyErr_Occurred()) return NULL
;
6674 } _resultobj
= Py_BuildValue("d",_result
);
6678 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6679 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6680 PyObject
* _resultobj
;
6682 wxScrolledWindow
* _arg0
;
6683 PyObject
* _argo0
= 0;
6684 char *_kwnames
[] = { "self", NULL
};
6687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6697 wxPy_BEGIN_ALLOW_THREADS
;
6698 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6700 wxPy_END_ALLOW_THREADS
;
6701 if (PyErr_Occurred()) return NULL
;
6702 } _resultobj
= Py_BuildValue("d",_result
);
6706 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6707 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6708 PyObject
* _resultobj
;
6709 wxScrolledWindow
* _arg0
;
6710 PyObject
* _argo0
= 0;
6711 char *_kwnames
[] = { "self", NULL
};
6714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6724 wxPy_BEGIN_ALLOW_THREADS
;
6725 wxScrolledWindow_AdjustScrollbars(_arg0
);
6727 wxPy_END_ALLOW_THREADS
;
6728 if (PyErr_Occurred()) return NULL
;
6729 } Py_INCREF(Py_None
);
6730 _resultobj
= Py_None
;
6734 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6737 src
= (wxMenu
*) ptr
;
6738 dest
= (wxEvtHandler
*) src
;
6739 return (void *) dest
;
6742 static void *SwigwxMenuTowxObject(void *ptr
) {
6745 src
= (wxMenu
*) ptr
;
6746 dest
= (wxObject
*) src
;
6747 return (void *) dest
;
6750 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6751 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6752 PyObject
* _resultobj
;
6754 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6755 long _arg1
= (long ) 0;
6756 PyObject
* _obj0
= 0;
6757 char *_kwnames
[] = { "title","style", NULL
};
6761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6765 #if PYTHON_API_VERSION >= 1009
6766 char* tmpPtr
; int tmpSize
;
6767 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6768 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6771 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6773 _arg0
= new wxString(tmpPtr
, tmpSize
);
6775 if (!PyString_Check(_obj0
)) {
6776 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6779 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6783 wxPy_BEGIN_ALLOW_THREADS
;
6784 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6786 wxPy_END_ALLOW_THREADS
;
6787 if (PyErr_Occurred()) return NULL
;
6789 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6790 _resultobj
= Py_BuildValue("s",_ptemp
);
6793 _resultobj
= Py_None
;
6802 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6803 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6804 PyObject
* _resultobj
;
6808 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6809 int _arg4
= (int ) FALSE
;
6810 PyObject
* _argo0
= 0;
6811 PyObject
* _obj2
= 0;
6812 PyObject
* _obj3
= 0;
6813 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6826 #if PYTHON_API_VERSION >= 1009
6827 char* tmpPtr
; int tmpSize
;
6828 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6829 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6832 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6834 _arg2
= new wxString(tmpPtr
, tmpSize
);
6836 if (!PyString_Check(_obj2
)) {
6837 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6840 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6845 #if PYTHON_API_VERSION >= 1009
6846 char* tmpPtr
; int tmpSize
;
6847 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6851 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6853 _arg3
= new wxString(tmpPtr
, tmpSize
);
6855 if (!PyString_Check(_obj3
)) {
6856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6859 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6863 wxPy_BEGIN_ALLOW_THREADS
;
6864 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6866 wxPy_END_ALLOW_THREADS
;
6867 if (PyErr_Occurred()) return NULL
;
6868 } Py_INCREF(Py_None
);
6869 _resultobj
= Py_None
;
6881 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6882 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6883 PyObject
* _resultobj
;
6888 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6889 PyObject
* _argo0
= 0;
6890 PyObject
* _obj2
= 0;
6891 PyObject
* _argo3
= 0;
6892 PyObject
* _obj4
= 0;
6893 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6906 #if PYTHON_API_VERSION >= 1009
6907 char* tmpPtr
; int tmpSize
;
6908 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6909 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6912 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6914 _arg2
= new wxString(tmpPtr
, tmpSize
);
6916 if (!PyString_Check(_obj2
)) {
6917 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6920 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6924 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6925 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6932 #if PYTHON_API_VERSION >= 1009
6933 char* tmpPtr
; int tmpSize
;
6934 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6935 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6938 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
6940 _arg4
= new wxString(tmpPtr
, tmpSize
);
6942 if (!PyString_Check(_obj4
)) {
6943 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6946 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
6950 wxPy_BEGIN_ALLOW_THREADS
;
6951 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
6953 wxPy_END_ALLOW_THREADS
;
6954 if (PyErr_Occurred()) return NULL
;
6955 } Py_INCREF(Py_None
);
6956 _resultobj
= Py_None
;
6968 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6969 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6970 PyObject
* _resultobj
;
6973 PyObject
* _argo0
= 0;
6974 PyObject
* _argo1
= 0;
6975 char *_kwnames
[] = { "self","item", NULL
};
6978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
6981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6988 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6989 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
6990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
6995 wxPy_BEGIN_ALLOW_THREADS
;
6996 wxMenu_AppendItem(_arg0
,_arg1
);
6998 wxPy_END_ALLOW_THREADS
;
6999 if (PyErr_Occurred()) return NULL
;
7000 } Py_INCREF(Py_None
);
7001 _resultobj
= Py_None
;
7005 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7006 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7007 PyObject
* _resultobj
;
7009 PyObject
* _argo0
= 0;
7010 char *_kwnames
[] = { "self", NULL
};
7013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7023 wxPy_BEGIN_ALLOW_THREADS
;
7024 wxMenu_AppendSeparator(_arg0
);
7026 wxPy_END_ALLOW_THREADS
;
7027 if (PyErr_Occurred()) return NULL
;
7028 } Py_INCREF(Py_None
);
7029 _resultobj
= Py_None
;
7033 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7034 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7035 PyObject
* _resultobj
;
7037 PyObject
* _argo0
= 0;
7038 char *_kwnames
[] = { "self", NULL
};
7041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7051 wxPy_BEGIN_ALLOW_THREADS
;
7052 wxMenu_Break(_arg0
);
7054 wxPy_END_ALLOW_THREADS
;
7055 if (PyErr_Occurred()) return NULL
;
7056 } Py_INCREF(Py_None
);
7057 _resultobj
= Py_None
;
7061 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7062 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7063 PyObject
* _resultobj
;
7067 PyObject
* _argo0
= 0;
7069 char *_kwnames
[] = { "self","id","flag", NULL
};
7072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7081 _arg2
= (bool ) tempbool2
;
7083 wxPy_BEGIN_ALLOW_THREADS
;
7084 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7086 wxPy_END_ALLOW_THREADS
;
7087 if (PyErr_Occurred()) return NULL
;
7088 } Py_INCREF(Py_None
);
7089 _resultobj
= Py_None
;
7093 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7094 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7095 PyObject
* _resultobj
;
7099 PyObject
* _argo0
= 0;
7100 char *_kwnames
[] = { "self","id", NULL
};
7103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7113 wxPy_BEGIN_ALLOW_THREADS
;
7114 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7116 wxPy_END_ALLOW_THREADS
;
7117 if (PyErr_Occurred()) return NULL
;
7118 } _resultobj
= Py_BuildValue("i",_result
);
7122 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7123 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7124 PyObject
* _resultobj
;
7128 PyObject
* _argo0
= 0;
7130 char *_kwnames
[] = { "self","id","enable", NULL
};
7133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7142 _arg2
= (bool ) tempbool2
;
7144 wxPy_BEGIN_ALLOW_THREADS
;
7145 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7147 wxPy_END_ALLOW_THREADS
;
7148 if (PyErr_Occurred()) return NULL
;
7149 } Py_INCREF(Py_None
);
7150 _resultobj
= Py_None
;
7154 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7155 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7156 PyObject
* _resultobj
;
7160 PyObject
* _argo0
= 0;
7161 char *_kwnames
[] = { "self","id", NULL
};
7164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7174 wxPy_BEGIN_ALLOW_THREADS
;
7175 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7177 wxPy_END_ALLOW_THREADS
;
7178 if (PyErr_Occurred()) return NULL
;
7179 } _resultobj
= Py_BuildValue("i",_result
);
7183 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7184 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7185 PyObject
* _resultobj
;
7189 PyObject
* _argo0
= 0;
7190 PyObject
* _obj1
= 0;
7191 char *_kwnames
[] = { "self","itemString", NULL
};
7194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7204 #if PYTHON_API_VERSION >= 1009
7205 char* tmpPtr
; int tmpSize
;
7206 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7207 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7210 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7212 _arg1
= new wxString(tmpPtr
, tmpSize
);
7214 if (!PyString_Check(_obj1
)) {
7215 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7218 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7222 wxPy_BEGIN_ALLOW_THREADS
;
7223 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7225 wxPy_END_ALLOW_THREADS
;
7226 if (PyErr_Occurred()) return NULL
;
7227 } _resultobj
= Py_BuildValue("i",_result
);
7235 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7236 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7237 PyObject
* _resultobj
;
7238 wxMenuItem
* _result
;
7241 PyObject
* _argo0
= 0;
7242 char *_kwnames
[] = { "self","id", NULL
};
7245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7255 wxPy_BEGIN_ALLOW_THREADS
;
7256 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7258 wxPy_END_ALLOW_THREADS
;
7259 if (PyErr_Occurred()) return NULL
;
7260 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7264 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7265 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7266 PyObject
* _resultobj
;
7269 PyObject
* _argo0
= 0;
7270 char *_kwnames
[] = { "self", NULL
};
7273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7283 wxPy_BEGIN_ALLOW_THREADS
;
7284 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7286 wxPy_END_ALLOW_THREADS
;
7287 if (PyErr_Occurred()) return NULL
;
7289 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7297 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7298 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7299 PyObject
* _resultobj
;
7302 PyObject
* _argo0
= 0;
7303 PyObject
* _obj1
= 0;
7304 char *_kwnames
[] = { "self","title", NULL
};
7307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7317 #if PYTHON_API_VERSION >= 1009
7318 char* tmpPtr
; int tmpSize
;
7319 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7320 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7323 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7325 _arg1
= new wxString(tmpPtr
, tmpSize
);
7327 if (!PyString_Check(_obj1
)) {
7328 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7331 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7335 wxPy_BEGIN_ALLOW_THREADS
;
7336 wxMenu_SetTitle(_arg0
,*_arg1
);
7338 wxPy_END_ALLOW_THREADS
;
7339 if (PyErr_Occurred()) return NULL
;
7340 } Py_INCREF(Py_None
);
7341 _resultobj
= Py_None
;
7349 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7350 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7351 PyObject
* _resultobj
;
7355 PyObject
* _argo0
= 0;
7356 char *_kwnames
[] = { "self","id", NULL
};
7359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7369 wxPy_BEGIN_ALLOW_THREADS
;
7370 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7372 wxPy_END_ALLOW_THREADS
;
7373 if (PyErr_Occurred()) return NULL
;
7375 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7383 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7384 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7385 PyObject
* _resultobj
;
7389 PyObject
* _argo0
= 0;
7390 PyObject
* _obj2
= 0;
7391 char *_kwnames
[] = { "self","id","label", NULL
};
7394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7404 #if PYTHON_API_VERSION >= 1009
7405 char* tmpPtr
; int tmpSize
;
7406 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7407 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7410 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7412 _arg2
= new wxString(tmpPtr
, tmpSize
);
7414 if (!PyString_Check(_obj2
)) {
7415 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7418 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7422 wxPy_BEGIN_ALLOW_THREADS
;
7423 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7425 wxPy_END_ALLOW_THREADS
;
7426 if (PyErr_Occurred()) return NULL
;
7427 } Py_INCREF(Py_None
);
7428 _resultobj
= Py_None
;
7436 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7437 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7438 PyObject
* _resultobj
;
7442 PyObject
* _argo0
= 0;
7443 char *_kwnames
[] = { "self","id", NULL
};
7446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7456 wxPy_BEGIN_ALLOW_THREADS
;
7457 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7459 wxPy_END_ALLOW_THREADS
;
7460 if (PyErr_Occurred()) return NULL
;
7462 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7470 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7471 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7472 PyObject
* _resultobj
;
7476 PyObject
* _argo0
= 0;
7477 PyObject
* _obj2
= 0;
7478 char *_kwnames
[] = { "self","id","helpString", NULL
};
7481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7491 #if PYTHON_API_VERSION >= 1009
7492 char* tmpPtr
; int tmpSize
;
7493 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7494 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7497 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7499 _arg2
= new wxString(tmpPtr
, tmpSize
);
7501 if (!PyString_Check(_obj2
)) {
7502 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7505 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7509 wxPy_BEGIN_ALLOW_THREADS
;
7510 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7512 wxPy_END_ALLOW_THREADS
;
7513 if (PyErr_Occurred()) return NULL
;
7514 } Py_INCREF(Py_None
);
7515 _resultobj
= Py_None
;
7523 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7524 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7525 PyObject
* _resultobj
;
7527 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7528 PyObject
* _argo0
= 0;
7529 PyObject
* _argo1
= 0;
7530 char *_kwnames
[] = { "self","source", NULL
};
7533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7543 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7544 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7550 wxPy_BEGIN_ALLOW_THREADS
;
7551 wxMenu_UpdateUI(_arg0
,_arg1
);
7553 wxPy_END_ALLOW_THREADS
;
7554 if (PyErr_Occurred()) return NULL
;
7555 } Py_INCREF(Py_None
);
7556 _resultobj
= Py_None
;
7560 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7561 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7562 PyObject
* _resultobj
;
7566 PyObject
* _argo0
= 0;
7567 char *_kwnames
[] = { "self","id", NULL
};
7570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7580 wxPy_BEGIN_ALLOW_THREADS
;
7581 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7583 wxPy_END_ALLOW_THREADS
;
7584 if (PyErr_Occurred()) return NULL
;
7585 } _resultobj
= Py_BuildValue("i",_result
);
7589 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7590 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7591 PyObject
* _resultobj
;
7595 PyObject
* _argo0
= 0;
7596 PyObject
* _argo1
= 0;
7597 char *_kwnames
[] = { "self","item", NULL
};
7600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7610 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7611 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7617 wxPy_BEGIN_ALLOW_THREADS
;
7618 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7620 wxPy_END_ALLOW_THREADS
;
7621 if (PyErr_Occurred()) return NULL
;
7622 } _resultobj
= Py_BuildValue("i",_result
);
7626 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7627 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7628 PyObject
* _resultobj
;
7633 PyObject
* _argo0
= 0;
7634 PyObject
* _argo2
= 0;
7635 char *_kwnames
[] = { "self","pos","item", NULL
};
7638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7648 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7649 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7655 wxPy_BEGIN_ALLOW_THREADS
;
7656 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7658 wxPy_END_ALLOW_THREADS
;
7659 if (PyErr_Occurred()) return NULL
;
7660 } _resultobj
= Py_BuildValue("i",_result
);
7664 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7665 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7666 PyObject
* _resultobj
;
7667 wxMenuItem
* _result
;
7670 PyObject
* _argo0
= 0;
7671 char *_kwnames
[] = { "self","id", NULL
};
7674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7684 wxPy_BEGIN_ALLOW_THREADS
;
7685 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7687 wxPy_END_ALLOW_THREADS
;
7688 if (PyErr_Occurred()) return NULL
;
7689 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7693 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7694 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7695 PyObject
* _resultobj
;
7696 wxMenuItem
* _result
;
7699 PyObject
* _argo0
= 0;
7700 PyObject
* _argo1
= 0;
7701 char *_kwnames
[] = { "self","item", NULL
};
7704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7714 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7715 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7721 wxPy_BEGIN_ALLOW_THREADS
;
7722 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7724 wxPy_END_ALLOW_THREADS
;
7725 if (PyErr_Occurred()) return NULL
;
7726 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7730 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7731 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7732 PyObject
* _resultobj
;
7734 PyObject
* _argo0
= 0;
7735 char *_kwnames
[] = { "self", NULL
};
7738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
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_Destroy. Expected _wxMenu_p.");
7748 wxPy_BEGIN_ALLOW_THREADS
;
7749 wxMenu_Destroy(_arg0
);
7751 wxPy_END_ALLOW_THREADS
;
7752 if (PyErr_Occurred()) return NULL
;
7753 } Py_INCREF(Py_None
);
7754 _resultobj
= Py_None
;
7758 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7759 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7760 PyObject
* _resultobj
;
7764 PyObject
* _argo0
= 0;
7765 char *_kwnames
[] = { "self","id", NULL
};
7768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7778 wxPy_BEGIN_ALLOW_THREADS
;
7779 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7781 wxPy_END_ALLOW_THREADS
;
7782 if (PyErr_Occurred()) return NULL
;
7783 } _resultobj
= Py_BuildValue("i",_result
);
7787 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7788 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7789 PyObject
* _resultobj
;
7793 PyObject
* _argo0
= 0;
7794 PyObject
* _argo1
= 0;
7795 char *_kwnames
[] = { "self","item", NULL
};
7798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7808 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7809 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7815 wxPy_BEGIN_ALLOW_THREADS
;
7816 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7818 wxPy_END_ALLOW_THREADS
;
7819 if (PyErr_Occurred()) return NULL
;
7820 } _resultobj
= Py_BuildValue("i",_result
);
7824 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7825 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7826 PyObject
* _resultobj
;
7829 PyObject
* _argo0
= 0;
7830 char *_kwnames
[] = { "self", NULL
};
7833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7843 wxPy_BEGIN_ALLOW_THREADS
;
7844 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7846 wxPy_END_ALLOW_THREADS
;
7847 if (PyErr_Occurred()) return NULL
;
7848 } _resultobj
= Py_BuildValue("i",_result
);
7852 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7853 wxMenuItemList
& list
= self
->GetMenuItems();
7854 return wxPy_ConvertList(&list
, "wxMenuItem");
7856 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7857 PyObject
* _resultobj
;
7860 PyObject
* _argo0
= 0;
7861 char *_kwnames
[] = { "self", NULL
};
7864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7874 wxPy_BEGIN_ALLOW_THREADS
;
7875 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7877 wxPy_END_ALLOW_THREADS
;
7878 if (PyErr_Occurred()) return NULL
;
7880 _resultobj
= _result
;
7885 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7886 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7887 PyObject
* _resultobj
;
7889 wxEvtHandler
* _arg1
;
7890 PyObject
* _argo0
= 0;
7891 PyObject
* _argo1
= 0;
7892 char *_kwnames
[] = { "self","handler", NULL
};
7895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7905 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7906 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7912 wxPy_BEGIN_ALLOW_THREADS
;
7913 wxMenu_SetEventHandler(_arg0
,_arg1
);
7915 wxPy_END_ALLOW_THREADS
;
7916 if (PyErr_Occurred()) return NULL
;
7917 } Py_INCREF(Py_None
);
7918 _resultobj
= Py_None
;
7922 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7923 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7924 PyObject
* _resultobj
;
7925 wxEvtHandler
* _result
;
7927 PyObject
* _argo0
= 0;
7928 char *_kwnames
[] = { "self", NULL
};
7931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7941 wxPy_BEGIN_ALLOW_THREADS
;
7942 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
7944 wxPy_END_ALLOW_THREADS
;
7945 if (PyErr_Occurred()) return NULL
;
7946 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7950 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7951 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7952 PyObject
* _resultobj
;
7955 PyObject
* _argo0
= 0;
7956 PyObject
* _argo1
= 0;
7957 char *_kwnames
[] = { "self","win", NULL
};
7960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
7963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7970 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7971 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7977 wxPy_BEGIN_ALLOW_THREADS
;
7978 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
7980 wxPy_END_ALLOW_THREADS
;
7981 if (PyErr_Occurred()) return NULL
;
7982 } Py_INCREF(Py_None
);
7983 _resultobj
= Py_None
;
7987 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7988 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7989 PyObject
* _resultobj
;
7992 PyObject
* _argo0
= 0;
7993 char *_kwnames
[] = { "self", NULL
};
7996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
7999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8006 wxPy_BEGIN_ALLOW_THREADS
;
8007 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8009 wxPy_END_ALLOW_THREADS
;
8010 if (PyErr_Occurred()) return NULL
;
8011 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8015 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8016 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8017 PyObject
* _resultobj
;
8020 PyObject
* _argo0
= 0;
8021 char *_kwnames
[] = { "self", NULL
};
8024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8034 wxPy_BEGIN_ALLOW_THREADS
;
8035 _result
= (long )wxMenu_GetStyle(_arg0
);
8037 wxPy_END_ALLOW_THREADS
;
8038 if (PyErr_Occurred()) return NULL
;
8039 } _resultobj
= Py_BuildValue("l",_result
);
8043 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8044 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8045 PyObject
* _resultobj
;
8048 PyObject
* _argo0
= 0;
8049 char *_kwnames
[] = { "self", NULL
};
8052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8062 wxPy_BEGIN_ALLOW_THREADS
;
8063 _result
= (bool )wxMenu_IsAttached(_arg0
);
8065 wxPy_END_ALLOW_THREADS
;
8066 if (PyErr_Occurred()) return NULL
;
8067 } _resultobj
= Py_BuildValue("i",_result
);
8071 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8072 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8073 PyObject
* _resultobj
;
8076 PyObject
* _argo0
= 0;
8077 PyObject
* _argo1
= 0;
8078 char *_kwnames
[] = { "self","parent", NULL
};
8081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8091 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8092 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8098 wxPy_BEGIN_ALLOW_THREADS
;
8099 wxMenu_SetParent(_arg0
,_arg1
);
8101 wxPy_END_ALLOW_THREADS
;
8102 if (PyErr_Occurred()) return NULL
;
8103 } Py_INCREF(Py_None
);
8104 _resultobj
= Py_None
;
8108 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8109 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8110 PyObject
* _resultobj
;
8113 PyObject
* _argo0
= 0;
8114 char *_kwnames
[] = { "self", NULL
};
8117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8127 wxPy_BEGIN_ALLOW_THREADS
;
8128 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8130 wxPy_END_ALLOW_THREADS
;
8131 if (PyErr_Occurred()) return NULL
;
8132 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8136 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8139 src
= (wxMenuBar
*) ptr
;
8140 dest
= (wxWindow
*) src
;
8141 return (void *) dest
;
8144 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8147 src
= (wxMenuBar
*) ptr
;
8148 dest
= (wxEvtHandler
*) src
;
8149 return (void *) dest
;
8152 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8155 src
= (wxMenuBar
*) ptr
;
8156 dest
= (wxObject
*) src
;
8157 return (void *) dest
;
8160 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8161 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8162 PyObject
* _resultobj
;
8163 wxMenuBar
* _result
;
8164 long _arg0
= (long ) 0;
8165 char *_kwnames
[] = { "style", NULL
};
8169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8172 wxPy_BEGIN_ALLOW_THREADS
;
8173 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8175 wxPy_END_ALLOW_THREADS
;
8176 if (PyErr_Occurred()) return NULL
;
8178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8179 _resultobj
= Py_BuildValue("s",_ptemp
);
8182 _resultobj
= Py_None
;
8187 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8188 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8189 PyObject
* _resultobj
;
8194 PyObject
* _argo0
= 0;
8195 PyObject
* _argo1
= 0;
8196 PyObject
* _obj2
= 0;
8197 char *_kwnames
[] = { "self","menu","title", NULL
};
8200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8210 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8211 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8217 #if PYTHON_API_VERSION >= 1009
8218 char* tmpPtr
; int tmpSize
;
8219 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8220 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8223 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8225 _arg2
= new wxString(tmpPtr
, tmpSize
);
8227 if (!PyString_Check(_obj2
)) {
8228 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8231 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8235 wxPy_BEGIN_ALLOW_THREADS
;
8236 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8238 wxPy_END_ALLOW_THREADS
;
8239 if (PyErr_Occurred()) return NULL
;
8240 } _resultobj
= Py_BuildValue("i",_result
);
8248 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8249 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8250 PyObject
* _resultobj
;
8256 PyObject
* _argo0
= 0;
8257 PyObject
* _argo2
= 0;
8258 PyObject
* _obj3
= 0;
8259 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8272 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8273 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8279 #if PYTHON_API_VERSION >= 1009
8280 char* tmpPtr
; int tmpSize
;
8281 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8282 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8285 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8287 _arg3
= new wxString(tmpPtr
, tmpSize
);
8289 if (!PyString_Check(_obj3
)) {
8290 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8293 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8297 wxPy_BEGIN_ALLOW_THREADS
;
8298 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8300 wxPy_END_ALLOW_THREADS
;
8301 if (PyErr_Occurred()) return NULL
;
8302 } _resultobj
= Py_BuildValue("i",_result
);
8310 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8311 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8312 PyObject
* _resultobj
;
8315 PyObject
* _argo0
= 0;
8316 char *_kwnames
[] = { "self", NULL
};
8319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8329 wxPy_BEGIN_ALLOW_THREADS
;
8330 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8332 wxPy_END_ALLOW_THREADS
;
8333 if (PyErr_Occurred()) return NULL
;
8334 } _resultobj
= Py_BuildValue("i",_result
);
8338 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8339 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8340 PyObject
* _resultobj
;
8344 PyObject
* _argo0
= 0;
8345 char *_kwnames
[] = { "self","pos", NULL
};
8348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8358 wxPy_BEGIN_ALLOW_THREADS
;
8359 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8361 wxPy_END_ALLOW_THREADS
;
8362 if (PyErr_Occurred()) return NULL
;
8363 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8367 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8368 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8369 PyObject
* _resultobj
;
8375 PyObject
* _argo0
= 0;
8376 PyObject
* _argo2
= 0;
8377 PyObject
* _obj3
= 0;
8378 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8391 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8392 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8398 #if PYTHON_API_VERSION >= 1009
8399 char* tmpPtr
; int tmpSize
;
8400 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8401 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8404 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8406 _arg3
= new wxString(tmpPtr
, tmpSize
);
8408 if (!PyString_Check(_obj3
)) {
8409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8412 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8416 wxPy_BEGIN_ALLOW_THREADS
;
8417 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8419 wxPy_END_ALLOW_THREADS
;
8420 if (PyErr_Occurred()) return NULL
;
8421 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8429 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8430 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8431 PyObject
* _resultobj
;
8435 PyObject
* _argo0
= 0;
8436 char *_kwnames
[] = { "self","pos", NULL
};
8439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8449 wxPy_BEGIN_ALLOW_THREADS
;
8450 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8452 wxPy_END_ALLOW_THREADS
;
8453 if (PyErr_Occurred()) return NULL
;
8454 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8458 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8459 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8460 PyObject
* _resultobj
;
8464 PyObject
* _argo0
= 0;
8466 char *_kwnames
[] = { "self","pos","enable", NULL
};
8469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8478 _arg2
= (bool ) tempbool2
;
8480 wxPy_BEGIN_ALLOW_THREADS
;
8481 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8483 wxPy_END_ALLOW_THREADS
;
8484 if (PyErr_Occurred()) return NULL
;
8485 } Py_INCREF(Py_None
);
8486 _resultobj
= Py_None
;
8490 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8491 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8492 PyObject
* _resultobj
;
8496 PyObject
* _argo0
= 0;
8497 PyObject
* _obj2
= 0;
8498 char *_kwnames
[] = { "self","pos","label", NULL
};
8501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8504 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8505 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8511 #if PYTHON_API_VERSION >= 1009
8512 char* tmpPtr
; int tmpSize
;
8513 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8514 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8517 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8519 _arg2
= new wxString(tmpPtr
, tmpSize
);
8521 if (!PyString_Check(_obj2
)) {
8522 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8525 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8529 wxPy_BEGIN_ALLOW_THREADS
;
8530 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8532 wxPy_END_ALLOW_THREADS
;
8533 if (PyErr_Occurred()) return NULL
;
8534 } Py_INCREF(Py_None
);
8535 _resultobj
= Py_None
;
8543 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8544 static PyObject
*_wrap_wxMenuBar_GetLabelTop(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_GetLabelTop",_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_GetLabelTop. Expected _wxMenuBar_p.");
8563 wxPy_BEGIN_ALLOW_THREADS
;
8564 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8566 wxPy_END_ALLOW_THREADS
;
8567 if (PyErr_Occurred()) return NULL
;
8569 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8577 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8578 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8579 PyObject
* _resultobj
;
8583 PyObject
* _argo0
= 0;
8584 PyObject
* _obj1
= 0;
8585 char *_kwnames
[] = { "self","title", NULL
};
8588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8598 #if PYTHON_API_VERSION >= 1009
8599 char* tmpPtr
; int tmpSize
;
8600 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8601 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8604 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8606 _arg1
= new wxString(tmpPtr
, tmpSize
);
8608 if (!PyString_Check(_obj1
)) {
8609 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8612 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8616 wxPy_BEGIN_ALLOW_THREADS
;
8617 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8619 wxPy_END_ALLOW_THREADS
;
8620 if (PyErr_Occurred()) return NULL
;
8621 } _resultobj
= Py_BuildValue("i",_result
);
8629 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8630 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8631 PyObject
* _resultobj
;
8636 PyObject
* _argo0
= 0;
8637 PyObject
* _obj1
= 0;
8638 PyObject
* _obj2
= 0;
8639 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8652 #if PYTHON_API_VERSION >= 1009
8653 char* tmpPtr
; int tmpSize
;
8654 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8655 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8658 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8660 _arg1
= new wxString(tmpPtr
, tmpSize
);
8662 if (!PyString_Check(_obj1
)) {
8663 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8666 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8670 #if PYTHON_API_VERSION >= 1009
8671 char* tmpPtr
; int tmpSize
;
8672 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8676 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8678 _arg2
= new wxString(tmpPtr
, tmpSize
);
8680 if (!PyString_Check(_obj2
)) {
8681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8684 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8688 wxPy_BEGIN_ALLOW_THREADS
;
8689 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8691 wxPy_END_ALLOW_THREADS
;
8692 if (PyErr_Occurred()) return NULL
;
8693 } _resultobj
= Py_BuildValue("i",_result
);
8705 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8706 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8707 PyObject
* _resultobj
;
8708 wxMenuItem
* _result
;
8711 PyObject
* _argo0
= 0;
8712 char *_kwnames
[] = { "self","id", NULL
};
8715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8725 wxPy_BEGIN_ALLOW_THREADS
;
8726 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8728 wxPy_END_ALLOW_THREADS
;
8729 if (PyErr_Occurred()) return NULL
;
8730 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8734 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8735 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8736 PyObject
* _resultobj
;
8740 PyObject
* _argo0
= 0;
8742 char *_kwnames
[] = { "self","id","enable", NULL
};
8745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8754 _arg2
= (bool ) tempbool2
;
8756 wxPy_BEGIN_ALLOW_THREADS
;
8757 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8759 wxPy_END_ALLOW_THREADS
;
8760 if (PyErr_Occurred()) return NULL
;
8761 } Py_INCREF(Py_None
);
8762 _resultobj
= Py_None
;
8766 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8767 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8768 PyObject
* _resultobj
;
8772 PyObject
* _argo0
= 0;
8774 char *_kwnames
[] = { "self","id","check", NULL
};
8777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8786 _arg2
= (bool ) tempbool2
;
8788 wxPy_BEGIN_ALLOW_THREADS
;
8789 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8791 wxPy_END_ALLOW_THREADS
;
8792 if (PyErr_Occurred()) return NULL
;
8793 } Py_INCREF(Py_None
);
8794 _resultobj
= Py_None
;
8798 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8799 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8800 PyObject
* _resultobj
;
8804 PyObject
* _argo0
= 0;
8805 char *_kwnames
[] = { "self","id", NULL
};
8808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8818 wxPy_BEGIN_ALLOW_THREADS
;
8819 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8821 wxPy_END_ALLOW_THREADS
;
8822 if (PyErr_Occurred()) return NULL
;
8823 } _resultobj
= Py_BuildValue("i",_result
);
8827 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8828 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8829 PyObject
* _resultobj
;
8833 PyObject
* _argo0
= 0;
8834 char *_kwnames
[] = { "self","id", NULL
};
8837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8847 wxPy_BEGIN_ALLOW_THREADS
;
8848 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8850 wxPy_END_ALLOW_THREADS
;
8851 if (PyErr_Occurred()) return NULL
;
8852 } _resultobj
= Py_BuildValue("i",_result
);
8856 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8857 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8858 PyObject
* _resultobj
;
8862 PyObject
* _argo0
= 0;
8863 PyObject
* _obj2
= 0;
8864 char *_kwnames
[] = { "self","id","label", NULL
};
8867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8877 #if PYTHON_API_VERSION >= 1009
8878 char* tmpPtr
; int tmpSize
;
8879 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8880 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8883 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8885 _arg2
= new wxString(tmpPtr
, tmpSize
);
8887 if (!PyString_Check(_obj2
)) {
8888 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8891 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8895 wxPy_BEGIN_ALLOW_THREADS
;
8896 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8898 wxPy_END_ALLOW_THREADS
;
8899 if (PyErr_Occurred()) return NULL
;
8900 } Py_INCREF(Py_None
);
8901 _resultobj
= Py_None
;
8909 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8910 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8911 PyObject
* _resultobj
;
8915 PyObject
* _argo0
= 0;
8916 char *_kwnames
[] = { "self","id", NULL
};
8919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8929 wxPy_BEGIN_ALLOW_THREADS
;
8930 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8932 wxPy_END_ALLOW_THREADS
;
8933 if (PyErr_Occurred()) return NULL
;
8935 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8943 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8944 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8945 PyObject
* _resultobj
;
8949 PyObject
* _argo0
= 0;
8950 PyObject
* _obj2
= 0;
8951 char *_kwnames
[] = { "self","id","helpString", NULL
};
8954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8964 #if PYTHON_API_VERSION >= 1009
8965 char* tmpPtr
; int tmpSize
;
8966 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8967 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8970 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8972 _arg2
= new wxString(tmpPtr
, tmpSize
);
8974 if (!PyString_Check(_obj2
)) {
8975 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8978 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8982 wxPy_BEGIN_ALLOW_THREADS
;
8983 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8985 wxPy_END_ALLOW_THREADS
;
8986 if (PyErr_Occurred()) return NULL
;
8987 } Py_INCREF(Py_None
);
8988 _resultobj
= Py_None
;
8996 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8997 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8998 PyObject
* _resultobj
;
9002 PyObject
* _argo0
= 0;
9003 char *_kwnames
[] = { "self","id", NULL
};
9006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9016 wxPy_BEGIN_ALLOW_THREADS
;
9017 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9019 wxPy_END_ALLOW_THREADS
;
9020 if (PyErr_Occurred()) return NULL
;
9022 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9030 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9033 src
= (wxMenuItem
*) ptr
;
9034 dest
= (wxObject
*) src
;
9035 return (void *) dest
;
9038 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9039 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9040 PyObject
* _resultobj
;
9041 wxMenuItem
* _result
;
9042 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9043 int _arg1
= (int ) wxID_SEPARATOR
;
9044 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9045 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9046 bool _arg4
= (bool ) FALSE
;
9047 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9048 PyObject
* _argo0
= 0;
9049 PyObject
* _obj2
= 0;
9050 PyObject
* _obj3
= 0;
9051 int tempbool4
= (int) FALSE
;
9052 PyObject
* _argo5
= 0;
9053 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9068 #if PYTHON_API_VERSION >= 1009
9069 char* tmpPtr
; int tmpSize
;
9070 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9071 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9074 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9076 _arg2
= new wxString(tmpPtr
, tmpSize
);
9078 if (!PyString_Check(_obj2
)) {
9079 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9082 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9087 #if PYTHON_API_VERSION >= 1009
9088 char* tmpPtr
; int tmpSize
;
9089 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9090 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9093 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9095 _arg3
= new wxString(tmpPtr
, tmpSize
);
9097 if (!PyString_Check(_obj3
)) {
9098 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9101 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9104 _arg4
= (bool ) tempbool4
;
9106 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9107 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9113 wxPy_BEGIN_ALLOW_THREADS
;
9114 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9116 wxPy_END_ALLOW_THREADS
;
9117 if (PyErr_Occurred()) return NULL
;
9119 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9120 _resultobj
= Py_BuildValue("s",_ptemp
);
9123 _resultobj
= Py_None
;
9136 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9137 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9138 PyObject
* _resultobj
;
9141 PyObject
* _argo0
= 0;
9142 char *_kwnames
[] = { "self", NULL
};
9145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9155 wxPy_BEGIN_ALLOW_THREADS
;
9156 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9158 wxPy_END_ALLOW_THREADS
;
9159 if (PyErr_Occurred()) return NULL
;
9160 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9164 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9165 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9166 PyObject
* _resultobj
;
9169 PyObject
* _argo0
= 0;
9170 char *_kwnames
[] = { "self","id", NULL
};
9173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9183 wxPy_BEGIN_ALLOW_THREADS
;
9184 wxMenuItem_SetId(_arg0
,_arg1
);
9186 wxPy_END_ALLOW_THREADS
;
9187 if (PyErr_Occurred()) return NULL
;
9188 } Py_INCREF(Py_None
);
9189 _resultobj
= Py_None
;
9193 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9194 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9195 PyObject
* _resultobj
;
9198 PyObject
* _argo0
= 0;
9199 char *_kwnames
[] = { "self", NULL
};
9202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9212 wxPy_BEGIN_ALLOW_THREADS
;
9213 _result
= (int )wxMenuItem_GetId(_arg0
);
9215 wxPy_END_ALLOW_THREADS
;
9216 if (PyErr_Occurred()) return NULL
;
9217 } _resultobj
= Py_BuildValue("i",_result
);
9221 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9222 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9223 PyObject
* _resultobj
;
9226 PyObject
* _argo0
= 0;
9227 char *_kwnames
[] = { "self", NULL
};
9230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9240 wxPy_BEGIN_ALLOW_THREADS
;
9241 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9243 wxPy_END_ALLOW_THREADS
;
9244 if (PyErr_Occurred()) return NULL
;
9245 } _resultobj
= Py_BuildValue("i",_result
);
9249 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9250 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9251 PyObject
* _resultobj
;
9254 PyObject
* _argo0
= 0;
9255 PyObject
* _obj1
= 0;
9256 char *_kwnames
[] = { "self","str", NULL
};
9259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9269 #if PYTHON_API_VERSION >= 1009
9270 char* tmpPtr
; int tmpSize
;
9271 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9272 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9275 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9277 _arg1
= new wxString(tmpPtr
, tmpSize
);
9279 if (!PyString_Check(_obj1
)) {
9280 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9283 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9287 wxPy_BEGIN_ALLOW_THREADS
;
9288 wxMenuItem_SetText(_arg0
,*_arg1
);
9290 wxPy_END_ALLOW_THREADS
;
9291 if (PyErr_Occurred()) return NULL
;
9292 } Py_INCREF(Py_None
);
9293 _resultobj
= Py_None
;
9301 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9302 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9303 PyObject
* _resultobj
;
9306 PyObject
* _argo0
= 0;
9307 char *_kwnames
[] = { "self", NULL
};
9310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9320 wxPy_BEGIN_ALLOW_THREADS
;
9321 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9323 wxPy_END_ALLOW_THREADS
;
9324 if (PyErr_Occurred()) return NULL
;
9326 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9334 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9335 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9336 PyObject
* _resultobj
;
9339 PyObject
* _argo0
= 0;
9340 char *_kwnames
[] = { "self", NULL
};
9343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9353 wxPy_BEGIN_ALLOW_THREADS
;
9354 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9355 _result
= (wxString
*) &_result_ref
;
9357 wxPy_END_ALLOW_THREADS
;
9358 if (PyErr_Occurred()) return NULL
;
9360 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9365 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9366 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9367 PyObject
* _resultobj
;
9370 PyObject
* _argo0
= 0;
9372 char *_kwnames
[] = { "self","checkable", NULL
};
9375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9384 _arg1
= (bool ) tempbool1
;
9386 wxPy_BEGIN_ALLOW_THREADS
;
9387 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9389 wxPy_END_ALLOW_THREADS
;
9390 if (PyErr_Occurred()) return NULL
;
9391 } Py_INCREF(Py_None
);
9392 _resultobj
= Py_None
;
9396 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9397 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9398 PyObject
* _resultobj
;
9401 PyObject
* _argo0
= 0;
9402 char *_kwnames
[] = { "self", NULL
};
9405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9415 wxPy_BEGIN_ALLOW_THREADS
;
9416 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9418 wxPy_END_ALLOW_THREADS
;
9419 if (PyErr_Occurred()) return NULL
;
9420 } _resultobj
= Py_BuildValue("i",_result
);
9424 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9425 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9426 PyObject
* _resultobj
;
9429 PyObject
* _argo0
= 0;
9430 char *_kwnames
[] = { "self", NULL
};
9433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9443 wxPy_BEGIN_ALLOW_THREADS
;
9444 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9446 wxPy_END_ALLOW_THREADS
;
9447 if (PyErr_Occurred()) return NULL
;
9448 } _resultobj
= Py_BuildValue("i",_result
);
9452 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9453 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9454 PyObject
* _resultobj
;
9457 PyObject
* _argo0
= 0;
9458 PyObject
* _argo1
= 0;
9459 char *_kwnames
[] = { "self","menu", NULL
};
9462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9472 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9473 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9479 wxPy_BEGIN_ALLOW_THREADS
;
9480 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9482 wxPy_END_ALLOW_THREADS
;
9483 if (PyErr_Occurred()) return NULL
;
9484 } Py_INCREF(Py_None
);
9485 _resultobj
= Py_None
;
9489 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9490 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9491 PyObject
* _resultobj
;
9494 PyObject
* _argo0
= 0;
9495 char *_kwnames
[] = { "self", NULL
};
9498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9508 wxPy_BEGIN_ALLOW_THREADS
;
9509 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9511 wxPy_END_ALLOW_THREADS
;
9512 if (PyErr_Occurred()) return NULL
;
9513 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9517 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9518 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9519 PyObject
* _resultobj
;
9521 bool _arg1
= (bool ) TRUE
;
9522 PyObject
* _argo0
= 0;
9523 int tempbool1
= (int) TRUE
;
9524 char *_kwnames
[] = { "self","enable", NULL
};
9527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9536 _arg1
= (bool ) tempbool1
;
9538 wxPy_BEGIN_ALLOW_THREADS
;
9539 wxMenuItem_Enable(_arg0
,_arg1
);
9541 wxPy_END_ALLOW_THREADS
;
9542 if (PyErr_Occurred()) return NULL
;
9543 } Py_INCREF(Py_None
);
9544 _resultobj
= Py_None
;
9548 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9549 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9550 PyObject
* _resultobj
;
9553 PyObject
* _argo0
= 0;
9554 char *_kwnames
[] = { "self", NULL
};
9557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9567 wxPy_BEGIN_ALLOW_THREADS
;
9568 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9570 wxPy_END_ALLOW_THREADS
;
9571 if (PyErr_Occurred()) return NULL
;
9572 } _resultobj
= Py_BuildValue("i",_result
);
9576 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9577 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9578 PyObject
* _resultobj
;
9580 bool _arg1
= (bool ) TRUE
;
9581 PyObject
* _argo0
= 0;
9582 int tempbool1
= (int) TRUE
;
9583 char *_kwnames
[] = { "self","check", NULL
};
9586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9595 _arg1
= (bool ) tempbool1
;
9597 wxPy_BEGIN_ALLOW_THREADS
;
9598 wxMenuItem_Check(_arg0
,_arg1
);
9600 wxPy_END_ALLOW_THREADS
;
9601 if (PyErr_Occurred()) return NULL
;
9602 } Py_INCREF(Py_None
);
9603 _resultobj
= Py_None
;
9607 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9608 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9609 PyObject
* _resultobj
;
9612 PyObject
* _argo0
= 0;
9613 char *_kwnames
[] = { "self", NULL
};
9616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9626 wxPy_BEGIN_ALLOW_THREADS
;
9627 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9629 wxPy_END_ALLOW_THREADS
;
9630 if (PyErr_Occurred()) return NULL
;
9631 } _resultobj
= Py_BuildValue("i",_result
);
9635 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9636 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9637 PyObject
* _resultobj
;
9639 PyObject
* _argo0
= 0;
9640 char *_kwnames
[] = { "self", NULL
};
9643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9653 wxPy_BEGIN_ALLOW_THREADS
;
9654 wxMenuItem_Toggle(_arg0
);
9656 wxPy_END_ALLOW_THREADS
;
9657 if (PyErr_Occurred()) return NULL
;
9658 } Py_INCREF(Py_None
);
9659 _resultobj
= Py_None
;
9663 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9664 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9665 PyObject
* _resultobj
;
9668 PyObject
* _argo0
= 0;
9669 PyObject
* _obj1
= 0;
9670 char *_kwnames
[] = { "self","str", NULL
};
9673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9683 #if PYTHON_API_VERSION >= 1009
9684 char* tmpPtr
; int tmpSize
;
9685 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9686 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9689 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9691 _arg1
= new wxString(tmpPtr
, tmpSize
);
9693 if (!PyString_Check(_obj1
)) {
9694 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9697 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9701 wxPy_BEGIN_ALLOW_THREADS
;
9702 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9704 wxPy_END_ALLOW_THREADS
;
9705 if (PyErr_Occurred()) return NULL
;
9706 } Py_INCREF(Py_None
);
9707 _resultobj
= Py_None
;
9715 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9716 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9717 PyObject
* _resultobj
;
9720 PyObject
* _argo0
= 0;
9721 char *_kwnames
[] = { "self", NULL
};
9724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9734 wxPy_BEGIN_ALLOW_THREADS
;
9735 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9736 _result
= (wxString
*) &_result_ref
;
9738 wxPy_END_ALLOW_THREADS
;
9739 if (PyErr_Occurred()) return NULL
;
9741 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9746 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9747 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9748 PyObject
* _resultobj
;
9749 wxAcceleratorEntry
* _result
;
9751 PyObject
* _argo0
= 0;
9752 char *_kwnames
[] = { "self", NULL
};
9756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9766 wxPy_BEGIN_ALLOW_THREADS
;
9767 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9769 wxPy_END_ALLOW_THREADS
;
9770 if (PyErr_Occurred()) return NULL
;
9772 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9773 _resultobj
= Py_BuildValue("s",_ptemp
);
9776 _resultobj
= Py_None
;
9781 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9782 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9783 PyObject
* _resultobj
;
9785 wxAcceleratorEntry
* _arg1
;
9786 PyObject
* _argo0
= 0;
9787 PyObject
* _argo1
= 0;
9788 char *_kwnames
[] = { "self","accel", NULL
};
9791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
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_SetAccel. Expected _wxMenuItem_p.");
9801 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9802 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9808 wxPy_BEGIN_ALLOW_THREADS
;
9809 wxMenuItem_SetAccel(_arg0
,_arg1
);
9811 wxPy_END_ALLOW_THREADS
;
9812 if (PyErr_Occurred()) return NULL
;
9813 } Py_INCREF(Py_None
);
9814 _resultobj
= Py_None
;
9818 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9819 PyObject
* _resultobj
;
9822 PyObject
* _obj0
= 0;
9823 char *_kwnames
[] = { "text", NULL
};
9826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9829 #if PYTHON_API_VERSION >= 1009
9830 char* tmpPtr
; int tmpSize
;
9831 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9832 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9835 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9837 _arg0
= new wxString(tmpPtr
, tmpSize
);
9839 if (!PyString_Check(_obj0
)) {
9840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9843 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9847 wxPy_BEGIN_ALLOW_THREADS
;
9848 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9850 wxPy_END_ALLOW_THREADS
;
9851 if (PyErr_Occurred()) return NULL
;
9853 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9865 static PyMethodDef windowscMethods
[] = {
9866 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
9867 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9868 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9869 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9870 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9871 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
9872 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9873 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
9874 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9875 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9876 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9877 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9878 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9879 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9880 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9881 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
9882 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9883 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
9884 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9885 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
9886 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9887 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9888 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9889 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9890 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9891 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9892 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9893 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9894 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9895 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
9896 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9897 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9898 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9899 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
9900 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9901 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9902 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
9903 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9904 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9905 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9906 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
9907 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9908 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
9909 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10143 * This table is used by the pointer type-checker
10145 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10146 { "_signed_long","_long",0},
10147 { "_wxPrintQuality","_wxCoord",0},
10148 { "_wxPrintQuality","_int",0},
10149 { "_wxPrintQuality","_signed_int",0},
10150 { "_wxPrintQuality","_unsigned_int",0},
10151 { "_wxPrintQuality","_wxWindowID",0},
10152 { "_wxPrintQuality","_uint",0},
10153 { "_wxPrintQuality","_EBool",0},
10154 { "_wxPrintQuality","_size_t",0},
10155 { "_wxPrintQuality","_time_t",0},
10156 { "_byte","_unsigned_char",0},
10157 { "_long","_unsigned_long",0},
10158 { "_long","_signed_long",0},
10159 { "_size_t","_wxCoord",0},
10160 { "_size_t","_wxPrintQuality",0},
10161 { "_size_t","_time_t",0},
10162 { "_size_t","_unsigned_int",0},
10163 { "_size_t","_int",0},
10164 { "_size_t","_wxWindowID",0},
10165 { "_size_t","_uint",0},
10166 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10167 { "_uint","_wxCoord",0},
10168 { "_uint","_wxPrintQuality",0},
10169 { "_uint","_time_t",0},
10170 { "_uint","_size_t",0},
10171 { "_uint","_unsigned_int",0},
10172 { "_uint","_int",0},
10173 { "_uint","_wxWindowID",0},
10174 { "_wxChar","_char",0},
10175 { "_char","_wxChar",0},
10176 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10177 { "_EBool","_wxCoord",0},
10178 { "_EBool","_wxPrintQuality",0},
10179 { "_EBool","_signed_int",0},
10180 { "_EBool","_int",0},
10181 { "_EBool","_wxWindowID",0},
10182 { "_unsigned_long","_long",0},
10183 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10184 { "_signed_int","_wxCoord",0},
10185 { "_signed_int","_wxPrintQuality",0},
10186 { "_signed_int","_EBool",0},
10187 { "_signed_int","_wxWindowID",0},
10188 { "_signed_int","_int",0},
10189 { "_WXTYPE","_short",0},
10190 { "_WXTYPE","_signed_short",0},
10191 { "_WXTYPE","_unsigned_short",0},
10192 { "_unsigned_short","_WXTYPE",0},
10193 { "_unsigned_short","_short",0},
10194 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10195 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10196 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10197 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10198 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10199 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10200 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10201 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10202 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10203 { "_signed_short","_WXTYPE",0},
10204 { "_signed_short","_short",0},
10205 { "_unsigned_char","_byte",0},
10206 { "_unsigned_int","_wxCoord",0},
10207 { "_unsigned_int","_wxPrintQuality",0},
10208 { "_unsigned_int","_time_t",0},
10209 { "_unsigned_int","_size_t",0},
10210 { "_unsigned_int","_uint",0},
10211 { "_unsigned_int","_wxWindowID",0},
10212 { "_unsigned_int","_int",0},
10213 { "_short","_WXTYPE",0},
10214 { "_short","_unsigned_short",0},
10215 { "_short","_signed_short",0},
10216 { "_wxWindowID","_wxCoord",0},
10217 { "_wxWindowID","_wxPrintQuality",0},
10218 { "_wxWindowID","_time_t",0},
10219 { "_wxWindowID","_size_t",0},
10220 { "_wxWindowID","_EBool",0},
10221 { "_wxWindowID","_uint",0},
10222 { "_wxWindowID","_int",0},
10223 { "_wxWindowID","_signed_int",0},
10224 { "_wxWindowID","_unsigned_int",0},
10225 { "_int","_wxCoord",0},
10226 { "_int","_wxPrintQuality",0},
10227 { "_int","_time_t",0},
10228 { "_int","_size_t",0},
10229 { "_int","_EBool",0},
10230 { "_int","_uint",0},
10231 { "_int","_wxWindowID",0},
10232 { "_int","_unsigned_int",0},
10233 { "_int","_signed_int",0},
10234 { "_time_t","_wxCoord",0},
10235 { "_time_t","_wxPrintQuality",0},
10236 { "_time_t","_unsigned_int",0},
10237 { "_time_t","_int",0},
10238 { "_time_t","_wxWindowID",0},
10239 { "_time_t","_uint",0},
10240 { "_time_t","_size_t",0},
10241 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10242 { "_wxCoord","_int",0},
10243 { "_wxCoord","_signed_int",0},
10244 { "_wxCoord","_unsigned_int",0},
10245 { "_wxCoord","_wxWindowID",0},
10246 { "_wxCoord","_uint",0},
10247 { "_wxCoord","_EBool",0},
10248 { "_wxCoord","_size_t",0},
10249 { "_wxCoord","_time_t",0},
10250 { "_wxCoord","_wxPrintQuality",0},
10251 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10252 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10253 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10254 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10255 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10256 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10257 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10258 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10259 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10260 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10263 static PyObject
*SWIG_globals
;
10267 SWIGEXPORT(void) initwindowsc() {
10269 SWIG_globals
= SWIG_newvarlink();
10270 m
= Py_InitModule("windowsc", windowscMethods
);
10271 d
= PyModule_GetDict(m
);
10274 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10275 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);