2 * FILE : src/gtk/windows.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type 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_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5073 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5074 PyObject
* _resultobj
;
5076 wxDropTarget
* _arg1
;
5077 PyObject
* _argo0
= 0;
5078 PyObject
* _argo1
= 0;
5079 char *_kwnames
[] = { "self","target", NULL
};
5082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
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_SetDropTarget. Expected _wxWindow_p.");
5092 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5093 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5099 wxPy_BEGIN_ALLOW_THREADS
;
5100 wxWindow_SetDropTarget(_arg0
,_arg1
);
5102 wxPy_END_ALLOW_THREADS
;
5103 if (PyErr_Occurred()) return NULL
;
5104 } Py_INCREF(Py_None
);
5105 _resultobj
= Py_None
;
5109 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5110 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5111 PyObject
* _resultobj
;
5112 wxDropTarget
* _result
;
5114 PyObject
* _argo0
= 0;
5115 char *_kwnames
[] = { "self", NULL
};
5119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5129 wxPy_BEGIN_ALLOW_THREADS
;
5130 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5132 wxPy_END_ALLOW_THREADS
;
5133 if (PyErr_Occurred()) return NULL
;
5135 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5136 _resultobj
= Py_BuildValue("s",_ptemp
);
5139 _resultobj
= Py_None
;
5144 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5145 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5146 PyObject
* _resultobj
;
5149 PyObject
* _argo0
= 0;
5150 char *_kwnames
[] = { "self", NULL
};
5154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5164 wxPy_BEGIN_ALLOW_THREADS
;
5165 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5167 wxPy_END_ALLOW_THREADS
;
5168 if (PyErr_Occurred()) return NULL
;
5169 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5170 _resultobj
= Py_BuildValue("s",_ptemp
);
5174 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5175 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5176 PyObject
* _resultobj
;
5179 PyObject
* _argo0
= 0;
5180 PyObject
* _argo1
= 0;
5181 char *_kwnames
[] = { "self","caret", NULL
};
5184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5194 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5195 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5201 wxPy_BEGIN_ALLOW_THREADS
;
5202 wxWindow_SetCaret(_arg0
,_arg1
);
5204 wxPy_END_ALLOW_THREADS
;
5205 if (PyErr_Occurred()) return NULL
;
5206 } Py_INCREF(Py_None
);
5207 _resultobj
= Py_None
;
5211 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5212 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5213 PyObject
* _resultobj
;
5216 PyObject
* _argo0
= 0;
5217 char *_kwnames
[] = { "self", NULL
};
5221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5231 wxPy_BEGIN_ALLOW_THREADS
;
5232 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5234 wxPy_END_ALLOW_THREADS
;
5235 if (PyErr_Occurred()) return NULL
;
5237 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5238 _resultobj
= Py_BuildValue("s",_ptemp
);
5241 _resultobj
= Py_None
;
5246 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5247 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5248 PyObject
* _resultobj
;
5250 PyObject
* _argo0
= 0;
5251 char *_kwnames
[] = { "self", NULL
};
5254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5264 wxPy_BEGIN_ALLOW_THREADS
;
5265 wxWindow_Freeze(_arg0
);
5267 wxPy_END_ALLOW_THREADS
;
5268 if (PyErr_Occurred()) return NULL
;
5269 } Py_INCREF(Py_None
);
5270 _resultobj
= Py_None
;
5274 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5275 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5276 PyObject
* _resultobj
;
5278 PyObject
* _argo0
= 0;
5279 char *_kwnames
[] = { "self", NULL
};
5282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5292 wxPy_BEGIN_ALLOW_THREADS
;
5293 wxWindow_Thaw(_arg0
);
5295 wxPy_END_ALLOW_THREADS
;
5296 if (PyErr_Occurred()) return NULL
;
5297 } Py_INCREF(Py_None
);
5298 _resultobj
= Py_None
;
5302 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5303 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5304 PyObject
* _resultobj
;
5306 PyObject
* _argo0
= 0;
5307 char *_kwnames
[] = { "self", NULL
};
5310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5320 wxPy_BEGIN_ALLOW_THREADS
;
5321 wxWindow_Update(_arg0
);
5323 wxPy_END_ALLOW_THREADS
;
5324 if (PyErr_Occurred()) return NULL
;
5325 } Py_INCREF(Py_None
);
5326 _resultobj
= Py_None
;
5330 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5331 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5332 PyObject
* _resultobj
;
5335 PyObject
* _argo0
= 0;
5336 char *_kwnames
[] = { "self", NULL
};
5339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5349 wxPy_BEGIN_ALLOW_THREADS
;
5350 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5352 wxPy_END_ALLOW_THREADS
;
5353 if (PyErr_Occurred()) return NULL
;
5355 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5363 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5364 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5365 PyObject
* _resultobj
;
5368 PyObject
* _argo0
= 0;
5369 PyObject
* _obj1
= 0;
5370 char *_kwnames
[] = { "self","helpText", NULL
};
5373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5383 #if PYTHON_API_VERSION >= 1009
5384 char* tmpPtr
; int tmpSize
;
5385 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5386 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5389 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5391 _arg1
= new wxString(tmpPtr
, tmpSize
);
5393 if (!PyString_Check(_obj1
)) {
5394 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5397 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5401 wxPy_BEGIN_ALLOW_THREADS
;
5402 wxWindow_SetHelpText(_arg0
,*_arg1
);
5404 wxPy_END_ALLOW_THREADS
;
5405 if (PyErr_Occurred()) return NULL
;
5406 } Py_INCREF(Py_None
);
5407 _resultobj
= Py_None
;
5415 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5416 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5417 PyObject
* _resultobj
;
5421 PyObject
* _argo0
= 0;
5422 char *_kwnames
[] = { "self","lines", NULL
};
5425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5435 wxPy_BEGIN_ALLOW_THREADS
;
5436 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5438 wxPy_END_ALLOW_THREADS
;
5439 if (PyErr_Occurred()) return NULL
;
5440 } _resultobj
= Py_BuildValue("i",_result
);
5444 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5445 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5446 PyObject
* _resultobj
;
5450 PyObject
* _argo0
= 0;
5451 char *_kwnames
[] = { "self","pages", NULL
};
5454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5464 wxPy_BEGIN_ALLOW_THREADS
;
5465 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5467 wxPy_END_ALLOW_THREADS
;
5468 if (PyErr_Occurred()) return NULL
;
5469 } _resultobj
= Py_BuildValue("i",_result
);
5473 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5474 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5475 PyObject
* _resultobj
;
5478 PyObject
* _argo0
= 0;
5479 char *_kwnames
[] = { "self", NULL
};
5482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5492 wxPy_BEGIN_ALLOW_THREADS
;
5493 _result
= (bool )wxWindow_LineUp(_arg0
);
5495 wxPy_END_ALLOW_THREADS
;
5496 if (PyErr_Occurred()) return NULL
;
5497 } _resultobj
= Py_BuildValue("i",_result
);
5501 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5502 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5503 PyObject
* _resultobj
;
5506 PyObject
* _argo0
= 0;
5507 char *_kwnames
[] = { "self", NULL
};
5510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5520 wxPy_BEGIN_ALLOW_THREADS
;
5521 _result
= (bool )wxWindow_LineDown(_arg0
);
5523 wxPy_END_ALLOW_THREADS
;
5524 if (PyErr_Occurred()) return NULL
;
5525 } _resultobj
= Py_BuildValue("i",_result
);
5529 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5530 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5531 PyObject
* _resultobj
;
5534 PyObject
* _argo0
= 0;
5535 char *_kwnames
[] = { "self", NULL
};
5538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5548 wxPy_BEGIN_ALLOW_THREADS
;
5549 _result
= (bool )wxWindow_PageUp(_arg0
);
5551 wxPy_END_ALLOW_THREADS
;
5552 if (PyErr_Occurred()) return NULL
;
5553 } _resultobj
= Py_BuildValue("i",_result
);
5557 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5558 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5559 PyObject
* _resultobj
;
5562 PyObject
* _argo0
= 0;
5563 char *_kwnames
[] = { "self", NULL
};
5566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5576 wxPy_BEGIN_ALLOW_THREADS
;
5577 _result
= (bool )wxWindow_PageDown(_arg0
);
5579 wxPy_END_ALLOW_THREADS
;
5580 if (PyErr_Occurred()) return NULL
;
5581 } _resultobj
= Py_BuildValue("i",_result
);
5585 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5586 PyObject
* _resultobj
;
5588 char *_kwnames
[] = { NULL
};
5591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5594 wxPy_BEGIN_ALLOW_THREADS
;
5595 _result
= (wxWindow
*)wxWindow::FindFocus();
5597 wxPy_END_ALLOW_THREADS
;
5598 if (PyErr_Occurred()) return NULL
;
5599 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5603 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5604 PyObject
* _resultobj
;
5606 char *_kwnames
[] = { NULL
};
5609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5612 wxPy_BEGIN_ALLOW_THREADS
;
5613 _result
= (int )wxWindow::NewControlId();
5615 wxPy_END_ALLOW_THREADS
;
5616 if (PyErr_Occurred()) return NULL
;
5617 } _resultobj
= Py_BuildValue("i",_result
);
5621 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5622 PyObject
* _resultobj
;
5625 char *_kwnames
[] = { "id", NULL
};
5628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5631 wxPy_BEGIN_ALLOW_THREADS
;
5632 _result
= (int )wxWindow::NextControlId(_arg0
);
5634 wxPy_END_ALLOW_THREADS
;
5635 if (PyErr_Occurred()) return NULL
;
5636 } _resultobj
= Py_BuildValue("i",_result
);
5640 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5641 PyObject
* _resultobj
;
5644 char *_kwnames
[] = { "id", NULL
};
5647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5650 wxPy_BEGIN_ALLOW_THREADS
;
5651 _result
= (int )wxWindow::PrevControlId(_arg0
);
5653 wxPy_END_ALLOW_THREADS
;
5654 if (PyErr_Occurred()) return NULL
;
5655 } _resultobj
= Py_BuildValue("i",_result
);
5659 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5660 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5661 PyObject
* _resultobj
;
5663 wxAcceleratorTable
* _arg1
;
5664 PyObject
* _argo0
= 0;
5665 PyObject
* _argo1
= 0;
5666 char *_kwnames
[] = { "self","accel", NULL
};
5669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5679 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5680 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5686 wxPy_BEGIN_ALLOW_THREADS
;
5687 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5689 wxPy_END_ALLOW_THREADS
;
5690 if (PyErr_Occurred()) return NULL
;
5691 } Py_INCREF(Py_None
);
5692 _resultobj
= Py_None
;
5696 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5697 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5698 PyObject
* _resultobj
;
5699 wxAcceleratorTable
* _result
;
5701 PyObject
* _argo0
= 0;
5702 char *_kwnames
[] = { "self", NULL
};
5706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5716 wxPy_BEGIN_ALLOW_THREADS
;
5717 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5719 wxPy_END_ALLOW_THREADS
;
5720 if (PyErr_Occurred()) return NULL
;
5722 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5723 _resultobj
= Py_BuildValue("s",_ptemp
);
5726 _resultobj
= Py_None
;
5731 static void *SwigwxPanelTowxWindow(void *ptr
) {
5734 src
= (wxPanel
*) ptr
;
5735 dest
= (wxWindow
*) src
;
5736 return (void *) dest
;
5739 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5742 src
= (wxPanel
*) ptr
;
5743 dest
= (wxEvtHandler
*) src
;
5744 return (void *) dest
;
5747 static void *SwigwxPanelTowxObject(void *ptr
) {
5750 src
= (wxPanel
*) ptr
;
5751 dest
= (wxObject
*) src
;
5752 return (void *) dest
;
5755 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5756 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5757 PyObject
* _resultobj
;
5761 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5762 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5763 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5764 char * _arg5
= (char *) "panel";
5765 PyObject
* _argo0
= 0;
5767 PyObject
* _obj2
= 0;
5769 PyObject
* _obj3
= 0;
5770 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5786 if (! wxPoint_helper(_obj2
, &_arg2
))
5792 if (! wxSize_helper(_obj3
, &_arg3
))
5796 wxPy_BEGIN_ALLOW_THREADS
;
5797 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5799 wxPy_END_ALLOW_THREADS
;
5800 if (PyErr_Occurred()) return NULL
;
5802 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5803 _resultobj
= Py_BuildValue("s",_ptemp
);
5806 _resultobj
= Py_None
;
5811 #define new_wxPrePanel() (new wxPanel())
5812 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5813 PyObject
* _resultobj
;
5815 char *_kwnames
[] = { NULL
};
5819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5822 wxPy_BEGIN_ALLOW_THREADS
;
5823 _result
= (wxPanel
*)new_wxPrePanel();
5825 wxPy_END_ALLOW_THREADS
;
5826 if (PyErr_Occurred()) return NULL
;
5828 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5829 _resultobj
= Py_BuildValue("s",_ptemp
);
5832 _resultobj
= Py_None
;
5837 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5838 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5839 PyObject
* _resultobj
;
5844 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5845 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5846 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5847 char * _arg6
= (char *) "panel";
5848 PyObject
* _argo0
= 0;
5849 PyObject
* _argo1
= 0;
5851 PyObject
* _obj3
= 0;
5853 PyObject
* _obj4
= 0;
5854 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5867 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5868 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5876 if (! wxPoint_helper(_obj3
, &_arg3
))
5882 if (! wxSize_helper(_obj4
, &_arg4
))
5886 wxPy_BEGIN_ALLOW_THREADS
;
5887 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5889 wxPy_END_ALLOW_THREADS
;
5890 if (PyErr_Occurred()) return NULL
;
5891 } _resultobj
= Py_BuildValue("i",_result
);
5895 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5896 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5897 PyObject
* _resultobj
;
5899 PyObject
* _argo0
= 0;
5900 char *_kwnames
[] = { "self", NULL
};
5903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5913 wxPy_BEGIN_ALLOW_THREADS
;
5914 wxPanel_InitDialog(_arg0
);
5916 wxPy_END_ALLOW_THREADS
;
5917 if (PyErr_Occurred()) return NULL
;
5918 } Py_INCREF(Py_None
);
5919 _resultobj
= Py_None
;
5923 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5924 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5925 PyObject
* _resultobj
;
5928 PyObject
* _argo0
= 0;
5929 char *_kwnames
[] = { "self", NULL
};
5932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5942 wxPy_BEGIN_ALLOW_THREADS
;
5943 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5945 wxPy_END_ALLOW_THREADS
;
5946 if (PyErr_Occurred()) return NULL
;
5947 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5951 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5952 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5953 PyObject
* _resultobj
;
5956 PyObject
* _argo0
= 0;
5957 PyObject
* _argo1
= 0;
5958 char *_kwnames
[] = { "self","btn", NULL
};
5961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5971 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5972 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5978 wxPy_BEGIN_ALLOW_THREADS
;
5979 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5981 wxPy_END_ALLOW_THREADS
;
5982 if (PyErr_Occurred()) return NULL
;
5983 } Py_INCREF(Py_None
);
5984 _resultobj
= Py_None
;
5988 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5989 wxScrolledWindow
*src
;
5991 src
= (wxScrolledWindow
*) ptr
;
5992 dest
= (wxPanel
*) src
;
5993 return (void *) dest
;
5996 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5997 wxScrolledWindow
*src
;
5999 src
= (wxScrolledWindow
*) ptr
;
6000 dest
= (wxWindow
*) src
;
6001 return (void *) dest
;
6004 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6005 wxScrolledWindow
*src
;
6007 src
= (wxScrolledWindow
*) ptr
;
6008 dest
= (wxEvtHandler
*) src
;
6009 return (void *) dest
;
6012 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6013 wxScrolledWindow
*src
;
6015 src
= (wxScrolledWindow
*) ptr
;
6016 dest
= (wxObject
*) src
;
6017 return (void *) dest
;
6020 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6021 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6022 PyObject
* _resultobj
;
6023 wxScrolledWindow
* _result
;
6025 wxWindowID _arg1
= (wxWindowID
) -1;
6026 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6027 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6028 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6029 char * _arg5
= (char *) "scrolledWindow";
6030 PyObject
* _argo0
= 0;
6032 PyObject
* _obj2
= 0;
6034 PyObject
* _obj3
= 0;
6035 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6051 if (! wxPoint_helper(_obj2
, &_arg2
))
6057 if (! wxSize_helper(_obj3
, &_arg3
))
6061 wxPy_BEGIN_ALLOW_THREADS
;
6062 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6064 wxPy_END_ALLOW_THREADS
;
6065 if (PyErr_Occurred()) return NULL
;
6067 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6068 _resultobj
= Py_BuildValue("s",_ptemp
);
6071 _resultobj
= Py_None
;
6076 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6077 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6078 PyObject
* _resultobj
;
6079 wxScrolledWindow
* _result
;
6080 char *_kwnames
[] = { NULL
};
6084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6087 wxPy_BEGIN_ALLOW_THREADS
;
6088 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6090 wxPy_END_ALLOW_THREADS
;
6091 if (PyErr_Occurred()) return NULL
;
6093 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6094 _resultobj
= Py_BuildValue("s",_ptemp
);
6097 _resultobj
= Py_None
;
6102 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6103 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6104 PyObject
* _resultobj
;
6106 wxScrolledWindow
* _arg0
;
6108 wxWindowID _arg2
= (wxWindowID
) -1;
6109 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6110 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6111 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6112 char * _arg6
= (char *) "scrolledWindow";
6113 PyObject
* _argo0
= 0;
6114 PyObject
* _argo1
= 0;
6116 PyObject
* _obj3
= 0;
6118 PyObject
* _obj4
= 0;
6119 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6132 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6133 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6141 if (! wxPoint_helper(_obj3
, &_arg3
))
6147 if (! wxSize_helper(_obj4
, &_arg4
))
6151 wxPy_BEGIN_ALLOW_THREADS
;
6152 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6154 wxPy_END_ALLOW_THREADS
;
6155 if (PyErr_Occurred()) return NULL
;
6156 } _resultobj
= Py_BuildValue("i",_result
);
6160 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6161 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6162 PyObject
* _resultobj
;
6163 wxScrolledWindow
* _arg0
;
6166 PyObject
* _argo0
= 0;
6169 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6181 _arg1
= (bool ) tempbool1
;
6182 _arg2
= (bool ) tempbool2
;
6184 wxPy_BEGIN_ALLOW_THREADS
;
6185 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6187 wxPy_END_ALLOW_THREADS
;
6188 if (PyErr_Occurred()) return NULL
;
6189 } Py_INCREF(Py_None
);
6190 _resultobj
= Py_None
;
6194 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6195 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6196 PyObject
* _resultobj
;
6198 wxScrolledWindow
* _arg0
;
6200 PyObject
* _argo0
= 0;
6201 char *_kwnames
[] = { "self","orient", NULL
};
6204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6214 wxPy_BEGIN_ALLOW_THREADS
;
6215 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6217 wxPy_END_ALLOW_THREADS
;
6218 if (PyErr_Occurred()) return NULL
;
6219 } _resultobj
= Py_BuildValue("i",_result
);
6223 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6224 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6225 PyObject
* _resultobj
;
6226 wxScrolledWindow
* _arg0
;
6231 PyObject
* _argo0
= 0;
6232 char *_kwnames
[] = { "self", NULL
};
6241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6251 wxPy_BEGIN_ALLOW_THREADS
;
6252 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6254 wxPy_END_ALLOW_THREADS
;
6255 if (PyErr_Occurred()) return NULL
;
6256 } Py_INCREF(Py_None
);
6257 _resultobj
= Py_None
;
6260 o
= PyInt_FromLong((long) (*_arg1
));
6261 _resultobj
= t_output_helper(_resultobj
, o
);
6265 o
= PyInt_FromLong((long) (*_arg2
));
6266 _resultobj
= t_output_helper(_resultobj
, o
);
6271 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6272 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6273 PyObject
* _resultobj
;
6275 wxScrolledWindow
* _arg0
;
6276 PyObject
* _argo0
= 0;
6277 char *_kwnames
[] = { "self", NULL
};
6280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6290 wxPy_BEGIN_ALLOW_THREADS
;
6291 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6293 wxPy_END_ALLOW_THREADS
;
6294 if (PyErr_Occurred()) return NULL
;
6295 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6299 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6300 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6301 PyObject
* _resultobj
;
6302 wxScrolledWindow
* _arg0
;
6307 PyObject
* _argo0
= 0;
6308 char *_kwnames
[] = { "self", NULL
};
6317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6327 wxPy_BEGIN_ALLOW_THREADS
;
6328 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6330 wxPy_END_ALLOW_THREADS
;
6331 if (PyErr_Occurred()) return NULL
;
6332 } Py_INCREF(Py_None
);
6333 _resultobj
= Py_None
;
6336 o
= PyInt_FromLong((long) (*_arg1
));
6337 _resultobj
= t_output_helper(_resultobj
, o
);
6341 o
= PyInt_FromLong((long) (*_arg2
));
6342 _resultobj
= t_output_helper(_resultobj
, o
);
6347 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6348 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6349 PyObject
* _resultobj
;
6351 wxScrolledWindow
* _arg0
;
6352 PyObject
* _argo0
= 0;
6353 char *_kwnames
[] = { "self", NULL
};
6356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6366 wxPy_BEGIN_ALLOW_THREADS
;
6367 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6369 wxPy_END_ALLOW_THREADS
;
6370 if (PyErr_Occurred()) return NULL
;
6371 } _resultobj
= Py_BuildValue("i",_result
);
6375 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6376 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6377 PyObject
* _resultobj
;
6378 wxScrolledWindow
* _arg0
;
6380 PyObject
* _argo0
= 0;
6381 PyObject
* _argo1
= 0;
6382 char *_kwnames
[] = { "self","dc", NULL
};
6385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
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_PrepareDC. Expected _wxScrolledWindow_p.");
6395 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6396 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6402 wxPy_BEGIN_ALLOW_THREADS
;
6403 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6405 wxPy_END_ALLOW_THREADS
;
6406 if (PyErr_Occurred()) return NULL
;
6407 } Py_INCREF(Py_None
);
6408 _resultobj
= Py_None
;
6412 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6413 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6414 PyObject
* _resultobj
;
6415 wxScrolledWindow
* _arg0
;
6418 PyObject
* _argo0
= 0;
6419 char *_kwnames
[] = { "self","x","y", NULL
};
6422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6432 wxPy_BEGIN_ALLOW_THREADS
;
6433 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6435 wxPy_END_ALLOW_THREADS
;
6436 if (PyErr_Occurred()) return NULL
;
6437 } Py_INCREF(Py_None
);
6438 _resultobj
= Py_None
;
6442 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6443 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6444 PyObject
* _resultobj
;
6445 wxScrolledWindow
* _arg0
;
6450 int _arg5
= (int ) 0;
6451 int _arg6
= (int ) 0;
6452 int _arg7
= (int ) FALSE
;
6453 PyObject
* _argo0
= 0;
6454 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6467 wxPy_BEGIN_ALLOW_THREADS
;
6468 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6470 wxPy_END_ALLOW_THREADS
;
6471 if (PyErr_Occurred()) return NULL
;
6472 } Py_INCREF(Py_None
);
6473 _resultobj
= Py_None
;
6477 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6478 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6479 PyObject
* _resultobj
;
6480 wxScrolledWindow
* _arg0
;
6483 PyObject
* _argo0
= 0;
6484 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6497 wxPy_BEGIN_ALLOW_THREADS
;
6498 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6500 wxPy_END_ALLOW_THREADS
;
6501 if (PyErr_Occurred()) return NULL
;
6502 } Py_INCREF(Py_None
);
6503 _resultobj
= Py_None
;
6507 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6508 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6509 PyObject
* _resultobj
;
6510 wxScrolledWindow
* _arg0
;
6512 PyObject
* _argo0
= 0;
6513 PyObject
* _argo1
= 0;
6514 char *_kwnames
[] = { "self","window", NULL
};
6517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6527 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6528 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6534 wxPy_BEGIN_ALLOW_THREADS
;
6535 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6537 wxPy_END_ALLOW_THREADS
;
6538 if (PyErr_Occurred()) return NULL
;
6539 } Py_INCREF(Py_None
);
6540 _resultobj
= Py_None
;
6544 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6545 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6546 PyObject
* _resultobj
;
6547 wxScrolledWindow
* _arg0
;
6552 PyObject
* _argo0
= 0;
6553 char *_kwnames
[] = { "self", NULL
};
6562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6572 wxPy_BEGIN_ALLOW_THREADS
;
6573 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6575 wxPy_END_ALLOW_THREADS
;
6576 if (PyErr_Occurred()) return NULL
;
6577 } Py_INCREF(Py_None
);
6578 _resultobj
= Py_None
;
6581 o
= PyInt_FromLong((long) (*_arg1
));
6582 _resultobj
= t_output_helper(_resultobj
, o
);
6586 o
= PyInt_FromLong((long) (*_arg2
));
6587 _resultobj
= t_output_helper(_resultobj
, o
);
6592 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6593 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6594 PyObject
* _resultobj
;
6595 wxScrolledWindow
* _arg0
;
6602 PyObject
* _argo0
= 0;
6603 char *_kwnames
[] = { "self","x","y", NULL
};
6612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6622 wxPy_BEGIN_ALLOW_THREADS
;
6623 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6625 wxPy_END_ALLOW_THREADS
;
6626 if (PyErr_Occurred()) return NULL
;
6627 } Py_INCREF(Py_None
);
6628 _resultobj
= Py_None
;
6631 o
= PyInt_FromLong((long) (*_arg3
));
6632 _resultobj
= t_output_helper(_resultobj
, o
);
6636 o
= PyInt_FromLong((long) (*_arg4
));
6637 _resultobj
= t_output_helper(_resultobj
, o
);
6642 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6643 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6644 PyObject
* _resultobj
;
6645 wxScrolledWindow
* _arg0
;
6652 PyObject
* _argo0
= 0;
6653 char *_kwnames
[] = { "self","x","y", NULL
};
6662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6672 wxPy_BEGIN_ALLOW_THREADS
;
6673 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6675 wxPy_END_ALLOW_THREADS
;
6676 if (PyErr_Occurred()) return NULL
;
6677 } Py_INCREF(Py_None
);
6678 _resultobj
= Py_None
;
6681 o
= PyInt_FromLong((long) (*_arg3
));
6682 _resultobj
= t_output_helper(_resultobj
, o
);
6686 o
= PyInt_FromLong((long) (*_arg4
));
6687 _resultobj
= t_output_helper(_resultobj
, o
);
6692 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6693 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6694 PyObject
* _resultobj
;
6695 wxScrolledWindow
* _arg0
;
6698 PyObject
* _argo0
= 0;
6699 char *_kwnames
[] = { "self","xs","ys", NULL
};
6702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6712 wxPy_BEGIN_ALLOW_THREADS
;
6713 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6715 wxPy_END_ALLOW_THREADS
;
6716 if (PyErr_Occurred()) return NULL
;
6717 } Py_INCREF(Py_None
);
6718 _resultobj
= Py_None
;
6722 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6723 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6724 PyObject
* _resultobj
;
6726 wxScrolledWindow
* _arg0
;
6727 PyObject
* _argo0
= 0;
6728 char *_kwnames
[] = { "self", NULL
};
6731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6741 wxPy_BEGIN_ALLOW_THREADS
;
6742 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6744 wxPy_END_ALLOW_THREADS
;
6745 if (PyErr_Occurred()) return NULL
;
6746 } _resultobj
= Py_BuildValue("d",_result
);
6750 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6751 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6752 PyObject
* _resultobj
;
6754 wxScrolledWindow
* _arg0
;
6755 PyObject
* _argo0
= 0;
6756 char *_kwnames
[] = { "self", NULL
};
6759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6769 wxPy_BEGIN_ALLOW_THREADS
;
6770 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6772 wxPy_END_ALLOW_THREADS
;
6773 if (PyErr_Occurred()) return NULL
;
6774 } _resultobj
= Py_BuildValue("d",_result
);
6778 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6779 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6780 PyObject
* _resultobj
;
6781 wxScrolledWindow
* _arg0
;
6782 PyObject
* _argo0
= 0;
6783 char *_kwnames
[] = { "self", NULL
};
6786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6796 wxPy_BEGIN_ALLOW_THREADS
;
6797 wxScrolledWindow_AdjustScrollbars(_arg0
);
6799 wxPy_END_ALLOW_THREADS
;
6800 if (PyErr_Occurred()) return NULL
;
6801 } Py_INCREF(Py_None
);
6802 _resultobj
= Py_None
;
6806 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6809 src
= (wxMenu
*) ptr
;
6810 dest
= (wxEvtHandler
*) src
;
6811 return (void *) dest
;
6814 static void *SwigwxMenuTowxObject(void *ptr
) {
6817 src
= (wxMenu
*) ptr
;
6818 dest
= (wxObject
*) src
;
6819 return (void *) dest
;
6822 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6823 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6824 PyObject
* _resultobj
;
6826 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6827 long _arg1
= (long ) 0;
6828 PyObject
* _obj0
= 0;
6829 char *_kwnames
[] = { "title","style", NULL
};
6833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6837 #if PYTHON_API_VERSION >= 1009
6838 char* tmpPtr
; int tmpSize
;
6839 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6843 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6845 _arg0
= new wxString(tmpPtr
, tmpSize
);
6847 if (!PyString_Check(_obj0
)) {
6848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6851 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6855 wxPy_BEGIN_ALLOW_THREADS
;
6856 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6858 wxPy_END_ALLOW_THREADS
;
6859 if (PyErr_Occurred()) return NULL
;
6861 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6862 _resultobj
= Py_BuildValue("s",_ptemp
);
6865 _resultobj
= Py_None
;
6874 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6875 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6876 PyObject
* _resultobj
;
6880 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6881 int _arg4
= (int ) FALSE
;
6882 PyObject
* _argo0
= 0;
6883 PyObject
* _obj2
= 0;
6884 PyObject
* _obj3
= 0;
6885 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6898 #if PYTHON_API_VERSION >= 1009
6899 char* tmpPtr
; int tmpSize
;
6900 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6901 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6904 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6906 _arg2
= new wxString(tmpPtr
, tmpSize
);
6908 if (!PyString_Check(_obj2
)) {
6909 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6912 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6917 #if PYTHON_API_VERSION >= 1009
6918 char* tmpPtr
; int tmpSize
;
6919 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6920 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6923 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6925 _arg3
= new wxString(tmpPtr
, tmpSize
);
6927 if (!PyString_Check(_obj3
)) {
6928 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6931 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6935 wxPy_BEGIN_ALLOW_THREADS
;
6936 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6938 wxPy_END_ALLOW_THREADS
;
6939 if (PyErr_Occurred()) return NULL
;
6940 } Py_INCREF(Py_None
);
6941 _resultobj
= Py_None
;
6953 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6954 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6955 PyObject
* _resultobj
;
6960 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6961 PyObject
* _argo0
= 0;
6962 PyObject
* _obj2
= 0;
6963 PyObject
* _argo3
= 0;
6964 PyObject
* _obj4
= 0;
6965 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6978 #if PYTHON_API_VERSION >= 1009
6979 char* tmpPtr
; int tmpSize
;
6980 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6981 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6984 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6986 _arg2
= new wxString(tmpPtr
, tmpSize
);
6988 if (!PyString_Check(_obj2
)) {
6989 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6992 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6996 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6997 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7004 #if PYTHON_API_VERSION >= 1009
7005 char* tmpPtr
; int tmpSize
;
7006 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7007 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7010 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7012 _arg4
= new wxString(tmpPtr
, tmpSize
);
7014 if (!PyString_Check(_obj4
)) {
7015 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7018 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7022 wxPy_BEGIN_ALLOW_THREADS
;
7023 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7025 wxPy_END_ALLOW_THREADS
;
7026 if (PyErr_Occurred()) return NULL
;
7027 } Py_INCREF(Py_None
);
7028 _resultobj
= Py_None
;
7040 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7041 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7042 PyObject
* _resultobj
;
7045 PyObject
* _argo0
= 0;
7046 PyObject
* _argo1
= 0;
7047 char *_kwnames
[] = { "self","item", NULL
};
7050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7060 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7061 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7067 wxPy_BEGIN_ALLOW_THREADS
;
7068 wxMenu_AppendItem(_arg0
,_arg1
);
7070 wxPy_END_ALLOW_THREADS
;
7071 if (PyErr_Occurred()) return NULL
;
7072 } Py_INCREF(Py_None
);
7073 _resultobj
= Py_None
;
7077 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7078 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7079 PyObject
* _resultobj
;
7081 PyObject
* _argo0
= 0;
7082 char *_kwnames
[] = { "self", NULL
};
7085 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7088 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7089 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7090 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7095 wxPy_BEGIN_ALLOW_THREADS
;
7096 wxMenu_AppendSeparator(_arg0
);
7098 wxPy_END_ALLOW_THREADS
;
7099 if (PyErr_Occurred()) return NULL
;
7100 } Py_INCREF(Py_None
);
7101 _resultobj
= Py_None
;
7105 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7106 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7107 PyObject
* _resultobj
;
7109 PyObject
* _argo0
= 0;
7110 char *_kwnames
[] = { "self", NULL
};
7113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7123 wxPy_BEGIN_ALLOW_THREADS
;
7124 wxMenu_Break(_arg0
);
7126 wxPy_END_ALLOW_THREADS
;
7127 if (PyErr_Occurred()) return NULL
;
7128 } Py_INCREF(Py_None
);
7129 _resultobj
= Py_None
;
7133 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7134 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7135 PyObject
* _resultobj
;
7139 PyObject
* _argo0
= 0;
7141 char *_kwnames
[] = { "self","id","flag", NULL
};
7144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7153 _arg2
= (bool ) tempbool2
;
7155 wxPy_BEGIN_ALLOW_THREADS
;
7156 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7158 wxPy_END_ALLOW_THREADS
;
7159 if (PyErr_Occurred()) return NULL
;
7160 } Py_INCREF(Py_None
);
7161 _resultobj
= Py_None
;
7165 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7166 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7167 PyObject
* _resultobj
;
7171 PyObject
* _argo0
= 0;
7172 char *_kwnames
[] = { "self","id", NULL
};
7175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7185 wxPy_BEGIN_ALLOW_THREADS
;
7186 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7188 wxPy_END_ALLOW_THREADS
;
7189 if (PyErr_Occurred()) return NULL
;
7190 } _resultobj
= Py_BuildValue("i",_result
);
7194 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7195 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7196 PyObject
* _resultobj
;
7200 PyObject
* _argo0
= 0;
7202 char *_kwnames
[] = { "self","id","enable", NULL
};
7205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7214 _arg2
= (bool ) tempbool2
;
7216 wxPy_BEGIN_ALLOW_THREADS
;
7217 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7219 wxPy_END_ALLOW_THREADS
;
7220 if (PyErr_Occurred()) return NULL
;
7221 } Py_INCREF(Py_None
);
7222 _resultobj
= Py_None
;
7226 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7227 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7228 PyObject
* _resultobj
;
7232 PyObject
* _argo0
= 0;
7233 char *_kwnames
[] = { "self","id", NULL
};
7236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7246 wxPy_BEGIN_ALLOW_THREADS
;
7247 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7249 wxPy_END_ALLOW_THREADS
;
7250 if (PyErr_Occurred()) return NULL
;
7251 } _resultobj
= Py_BuildValue("i",_result
);
7255 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7256 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7257 PyObject
* _resultobj
;
7261 PyObject
* _argo0
= 0;
7262 PyObject
* _obj1
= 0;
7263 char *_kwnames
[] = { "self","itemString", NULL
};
7266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7276 #if PYTHON_API_VERSION >= 1009
7277 char* tmpPtr
; int tmpSize
;
7278 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7279 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7282 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7284 _arg1
= new wxString(tmpPtr
, tmpSize
);
7286 if (!PyString_Check(_obj1
)) {
7287 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7290 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7294 wxPy_BEGIN_ALLOW_THREADS
;
7295 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7297 wxPy_END_ALLOW_THREADS
;
7298 if (PyErr_Occurred()) return NULL
;
7299 } _resultobj
= Py_BuildValue("i",_result
);
7307 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7308 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7309 PyObject
* _resultobj
;
7310 wxMenuItem
* _result
;
7313 PyObject
* _argo0
= 0;
7314 char *_kwnames
[] = { "self","id", NULL
};
7317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7327 wxPy_BEGIN_ALLOW_THREADS
;
7328 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7330 wxPy_END_ALLOW_THREADS
;
7331 if (PyErr_Occurred()) return NULL
;
7332 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7336 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7337 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7338 PyObject
* _resultobj
;
7341 PyObject
* _argo0
= 0;
7342 char *_kwnames
[] = { "self", NULL
};
7345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7355 wxPy_BEGIN_ALLOW_THREADS
;
7356 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7358 wxPy_END_ALLOW_THREADS
;
7359 if (PyErr_Occurred()) return NULL
;
7361 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7369 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7370 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7371 PyObject
* _resultobj
;
7374 PyObject
* _argo0
= 0;
7375 PyObject
* _obj1
= 0;
7376 char *_kwnames
[] = { "self","title", NULL
};
7379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7389 #if PYTHON_API_VERSION >= 1009
7390 char* tmpPtr
; int tmpSize
;
7391 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7392 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7395 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7397 _arg1
= new wxString(tmpPtr
, tmpSize
);
7399 if (!PyString_Check(_obj1
)) {
7400 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7403 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7407 wxPy_BEGIN_ALLOW_THREADS
;
7408 wxMenu_SetTitle(_arg0
,*_arg1
);
7410 wxPy_END_ALLOW_THREADS
;
7411 if (PyErr_Occurred()) return NULL
;
7412 } Py_INCREF(Py_None
);
7413 _resultobj
= Py_None
;
7421 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7422 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7423 PyObject
* _resultobj
;
7427 PyObject
* _argo0
= 0;
7428 char *_kwnames
[] = { "self","id", NULL
};
7431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7441 wxPy_BEGIN_ALLOW_THREADS
;
7442 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7444 wxPy_END_ALLOW_THREADS
;
7445 if (PyErr_Occurred()) return NULL
;
7447 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7455 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7456 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7457 PyObject
* _resultobj
;
7461 PyObject
* _argo0
= 0;
7462 PyObject
* _obj2
= 0;
7463 char *_kwnames
[] = { "self","id","label", NULL
};
7466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7476 #if PYTHON_API_VERSION >= 1009
7477 char* tmpPtr
; int tmpSize
;
7478 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7479 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7482 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7484 _arg2
= new wxString(tmpPtr
, tmpSize
);
7486 if (!PyString_Check(_obj2
)) {
7487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7490 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7494 wxPy_BEGIN_ALLOW_THREADS
;
7495 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7497 wxPy_END_ALLOW_THREADS
;
7498 if (PyErr_Occurred()) return NULL
;
7499 } Py_INCREF(Py_None
);
7500 _resultobj
= Py_None
;
7508 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7509 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7510 PyObject
* _resultobj
;
7514 PyObject
* _argo0
= 0;
7515 char *_kwnames
[] = { "self","id", NULL
};
7518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7528 wxPy_BEGIN_ALLOW_THREADS
;
7529 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7531 wxPy_END_ALLOW_THREADS
;
7532 if (PyErr_Occurred()) return NULL
;
7534 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7542 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7543 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7544 PyObject
* _resultobj
;
7548 PyObject
* _argo0
= 0;
7549 PyObject
* _obj2
= 0;
7550 char *_kwnames
[] = { "self","id","helpString", NULL
};
7553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7563 #if PYTHON_API_VERSION >= 1009
7564 char* tmpPtr
; int tmpSize
;
7565 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7566 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7569 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7571 _arg2
= new wxString(tmpPtr
, tmpSize
);
7573 if (!PyString_Check(_obj2
)) {
7574 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7577 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7581 wxPy_BEGIN_ALLOW_THREADS
;
7582 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7584 wxPy_END_ALLOW_THREADS
;
7585 if (PyErr_Occurred()) return NULL
;
7586 } Py_INCREF(Py_None
);
7587 _resultobj
= Py_None
;
7595 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7596 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7597 PyObject
* _resultobj
;
7599 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7600 PyObject
* _argo0
= 0;
7601 PyObject
* _argo1
= 0;
7602 char *_kwnames
[] = { "self","source", NULL
};
7605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7615 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7616 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7622 wxPy_BEGIN_ALLOW_THREADS
;
7623 wxMenu_UpdateUI(_arg0
,_arg1
);
7625 wxPy_END_ALLOW_THREADS
;
7626 if (PyErr_Occurred()) return NULL
;
7627 } Py_INCREF(Py_None
);
7628 _resultobj
= Py_None
;
7632 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7633 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7634 PyObject
* _resultobj
;
7638 PyObject
* _argo0
= 0;
7639 char *_kwnames
[] = { "self","id", NULL
};
7642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7652 wxPy_BEGIN_ALLOW_THREADS
;
7653 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7655 wxPy_END_ALLOW_THREADS
;
7656 if (PyErr_Occurred()) return NULL
;
7657 } _resultobj
= Py_BuildValue("i",_result
);
7661 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7662 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7663 PyObject
* _resultobj
;
7667 PyObject
* _argo0
= 0;
7668 PyObject
* _argo1
= 0;
7669 char *_kwnames
[] = { "self","item", NULL
};
7672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7682 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7683 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7689 wxPy_BEGIN_ALLOW_THREADS
;
7690 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7692 wxPy_END_ALLOW_THREADS
;
7693 if (PyErr_Occurred()) return NULL
;
7694 } _resultobj
= Py_BuildValue("i",_result
);
7698 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7699 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7700 PyObject
* _resultobj
;
7705 PyObject
* _argo0
= 0;
7706 PyObject
* _argo2
= 0;
7707 char *_kwnames
[] = { "self","pos","item", NULL
};
7710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7720 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7721 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7727 wxPy_BEGIN_ALLOW_THREADS
;
7728 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7730 wxPy_END_ALLOW_THREADS
;
7731 if (PyErr_Occurred()) return NULL
;
7732 } _resultobj
= Py_BuildValue("i",_result
);
7736 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7737 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7738 PyObject
* _resultobj
;
7739 wxMenuItem
* _result
;
7742 PyObject
* _argo0
= 0;
7743 char *_kwnames
[] = { "self","id", NULL
};
7746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7756 wxPy_BEGIN_ALLOW_THREADS
;
7757 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7759 wxPy_END_ALLOW_THREADS
;
7760 if (PyErr_Occurred()) return NULL
;
7761 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7765 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7766 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7767 PyObject
* _resultobj
;
7768 wxMenuItem
* _result
;
7771 PyObject
* _argo0
= 0;
7772 PyObject
* _argo1
= 0;
7773 char *_kwnames
[] = { "self","item", NULL
};
7776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7786 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7787 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7793 wxPy_BEGIN_ALLOW_THREADS
;
7794 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7796 wxPy_END_ALLOW_THREADS
;
7797 if (PyErr_Occurred()) return NULL
;
7798 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7802 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7803 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7804 PyObject
* _resultobj
;
7806 PyObject
* _argo0
= 0;
7807 char *_kwnames
[] = { "self", NULL
};
7810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7820 wxPy_BEGIN_ALLOW_THREADS
;
7821 wxMenu_Destroy(_arg0
);
7823 wxPy_END_ALLOW_THREADS
;
7824 if (PyErr_Occurred()) return NULL
;
7825 } Py_INCREF(Py_None
);
7826 _resultobj
= Py_None
;
7830 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7831 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7832 PyObject
* _resultobj
;
7836 PyObject
* _argo0
= 0;
7837 char *_kwnames
[] = { "self","id", NULL
};
7840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7850 wxPy_BEGIN_ALLOW_THREADS
;
7851 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7853 wxPy_END_ALLOW_THREADS
;
7854 if (PyErr_Occurred()) return NULL
;
7855 } _resultobj
= Py_BuildValue("i",_result
);
7859 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7860 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7861 PyObject
* _resultobj
;
7865 PyObject
* _argo0
= 0;
7866 PyObject
* _argo1
= 0;
7867 char *_kwnames
[] = { "self","item", NULL
};
7870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7880 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7881 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7887 wxPy_BEGIN_ALLOW_THREADS
;
7888 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7890 wxPy_END_ALLOW_THREADS
;
7891 if (PyErr_Occurred()) return NULL
;
7892 } _resultobj
= Py_BuildValue("i",_result
);
7896 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7897 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7898 PyObject
* _resultobj
;
7901 PyObject
* _argo0
= 0;
7902 char *_kwnames
[] = { "self", NULL
};
7905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7915 wxPy_BEGIN_ALLOW_THREADS
;
7916 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7918 wxPy_END_ALLOW_THREADS
;
7919 if (PyErr_Occurred()) return NULL
;
7920 } _resultobj
= Py_BuildValue("i",_result
);
7924 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7925 wxMenuItemList
& list
= self
->GetMenuItems();
7926 return wxPy_ConvertList(&list
, "wxMenuItem");
7928 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7929 PyObject
* _resultobj
;
7932 PyObject
* _argo0
= 0;
7933 char *_kwnames
[] = { "self", NULL
};
7936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7946 wxPy_BEGIN_ALLOW_THREADS
;
7947 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7949 wxPy_END_ALLOW_THREADS
;
7950 if (PyErr_Occurred()) return NULL
;
7952 _resultobj
= _result
;
7957 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7958 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7959 PyObject
* _resultobj
;
7961 wxEvtHandler
* _arg1
;
7962 PyObject
* _argo0
= 0;
7963 PyObject
* _argo1
= 0;
7964 char *_kwnames
[] = { "self","handler", NULL
};
7967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7977 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7978 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7984 wxPy_BEGIN_ALLOW_THREADS
;
7985 wxMenu_SetEventHandler(_arg0
,_arg1
);
7987 wxPy_END_ALLOW_THREADS
;
7988 if (PyErr_Occurred()) return NULL
;
7989 } Py_INCREF(Py_None
);
7990 _resultobj
= Py_None
;
7994 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7995 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7996 PyObject
* _resultobj
;
7997 wxEvtHandler
* _result
;
7999 PyObject
* _argo0
= 0;
8000 char *_kwnames
[] = { "self", NULL
};
8003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8013 wxPy_BEGIN_ALLOW_THREADS
;
8014 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8016 wxPy_END_ALLOW_THREADS
;
8017 if (PyErr_Occurred()) return NULL
;
8018 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8022 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8023 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8024 PyObject
* _resultobj
;
8027 PyObject
* _argo0
= 0;
8028 PyObject
* _argo1
= 0;
8029 char *_kwnames
[] = { "self","win", NULL
};
8032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8042 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8043 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8049 wxPy_BEGIN_ALLOW_THREADS
;
8050 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8052 wxPy_END_ALLOW_THREADS
;
8053 if (PyErr_Occurred()) return NULL
;
8054 } Py_INCREF(Py_None
);
8055 _resultobj
= Py_None
;
8059 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8060 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8061 PyObject
* _resultobj
;
8064 PyObject
* _argo0
= 0;
8065 char *_kwnames
[] = { "self", NULL
};
8068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8078 wxPy_BEGIN_ALLOW_THREADS
;
8079 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8081 wxPy_END_ALLOW_THREADS
;
8082 if (PyErr_Occurred()) return NULL
;
8083 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8087 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8088 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8089 PyObject
* _resultobj
;
8092 PyObject
* _argo0
= 0;
8093 char *_kwnames
[] = { "self", NULL
};
8096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8099 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8100 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8106 wxPy_BEGIN_ALLOW_THREADS
;
8107 _result
= (long )wxMenu_GetStyle(_arg0
);
8109 wxPy_END_ALLOW_THREADS
;
8110 if (PyErr_Occurred()) return NULL
;
8111 } _resultobj
= Py_BuildValue("l",_result
);
8115 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8116 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8117 PyObject
* _resultobj
;
8120 PyObject
* _argo0
= 0;
8121 char *_kwnames
[] = { "self", NULL
};
8124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8134 wxPy_BEGIN_ALLOW_THREADS
;
8135 _result
= (bool )wxMenu_IsAttached(_arg0
);
8137 wxPy_END_ALLOW_THREADS
;
8138 if (PyErr_Occurred()) return NULL
;
8139 } _resultobj
= Py_BuildValue("i",_result
);
8143 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8144 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8145 PyObject
* _resultobj
;
8148 PyObject
* _argo0
= 0;
8149 PyObject
* _argo1
= 0;
8150 char *_kwnames
[] = { "self","parent", NULL
};
8153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8163 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8164 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8170 wxPy_BEGIN_ALLOW_THREADS
;
8171 wxMenu_SetParent(_arg0
,_arg1
);
8173 wxPy_END_ALLOW_THREADS
;
8174 if (PyErr_Occurred()) return NULL
;
8175 } Py_INCREF(Py_None
);
8176 _resultobj
= Py_None
;
8180 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8181 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8182 PyObject
* _resultobj
;
8185 PyObject
* _argo0
= 0;
8186 char *_kwnames
[] = { "self", NULL
};
8189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8199 wxPy_BEGIN_ALLOW_THREADS
;
8200 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8202 wxPy_END_ALLOW_THREADS
;
8203 if (PyErr_Occurred()) return NULL
;
8204 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8208 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8211 src
= (wxMenuBar
*) ptr
;
8212 dest
= (wxWindow
*) src
;
8213 return (void *) dest
;
8216 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8219 src
= (wxMenuBar
*) ptr
;
8220 dest
= (wxEvtHandler
*) src
;
8221 return (void *) dest
;
8224 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8227 src
= (wxMenuBar
*) ptr
;
8228 dest
= (wxObject
*) src
;
8229 return (void *) dest
;
8232 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8233 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8234 PyObject
* _resultobj
;
8235 wxMenuBar
* _result
;
8236 long _arg0
= (long ) 0;
8237 char *_kwnames
[] = { "style", NULL
};
8241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8244 wxPy_BEGIN_ALLOW_THREADS
;
8245 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8247 wxPy_END_ALLOW_THREADS
;
8248 if (PyErr_Occurred()) return NULL
;
8250 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8251 _resultobj
= Py_BuildValue("s",_ptemp
);
8254 _resultobj
= Py_None
;
8259 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8260 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8261 PyObject
* _resultobj
;
8266 PyObject
* _argo0
= 0;
8267 PyObject
* _argo1
= 0;
8268 PyObject
* _obj2
= 0;
8269 char *_kwnames
[] = { "self","menu","title", NULL
};
8272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8282 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8283 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8289 #if PYTHON_API_VERSION >= 1009
8290 char* tmpPtr
; int tmpSize
;
8291 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8295 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8297 _arg2
= new wxString(tmpPtr
, tmpSize
);
8299 if (!PyString_Check(_obj2
)) {
8300 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8303 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8307 wxPy_BEGIN_ALLOW_THREADS
;
8308 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8310 wxPy_END_ALLOW_THREADS
;
8311 if (PyErr_Occurred()) return NULL
;
8312 } _resultobj
= Py_BuildValue("i",_result
);
8320 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8321 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8322 PyObject
* _resultobj
;
8328 PyObject
* _argo0
= 0;
8329 PyObject
* _argo2
= 0;
8330 PyObject
* _obj3
= 0;
8331 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8344 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8345 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8351 #if PYTHON_API_VERSION >= 1009
8352 char* tmpPtr
; int tmpSize
;
8353 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8354 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8357 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8359 _arg3
= new wxString(tmpPtr
, tmpSize
);
8361 if (!PyString_Check(_obj3
)) {
8362 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8365 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8369 wxPy_BEGIN_ALLOW_THREADS
;
8370 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8372 wxPy_END_ALLOW_THREADS
;
8373 if (PyErr_Occurred()) return NULL
;
8374 } _resultobj
= Py_BuildValue("i",_result
);
8382 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8383 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8384 PyObject
* _resultobj
;
8387 PyObject
* _argo0
= 0;
8388 char *_kwnames
[] = { "self", NULL
};
8391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8401 wxPy_BEGIN_ALLOW_THREADS
;
8402 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8404 wxPy_END_ALLOW_THREADS
;
8405 if (PyErr_Occurred()) return NULL
;
8406 } _resultobj
= Py_BuildValue("i",_result
);
8410 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8411 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8412 PyObject
* _resultobj
;
8416 PyObject
* _argo0
= 0;
8417 char *_kwnames
[] = { "self","pos", NULL
};
8420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8430 wxPy_BEGIN_ALLOW_THREADS
;
8431 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8433 wxPy_END_ALLOW_THREADS
;
8434 if (PyErr_Occurred()) return NULL
;
8435 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8439 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8440 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8441 PyObject
* _resultobj
;
8447 PyObject
* _argo0
= 0;
8448 PyObject
* _argo2
= 0;
8449 PyObject
* _obj3
= 0;
8450 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8463 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8464 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8470 #if PYTHON_API_VERSION >= 1009
8471 char* tmpPtr
; int tmpSize
;
8472 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8473 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8476 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8478 _arg3
= new wxString(tmpPtr
, tmpSize
);
8480 if (!PyString_Check(_obj3
)) {
8481 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8484 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8488 wxPy_BEGIN_ALLOW_THREADS
;
8489 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8491 wxPy_END_ALLOW_THREADS
;
8492 if (PyErr_Occurred()) return NULL
;
8493 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8501 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8502 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8503 PyObject
* _resultobj
;
8507 PyObject
* _argo0
= 0;
8508 char *_kwnames
[] = { "self","pos", NULL
};
8511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8521 wxPy_BEGIN_ALLOW_THREADS
;
8522 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8524 wxPy_END_ALLOW_THREADS
;
8525 if (PyErr_Occurred()) return NULL
;
8526 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8530 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8531 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8532 PyObject
* _resultobj
;
8536 PyObject
* _argo0
= 0;
8538 char *_kwnames
[] = { "self","pos","enable", NULL
};
8541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8550 _arg2
= (bool ) tempbool2
;
8552 wxPy_BEGIN_ALLOW_THREADS
;
8553 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8555 wxPy_END_ALLOW_THREADS
;
8556 if (PyErr_Occurred()) return NULL
;
8557 } Py_INCREF(Py_None
);
8558 _resultobj
= Py_None
;
8562 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8563 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8564 PyObject
* _resultobj
;
8568 PyObject
* _argo0
= 0;
8569 PyObject
* _obj2
= 0;
8570 char *_kwnames
[] = { "self","pos","label", NULL
};
8573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8583 #if PYTHON_API_VERSION >= 1009
8584 char* tmpPtr
; int tmpSize
;
8585 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8586 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8589 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8591 _arg2
= new wxString(tmpPtr
, tmpSize
);
8593 if (!PyString_Check(_obj2
)) {
8594 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8597 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8601 wxPy_BEGIN_ALLOW_THREADS
;
8602 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8604 wxPy_END_ALLOW_THREADS
;
8605 if (PyErr_Occurred()) return NULL
;
8606 } Py_INCREF(Py_None
);
8607 _resultobj
= Py_None
;
8615 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8616 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8617 PyObject
* _resultobj
;
8621 PyObject
* _argo0
= 0;
8622 char *_kwnames
[] = { "self","pos", NULL
};
8625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8635 wxPy_BEGIN_ALLOW_THREADS
;
8636 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8638 wxPy_END_ALLOW_THREADS
;
8639 if (PyErr_Occurred()) return NULL
;
8641 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8649 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8650 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8651 PyObject
* _resultobj
;
8655 PyObject
* _argo0
= 0;
8656 PyObject
* _obj1
= 0;
8657 char *_kwnames
[] = { "self","title", NULL
};
8660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8670 #if PYTHON_API_VERSION >= 1009
8671 char* tmpPtr
; int tmpSize
;
8672 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8676 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8678 _arg1
= new wxString(tmpPtr
, tmpSize
);
8680 if (!PyString_Check(_obj1
)) {
8681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8684 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8688 wxPy_BEGIN_ALLOW_THREADS
;
8689 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8691 wxPy_END_ALLOW_THREADS
;
8692 if (PyErr_Occurred()) return NULL
;
8693 } _resultobj
= Py_BuildValue("i",_result
);
8701 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8702 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8703 PyObject
* _resultobj
;
8708 PyObject
* _argo0
= 0;
8709 PyObject
* _obj1
= 0;
8710 PyObject
* _obj2
= 0;
8711 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8724 #if PYTHON_API_VERSION >= 1009
8725 char* tmpPtr
; int tmpSize
;
8726 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8727 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8730 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8732 _arg1
= new wxString(tmpPtr
, tmpSize
);
8734 if (!PyString_Check(_obj1
)) {
8735 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8738 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8742 #if PYTHON_API_VERSION >= 1009
8743 char* tmpPtr
; int tmpSize
;
8744 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8745 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8748 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8750 _arg2
= new wxString(tmpPtr
, tmpSize
);
8752 if (!PyString_Check(_obj2
)) {
8753 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8756 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8760 wxPy_BEGIN_ALLOW_THREADS
;
8761 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8763 wxPy_END_ALLOW_THREADS
;
8764 if (PyErr_Occurred()) return NULL
;
8765 } _resultobj
= Py_BuildValue("i",_result
);
8777 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8778 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8779 PyObject
* _resultobj
;
8780 wxMenuItem
* _result
;
8783 PyObject
* _argo0
= 0;
8784 char *_kwnames
[] = { "self","id", NULL
};
8787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8797 wxPy_BEGIN_ALLOW_THREADS
;
8798 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8800 wxPy_END_ALLOW_THREADS
;
8801 if (PyErr_Occurred()) return NULL
;
8802 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8806 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8807 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8808 PyObject
* _resultobj
;
8812 PyObject
* _argo0
= 0;
8814 char *_kwnames
[] = { "self","id","enable", NULL
};
8817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8826 _arg2
= (bool ) tempbool2
;
8828 wxPy_BEGIN_ALLOW_THREADS
;
8829 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8831 wxPy_END_ALLOW_THREADS
;
8832 if (PyErr_Occurred()) return NULL
;
8833 } Py_INCREF(Py_None
);
8834 _resultobj
= Py_None
;
8838 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8839 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8840 PyObject
* _resultobj
;
8844 PyObject
* _argo0
= 0;
8846 char *_kwnames
[] = { "self","id","check", NULL
};
8849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8858 _arg2
= (bool ) tempbool2
;
8860 wxPy_BEGIN_ALLOW_THREADS
;
8861 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8863 wxPy_END_ALLOW_THREADS
;
8864 if (PyErr_Occurred()) return NULL
;
8865 } Py_INCREF(Py_None
);
8866 _resultobj
= Py_None
;
8870 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8871 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8872 PyObject
* _resultobj
;
8876 PyObject
* _argo0
= 0;
8877 char *_kwnames
[] = { "self","id", NULL
};
8880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8890 wxPy_BEGIN_ALLOW_THREADS
;
8891 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8893 wxPy_END_ALLOW_THREADS
;
8894 if (PyErr_Occurred()) return NULL
;
8895 } _resultobj
= Py_BuildValue("i",_result
);
8899 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8900 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8901 PyObject
* _resultobj
;
8905 PyObject
* _argo0
= 0;
8906 char *_kwnames
[] = { "self","id", NULL
};
8909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8919 wxPy_BEGIN_ALLOW_THREADS
;
8920 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8922 wxPy_END_ALLOW_THREADS
;
8923 if (PyErr_Occurred()) return NULL
;
8924 } _resultobj
= Py_BuildValue("i",_result
);
8928 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8929 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8930 PyObject
* _resultobj
;
8934 PyObject
* _argo0
= 0;
8935 PyObject
* _obj2
= 0;
8936 char *_kwnames
[] = { "self","id","label", NULL
};
8939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8949 #if PYTHON_API_VERSION >= 1009
8950 char* tmpPtr
; int tmpSize
;
8951 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8955 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8957 _arg2
= new wxString(tmpPtr
, tmpSize
);
8959 if (!PyString_Check(_obj2
)) {
8960 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8963 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8967 wxPy_BEGIN_ALLOW_THREADS
;
8968 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8970 wxPy_END_ALLOW_THREADS
;
8971 if (PyErr_Occurred()) return NULL
;
8972 } Py_INCREF(Py_None
);
8973 _resultobj
= Py_None
;
8981 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8982 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8983 PyObject
* _resultobj
;
8987 PyObject
* _argo0
= 0;
8988 char *_kwnames
[] = { "self","id", NULL
};
8991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9001 wxPy_BEGIN_ALLOW_THREADS
;
9002 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9004 wxPy_END_ALLOW_THREADS
;
9005 if (PyErr_Occurred()) return NULL
;
9007 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9015 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9016 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9017 PyObject
* _resultobj
;
9021 PyObject
* _argo0
= 0;
9022 PyObject
* _obj2
= 0;
9023 char *_kwnames
[] = { "self","id","helpString", NULL
};
9026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9036 #if PYTHON_API_VERSION >= 1009
9037 char* tmpPtr
; int tmpSize
;
9038 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9039 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9042 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9044 _arg2
= new wxString(tmpPtr
, tmpSize
);
9046 if (!PyString_Check(_obj2
)) {
9047 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9050 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9054 wxPy_BEGIN_ALLOW_THREADS
;
9055 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9057 wxPy_END_ALLOW_THREADS
;
9058 if (PyErr_Occurred()) return NULL
;
9059 } Py_INCREF(Py_None
);
9060 _resultobj
= Py_None
;
9068 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9069 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9070 PyObject
* _resultobj
;
9074 PyObject
* _argo0
= 0;
9075 char *_kwnames
[] = { "self","id", NULL
};
9078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9088 wxPy_BEGIN_ALLOW_THREADS
;
9089 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9091 wxPy_END_ALLOW_THREADS
;
9092 if (PyErr_Occurred()) return NULL
;
9094 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9102 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9105 src
= (wxMenuItem
*) ptr
;
9106 dest
= (wxObject
*) src
;
9107 return (void *) dest
;
9110 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9111 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9112 PyObject
* _resultobj
;
9113 wxMenuItem
* _result
;
9114 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9115 int _arg1
= (int ) wxID_SEPARATOR
;
9116 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9117 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9118 bool _arg4
= (bool ) FALSE
;
9119 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9120 PyObject
* _argo0
= 0;
9121 PyObject
* _obj2
= 0;
9122 PyObject
* _obj3
= 0;
9123 int tempbool4
= (int) FALSE
;
9124 PyObject
* _argo5
= 0;
9125 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9140 #if PYTHON_API_VERSION >= 1009
9141 char* tmpPtr
; int tmpSize
;
9142 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9143 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9146 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9148 _arg2
= new wxString(tmpPtr
, tmpSize
);
9150 if (!PyString_Check(_obj2
)) {
9151 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9154 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9159 #if PYTHON_API_VERSION >= 1009
9160 char* tmpPtr
; int tmpSize
;
9161 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9162 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9165 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9167 _arg3
= new wxString(tmpPtr
, tmpSize
);
9169 if (!PyString_Check(_obj3
)) {
9170 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9173 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9176 _arg4
= (bool ) tempbool4
;
9178 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9179 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9185 wxPy_BEGIN_ALLOW_THREADS
;
9186 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9188 wxPy_END_ALLOW_THREADS
;
9189 if (PyErr_Occurred()) return NULL
;
9191 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9192 _resultobj
= Py_BuildValue("s",_ptemp
);
9195 _resultobj
= Py_None
;
9208 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9209 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9210 PyObject
* _resultobj
;
9213 PyObject
* _argo0
= 0;
9214 char *_kwnames
[] = { "self", NULL
};
9217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9227 wxPy_BEGIN_ALLOW_THREADS
;
9228 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9230 wxPy_END_ALLOW_THREADS
;
9231 if (PyErr_Occurred()) return NULL
;
9232 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9236 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9237 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9238 PyObject
* _resultobj
;
9241 PyObject
* _argo0
= 0;
9242 char *_kwnames
[] = { "self","id", NULL
};
9245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9255 wxPy_BEGIN_ALLOW_THREADS
;
9256 wxMenuItem_SetId(_arg0
,_arg1
);
9258 wxPy_END_ALLOW_THREADS
;
9259 if (PyErr_Occurred()) return NULL
;
9260 } Py_INCREF(Py_None
);
9261 _resultobj
= Py_None
;
9265 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9266 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9267 PyObject
* _resultobj
;
9270 PyObject
* _argo0
= 0;
9271 char *_kwnames
[] = { "self", NULL
};
9274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9284 wxPy_BEGIN_ALLOW_THREADS
;
9285 _result
= (int )wxMenuItem_GetId(_arg0
);
9287 wxPy_END_ALLOW_THREADS
;
9288 if (PyErr_Occurred()) return NULL
;
9289 } _resultobj
= Py_BuildValue("i",_result
);
9293 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9294 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9295 PyObject
* _resultobj
;
9298 PyObject
* _argo0
= 0;
9299 char *_kwnames
[] = { "self", NULL
};
9302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9312 wxPy_BEGIN_ALLOW_THREADS
;
9313 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9315 wxPy_END_ALLOW_THREADS
;
9316 if (PyErr_Occurred()) return NULL
;
9317 } _resultobj
= Py_BuildValue("i",_result
);
9321 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9322 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9323 PyObject
* _resultobj
;
9326 PyObject
* _argo0
= 0;
9327 PyObject
* _obj1
= 0;
9328 char *_kwnames
[] = { "self","str", NULL
};
9331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9341 #if PYTHON_API_VERSION >= 1009
9342 char* tmpPtr
; int tmpSize
;
9343 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9347 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9349 _arg1
= new wxString(tmpPtr
, tmpSize
);
9351 if (!PyString_Check(_obj1
)) {
9352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9355 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9359 wxPy_BEGIN_ALLOW_THREADS
;
9360 wxMenuItem_SetText(_arg0
,*_arg1
);
9362 wxPy_END_ALLOW_THREADS
;
9363 if (PyErr_Occurred()) return NULL
;
9364 } Py_INCREF(Py_None
);
9365 _resultobj
= Py_None
;
9373 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9374 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9375 PyObject
* _resultobj
;
9378 PyObject
* _argo0
= 0;
9379 char *_kwnames
[] = { "self", NULL
};
9382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9392 wxPy_BEGIN_ALLOW_THREADS
;
9393 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9395 wxPy_END_ALLOW_THREADS
;
9396 if (PyErr_Occurred()) return NULL
;
9398 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9406 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9407 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9408 PyObject
* _resultobj
;
9411 PyObject
* _argo0
= 0;
9412 char *_kwnames
[] = { "self", NULL
};
9415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9425 wxPy_BEGIN_ALLOW_THREADS
;
9426 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9427 _result
= (wxString
*) &_result_ref
;
9429 wxPy_END_ALLOW_THREADS
;
9430 if (PyErr_Occurred()) return NULL
;
9432 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9437 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9438 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9439 PyObject
* _resultobj
;
9442 PyObject
* _argo0
= 0;
9444 char *_kwnames
[] = { "self","checkable", NULL
};
9447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9456 _arg1
= (bool ) tempbool1
;
9458 wxPy_BEGIN_ALLOW_THREADS
;
9459 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9461 wxPy_END_ALLOW_THREADS
;
9462 if (PyErr_Occurred()) return NULL
;
9463 } Py_INCREF(Py_None
);
9464 _resultobj
= Py_None
;
9468 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9469 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9470 PyObject
* _resultobj
;
9473 PyObject
* _argo0
= 0;
9474 char *_kwnames
[] = { "self", NULL
};
9477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9487 wxPy_BEGIN_ALLOW_THREADS
;
9488 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9490 wxPy_END_ALLOW_THREADS
;
9491 if (PyErr_Occurred()) return NULL
;
9492 } _resultobj
= Py_BuildValue("i",_result
);
9496 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9497 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9498 PyObject
* _resultobj
;
9501 PyObject
* _argo0
= 0;
9502 char *_kwnames
[] = { "self", NULL
};
9505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9515 wxPy_BEGIN_ALLOW_THREADS
;
9516 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9518 wxPy_END_ALLOW_THREADS
;
9519 if (PyErr_Occurred()) return NULL
;
9520 } _resultobj
= Py_BuildValue("i",_result
);
9524 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9525 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9526 PyObject
* _resultobj
;
9529 PyObject
* _argo0
= 0;
9530 PyObject
* _argo1
= 0;
9531 char *_kwnames
[] = { "self","menu", NULL
};
9534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9544 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9545 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9551 wxPy_BEGIN_ALLOW_THREADS
;
9552 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9554 wxPy_END_ALLOW_THREADS
;
9555 if (PyErr_Occurred()) return NULL
;
9556 } Py_INCREF(Py_None
);
9557 _resultobj
= Py_None
;
9561 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9562 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9563 PyObject
* _resultobj
;
9566 PyObject
* _argo0
= 0;
9567 char *_kwnames
[] = { "self", NULL
};
9570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9580 wxPy_BEGIN_ALLOW_THREADS
;
9581 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9583 wxPy_END_ALLOW_THREADS
;
9584 if (PyErr_Occurred()) return NULL
;
9585 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9589 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9590 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9591 PyObject
* _resultobj
;
9593 bool _arg1
= (bool ) TRUE
;
9594 PyObject
* _argo0
= 0;
9595 int tempbool1
= (int) TRUE
;
9596 char *_kwnames
[] = { "self","enable", NULL
};
9599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9608 _arg1
= (bool ) tempbool1
;
9610 wxPy_BEGIN_ALLOW_THREADS
;
9611 wxMenuItem_Enable(_arg0
,_arg1
);
9613 wxPy_END_ALLOW_THREADS
;
9614 if (PyErr_Occurred()) return NULL
;
9615 } Py_INCREF(Py_None
);
9616 _resultobj
= Py_None
;
9620 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9621 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9622 PyObject
* _resultobj
;
9625 PyObject
* _argo0
= 0;
9626 char *_kwnames
[] = { "self", NULL
};
9629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9639 wxPy_BEGIN_ALLOW_THREADS
;
9640 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9642 wxPy_END_ALLOW_THREADS
;
9643 if (PyErr_Occurred()) return NULL
;
9644 } _resultobj
= Py_BuildValue("i",_result
);
9648 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9649 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9650 PyObject
* _resultobj
;
9652 bool _arg1
= (bool ) TRUE
;
9653 PyObject
* _argo0
= 0;
9654 int tempbool1
= (int) TRUE
;
9655 char *_kwnames
[] = { "self","check", NULL
};
9658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9667 _arg1
= (bool ) tempbool1
;
9669 wxPy_BEGIN_ALLOW_THREADS
;
9670 wxMenuItem_Check(_arg0
,_arg1
);
9672 wxPy_END_ALLOW_THREADS
;
9673 if (PyErr_Occurred()) return NULL
;
9674 } Py_INCREF(Py_None
);
9675 _resultobj
= Py_None
;
9679 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9680 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9681 PyObject
* _resultobj
;
9684 PyObject
* _argo0
= 0;
9685 char *_kwnames
[] = { "self", NULL
};
9688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9698 wxPy_BEGIN_ALLOW_THREADS
;
9699 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9701 wxPy_END_ALLOW_THREADS
;
9702 if (PyErr_Occurred()) return NULL
;
9703 } _resultobj
= Py_BuildValue("i",_result
);
9707 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9708 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9709 PyObject
* _resultobj
;
9711 PyObject
* _argo0
= 0;
9712 char *_kwnames
[] = { "self", NULL
};
9715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9725 wxPy_BEGIN_ALLOW_THREADS
;
9726 wxMenuItem_Toggle(_arg0
);
9728 wxPy_END_ALLOW_THREADS
;
9729 if (PyErr_Occurred()) return NULL
;
9730 } Py_INCREF(Py_None
);
9731 _resultobj
= Py_None
;
9735 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9736 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9737 PyObject
* _resultobj
;
9740 PyObject
* _argo0
= 0;
9741 PyObject
* _obj1
= 0;
9742 char *_kwnames
[] = { "self","str", NULL
};
9745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9755 #if PYTHON_API_VERSION >= 1009
9756 char* tmpPtr
; int tmpSize
;
9757 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9758 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9761 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9763 _arg1
= new wxString(tmpPtr
, tmpSize
);
9765 if (!PyString_Check(_obj1
)) {
9766 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9769 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9773 wxPy_BEGIN_ALLOW_THREADS
;
9774 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9776 wxPy_END_ALLOW_THREADS
;
9777 if (PyErr_Occurred()) return NULL
;
9778 } Py_INCREF(Py_None
);
9779 _resultobj
= Py_None
;
9787 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9788 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9789 PyObject
* _resultobj
;
9792 PyObject
* _argo0
= 0;
9793 char *_kwnames
[] = { "self", NULL
};
9796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9806 wxPy_BEGIN_ALLOW_THREADS
;
9807 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9808 _result
= (wxString
*) &_result_ref
;
9810 wxPy_END_ALLOW_THREADS
;
9811 if (PyErr_Occurred()) return NULL
;
9813 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9818 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9819 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9820 PyObject
* _resultobj
;
9821 wxAcceleratorEntry
* _result
;
9823 PyObject
* _argo0
= 0;
9824 char *_kwnames
[] = { "self", NULL
};
9828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9838 wxPy_BEGIN_ALLOW_THREADS
;
9839 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9841 wxPy_END_ALLOW_THREADS
;
9842 if (PyErr_Occurred()) return NULL
;
9844 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9845 _resultobj
= Py_BuildValue("s",_ptemp
);
9848 _resultobj
= Py_None
;
9853 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9854 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9855 PyObject
* _resultobj
;
9857 wxAcceleratorEntry
* _arg1
;
9858 PyObject
* _argo0
= 0;
9859 PyObject
* _argo1
= 0;
9860 char *_kwnames
[] = { "self","accel", NULL
};
9863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9873 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9874 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9880 wxPy_BEGIN_ALLOW_THREADS
;
9881 wxMenuItem_SetAccel(_arg0
,_arg1
);
9883 wxPy_END_ALLOW_THREADS
;
9884 if (PyErr_Occurred()) return NULL
;
9885 } Py_INCREF(Py_None
);
9886 _resultobj
= Py_None
;
9890 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9891 PyObject
* _resultobj
;
9894 PyObject
* _obj0
= 0;
9895 char *_kwnames
[] = { "text", NULL
};
9898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9901 #if PYTHON_API_VERSION >= 1009
9902 char* tmpPtr
; int tmpSize
;
9903 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9904 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9907 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9909 _arg0
= new wxString(tmpPtr
, tmpSize
);
9911 if (!PyString_Check(_obj0
)) {
9912 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9915 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9919 wxPy_BEGIN_ALLOW_THREADS
;
9920 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9922 wxPy_END_ALLOW_THREADS
;
9923 if (PyErr_Occurred()) return NULL
;
9925 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9937 static PyMethodDef windowscMethods
[] = {
9938 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10145 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10146 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10147 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10148 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10149 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10150 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10151 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10152 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10153 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10154 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10155 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10156 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10157 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10158 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10159 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10160 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10161 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10162 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10163 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10164 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10165 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10166 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10167 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10168 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10169 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10170 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10171 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10172 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10173 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10174 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10175 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10176 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10177 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10178 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10179 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10180 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10181 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10182 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10183 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10184 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10185 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10186 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10187 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10188 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10189 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10190 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10191 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10192 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10193 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10194 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10195 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10196 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10197 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10198 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10199 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10200 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10201 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10202 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10203 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10204 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10205 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10206 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10207 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10208 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10209 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10210 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10217 * This table is used by the pointer type-checker
10219 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10220 { "_signed_long","_long",0},
10221 { "_wxPrintQuality","_wxCoord",0},
10222 { "_wxPrintQuality","_int",0},
10223 { "_wxPrintQuality","_signed_int",0},
10224 { "_wxPrintQuality","_unsigned_int",0},
10225 { "_wxPrintQuality","_wxWindowID",0},
10226 { "_wxPrintQuality","_uint",0},
10227 { "_wxPrintQuality","_EBool",0},
10228 { "_wxPrintQuality","_size_t",0},
10229 { "_wxPrintQuality","_time_t",0},
10230 { "_byte","_unsigned_char",0},
10231 { "_long","_unsigned_long",0},
10232 { "_long","_signed_long",0},
10233 { "_size_t","_wxCoord",0},
10234 { "_size_t","_wxPrintQuality",0},
10235 { "_size_t","_time_t",0},
10236 { "_size_t","_unsigned_int",0},
10237 { "_size_t","_int",0},
10238 { "_size_t","_wxWindowID",0},
10239 { "_size_t","_uint",0},
10240 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10241 { "_uint","_wxCoord",0},
10242 { "_uint","_wxPrintQuality",0},
10243 { "_uint","_time_t",0},
10244 { "_uint","_size_t",0},
10245 { "_uint","_unsigned_int",0},
10246 { "_uint","_int",0},
10247 { "_uint","_wxWindowID",0},
10248 { "_wxChar","_char",0},
10249 { "_char","_wxChar",0},
10250 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10251 { "_EBool","_wxCoord",0},
10252 { "_EBool","_wxPrintQuality",0},
10253 { "_EBool","_signed_int",0},
10254 { "_EBool","_int",0},
10255 { "_EBool","_wxWindowID",0},
10256 { "_unsigned_long","_long",0},
10257 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10258 { "_signed_int","_wxCoord",0},
10259 { "_signed_int","_wxPrintQuality",0},
10260 { "_signed_int","_EBool",0},
10261 { "_signed_int","_wxWindowID",0},
10262 { "_signed_int","_int",0},
10263 { "_WXTYPE","_short",0},
10264 { "_WXTYPE","_signed_short",0},
10265 { "_WXTYPE","_unsigned_short",0},
10266 { "_unsigned_short","_WXTYPE",0},
10267 { "_unsigned_short","_short",0},
10268 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10269 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10270 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10271 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10272 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10273 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10274 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10275 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10276 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10277 { "_signed_short","_WXTYPE",0},
10278 { "_signed_short","_short",0},
10279 { "_unsigned_char","_byte",0},
10280 { "_unsigned_int","_wxCoord",0},
10281 { "_unsigned_int","_wxPrintQuality",0},
10282 { "_unsigned_int","_time_t",0},
10283 { "_unsigned_int","_size_t",0},
10284 { "_unsigned_int","_uint",0},
10285 { "_unsigned_int","_wxWindowID",0},
10286 { "_unsigned_int","_int",0},
10287 { "_short","_WXTYPE",0},
10288 { "_short","_unsigned_short",0},
10289 { "_short","_signed_short",0},
10290 { "_wxWindowID","_wxCoord",0},
10291 { "_wxWindowID","_wxPrintQuality",0},
10292 { "_wxWindowID","_time_t",0},
10293 { "_wxWindowID","_size_t",0},
10294 { "_wxWindowID","_EBool",0},
10295 { "_wxWindowID","_uint",0},
10296 { "_wxWindowID","_int",0},
10297 { "_wxWindowID","_signed_int",0},
10298 { "_wxWindowID","_unsigned_int",0},
10299 { "_int","_wxCoord",0},
10300 { "_int","_wxPrintQuality",0},
10301 { "_int","_time_t",0},
10302 { "_int","_size_t",0},
10303 { "_int","_EBool",0},
10304 { "_int","_uint",0},
10305 { "_int","_wxWindowID",0},
10306 { "_int","_unsigned_int",0},
10307 { "_int","_signed_int",0},
10308 { "_time_t","_wxCoord",0},
10309 { "_time_t","_wxPrintQuality",0},
10310 { "_time_t","_unsigned_int",0},
10311 { "_time_t","_int",0},
10312 { "_time_t","_wxWindowID",0},
10313 { "_time_t","_uint",0},
10314 { "_time_t","_size_t",0},
10315 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10316 { "_wxCoord","_int",0},
10317 { "_wxCoord","_signed_int",0},
10318 { "_wxCoord","_unsigned_int",0},
10319 { "_wxCoord","_wxWindowID",0},
10320 { "_wxCoord","_uint",0},
10321 { "_wxCoord","_EBool",0},
10322 { "_wxCoord","_size_t",0},
10323 { "_wxCoord","_time_t",0},
10324 { "_wxCoord","_wxPrintQuality",0},
10325 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10326 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10327 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10328 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10329 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10330 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10331 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10332 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10333 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10334 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10337 static PyObject
*SWIG_globals
;
10341 SWIGEXPORT(void) initwindowsc() {
10343 SWIG_globals
= SWIG_newvarlink();
10344 m
= Py_InitModule("windowsc", windowscMethods
);
10345 d
= PyModule_GetDict(m
);
10348 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10349 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);